diff --git a/Silk.NET.sln b/Silk.NET.sln index 17850fdc6f..afddb65277 100644 --- a/Silk.NET.sln +++ b/Silk.NET.sln @@ -1,7 +1,6 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28922.388 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35527.113 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{60A10DB9-C4D6-48CD-8982-7F02345D7ADF}" ProjectSection(SolutionItems) = preProject @@ -10,19 +9,19 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution .gitignore = .gitignore Directory.Build.props = Directory.Build.props Directory.Build.targets = Directory.Build.targets - LICENSE.md = LICENSE.md + Directory.Packages.props = Directory.Packages.props generator.json = generator.json + LICENSE.md = LICENSE.md Silk.NET.sln.DotSettings = Silk.NET.sln.DotSettings - Directory.Packages.props = Directory.Packages.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{9DB0EA3E-7216-4F9C-98F5-8A7483E9F083}" ProjectSection(SolutionItems) = preProject - docs\CODE_OF_CONDUCT.md = docs\CODE_OF_CONDUCT.md + docs\CHANGELOG.md = docs\CHANGELOG.md docs\CODEOWNERS = docs\CODEOWNERS + docs\CODE_OF_CONDUCT.md = docs\CODE_OF_CONDUCT.md docs\CONTRIBUTING.md = docs\CONTRIBUTING.md docs\README.md = docs\README.md - docs\CHANGELOG.md = docs\CHANGELOG.md EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{CFFDBEEC-B112-4844-B65B-56A1029CC130}" @@ -102,6 +101,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Windowing", "Windowing", "{ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Windowing", "sources\Windowing\Windowing\Silk.NET.Windowing.csproj", "{EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Win32", "sources\Win32\Win32\Silk.NET.Win32.csproj", "{BB33CC4A-EA3A-4D4F-879A-F93C617C5E63}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Win32", "Win32", "{BA20152E-2FF8-48F0-A90E-682A7A8CF657}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Win32.UnitTests", "tests\Win32\Win32\Silk.NET.Win32.UnitTests.csproj", "{C8F32825-1F93-44F0-AB88-26167C21CADF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -123,7 +128,6 @@ Global {48F43535-3AFC-45E7-A98D-C2609B3B9757}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {48F43535-3AFC-45E7-A98D-C2609B3B9757}.Debug|Any CPU.Build.0 = Debug|Any CPU {48F43535-3AFC-45E7-A98D-C2609B3B9757}.Release|Any CPU.ActiveCfg = Release|Any CPU - {48F43535-3AFC-45E7-A98D-C2609B3B9757}.Release|Any CPU.Build.0 = Release|Any CPU {A87E1861-07E4-4B7A-9173-0853370A7D4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A87E1861-07E4-4B7A-9173-0853370A7D4E}.Debug|Any CPU.Build.0 = Debug|Any CPU {A87E1861-07E4-4B7A-9173-0853370A7D4E}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -143,15 +147,12 @@ Global {9625C977-25BE-48F3-9B6F-BC94B8B799A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9625C977-25BE-48F3-9B6F-BC94B8B799A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {9625C977-25BE-48F3-9B6F-BC94B8B799A6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9625C977-25BE-48F3-9B6F-BC94B8B799A6}.Release|Any CPU.Build.0 = Release|Any CPU {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Release|Any CPU.Build.0 = Release|Any CPU {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Debug|Any CPU.Build.0 = Debug|Any CPU {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Release|Any CPU.Build.0 = Release|Any CPU {3CADD95A-179F-4ECF-A49D-4B753832C63C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3CADD95A-179F-4ECF-A49D-4B753832C63C}.Debug|Any CPU.Build.0 = Debug|Any CPU {3CADD95A-179F-4ECF-A49D-4B753832C63C}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -159,47 +160,53 @@ Global {6FA628B8-9696-4847-89F9-E58F470AF4FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6FA628B8-9696-4847-89F9-E58F470AF4FB}.Debug|Any CPU.Build.0 = Debug|Any CPU {6FA628B8-9696-4847-89F9-E58F470AF4FB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6FA628B8-9696-4847-89F9-E58F470AF4FB}.Release|Any CPU.Build.0 = Release|Any CPU {F16C0AB9-DE7E-4C09-9EE9-DAA8B8E935A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F16C0AB9-DE7E-4C09-9EE9-DAA8B8E935A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {F16C0AB9-DE7E-4C09-9EE9-DAA8B8E935A6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F16C0AB9-DE7E-4C09-9EE9-DAA8B8E935A6}.Release|Any CPU.Build.0 = Release|Any CPU {EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Debug|Any CPU.Build.0 = Debug|Any CPU {EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Release|Any CPU.Build.0 = Release|Any CPU + {BB33CC4A-EA3A-4D4F-879A-F93C617C5E63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB33CC4A-EA3A-4D4F-879A-F93C617C5E63}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB33CC4A-EA3A-4D4F-879A-F93C617C5E63}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C8F32825-1F93-44F0-AB88-26167C21CADF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C8F32825-1F93-44F0-AB88-26167C21CADF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C8F32825-1F93-44F0-AB88-26167C21CADF}.Release|Any CPU.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution + {76F747A6-D971-4162-BF35-A226177FCA08} = {24BD769C-7379-400C-A67F-00C34756DA32} + {600D712C-4ABF-44C4-96C3-B1DEE1F38298} = {AB25C482-DA9D-4335-8E26-2F29C3700152} + {131C09C1-BF4D-47C1-AF13-4A7E30866B1E} = {5CD096DB-6C44-48F1-9093-AD4C84B6B7EC} {48F43535-3AFC-45E7-A98D-C2609B3B9757} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} + {A87E1861-07E4-4B7A-9173-0853370A7D4E} = {D9ACA4E5-712F-4F15-B8B8-50C85D23D1D5} + {1B21D783-71C3-48D3-91F5-0EEA90FB0DB2} = {2452CED9-5211-4A19-BA44-230EC28F409E} + {01683C11-4721-43AB-B53C-15EBE935B48F} = {FCD75AA5-1536-433E-BA9B-3D698C2255EB} {B681E21A-47A2-4635-96EE-60D8D63FBEA9} = {475AEF7B-0154-4989-AF82-97E3A95A96AF} {AF6C70ED-D6A8-4C57-8DB3-EAFF94396049} = {B681E21A-47A2-4635-96EE-60D8D63FBEA9} + {9625C977-25BE-48F3-9B6F-BC94B8B799A6} = {FA31E483-AD35-4E44-B10A-B33C4539DBCB} + {19B05730-F97E-43D4-B922-DF4697E5CE5F} = {EC4D7B06-D277-4411-BD7B-71A6D37683F0} + {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807} = {49D426BF-A009-43D5-A9E2-EFAAAA7196FC} {5CD096DB-6C44-48F1-9093-AD4C84B6B7EC} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} - {131C09C1-BF4D-47C1-AF13-4A7E30866B1E} = {5CD096DB-6C44-48F1-9093-AD4C84B6B7EC} {2452CED9-5211-4A19-BA44-230EC28F409E} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {FA31E483-AD35-4E44-B10A-B33C4539DBCB} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {24BD769C-7379-400C-A67F-00C34756DA32} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {EC4D7B06-D277-4411-BD7B-71A6D37683F0} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} - {19B05730-F97E-43D4-B922-DF4697E5CE5F} = {EC4D7B06-D277-4411-BD7B-71A6D37683F0} - {76F747A6-D971-4162-BF35-A226177FCA08} = {24BD769C-7379-400C-A67F-00C34756DA32} - {1B21D783-71C3-48D3-91F5-0EEA90FB0DB2} = {2452CED9-5211-4A19-BA44-230EC28F409E} - {9625C977-25BE-48F3-9B6F-BC94B8B799A6} = {FA31E483-AD35-4E44-B10A-B33C4539DBCB} {D9ACA4E5-712F-4F15-B8B8-50C85D23D1D5} = {A5578D12-9E77-4647-8C22-0DBD17760BFF} {FCD75AA5-1536-433E-BA9B-3D698C2255EB} = {A5578D12-9E77-4647-8C22-0DBD17760BFF} {49D426BF-A009-43D5-A9E2-EFAAAA7196FC} = {A5578D12-9E77-4647-8C22-0DBD17760BFF} {AB25C482-DA9D-4335-8E26-2F29C3700152} = {A5578D12-9E77-4647-8C22-0DBD17760BFF} - {A87E1861-07E4-4B7A-9173-0853370A7D4E} = {D9ACA4E5-712F-4F15-B8B8-50C85D23D1D5} - {01683C11-4721-43AB-B53C-15EBE935B48F} = {FCD75AA5-1536-433E-BA9B-3D698C2255EB} - {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807} = {49D426BF-A009-43D5-A9E2-EFAAAA7196FC} - {600D712C-4ABF-44C4-96C3-B1DEE1F38298} = {AB25C482-DA9D-4335-8E26-2F29C3700152} {3CADD95A-179F-4ECF-A49D-4B753832C63C} = {475AEF7B-0154-4989-AF82-97E3A95A96AF} {6FA628B8-9696-4847-89F9-E58F470AF4FB} = {5CD096DB-6C44-48F1-9093-AD4C84B6B7EC} {6E739132-EEAB-43A5-83C7-EB58C50D03A1} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {F16C0AB9-DE7E-4C09-9EE9-DAA8B8E935A6} = {EC4D7B06-D277-4411-BD7B-71A6D37683F0} {FE4414F8-5370-445D-9F24-C3AD3223F299} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E} = {FE4414F8-5370-445D-9F24-C3AD3223F299} + {BB33CC4A-EA3A-4D4F-879A-F93C617C5E63} = {6E739132-EEAB-43A5-83C7-EB58C50D03A1} + {BA20152E-2FF8-48F0-A90E-682A7A8CF657} = {A5578D12-9E77-4647-8C22-0DBD17760BFF} + {C8F32825-1F93-44F0-AB88-26167C21CADF} = {BA20152E-2FF8-48F0-A90E-682A7A8CF657} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {78D2CF6A-60A1-43E3-837B-00B73C9DA384} diff --git a/generator.json b/generator.json index 5ad04119db..f97beb8ffd 100644 --- a/generator.json +++ b/generator.json @@ -2,33 +2,203 @@ "Jobs": { "Microsoft": { "Solution": "Silk.NET.sln", - "SourceProject": "TODO.csproj", - "TestProject": "tests/TODO.csproj", + "SourceProject": "sources/Win32/Win32/Silk.NET.Win32.csproj", + "TestProject": "tests/Win32/Win32/Silk.NET.Win32.UnitTests.csproj", "DefaultLicenseHeader": "eng/silktouch/header.txt", "Mods": [ - "AddIncludes", "ClangScraper", - "ChangeNamespace" + "ImportManualFiles", + "ChangeNamespace", + "TransformInterfaces", + "TransformCOM", + "DisableWarnings", + "TransformFunctions" ], "ClangScraper": { "ClangSharpResponseFiles": [ - "eng/submodules/terrafx.interop.windows/generation/**/generate.rsp" + "eng/submodules/terrafx.interop.windows/generation/**/generate.rsp", + "!eng/submodules/terrafx.interop.windows/generation/DirectX/d3dx12/d3dx12_state_object/generate.rsp", + "!eng/submodules/terrafx.interop.windows/generation/Windows/um/Unknwnbase/generate.rsp", + "!eng/submodules/terrafx.interop.windows/generation/WinRT/winrt/inspectable/generate.rsp", ], "ManualOverrides": { - "sources/Windows/um/icm/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/icm/Windows.cs", - "sources/Gdiplus/um/gdiplustypes/GpRect.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpRect.cs", - "sources/Gdiplus/um/gdiplustypes/GpRectF.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpRectF.cs", - "sources/Gdiplus/um/gdiplustypes/GpPathData.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Gdiplus/um/gdiplustypes/GpPathData.cs" + "sources/Windows/um/httpserv/IHttpResponse.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/httpserv/IHttpResponse.cs", + "sources/Windows/um/httpserv/IHttpResponse2.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/httpserv/IHttpResponse2.cs", + "sources/Windows/um/httpserv/IHttpResponse3.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/httpserv/IHttpResponse3.cs", + "sources/Windows/um/httpserv/IHttpResponse4.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/httpserv/IHttpResponse4.cs", + "sources/Windows/um/httpserv/IHttpTraceContext.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/httpserv/IHttpTraceContext.cs", + "sources/Windows/um/httpserv/CHttpModule.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/httpserv/CHttpModule.cs", + "sources/Windows/um/winioctl/STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/winioctl/STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE.cs", + "sources/Windows/um/winioctl/TXFS_READ_BACKUP_INFORMATION_OUT.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/winioctl/TXFS_READ_BACKUP_INFORMATION_OUT.cs", + "sources/Windows/um/WinUser/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/um/WinUser/Windows.cs", + "sources/Windows/shared/strsafe/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/shared/strsafe/Windows.cs", + "sources/Windows/shared/ws2ipdef/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/shared/ws2ipdef/Windows.cs", + "sources/Windows/shared/Iprtrmib/MIB_OPAQUE_INFO.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/shared/Iprtrmib/MIB_OPAQUE_INFO.cs", + "sources/WinRT/winrt/windows.applicationmodel.email/IEmailMailboxSmimeEncryptionAlgorithm.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/WinRT/winrt/windows.applicationmodel.email/EmailMailboxSmimeEncryptionAlgorithm.cs", + "sources/WinRT/winrt/windows.applicationmodel.email/IEmailMailboxSmimeSigningAlgorithm.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/WinRT/winrt/windows.applicationmodel.email/EmailMailboxSmimeSigningAlgorithm.cs", + "sources/WinRT/winrt/windows.perception.spatial/ISpatialCoordinateSystem.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/WinRT/winrt/windows.perception.spatial/ISpatialCoordinateSystem.cs", + "sources/WinRT/winrt/windows.security.authentication.web.core/IID.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/WinRT/winrt/windows.security.authentication.web.core/IID.Manual.cs", + "sources/WinRT/winrt/windows.ui.input/IID.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/WinRT/winrt/windows.ui.input/IID.Manual.cs" }, "InputSourceRoot": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows", "InputTestRoot": "eng/submodules/terrafx.interop.windows/tests/Interop/Windows", "SkipScrapeIf": [ "!win" + ], + "CacheOutput": false, + "GeneratedToRemove": [ + "tests/DirectX/d3dx12/d3dx12_core/**.cs", + "tests/DirectX/d3dx12/d3dx12_barriers/**.cs", + "sources/**/HANDLE.gen.cs", + "sources/**/helper-types/*Attribute.gen.cs", + "sources/**/helper-types/HRESULT.gen.cs", + "sources/**/helper-types/BOOL.gen.cs", + "sources/**/helper-types/HSTRING.gen.cs", + ], + }, + "ImportManualFiles": { + "ManualImports": { + "sources/**.Manual.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/**.Manual.cs", + "!sources/**/INativeGuid.Manual.cs": "!**/INativeGuid.Manual.cs", + "!sources/**/HWND.Manual.cs": "!**/HWND.Manual.cs", + "!sources/**/HRESULT.Manual.cs": "!**/HRESULT.Manual.cs", + "!sources/**/ID2D1*.Manual.cs": "!**/ID2D1*.Manual.cs", + "!sources/**/d2d1_1helper/DirectX.Manual.cs": "!**/d2d1_1helper/DirectX.Manual.cs", + "!sources/**/DirectXHelpers/DirectX.Manual.cs": "!**/DirectXHelpers/DirectX.Manual.cs", + "!sources/**/d2d1/DirectX.Manual.cs": "!**/d2d1/DirectX.Manual.cs", + "!sources/**/IWeakReference.Manual.cs": "!**/IWeakReference.Manual.cs", + "!sources/**/IDispatchEx.Manual.cs": "!**/IDispatchEx.Manual.cs", + "!sources/**/CD3DX12_PIPELINE_STATE_STREAM_PARSE_HELPER.Manual.cs": "!**/CD3DX12_PIPELINE_STATE_STREAM_PARSE_HELPER.Manual.cs", + "!sources/**/CD3DX12_PIPELINE_STATE_STREAM1_PARSE_HELPER.Manual.cs": "!**/CD3DX12_PIPELINE_STATE_STREAM1_PARSE_HELPER.Manual.cs", + "!sources/**/CD3DX12_PIPELINE_STATE_STREAM2_PARSE_HELPER.Manual.cs": "!**/CD3DX12_PIPELINE_STATE_STREAM2_PARSE_HELPER.Manual.cs", + "!sources/**/CD3DX12_PIPELINE_STATE_STREAM3_PARSE_HELPER.Manual.cs": "!**/CD3DX12_PIPELINE_STATE_STREAM3_PARSE_HELPER.Manual.cs", + "!sources/**/CD3DX12_PIPELINE_STATE_STREAM4_PARSE_HELPER.Manual.cs": "!**/CD3DX12_PIPELINE_STATE_STREAM4_PARSE_HELPER.Manual.cs", + "!sources/**/CD3DX12_PIPELINE_STATE_STREAM5_PARSE_HELPER.Manual.cs": "!**/CD3DX12_PIPELINE_STATE_STREAM5_PARSE_HELPER.Manual.cs", + "!sources/**/ShObjIdl_core/Windows.Manual.cs": "!**/ShObjIdl_core/Windows.Manual.cs", + "!sources/**/propvarutil/Windows.Manual.cs": "!**/propvarutil/Windows.Manual.cs", + "!sources/**/uuids/Windows.Manual.cs": "!**/uuids/Windows.Manual.cs", + "!sources/**/gdipluscolor/Color.Manual.cs": "!**/gdipluscolor/Color.Manual.cs", + "!sources/**/windows.ui.input/IID.Manual.cs": "!**/windows.ui.input/IID.Manual.cs", + "!sources/**/windows.security.authentication.web.core/IID.Manual.cs": "!**/windows.security.authentication.web.core/IID.Manual.cs", + "!sources/**/roapi/WinRT.Manual.cs": "!**/roapi/WinRT.Manual.cs", + "!sources/**/windows.graphics.directx.direct3d11.interop/WinRT.Manual.cs": "!**/windows.graphics.directx.direct3d11.interop/WinRT.Manual.cs", + "!sources/**/roparameterizediid/**.Manual.cs": "!**/roparameterizediid/**.Manual.cs", + "!sources/**/d2d1_1/D2D1_**.Manual.cs": "!**/d2d1_1/D2D1_**.Manual.cs" + } + }, + "ChangeNamespace": { + "Mappings": { + "TerraFX.Interop.Windows(.*)": "Silk.NET.Win32$1", + "TerraFX.Interop(?!.Windows)(.*)": "Silk.NET$1" + } + }, + "TransformInterfaces": { + "AdditionalInterfaces": [ + "IDispatchEx", + "IUnknown", + "IInspectable", + "IClassFactory", + "AsyncIUknown" + ] + }, + "TransformCOM": { + "BaseTypes": { + "IUnknown.Interface": "Silk.NET.Core.IUnknown.Interface" + }, + "AdditionalCOMTypes": { + "IDispatchEx.Interface": { + "Namespace": "Silk.NET.Win32", + "Parent": "IDispatch.Interface" + }, + "IInspectable.Interface": { + "Namespace": "Silk.NET.Core", + "Parent": "IUnknown.Interface" + }, + "IClassFactory.Interface": { + "Namespace": "Silk.NET.Core", + "Parent": "IUnknown.Interface" + }, + "AsyncIUnknown.Interface": { + "Namespace": "Silk.NET.Core", + "Parent": "IUnknown.Interface" + }, + "IUnknown.Interface": { + "Namespace": "Silk.NET.Core", + "Parent": "" + } + } + }, + "DisableWarnings": { + "WarningCodes": [ + "CS1589", //XML Comments missing (due to missing docs) + "CS0419", //Inheritdoc issue (due to bug) + "CA1416", //Function available outside of target os (intended) + "CS0618" //Obsolete Warnings (intended) + ] + }, + "TransformFunctions": { + "BoolTypes": { + "BOOL": null + } + } + }, + "Core": { + "Solution": "Silk.NET.sln", + "SourceProject": "sources/Core/Core/Silk.NET.Core.csproj", + "TestProject": "tests/Core/Core/Silk.NET.Core.UnitTests.csproj", + "DefaultLicenseHeader": "eng/silktouch/header.txt", + "Mods": [ + "ClangScraper", + "ChangeNamespace", + "TransformInterfaces", + "TransformCOM", + "DisableWarnings", + "TransformFunctions" + ], + "ClangScraper": { + "ClangSharpResponseFiles": [ + "eng/submodules/terrafx.interop.windows/generation/Windows/um/Unknwnbase/generate.rsp", + "eng/submodules/terrafx.interop.windows/generation/WinRT/winrt/inspectable/generate.rsp", + "eng/submodules/terrafx.interop.windows/generation/Windows/other/helper-types/generate.rsp" + ], + "InputSourceRoot": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows", + "InputTestRoot": "eng/submodules/terrafx.interop.windows/tests/Interop/Windows", + "SkipScrapeIf": [ + "!win" + ], + "CacheOutput": false, + "GeneratedToRemove": [ + "sources/**/helper-types/*.gen.cs", + "!sources/**/helper-types/HRESULT.gen.cs", + "!sources/**/helper-types/BOOL.gen.cs", + "!sources/**/helper-types/HSTRING.gen.cs", + "!sources/**/helper-types/HANDLE.gen.cs" ] }, "ChangeNamespace": { "Mappings": { - "TerraFX.Interop.(.*)": "Silk.NET.$1" + "TerraFX.Interop(.*)": "Silk.NET.Core", + } + }, + "TransformInterfaces": { + }, + "TransformCOM": { + "BaseTypes": { + "IUnknown.Interface": "Silk.NET.Core.IUnknown.Interface" + } + }, + "DisableWarnings": { + "WarningCodes": [ + "CS1589", //XML Comments missing (due to missing docs) + "CS1591", //Missing Summaries + "CS0419", //Inheritdoc issue (due to bug) + "CA1416", //Function available outside of target os (intended) + "CS0618" //Obsolete Warnings (intended) + ] + }, + "TransformFunctions": { + "BoolTypes": { + "BOOL": null } } }, diff --git a/sources/Core/Core/BOOL.Manual.cs b/sources/Core/Core/BOOL.Manual.cs new file mode 100644 index 0000000000..85194f116f --- /dev/null +++ b/sources/Core/Core/BOOL.Manual.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Numerics; + +namespace Silk.NET.Core; + +/// +/// Boolean value commonly used by Microsoft +/// +public readonly partial struct BOOL : IIncrementOperators +{ + /// + /// Increment boolean value + /// + /// bool value to increment + /// incremented bool value + public static BOOL operator ++(BOOL value) => new(value.Value + 1); +} diff --git a/sources/Core/Core/DSL/MaybeBool`1.cs b/sources/Core/Core/DSL/MaybeBool`1.cs index 3daff6a219..3b725aee31 100644 --- a/sources/Core/Core/DSL/MaybeBool`1.cs +++ b/sources/Core/Core/DSL/MaybeBool`1.cs @@ -54,4 +54,36 @@ public static implicit operator MaybeBool(bool value) /// The boolean value. [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static implicit operator bool(MaybeBool value) => !value.Value.Equals(default); + + /// + /// compares boolean value and int + /// + /// left hand value + /// right hand value + /// + public static bool operator ==(MaybeBool lh, int rh) => lh == (rh != 0); + + /// + /// Compares boolean value and int + /// + /// left hand value + /// right hand value + /// + public static bool operator !=(MaybeBool lh, int rh) => lh != (rh != 0); + + /// + /// compares boolean value and int + /// + /// left hand value + /// right hand value + /// + public static bool operator ==(int lh, MaybeBool rh) => (lh != 0) == rh; + + /// + /// Compares boolean value and int + /// + /// left hand value + /// right hand value + /// + public static bool operator !=(int lh, MaybeBool rh) => (lh != 0) != rh; } diff --git a/sources/Core/Core/HRESULT.Manual.cs b/sources/Core/Core/HRESULT.Manual.cs new file mode 100644 index 0000000000..4ebfd0c6c0 --- /dev/null +++ b/sources/Core/Core/HRESULT.Manual.cs @@ -0,0 +1,21 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +/// +/// Common error code value returned by Microsoft methods +/// +public partial struct HRESULT +{ + /// + /// Has the function failed + /// + public bool FAILED => Value < 0; + + /// + /// Has the function succeeded + /// + public bool SUCCEEDED => Value >= 0; +} diff --git a/sources/Core/Core/IComInterface.cs b/sources/Core/Core/IComInterface.cs new file mode 100644 index 0000000000..afcb778c81 --- /dev/null +++ b/sources/Core/Core/IComInterface.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Silk.NET.Core +{ + /// + /// A specialized native interface representing a ComType + /// + public interface IComInterface : INativeGuid + { + /// + /// Gets the address of the pointer to the interface object address + /// + /// The native interface object type + /// pointer to interface object address + Ptr2D GetAddressOf() + where TNativeInterface : unmanaged; + + /// + /// Gets the address of the pointer to the interface object address + /// + /// pointer to interface object address + Ptr2D GetAddressOf(); + } +} diff --git a/sources/Core/Core/INativeGuid.cs b/sources/Core/Core/INativeGuid.cs new file mode 100644 index 0000000000..a5c642acec --- /dev/null +++ b/sources/Core/Core/INativeGuid.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Silk.NET.Core +{ + /// + /// An interface to retrieve Native class Guids + /// + public unsafe interface INativeGuid + { + /// + /// The guid for the native version of this class + /// + static abstract Guid* NativeGuid { get; } + } +} diff --git a/sources/Core/Core/Pointers/Ptr.cs b/sources/Core/Core/Pointers/Ptr.cs index 4f6a0e2710..4bc1d06640 100644 --- a/sources/Core/Core/Pointers/Ptr.cs +++ b/sources/Core/Core/Pointers/Ptr.cs @@ -222,6 +222,24 @@ public T[] ToArray(int length) )] public static implicit operator void*(Ptr ptr) => ptr.Native; + /// + /// Creates a from a + /// + /// the pointer + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static explicit operator nuint(Ptr ptr) => new(ptr.Native); + + /// + /// Creates a from a + /// + /// the integer + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static explicit operator Ptr(nuint ptr) => new(ptr.ToPointer()); + /// /// Creates a from a /// diff --git a/sources/Core/Core/Pointers/Ptr.generic.cs b/sources/Core/Core/Pointers/Ptr.generic.cs index 8a925b9837..72e7444a2d 100644 --- a/sources/Core/Core/Pointers/Ptr.generic.cs +++ b/sources/Core/Core/Pointers/Ptr.generic.cs @@ -311,6 +311,42 @@ public unsafe struct Ptr(T* ptr) /// public static implicit operator T*(Ptr ptr) => ptr.Native; + /// + /// Creates a from a + /// + /// + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static implicit operator nuint(Ptr ptr) => new(ptr.Native); + + /// + /// Creates a from a + /// + /// + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static implicit operator Ptr(nuint ptr) => new((T*)ptr.ToPointer()); + + /// + /// Creates a from a + /// + /// + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static implicit operator nint(Ptr ptr) => new(ptr.Native); + + /// + /// Creates a from a + /// + /// + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static implicit operator Ptr(nint ptr) => new((T*)ptr.ToPointer()); + /// /// Creates a from a /// diff --git a/sources/Core/Core/Pointers/Ptr2D.cs b/sources/Core/Core/Pointers/Ptr2D.cs index 679817b472..5cbe5c56e4 100644 --- a/sources/Core/Core/Pointers/Ptr2D.cs +++ b/sources/Core/Core/Pointers/Ptr2D.cs @@ -307,7 +307,7 @@ public T[][] ToArray(int length, int[] lengths) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static implicit operator Ptr2D(void* ptr) => new((void**)ptr); + public static explicit operator Ptr2D(void* ptr) => new((void**)ptr); /// /// Creates a from a native pointer @@ -428,6 +428,6 @@ public T[][] ToArray(int length, int[] lengths) /// /// The pointer. /// The wrapped pointer. - public static implicit operator Ptr2D(Ptr* ptr) => (byte*)ptr; + public static implicit operator Ptr2D(Ptr* ptr) => (Ptr2D)(byte**)ptr; } } diff --git a/sources/Core/Core/Pointers/Ptr2D.generic.cs b/sources/Core/Core/Pointers/Ptr2D.generic.cs index 3b7fc47c85..1593c6a501 100644 --- a/sources/Core/Core/Pointers/Ptr2D.generic.cs +++ b/sources/Core/Core/Pointers/Ptr2D.generic.cs @@ -444,7 +444,7 @@ public T[][] ToArray(int length, int[] lengths) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static implicit operator Ptr2D(void* ptr) => new((Ptr*)ptr); + public static explicit operator Ptr2D(void* ptr) => new((Ptr*)ptr); /// /// Creates a native pointer from a diff --git a/sources/Core/Core/Pointers/Ptr3D.cs b/sources/Core/Core/Pointers/Ptr3D.cs index 8f5e994f98..fb7ea5aa6f 100644 --- a/sources/Core/Core/Pointers/Ptr3D.cs +++ b/sources/Core/Core/Pointers/Ptr3D.cs @@ -318,7 +318,7 @@ public T[][][] ToArray(int length, int[] lengths0, int[][] lengths1) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static implicit operator Ptr3D(void* ptr) => new((void***)ptr); + public static explicit operator Ptr3D(void* ptr) => new((void***)ptr); /// /// Creates a from a native pointer @@ -327,7 +327,7 @@ public T[][][] ToArray(int length, int[] lengths0, int[][] lengths1) [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static implicit operator Ptr3D(void** ptr) => new((void***)ptr); + public static explicit operator Ptr3D(void** ptr) => new((void***)ptr); /// /// Creates a from a native pointer @@ -409,8 +409,7 @@ ptr.Native is not null && ptr.Native->Native is not null [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - // TODO analyzer to ensure ptr is on stack or otherwise pinned - public static explicit operator Ptr3D(Ref2D ptr) => (void**)ptr; + public static explicit operator Ptr3D(Ref2D ptr) => (Ptr3D)(void**)ptr; /// /// Creates a null ptr @@ -460,6 +459,6 @@ ptr.Native is not null && ptr.Native->Native is not null /// /// The pointer. /// The wrapped pointer. - public static implicit operator Ptr3D(Ptr2D* ptr) => (byte***)ptr; + public static implicit operator Ptr3D(Ptr2D* ptr) => (Ptr3D)(byte***)ptr; } } diff --git a/sources/Core/Core/Pointers/Ptr3D.generic.cs b/sources/Core/Core/Pointers/Ptr3D.generic.cs index bb11492c71..71662d2a37 100644 --- a/sources/Core/Core/Pointers/Ptr3D.generic.cs +++ b/sources/Core/Core/Pointers/Ptr3D.generic.cs @@ -443,7 +443,7 @@ public T[][][] ToArray(int length, int[] lengths0, int[][] lengths1) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static implicit operator Ptr3D(void* ptr) => new((Ptr2D*)ptr); + public static explicit operator Ptr3D(void* ptr) => new((Ptr2D*)ptr); /// /// Creates a native pointer from a @@ -461,7 +461,7 @@ ptr.Native is not null && ptr.Native->Native is not null [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static implicit operator Ptr3D(void** ptr) => new((Ptr2D*)ptr); + public static explicit operator Ptr3D(void** ptr) => new((Ptr2D*)ptr); /// /// Creates a native pointer from a diff --git a/sources/Core/Core/PublicAPI/net8.0/PublicAPI.Unshipped.txt b/sources/Core/Core/PublicAPI/net8.0/PublicAPI.Unshipped.txt index 14eb48880a..025c544892 100644 --- a/sources/Core/Core/PublicAPI/net8.0/PublicAPI.Unshipped.txt +++ b/sources/Core/Core/PublicAPI/net8.0/PublicAPI.Unshipped.txt @@ -1,4 +1,16 @@ #nullable enable +override Silk.NET.Core.BOOL.Equals(object? obj) -> bool +override Silk.NET.Core.BOOL.GetHashCode() -> int +override Silk.NET.Core.BOOL.ToString() -> string! +override Silk.NET.Core.HANDLE.Equals(object? obj) -> bool +override Silk.NET.Core.HANDLE.GetHashCode() -> int +override Silk.NET.Core.HANDLE.ToString() -> string! +override Silk.NET.Core.HRESULT.Equals(object? obj) -> bool +override Silk.NET.Core.HRESULT.GetHashCode() -> int +override Silk.NET.Core.HRESULT.ToString() -> string! +override Silk.NET.Core.HSTRING.Equals(object? obj) -> bool +override Silk.NET.Core.HSTRING.GetHashCode() -> int +override Silk.NET.Core.HSTRING.ToString() -> string! override Silk.NET.Core.Ptr.Equals(object? obj) -> bool override Silk.NET.Core.Ptr.GetHashCode() -> int override Silk.NET.Core.Ptr2D.Equals(object? obj) -> bool @@ -24,6 +36,9 @@ override Silk.NET.Core.Ref3D.GetHashCode() -> int override Silk.NET.Core.Ref.Equals(object? obj) -> bool override Silk.NET.Core.Ref.GetHashCode() -> int override Silk.NET.Core.Utf8String.ToString() -> string! +readonly Silk.NET.Core.BOOL.Value -> int +readonly Silk.NET.Core.HANDLE.Value -> void* +readonly Silk.NET.Core.HRESULT.Value -> int readonly Silk.NET.Core.Ptr.Native -> void* readonly Silk.NET.Core.Ptr2D.Native -> Silk.NET.Core.Ptr* readonly Silk.NET.Core.Ptr2D.Native -> Silk.NET.Core.Ptr* @@ -32,6 +47,7 @@ readonly Silk.NET.Core.Ptr3D.Native -> Silk.NET.Core.Ptr2D* readonly Silk.NET.Core.Ptr.Native -> T* readonly Silk.NET.Core.Ref.Handle -> byte readonly Silk.NET.Core.Ref.Handle -> T +readonly Silk.NET.Core.HSTRING.Value -> void* Silk.NET.Core.AndroidPlatformInfo Silk.NET.Core.AndroidPlatformInfo.AndroidPlatformInfo() -> void Silk.NET.Core.AndroidPlatformInfo.AndroidPlatformInfo(nint Window, nint Surface) -> void @@ -39,6 +55,72 @@ Silk.NET.Core.AndroidPlatformInfo.Surface.get -> nint Silk.NET.Core.AndroidPlatformInfo.Surface.init -> void Silk.NET.Core.AndroidPlatformInfo.Window.get -> nint Silk.NET.Core.AndroidPlatformInfo.Window.init -> void +Silk.NET.Core.AsyncIUnknown +Silk.NET.Core.AsyncIUnknown.AddRef() -> uint +Silk.NET.Core.AsyncIUnknown.AsyncIUnknown() -> void +Silk.NET.Core.AsyncIUnknown.AsyncIUnknown(Silk.NET.Core.Ptr3D vtbl) -> void +Silk.NET.Core.AsyncIUnknown.AsyncIUnknown(Silk.NET.Core.Ptr vtbl) -> void +Silk.NET.Core.AsyncIUnknown.Begin_AddRef() -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Begin_QueryInterface(Silk.NET.Core.Ref riid) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Begin_QueryInterface(System.Guid* riid) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Begin_Release() -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Dispose() -> void +Silk.NET.Core.AsyncIUnknown.Finish_AddRef() -> uint +Silk.NET.Core.AsyncIUnknown.Finish_QueryInterface(Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Finish_QueryInterface(void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Finish_Release() -> uint +Silk.NET.Core.AsyncIUnknown.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.AsyncIUnknown.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.AsyncIUnknown.Interface +Silk.NET.Core.AsyncIUnknown.Interface.Begin_AddRef() -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Interface.Begin_QueryInterface(Silk.NET.Core.Ref riid) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Interface.Begin_QueryInterface(System.Guid* riid) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Interface.Begin_Release() -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Interface.Finish_AddRef() -> uint +Silk.NET.Core.AsyncIUnknown.Interface.Finish_QueryInterface(Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Interface.Finish_QueryInterface(void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Interface.Finish_Release() -> uint +Silk.NET.Core.AsyncIUnknown.lpVtbl -> Silk.NET.Core.AsyncIUnknown.Native* +Silk.NET.Core.AsyncIUnknown.Native +Silk.NET.Core.AsyncIUnknown.Native.AddRef() -> uint +Silk.NET.Core.AsyncIUnknown.Native.Begin_AddRef() -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Begin_QueryInterface(Silk.NET.Core.Ref riid) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Begin_QueryInterface(System.Guid* riid) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Begin_Release() -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Finish_AddRef() -> uint +Silk.NET.Core.AsyncIUnknown.Native.Finish_QueryInterface(Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Finish_QueryInterface(void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Finish_Release() -> uint +Silk.NET.Core.AsyncIUnknown.Native.lpVtbl -> void** +Silk.NET.Core.AsyncIUnknown.Native.Native() -> void +Silk.NET.Core.AsyncIUnknown.Native.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Native.Release() -> uint +Silk.NET.Core.AsyncIUnknown.Native.Vtbl +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.AddRef -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Begin_AddRef -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Begin_QueryInterface -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Begin_Release -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Finish_AddRef -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Finish_QueryInterface -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Finish_Release -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.QueryInterface -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Release -> delegate* unmanaged +Silk.NET.Core.AsyncIUnknown.Native.Vtbl.Vtbl() -> void +Silk.NET.Core.AsyncIUnknown.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.AsyncIUnknown.Release() -> uint +Silk.NET.Core.BOOL +Silk.NET.Core.BOOL.BOOL() -> void +Silk.NET.Core.BOOL.BOOL(int value) -> void +Silk.NET.Core.BOOL.CompareTo(object? obj) -> int +Silk.NET.Core.BOOL.CompareTo(Silk.NET.Core.BOOL other) -> int +Silk.NET.Core.BOOL.CompareTo(Silk.NET.Core.MaybeBool other) -> int +Silk.NET.Core.BOOL.Equals(Silk.NET.Core.BOOL other) -> bool +Silk.NET.Core.BOOL.Equals(Silk.NET.Core.MaybeBool other) -> bool +Silk.NET.Core.BOOL.ToString(string? format, System.IFormatProvider? formatProvider) -> string! Silk.NET.Core.BreakneckLock Silk.NET.Core.BreakneckLock.BreakneckLock() -> void Silk.NET.Core.BreakneckLock.Enter(ref bool taken) -> void @@ -87,10 +169,72 @@ Silk.NET.Core.EGLPlatformInfo.EGLPlatformInfo() -> void Silk.NET.Core.EGLPlatformInfo.EGLPlatformInfo(nint Display, nint Surface) -> void Silk.NET.Core.EGLPlatformInfo.Surface.get -> nint Silk.NET.Core.EGLPlatformInfo.Surface.init -> void +Silk.NET.Core.HANDLE +Silk.NET.Core.HANDLE.CompareTo(object? obj) -> int +Silk.NET.Core.HANDLE.CompareTo(Silk.NET.Core.HANDLE other) -> int +Silk.NET.Core.HANDLE.Equals(Silk.NET.Core.HANDLE other) -> bool +Silk.NET.Core.HANDLE.HANDLE() -> void +Silk.NET.Core.HANDLE.HANDLE(void* value) -> void +Silk.NET.Core.HANDLE.ToString(string? format, System.IFormatProvider? formatProvider) -> string! +Silk.NET.Core.HRESULT +Silk.NET.Core.HRESULT.CompareTo(object? obj) -> int +Silk.NET.Core.HRESULT.CompareTo(Silk.NET.Core.HRESULT other) -> int +Silk.NET.Core.HRESULT.Equals(Silk.NET.Core.HRESULT other) -> bool +Silk.NET.Core.HRESULT.FAILED.get -> bool +Silk.NET.Core.HRESULT.HRESULT() -> void +Silk.NET.Core.HRESULT.HRESULT(int value) -> void +Silk.NET.Core.HRESULT.SUCCEEDED.get -> bool +Silk.NET.Core.HRESULT.ToString(string? format, System.IFormatProvider? formatProvider) -> string! Silk.NET.Core.IBoolScheme Silk.NET.Core.IBoolScheme.False() -> T Silk.NET.Core.IBoolScheme.IsTrue(T value) -> bool Silk.NET.Core.IBoolScheme.True() -> T +Silk.NET.Core.IClassFactory +Silk.NET.Core.IClassFactory.AddRef() -> uint +Silk.NET.Core.IClassFactory.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Dispose() -> void +Silk.NET.Core.IClassFactory.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IClassFactory.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IClassFactory.IClassFactory() -> void +Silk.NET.Core.IClassFactory.IClassFactory(Silk.NET.Core.Ptr3D vtbl) -> void +Silk.NET.Core.IClassFactory.IClassFactory(Silk.NET.Core.Ptr vtbl) -> void +Silk.NET.Core.IClassFactory.Interface +Silk.NET.Core.IClassFactory.Interface.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Interface.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Interface.LockServer(Silk.NET.Core.BOOL fLock) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Interface.LockServer(Silk.NET.Core.MaybeBool fLock) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.LockServer(Silk.NET.Core.BOOL fLock) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.LockServer(Silk.NET.Core.MaybeBool fLock) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.lpVtbl -> Silk.NET.Core.IClassFactory.Native* +Silk.NET.Core.IClassFactory.Native +Silk.NET.Core.IClassFactory.Native.AddRef() -> uint +Silk.NET.Core.IClassFactory.Native.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.CreateInstance(Silk.NET.Core.IUnknown pUnkOuter, out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.LockServer(Silk.NET.Core.BOOL fLock) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.LockServer(Silk.NET.Core.MaybeBool fLock) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.lpVtbl -> void** +Silk.NET.Core.IClassFactory.Native.Native() -> void +Silk.NET.Core.IClassFactory.Native.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Native.Release() -> uint +Silk.NET.Core.IClassFactory.Native.Vtbl +Silk.NET.Core.IClassFactory.Native.Vtbl.AddRef -> delegate* unmanaged +Silk.NET.Core.IClassFactory.Native.Vtbl.CreateInstance -> delegate* unmanaged +Silk.NET.Core.IClassFactory.Native.Vtbl.LockServer -> delegate* unmanaged +Silk.NET.Core.IClassFactory.Native.Vtbl.QueryInterface -> delegate* unmanaged +Silk.NET.Core.IClassFactory.Native.Vtbl.Release -> delegate* unmanaged +Silk.NET.Core.IClassFactory.Native.Vtbl.Vtbl() -> void +Silk.NET.Core.IClassFactory.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IClassFactory.Release() -> uint +Silk.NET.Core.IComInterface +Silk.NET.Core.IComInterface.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IComInterface.GetAddressOf() -> Silk.NET.Core.Ptr2D Silk.NET.Core.IGLContext Silk.NET.Core.IGLContext.IsCurrent.get -> bool Silk.NET.Core.IGLContext.IsCurrent.set -> void @@ -101,8 +245,42 @@ Silk.NET.Core.IGLContext.VSync.get -> bool Silk.NET.Core.IGLContext.VSync.set -> void Silk.NET.Core.IGLContextSource Silk.NET.Core.IGLContextSource.GLContext.get -> Silk.NET.Core.IGLContext? +Silk.NET.Core.IID Silk.NET.Core.INativeWindow Silk.NET.Core.INativeWindow.TryGetPlatformInfo(out TPlatformInfo? info) -> bool +Silk.NET.Core.INativeGuid +Silk.NET.Core.INativeGuid.NativeGuid.get -> System.Guid* +Silk.NET.Core.IUnknown +Silk.NET.Core.IUnknown.AddRef() -> uint +Silk.NET.Core.IUnknown.Dispose() -> void +Silk.NET.Core.IUnknown.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IUnknown.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IUnknown.Interface +Silk.NET.Core.IUnknown.Interface.AddRef() -> uint +Silk.NET.Core.IUnknown.Interface.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.Interface.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.Interface.Release() -> uint +Silk.NET.Core.IUnknown.IUnknown() -> void +Silk.NET.Core.IUnknown.IUnknown(Silk.NET.Core.Ptr3D vtbl) -> void +Silk.NET.Core.IUnknown.IUnknown(Silk.NET.Core.Ptr vtbl) -> void +Silk.NET.Core.IUnknown.lpVtbl -> Silk.NET.Core.IUnknown.Native* +Silk.NET.Core.IUnknown.Native +Silk.NET.Core.IUnknown.Native.AddRef() -> uint +Silk.NET.Core.IUnknown.Native.lpVtbl -> void** +Silk.NET.Core.IUnknown.Native.Native() -> void +Silk.NET.Core.IUnknown.Native.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.Native.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.Native.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.Native.Release() -> uint +Silk.NET.Core.IUnknown.Native.Vtbl +Silk.NET.Core.IUnknown.Native.Vtbl.AddRef -> delegate* unmanaged +Silk.NET.Core.IUnknown.Native.Vtbl.QueryInterface -> delegate* unmanaged +Silk.NET.Core.IUnknown.Native.Vtbl.Release -> delegate* unmanaged +Silk.NET.Core.IUnknown.Native.Vtbl.Vtbl() -> void +Silk.NET.Core.IUnknown.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IUnknown.Release() -> uint Silk.NET.Core.Loader.DefaultNativeContext Silk.NET.Core.Loader.DefaultNativeContext.DefaultNativeContext() -> void Silk.NET.Core.Loader.DefaultNativeContext.Dispose() -> void @@ -332,6 +510,51 @@ Silk.NET.Core.X11PlatformInfo.Window.get -> nint Silk.NET.Core.X11PlatformInfo.Window.init -> void Silk.NET.Core.X11PlatformInfo.X11PlatformInfo() -> void Silk.NET.Core.X11PlatformInfo.X11PlatformInfo(nint Display, nint Window) -> void +static Silk.NET.Core.AsyncIUnknown.explicit operator Silk.NET.Core.AsyncIUnknown(nuint value) -> Silk.NET.Core.AsyncIUnknown +static Silk.NET.Core.AsyncIUnknown.explicit operator Silk.NET.Core.AsyncIUnknown(Silk.NET.Core.IUnknown value) -> Silk.NET.Core.AsyncIUnknown +static Silk.NET.Core.AsyncIUnknown.explicit operator Silk.NET.Core.AsyncIUnknown(Silk.NET.Core.Ptr3D value) -> Silk.NET.Core.AsyncIUnknown +static Silk.NET.Core.AsyncIUnknown.explicit operator Silk.NET.Core.AsyncIUnknown(Silk.NET.Core.Ptr value) -> Silk.NET.Core.AsyncIUnknown +static Silk.NET.Core.AsyncIUnknown.explicit operator Silk.NET.Core.AsyncIUnknown(void*** value) -> Silk.NET.Core.AsyncIUnknown +static Silk.NET.Core.AsyncIUnknown.implicit operator nuint(Silk.NET.Core.AsyncIUnknown value) -> nuint +static Silk.NET.Core.AsyncIUnknown.implicit operator Silk.NET.Core.AsyncIUnknown(Silk.NET.Core.AsyncIUnknown.Native* value) -> Silk.NET.Core.AsyncIUnknown +static Silk.NET.Core.AsyncIUnknown.implicit operator Silk.NET.Core.AsyncIUnknown.Native*(Silk.NET.Core.AsyncIUnknown value) -> Silk.NET.Core.AsyncIUnknown.Native* +static Silk.NET.Core.AsyncIUnknown.implicit operator Silk.NET.Core.IUnknown(Silk.NET.Core.AsyncIUnknown value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.AsyncIUnknown.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.AsyncIUnknown value) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.AsyncIUnknown.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.AsyncIUnknown value) -> Silk.NET.Core.Ptr +static Silk.NET.Core.AsyncIUnknown.implicit operator void***(Silk.NET.Core.AsyncIUnknown value) -> void*** +static Silk.NET.Core.BOOL.explicit operator byte(Silk.NET.Core.BOOL value) -> byte +static Silk.NET.Core.BOOL.explicit operator nuint(Silk.NET.Core.BOOL value) -> nuint +static Silk.NET.Core.BOOL.explicit operator sbyte(Silk.NET.Core.BOOL value) -> sbyte +static Silk.NET.Core.BOOL.explicit operator short(Silk.NET.Core.BOOL value) -> short +static Silk.NET.Core.BOOL.explicit operator Silk.NET.Core.BOOL(long value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.explicit operator Silk.NET.Core.BOOL(nint value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.explicit operator Silk.NET.Core.BOOL(nuint value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.explicit operator Silk.NET.Core.BOOL(uint value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.explicit operator Silk.NET.Core.BOOL(ulong value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.explicit operator uint(Silk.NET.Core.BOOL value) -> uint +static Silk.NET.Core.BOOL.explicit operator ulong(Silk.NET.Core.BOOL value) -> ulong +static Silk.NET.Core.BOOL.explicit operator ushort(Silk.NET.Core.BOOL value) -> ushort +static Silk.NET.Core.BOOL.FALSE.get -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.implicit operator bool(Silk.NET.Core.BOOL value) -> bool +static Silk.NET.Core.BOOL.implicit operator int(Silk.NET.Core.BOOL value) -> int +static Silk.NET.Core.BOOL.implicit operator long(Silk.NET.Core.BOOL value) -> long +static Silk.NET.Core.BOOL.implicit operator nint(Silk.NET.Core.BOOL value) -> nint +static Silk.NET.Core.BOOL.implicit operator Silk.NET.Core.BOOL(bool value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.implicit operator Silk.NET.Core.BOOL(byte value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.implicit operator Silk.NET.Core.BOOL(int value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.implicit operator Silk.NET.Core.BOOL(sbyte value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.implicit operator Silk.NET.Core.BOOL(short value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.implicit operator Silk.NET.Core.BOOL(ushort value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.operator !=(Silk.NET.Core.BOOL left, Silk.NET.Core.BOOL right) -> bool +static Silk.NET.Core.BOOL.operator ++(Silk.NET.Core.BOOL value) -> Silk.NET.Core.BOOL +static Silk.NET.Core.BOOL.operator <(Silk.NET.Core.BOOL left, Silk.NET.Core.BOOL right) -> bool +static Silk.NET.Core.BOOL.operator <=(Silk.NET.Core.BOOL left, Silk.NET.Core.BOOL right) -> bool +static Silk.NET.Core.BOOL.operator ==(Silk.NET.Core.BOOL left, Silk.NET.Core.BOOL right) -> bool +static Silk.NET.Core.BOOL.operator >(Silk.NET.Core.BOOL left, Silk.NET.Core.BOOL right) -> bool +static Silk.NET.Core.BOOL.operator >=(Silk.NET.Core.BOOL left, Silk.NET.Core.BOOL right) -> bool +static Silk.NET.Core.BOOL.operator false(Silk.NET.Core.BOOL value) -> bool +static Silk.NET.Core.BOOL.operator true(Silk.NET.Core.BOOL value) -> bool +static Silk.NET.Core.BOOL.TRUE.get -> Silk.NET.Core.BOOL static Silk.NET.Core.BreakneckLock.Create() -> Silk.NET.Core.BreakneckLock static Silk.NET.Core.Constant.implicit operator Silk.NET.Core.Constant(TEnum1 value) -> Silk.NET.Core.Constant static Silk.NET.Core.Constant.implicit operator Silk.NET.Core.Constant(TEnum2 value) -> Silk.NET.Core.Constant @@ -345,6 +568,88 @@ static Silk.NET.Core.Constant.implicit operator TEnum1(Silk static Silk.NET.Core.Constant.implicit operator TUnderlying(Silk.NET.Core.Constant value) -> TUnderlying static Silk.NET.Core.Default.True() -> T static Silk.NET.Core.DSL.nullptr.get -> Silk.NET.Core.NullPtr +static Silk.NET.Core.HANDLE.explicit operator byte(Silk.NET.Core.HANDLE value) -> byte +static Silk.NET.Core.HANDLE.explicit operator int(Silk.NET.Core.HANDLE value) -> int +static Silk.NET.Core.HANDLE.explicit operator long(Silk.NET.Core.HANDLE value) -> long +static Silk.NET.Core.HANDLE.explicit operator sbyte(Silk.NET.Core.HANDLE value) -> sbyte +static Silk.NET.Core.HANDLE.explicit operator short(Silk.NET.Core.HANDLE value) -> short +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(byte value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(int value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(long value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(nint value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(nuint value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(sbyte value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(short value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(uint value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(ulong value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(ushort value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator Silk.NET.Core.HANDLE(void* value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.explicit operator uint(Silk.NET.Core.HANDLE value) -> uint +static Silk.NET.Core.HANDLE.explicit operator ulong(Silk.NET.Core.HANDLE value) -> ulong +static Silk.NET.Core.HANDLE.explicit operator ushort(Silk.NET.Core.HANDLE value) -> ushort +static Silk.NET.Core.HANDLE.implicit operator nint(Silk.NET.Core.HANDLE value) -> nint +static Silk.NET.Core.HANDLE.implicit operator nuint(Silk.NET.Core.HANDLE value) -> nuint +static Silk.NET.Core.HANDLE.implicit operator void*(Silk.NET.Core.HANDLE value) -> void* +static Silk.NET.Core.HANDLE.INVALID_VALUE.get -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.NULL.get -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HANDLE.operator !=(Silk.NET.Core.HANDLE left, Silk.NET.Core.HANDLE right) -> bool +static Silk.NET.Core.HANDLE.operator <(Silk.NET.Core.HANDLE left, Silk.NET.Core.HANDLE right) -> bool +static Silk.NET.Core.HANDLE.operator <=(Silk.NET.Core.HANDLE left, Silk.NET.Core.HANDLE right) -> bool +static Silk.NET.Core.HANDLE.operator ==(Silk.NET.Core.HANDLE left, Silk.NET.Core.HANDLE right) -> bool +static Silk.NET.Core.HANDLE.operator >(Silk.NET.Core.HANDLE left, Silk.NET.Core.HANDLE right) -> bool +static Silk.NET.Core.HANDLE.operator >=(Silk.NET.Core.HANDLE left, Silk.NET.Core.HANDLE right) -> bool +static Silk.NET.Core.HRESULT.explicit operator byte(Silk.NET.Core.HRESULT value) -> byte +static Silk.NET.Core.HRESULT.explicit operator nuint(Silk.NET.Core.HRESULT value) -> nuint +static Silk.NET.Core.HRESULT.explicit operator sbyte(Silk.NET.Core.HRESULT value) -> sbyte +static Silk.NET.Core.HRESULT.explicit operator short(Silk.NET.Core.HRESULT value) -> short +static Silk.NET.Core.HRESULT.explicit operator Silk.NET.Core.HRESULT(long value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.explicit operator Silk.NET.Core.HRESULT(nint value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.explicit operator Silk.NET.Core.HRESULT(nuint value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.explicit operator Silk.NET.Core.HRESULT(uint value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.explicit operator Silk.NET.Core.HRESULT(ulong value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.explicit operator uint(Silk.NET.Core.HRESULT value) -> uint +static Silk.NET.Core.HRESULT.explicit operator ulong(Silk.NET.Core.HRESULT value) -> ulong +static Silk.NET.Core.HRESULT.explicit operator ushort(Silk.NET.Core.HRESULT value) -> ushort +static Silk.NET.Core.HRESULT.implicit operator int(Silk.NET.Core.HRESULT value) -> int +static Silk.NET.Core.HRESULT.implicit operator long(Silk.NET.Core.HRESULT value) -> long +static Silk.NET.Core.HRESULT.implicit operator nint(Silk.NET.Core.HRESULT value) -> nint +static Silk.NET.Core.HRESULT.implicit operator Silk.NET.Core.HRESULT(byte value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.implicit operator Silk.NET.Core.HRESULT(int value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.implicit operator Silk.NET.Core.HRESULT(sbyte value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.implicit operator Silk.NET.Core.HRESULT(short value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.implicit operator Silk.NET.Core.HRESULT(ushort value) -> Silk.NET.Core.HRESULT +static Silk.NET.Core.HRESULT.operator !=(Silk.NET.Core.HRESULT left, Silk.NET.Core.HRESULT right) -> bool +static Silk.NET.Core.HRESULT.operator <(Silk.NET.Core.HRESULT left, Silk.NET.Core.HRESULT right) -> bool +static Silk.NET.Core.HRESULT.operator <=(Silk.NET.Core.HRESULT left, Silk.NET.Core.HRESULT right) -> bool +static Silk.NET.Core.HRESULT.operator ==(Silk.NET.Core.HRESULT left, Silk.NET.Core.HRESULT right) -> bool +static Silk.NET.Core.HRESULT.operator >(Silk.NET.Core.HRESULT left, Silk.NET.Core.HRESULT right) -> bool +static Silk.NET.Core.HRESULT.operator >=(Silk.NET.Core.HRESULT left, Silk.NET.Core.HRESULT right) -> bool +static Silk.NET.Core.IClassFactory.explicit operator Silk.NET.Core.IClassFactory(nuint value) -> Silk.NET.Core.IClassFactory +static Silk.NET.Core.IClassFactory.explicit operator Silk.NET.Core.IClassFactory(Silk.NET.Core.IUnknown value) -> Silk.NET.Core.IClassFactory +static Silk.NET.Core.IClassFactory.explicit operator Silk.NET.Core.IClassFactory(Silk.NET.Core.Ptr3D value) -> Silk.NET.Core.IClassFactory +static Silk.NET.Core.IClassFactory.explicit operator Silk.NET.Core.IClassFactory(Silk.NET.Core.Ptr value) -> Silk.NET.Core.IClassFactory +static Silk.NET.Core.IClassFactory.explicit operator Silk.NET.Core.IClassFactory(void*** value) -> Silk.NET.Core.IClassFactory +static Silk.NET.Core.IClassFactory.implicit operator nuint(Silk.NET.Core.IClassFactory value) -> nuint +static Silk.NET.Core.IClassFactory.implicit operator Silk.NET.Core.IClassFactory(Silk.NET.Core.IClassFactory.Native* value) -> Silk.NET.Core.IClassFactory +static Silk.NET.Core.IClassFactory.implicit operator Silk.NET.Core.IClassFactory.Native*(Silk.NET.Core.IClassFactory value) -> Silk.NET.Core.IClassFactory.Native* +static Silk.NET.Core.IClassFactory.implicit operator Silk.NET.Core.IUnknown(Silk.NET.Core.IClassFactory value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IClassFactory.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.IClassFactory value) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.IClassFactory.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.IClassFactory value) -> Silk.NET.Core.Ptr +static Silk.NET.Core.IClassFactory.implicit operator void***(Silk.NET.Core.IClassFactory value) -> void*** +static Silk.NET.Core.IID.IID_AsyncIUnknown.get -> System.Guid +static Silk.NET.Core.IID.IID_IClassFactory.get -> System.Guid +static Silk.NET.Core.IID.IID_IInspectable.get -> System.Guid +static Silk.NET.Core.IID.IID_IUnknown.get -> System.Guid +static Silk.NET.Core.IUnknown.explicit operator Silk.NET.Core.IUnknown(nuint value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IUnknown.explicit operator Silk.NET.Core.IUnknown(Silk.NET.Core.Ptr3D value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IUnknown.explicit operator Silk.NET.Core.IUnknown(Silk.NET.Core.Ptr value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IUnknown.explicit operator Silk.NET.Core.IUnknown(void*** value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IUnknown.implicit operator nuint(Silk.NET.Core.IUnknown value) -> nuint +static Silk.NET.Core.IUnknown.implicit operator Silk.NET.Core.IUnknown(Silk.NET.Core.IUnknown.Native* value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IUnknown.implicit operator Silk.NET.Core.IUnknown.Native*(Silk.NET.Core.IUnknown value) -> Silk.NET.Core.IUnknown.Native* +static Silk.NET.Core.IUnknown.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.IUnknown value) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.IUnknown.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.IUnknown value) -> Silk.NET.Core.Ptr +static Silk.NET.Core.IUnknown.implicit operator void***(Silk.NET.Core.IUnknown value) -> void*** static Silk.NET.Core.Loader.LoaderInterface.LoadLibrary(string! name, System.Reflection.Assembly! asm) -> nint static Silk.NET.Core.Loader.LoaderInterface.RegisterAlternativeName(string! libraryName, string! altName) -> void static Silk.NET.Core.Loader.LoaderInterface.RegisterHook(System.Reflection.Assembly? asm) -> void @@ -357,6 +662,10 @@ static Silk.NET.Core.MaybeBool.implicit operator bool(Silk.NET.Core.MaybeBool static Silk.NET.Core.MaybeBool.implicit operator Silk.NET.Core.MaybeBool(bool value) -> Silk.NET.Core.MaybeBool static Silk.NET.Core.MaybeBool.implicit operator Silk.NET.Core.MaybeBool(T Value) -> Silk.NET.Core.MaybeBool static Silk.NET.Core.MaybeBool.implicit operator T(Silk.NET.Core.MaybeBool value) -> T +static Silk.NET.Core.MaybeBool.operator !=(int lh, Silk.NET.Core.MaybeBool rh) -> bool +static Silk.NET.Core.MaybeBool.operator !=(Silk.NET.Core.MaybeBool lh, int rh) -> bool +static Silk.NET.Core.MaybeBool.operator ==(int lh, Silk.NET.Core.MaybeBool rh) -> bool +static Silk.NET.Core.MaybeBool.operator ==(Silk.NET.Core.MaybeBool lh, int rh) -> bool static Silk.NET.Core.NullPtr.implicit operator void*(Silk.NET.Core.NullPtr _) -> void* static Silk.NET.Core.PointerExtensions.ReadToString(this Silk.NET.Core.Ptr this) -> string! static Silk.NET.Core.PointerExtensions.ReadToString(this Silk.NET.Core.Ptr this, int length) -> string! @@ -415,7 +724,9 @@ static Silk.NET.Core.PointerExtensions.ReadToStringArray(this Silk.NET.Core.Ref3 static Silk.NET.Core.PointerExtensions.ReadToStringArray(this Silk.NET.Core.Ref3D this, int length, int[]! lengths) -> string?[]?[]? static Silk.NET.Core.PointerExtensions.ReadToStringArray(this Silk.NET.Core.Ref3D this, int length, int[]! lengths) -> string?[]?[]? static Silk.NET.Core.Ptr.explicit operator nint(Silk.NET.Core.Ptr ptr) -> nint +static Silk.NET.Core.Ptr.explicit operator nuint(Silk.NET.Core.Ptr ptr) -> nuint static Silk.NET.Core.Ptr.explicit operator Silk.NET.Core.Ptr(nint ptr) -> Silk.NET.Core.Ptr +static Silk.NET.Core.Ptr.explicit operator Silk.NET.Core.Ptr(nuint ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr.explicit operator Silk.NET.Core.Ptr(Silk.NET.Core.Ref ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr.explicit operator string!(Silk.NET.Core.Ptr ptr) -> string! static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.NullPtr ptr) -> Silk.NET.Core.Ptr @@ -440,7 +751,7 @@ static Silk.NET.Core.Ptr2D.explicit operator Silk.NET.Core.Ptr2D(Silk.NET.Core.R static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.Ptr2D ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(Silk.NET.Core.NullPtr ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(Silk.NET.Core.Ptr* ptr) -> Silk.NET.Core.Ptr2D -static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(void* ptr) -> Silk.NET.Core.Ptr2D +static Silk.NET.Core.Ptr2D.explicit operator Silk.NET.Core.Ptr2D(void* ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(void** ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ref(Silk.NET.Core.Ptr2D ptr) -> Silk.NET.Core.Ref static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ref2D(Silk.NET.Core.Ptr2D ptr) -> Silk.NET.Core.Ref2D @@ -472,7 +783,7 @@ static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(Silk.NET. static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(Silk.NET.Core.Ptr2D ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(Silk.NET.Core.Ptr* ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(T** ptr) -> Silk.NET.Core.Ptr2D -static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(void* ptr) -> Silk.NET.Core.Ptr2D +static Silk.NET.Core.Ptr2D.explicit operator Silk.NET.Core.Ptr2D(void* ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ptr2D(void** ptr) -> Silk.NET.Core.Ptr2D static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ref(Silk.NET.Core.Ptr2D ptr) -> Silk.NET.Core.Ref static Silk.NET.Core.Ptr2D.implicit operator Silk.NET.Core.Ref2D(Silk.NET.Core.Ptr2D ptr) -> Silk.NET.Core.Ref2D @@ -515,8 +826,8 @@ static Silk.NET.Core.Ptr3D.explicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.R static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.Ptr3D ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.NullPtr ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.Ptr2D* ptr) -> Silk.NET.Core.Ptr3D -static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(void* ptr) -> Silk.NET.Core.Ptr3D -static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(void** ptr) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.Ptr3D.explicit operator Silk.NET.Core.Ptr3D(void* ptr) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.Ptr3D.explicit operator Silk.NET.Core.Ptr3D(void** ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(void*** ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ref(Silk.NET.Core.Ptr3D ptr) -> Silk.NET.Core.Ref static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ref3D(Silk.NET.Core.Ptr3D ptr) -> Silk.NET.Core.Ref3D @@ -549,8 +860,8 @@ static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(Silk.NET. static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.Ptr2D* ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.Ptr3D ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(T*** ptr) -> Silk.NET.Core.Ptr3D -static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(void* ptr) -> Silk.NET.Core.Ptr3D -static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(void** ptr) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.Ptr3D.explicit operator Silk.NET.Core.Ptr3D(void* ptr) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.Ptr3D.explicit operator Silk.NET.Core.Ptr3D(void** ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ptr3D(void*** ptr) -> Silk.NET.Core.Ptr3D static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ref(Silk.NET.Core.Ptr3D ptr) -> Silk.NET.Core.Ref static Silk.NET.Core.Ptr3D.implicit operator Silk.NET.Core.Ref3D(Silk.NET.Core.Ptr3D ptr) -> Silk.NET.Core.Ref3D @@ -593,7 +904,11 @@ static Silk.NET.Core.Ptr3D.operator ==(void* lh, Silk.NET.Core.Ptr3D rh) - static Silk.NET.Core.Ptr3D.operator ==(void** lh, Silk.NET.Core.Ptr3D rh) -> bool static Silk.NET.Core.Ptr.explicit operator Silk.NET.Core.Ptr(Silk.NET.Core.Ref ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr.explicit operator string!(Silk.NET.Core.Ptr ptr) -> string! +static Silk.NET.Core.Ptr.implicit operator nint(Silk.NET.Core.Ptr ptr) -> nint +static Silk.NET.Core.Ptr.implicit operator nuint(Silk.NET.Core.Ptr ptr) -> nuint static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.Ptr ptr) -> Silk.NET.Core.Ptr +static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(nint ptr) -> Silk.NET.Core.Ptr +static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(nuint ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.NullPtr ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.Ptr ptr) -> Silk.NET.Core.Ptr static Silk.NET.Core.Ptr.implicit operator Silk.NET.Core.Ptr(T* ptr) -> Silk.NET.Core.Ptr @@ -760,3 +1075,106 @@ static Silk.NET.Core.Version32.explicit operator Silk.NET.Core.Version32(uint va static Silk.NET.Core.Version32.implicit operator Silk.NET.Core.Version32(System.Version! version) -> Silk.NET.Core.Version32 static Silk.NET.Core.Version32.implicit operator System.Version!(Silk.NET.Core.Version32 version) -> System.Version! static Silk.NET.Core.Version32.implicit operator uint(Silk.NET.Core.Version32 version) -> uint +static Silk.NET.Core.HSTRING.explicit operator byte(Silk.NET.Core.HSTRING value) -> byte +static Silk.NET.Core.HSTRING.explicit operator int(Silk.NET.Core.HSTRING value) -> int +static Silk.NET.Core.HSTRING.explicit operator long(Silk.NET.Core.HSTRING value) -> long +static Silk.NET.Core.HSTRING.explicit operator sbyte(Silk.NET.Core.HSTRING value) -> sbyte +static Silk.NET.Core.HSTRING.explicit operator short(Silk.NET.Core.HSTRING value) -> short +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(byte value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(int value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(long value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(nint value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(nuint value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(sbyte value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(short value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(Silk.NET.Core.HANDLE value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(uint value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(ulong value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(ushort value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator Silk.NET.Core.HSTRING(void* value) -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.explicit operator uint(Silk.NET.Core.HSTRING value) -> uint +static Silk.NET.Core.HSTRING.explicit operator ulong(Silk.NET.Core.HSTRING value) -> ulong +static Silk.NET.Core.HSTRING.explicit operator ushort(Silk.NET.Core.HSTRING value) -> ushort +static Silk.NET.Core.HSTRING.implicit operator nint(Silk.NET.Core.HSTRING value) -> nint +static Silk.NET.Core.HSTRING.implicit operator nuint(Silk.NET.Core.HSTRING value) -> nuint +static Silk.NET.Core.HSTRING.implicit operator Silk.NET.Core.HANDLE(Silk.NET.Core.HSTRING value) -> Silk.NET.Core.HANDLE +static Silk.NET.Core.HSTRING.implicit operator void*(Silk.NET.Core.HSTRING value) -> void* +static Silk.NET.Core.HSTRING.INVALID_VALUE.get -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.NULL.get -> Silk.NET.Core.HSTRING +static Silk.NET.Core.HSTRING.operator !=(Silk.NET.Core.HSTRING left, Silk.NET.Core.HSTRING right) -> bool +static Silk.NET.Core.HSTRING.operator <(Silk.NET.Core.HSTRING left, Silk.NET.Core.HSTRING right) -> bool +static Silk.NET.Core.HSTRING.operator <=(Silk.NET.Core.HSTRING left, Silk.NET.Core.HSTRING right) -> bool +static Silk.NET.Core.HSTRING.operator ==(Silk.NET.Core.HSTRING left, Silk.NET.Core.HSTRING right) -> bool +static Silk.NET.Core.HSTRING.operator >(Silk.NET.Core.HSTRING left, Silk.NET.Core.HSTRING right) -> bool +static Silk.NET.Core.HSTRING.operator >=(Silk.NET.Core.HSTRING left, Silk.NET.Core.HSTRING right) -> bool +static Silk.NET.Core.IInspectable.explicit operator Silk.NET.Core.IInspectable(nuint value) -> Silk.NET.Core.IInspectable +static Silk.NET.Core.IInspectable.explicit operator Silk.NET.Core.IInspectable(Silk.NET.Core.IUnknown value) -> Silk.NET.Core.IInspectable +static Silk.NET.Core.IInspectable.explicit operator Silk.NET.Core.IInspectable(Silk.NET.Core.Ptr3D value) -> Silk.NET.Core.IInspectable +static Silk.NET.Core.IInspectable.explicit operator Silk.NET.Core.IInspectable(Silk.NET.Core.Ptr value) -> Silk.NET.Core.IInspectable +static Silk.NET.Core.IInspectable.explicit operator Silk.NET.Core.IInspectable(void*** value) -> Silk.NET.Core.IInspectable +static Silk.NET.Core.IInspectable.implicit operator nuint(Silk.NET.Core.IInspectable value) -> nuint +static Silk.NET.Core.IInspectable.implicit operator Silk.NET.Core.IUnknown(Silk.NET.Core.IInspectable value) -> Silk.NET.Core.IUnknown +static Silk.NET.Core.IInspectable.implicit operator Silk.NET.Core.Ptr3D(Silk.NET.Core.IInspectable value) -> Silk.NET.Core.Ptr3D +static Silk.NET.Core.IInspectable.implicit operator Silk.NET.Core.Ptr(Silk.NET.Core.IInspectable value) -> Silk.NET.Core.Ptr +static Silk.NET.Core.IInspectable.implicit operator Silk.NET.Core.IInspectable(Silk.NET.Core.IInspectable.Native* value) -> Silk.NET.Core.IInspectable +static Silk.NET.Core.IInspectable.implicit operator Silk.NET.Core.IInspectable.Native*(Silk.NET.Core.IInspectable value) -> Silk.NET.Core.IInspectable.Native* +static Silk.NET.Core.IInspectable.implicit operator void***(Silk.NET.Core.IInspectable value) -> void*** +Silk.NET.Core.HSTRING +Silk.NET.Core.HSTRING.CompareTo(object? obj) -> int +Silk.NET.Core.HSTRING.CompareTo(Silk.NET.Core.HSTRING other) -> int +Silk.NET.Core.HSTRING.Equals(Silk.NET.Core.HSTRING other) -> bool +Silk.NET.Core.HSTRING.HSTRING() -> void +Silk.NET.Core.HSTRING.HSTRING(void* value) -> void +Silk.NET.Core.HSTRING.ToString(string? format, System.IFormatProvider? formatProvider) -> string! +Silk.NET.Core.IInspectable +Silk.NET.Core.IInspectable.AddRef() -> uint +Silk.NET.Core.IInspectable.Dispose() -> void +Silk.NET.Core.IInspectable.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IInspectable.GetAddressOf() -> Silk.NET.Core.Ptr2D +Silk.NET.Core.IInspectable.GetIids(Silk.NET.Core.Ref iidCount, Silk.NET.Core.Ref2D iids) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.GetIids(uint* iidCount, System.Guid** iids) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.GetRuntimeClassName(Silk.NET.Core.Ref className) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.GetRuntimeClassName(Silk.NET.Core.HSTRING* className) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.GetTrustLevel(Silk.NET.Core.Ref trustLevel) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.GetTrustLevel(Silk.NET.Core.TrustLevel* trustLevel) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.IInspectable() -> void +Silk.NET.Core.IInspectable.IInspectable(Silk.NET.Core.Ptr3D vtbl) -> void +Silk.NET.Core.IInspectable.IInspectable(Silk.NET.Core.Ptr vtbl) -> void +Silk.NET.Core.IInspectable.Interface +Silk.NET.Core.IInspectable.Interface.GetIids(Silk.NET.Core.Ref iidCount, Silk.NET.Core.Ref2D iids) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Interface.GetIids(uint* iidCount, System.Guid** iids) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Interface.GetRuntimeClassName(Silk.NET.Core.Ref className) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Interface.GetRuntimeClassName(Silk.NET.Core.HSTRING* className) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Interface.GetTrustLevel(Silk.NET.Core.Ref trustLevel) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Interface.GetTrustLevel(Silk.NET.Core.TrustLevel* trustLevel) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.lpVtbl -> Silk.NET.Core.IInspectable.Native* +Silk.NET.Core.IInspectable.Native +Silk.NET.Core.IInspectable.Native.AddRef() -> uint +Silk.NET.Core.IInspectable.Native.GetIids(Silk.NET.Core.Ref iidCount, Silk.NET.Core.Ref2D iids) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.GetIids(uint* iidCount, System.Guid** iids) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.GetRuntimeClassName(Silk.NET.Core.Ref className) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.GetRuntimeClassName(Silk.NET.Core.HSTRING* className) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.GetTrustLevel(Silk.NET.Core.Ref trustLevel) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.GetTrustLevel(Silk.NET.Core.TrustLevel* trustLevel) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.lpVtbl -> void** +Silk.NET.Core.IInspectable.Native.Native() -> void +Silk.NET.Core.IInspectable.Native.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Native.Release() -> uint +Silk.NET.Core.IInspectable.Native.Vtbl +Silk.NET.Core.IInspectable.Native.Vtbl.AddRef -> delegate* unmanaged +Silk.NET.Core.IInspectable.Native.Vtbl.GetIids -> delegate* unmanaged +Silk.NET.Core.IInspectable.Native.Vtbl.GetRuntimeClassName -> delegate* unmanaged +Silk.NET.Core.IInspectable.Native.Vtbl.GetTrustLevel -> delegate* unmanaged +Silk.NET.Core.IInspectable.Native.Vtbl.QueryInterface -> delegate* unmanaged +Silk.NET.Core.IInspectable.Native.Vtbl.Release -> delegate* unmanaged +Silk.NET.Core.IInspectable.Native.Vtbl.Vtbl() -> void +Silk.NET.Core.IInspectable.QueryInterface(Silk.NET.Core.Ref riid, Silk.NET.Core.Ref2D ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.QueryInterface(System.Guid* riid, void** ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.QueryInterface(out TCom ppvObject) -> Silk.NET.Core.HRESULT +Silk.NET.Core.IInspectable.Release() -> uint +Silk.NET.Core.TrustLevel +Silk.NET.Core.TrustLevel.BaseTrust = 0 -> Silk.NET.Core.TrustLevel +Silk.NET.Core.TrustLevel.FullTrust = 2 -> Silk.NET.Core.TrustLevel +Silk.NET.Core.TrustLevel.PartialTrust = 1 -> Silk.NET.Core.TrustLevel diff --git a/sources/Core/Core/Silk.NET.Core.csproj b/sources/Core/Core/Silk.NET.Core.csproj index 098140a0ee..26911d0cf9 100644 --- a/sources/Core/Core/Silk.NET.Core.csproj +++ b/sources/Core/Core/Silk.NET.Core.csproj @@ -1,4 +1,4 @@ - + @@ -22,6 +22,7 @@ true + True diff --git a/sources/Core/Core/SilkMarshal.cs b/sources/Core/Core/SilkMarshal.cs index 0ea5da9f57..be23143f81 100644 --- a/sources/Core/Core/SilkMarshal.cs +++ b/sources/Core/Core/SilkMarshal.cs @@ -120,7 +120,7 @@ public static ref readonly byte StringToNative(ReadOnlySpan str, nint char var utf16 = new byte[(str.Length + 1) * 2]; MemoryMarshal .CreateReadOnlySpan(ref Unsafe.AsRef(in str[0]), str.Length + 1) - .CopyTo(MemoryMarshal.Cast(utf16)); + .CopyTo(MemoryMarshal.Cast(utf16.AsSpan())); return utf16; } case 4: @@ -170,7 +170,7 @@ public static ref readonly byte StringToNative(ReadOnlySpan str, nint char public static byte[]? StringArrayToArray(ReadOnlySpan strs, nint charSize = 1) { var ret = new byte[strs.Length * sizeof(nint)]; - var span = MemoryMarshal.Cast(ret); + var span = MemoryMarshal.Cast(ret.AsSpan()); for (var i = 0; i < strs.Length; i++) { var native = StringToArray(strs[i], charSize); @@ -220,7 +220,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint char public static ref byte StringArrayToNative(ReadOnlySpan strs, nint charSize = 1) { var ret = new byte[strs.Length * sizeof(nint)]; - var span = MemoryMarshal.Cast(ret); + var span = MemoryMarshal.Cast(ret.AsSpan()); for (var i = 0; i < strs.Length; i++) { ref var native = ref StringArrayToNative(strs[i], charSize); @@ -241,7 +241,7 @@ public static ref byte StringArrayToNative(ReadOnlySpan strs, nint ch public static ref byte StringArrayToNative(ReadOnlySpan strs, nint charSize = 1) { var ret = new byte[strs.Length * sizeof(nint)]; - var span = MemoryMarshal.Cast(ret); + var span = MemoryMarshal.Cast(ret.AsSpan()); for (var i = 0; i < strs.Length; i++) { ref var native = ref StringArrayToNative(strs[i], charSize); diff --git a/sources/Core/Core/WinRT/winrt/inspectable/IID.gen.cs b/sources/Core/Core/WinRT/winrt/inspectable/IID.gen.cs new file mode 100644 index 0000000000..feb87d12a4 --- /dev/null +++ b/sources/Core/Core/WinRT/winrt/inspectable/IID.gen.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/inspectable.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +public static partial class IID +{ + public static ref readonly Guid IID_IInspectable + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xE2, + 0x86, + 0xAF, + 0x2D, + 0xB1, + 0x6A, + 0x4C, + 0x9C, + 0x5A, + 0xD7, + 0xAA, + 0x65, + 0x10, + 0x1E, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Core/Core/WinRT/winrt/inspectable/IInspectable.gen.cs b/sources/Core/Core/WinRT/winrt/inspectable/IInspectable.gen.cs new file mode 100644 index 0000000000..d1b46b4285 --- /dev/null +++ b/sources/Core/Core/WinRT/winrt/inspectable/IInspectable.gen.cs @@ -0,0 +1,402 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/inspectable.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using static Silk.NET.Core.IID; + +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +/// +[Guid("AF86E2E0-B12D-4C6A-9C5A-D7AA65101E90")] +[NativeTypeName("struct IInspectable : IUnknown")] +[NativeInheritance("IUnknown")] +[SupportedOSPlatform("windows6.2")] +public unsafe partial struct IInspectable : IInspectable.Interface, IComInterface, IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInspectable)); + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ); + + [VtblIndex(3)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ); + + [VtblIndex(4)] + HRESULT GetRuntimeClassName(HSTRING* className); + + [VtblIndex(4)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetRuntimeClassName(Ref className); + + [VtblIndex(5)] + HRESULT GetTrustLevel(TrustLevel* trustLevel); + + [VtblIndex(5)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetTrustLevel(Ref trustLevel); + } + + /// + [Guid("AF86E2E0-B12D-4C6A-9C5A-D7AA65101E90")] + [NativeTypeName("struct IInspectable : IUnknown")] + [NativeInheritance("IUnknown")] + [SupportedOSPlatform("windows6.2")] + public unsafe partial struct Native : Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IInspectable)); + + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + + [NativeTypeName("HRESULT (ULONG *, IID **) __attribute__((stdcall))")] + public delegate* unmanaged GetIids; + + [NativeTypeName("HRESULT (HSTRING *) __attribute__((stdcall))")] + public delegate* unmanaged GetRuntimeClassName; + + [NativeTypeName("HRESULT (TrustLevel *) __attribute__((stdcall))")] + public delegate* unmanaged GetTrustLevel; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (IInspectable.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged)(lpVtbl[3]))( + (IInspectable.Native*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [VtblIndex(3)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged)(lpVtbl[4]))( + (IInspectable.Native*)Unsafe.AsPointer(ref this), + className + ); + } + + [VtblIndex(4)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT GetTrustLevel(TrustLevel* trustLevel) + { + return ((delegate* unmanaged)(lpVtbl[5]))( + (IInspectable.Native*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [VtblIndex(5)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetTrustLevel(Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[0]))( + (IInspectable.Native*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (IInspectable.Native*)Unsafe.AsPointer(ref this) + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IInspectable(Ptr3D vtbl) => lpVtbl = (IInspectable.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IInspectable(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator IInspectable(IInspectable.Native* value) => + new IInspectable((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator IInspectable.Native*(IInspectable value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IInspectable(Ptr3D value) => new IInspectable(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(IInspectable value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IInspectable(Ptr value) => + new IInspectable(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr(IInspectable value) => + (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator IInspectable(void*** value) => + new IInspectable((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(IInspectable value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IInspectable(nuint value) => + new IInspectable((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(IInspectable value) => (nuint)value.lpVtbl; + + /// Downcasts to . + /// The instance to be converted + public static explicit operator IInspectable(Silk.NET.Core.IUnknown value) => + new IInspectable((Ptr)value.lpVtbl); + + /// Upcasts to . + /// The instance to be converted + public static implicit operator Silk.NET.Core.IUnknown(IInspectable value) => + new Silk.NET.Core.IUnknown((Ptr)value.lpVtbl); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + public void Dispose() => Release(); + + /// + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) => lpVtbl->GetIids(iidCount, iids); + + [VtblIndex(3)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT GetRuntimeClassName(HSTRING* className) => + lpVtbl->GetRuntimeClassName(className); + + [VtblIndex(4)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT GetTrustLevel(TrustLevel* trustLevel) => lpVtbl->GetTrustLevel(trustLevel); + + [VtblIndex(5)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel(Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); +} diff --git a/sources/Core/Core/WinRT/winrt/inspectable/TrustLevel.gen.cs b/sources/Core/Core/WinRT/winrt/inspectable/TrustLevel.gen.cs new file mode 100644 index 0000000000..0f0048506e --- /dev/null +++ b/sources/Core/Core/WinRT/winrt/inspectable/TrustLevel.gen.cs @@ -0,0 +1,21 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/inspectable.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +/// +public enum TrustLevel +{ + /// + + BaseTrust = 0, + + /// + + PartialTrust = (BaseTrust + 1), + + /// + + FullTrust = (PartialTrust + 1), +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/BOOL.gen.cs b/sources/Core/Core/Windows/other/helper-types/BOOL.gen.cs similarity index 92% rename from sources/Win32/Win32/Windows/other/helper-types/BOOL.gen.cs rename to sources/Core/Core/Windows/other/helper-types/BOOL.gen.cs index a185588dd0..2e093c2817 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/BOOL.gen.cs +++ b/sources/Core/Core/Windows/other/helper-types/BOOL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; public readonly partial struct BOOL : IComparable, IComparable, IEquatable, IFormattable { @@ -86,10 +86,16 @@ public int CompareTo(object? obj) public int CompareTo(BOOL other) => Value.CompareTo(other.Value); + [Transformed] + public int CompareTo(MaybeBool other) => (int)CompareTo((BOOL)other); + public override bool Equals(object? obj) => (obj is BOOL other) && Equals(other); public bool Equals(BOOL other) => Value.Equals(other.Value); + [Transformed] + public bool Equals(MaybeBool other) => (bool)Equals((BOOL)other); + public override int GetHashCode() => Value.GetHashCode(); public override string ToString() => Value.ToString(); diff --git a/sources/Win32/Win32/Windows/other/helper-types/HANDLE.gen.cs b/sources/Core/Core/Windows/other/helper-types/HANDLE.gen.cs similarity index 97% rename from sources/Win32/Win32/Windows/other/helper-types/HANDLE.gen.cs rename to sources/Core/Core/Windows/other/helper-types/HANDLE.gen.cs index 6dabd1bec7..09d22a1d94 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HANDLE.gen.cs +++ b/sources/Core/Core/Windows/other/helper-types/HANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; public readonly unsafe partial struct HANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HRESULT.gen.cs b/sources/Core/Core/Windows/other/helper-types/HRESULT.gen.cs similarity index 97% rename from sources/Win32/Win32/Windows/other/helper-types/HRESULT.gen.cs rename to sources/Core/Core/Windows/other/helper-types/HRESULT.gen.cs index 1d3dc2742b..3b07b753d5 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HRESULT.gen.cs +++ b/sources/Core/Core/Windows/other/helper-types/HRESULT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; public readonly unsafe partial struct HRESULT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSTRING.gen.cs b/sources/Core/Core/Windows/other/helper-types/HSTRING.gen.cs similarity index 97% rename from sources/Win32/Win32/Windows/other/helper-types/HSTRING.gen.cs rename to sources/Core/Core/Windows/other/helper-types/HSTRING.gen.cs index e1e2d11ad5..5aa93a9573 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSTRING.gen.cs +++ b/sources/Core/Core/Windows/other/helper-types/HSTRING.gen.cs @@ -1,8 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; -using Silk.NET.Windows; - -namespace Silk.NET.WinRT; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; public readonly unsafe partial struct HSTRING : IComparable, diff --git a/sources/Core/Core/Windows/um/Unknwnbase/AsyncIUnknown.gen.cs b/sources/Core/Core/Windows/um/Unknwnbase/AsyncIUnknown.gen.cs new file mode 100644 index 0000000000..c878beef78 --- /dev/null +++ b/sources/Core/Core/Windows/um/Unknwnbase/AsyncIUnknown.gen.cs @@ -0,0 +1,417 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Core.IID; + +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +/// +[Guid("000E0000-0000-0000-C000-000000000046")] +[NativeTypeName("struct AsyncIUnknown : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct AsyncIUnknown : AsyncIUnknown.Interface, IComInterface, IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIUnknown)); + + public interface Interface : IUnknown.Interface + { + [VtblIndex(5)] + HRESULT Begin_AddRef(); + + [VtblIndex(3)] + HRESULT Begin_QueryInterface([NativeTypeName("const IID &")] Guid* riid); + + [VtblIndex(3)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT Begin_QueryInterface([NativeTypeName("const IID &")] Ref riid); + + [VtblIndex(7)] + HRESULT Begin_Release(); + + [VtblIndex(6)] + [return: NativeTypeName("ULONG")] + uint Finish_AddRef(); + + [VtblIndex(4)] + HRESULT Finish_QueryInterface(void** ppvObject); + + [VtblIndex(4)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT Finish_QueryInterface(Ref2D ppvObject); + + [VtblIndex(8)] + [return: NativeTypeName("ULONG")] + uint Finish_Release(); + } + + /// + [Guid("000E0000-0000-0000-C000-000000000046")] + [NativeTypeName("struct AsyncIUnknown : IUnknown")] + [NativeInheritance("IUnknown")] + public unsafe partial struct Native : Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_AsyncIUnknown)); + + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + + [NativeTypeName("HRESULT (const IID &) __attribute__((stdcall))")] + public delegate* unmanaged Begin_QueryInterface; + + [NativeTypeName("HRESULT (void **) __attribute__((stdcall))")] + public delegate* unmanaged Finish_QueryInterface; + + [NativeTypeName("HRESULT () __attribute__((stdcall))")] + public delegate* unmanaged Begin_AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Finish_AddRef; + + [NativeTypeName("HRESULT () __attribute__((stdcall))")] + public delegate* unmanaged Begin_Release; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Finish_Release; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT Begin_AddRef() + { + return ((delegate* unmanaged)(lpVtbl[5]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT Begin_QueryInterface([NativeTypeName("const IID &")] Guid* riid) + { + return ((delegate* unmanaged)(lpVtbl[3]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this), + riid + ); + } + + [VtblIndex(3)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT Begin_QueryInterface([NativeTypeName("const IID &")] Ref riid) + { + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)Begin_QueryInterface(__dsl_riid); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HRESULT Begin_Release() + { + return ((delegate* unmanaged)(lpVtbl[7]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + [return: NativeTypeName("ULONG")] + public uint Finish_AddRef() + { + return ((delegate* unmanaged)(lpVtbl[6]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT Finish_QueryInterface(void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[4]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this), + ppvObject + ); + } + + [VtblIndex(4)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT Finish_QueryInterface(Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + { + return (HRESULT)Finish_QueryInterface(__dsl_ppvObject); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + [return: NativeTypeName("ULONG")] + public uint Finish_Release() + { + return ((delegate* unmanaged)(lpVtbl[8]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[0]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (AsyncIUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public AsyncIUnknown(Ptr3D vtbl) => lpVtbl = (AsyncIUnknown.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public AsyncIUnknown(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator AsyncIUnknown(AsyncIUnknown.Native* value) => + new AsyncIUnknown((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator AsyncIUnknown.Native*(AsyncIUnknown value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator AsyncIUnknown(Ptr3D value) => new AsyncIUnknown(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(AsyncIUnknown value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator AsyncIUnknown(Ptr value) => + new AsyncIUnknown(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr(AsyncIUnknown value) => + (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator AsyncIUnknown(void*** value) => + new AsyncIUnknown((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(AsyncIUnknown value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator AsyncIUnknown(nuint value) => + new AsyncIUnknown((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(AsyncIUnknown value) => (nuint)value.lpVtbl; + + /// Downcasts to . + /// The instance to be converted + public static explicit operator AsyncIUnknown(Silk.NET.Core.IUnknown value) => + new AsyncIUnknown((Ptr)value.lpVtbl); + + /// Upcasts to . + /// The instance to be converted + public static implicit operator Silk.NET.Core.IUnknown(AsyncIUnknown value) => + new Silk.NET.Core.IUnknown((Ptr)value.lpVtbl); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT Begin_AddRef() => lpVtbl->Begin_AddRef(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT Begin_QueryInterface([NativeTypeName("const IID &")] Guid* riid) => + lpVtbl->Begin_QueryInterface(riid); + + [VtblIndex(3)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Begin_QueryInterface([NativeTypeName("const IID &")] Ref riid) + { + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)Begin_QueryInterface(__dsl_riid); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HRESULT Begin_Release() => lpVtbl->Begin_Release(); + + public void Dispose() => Release(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + [return: NativeTypeName("ULONG")] + public uint Finish_AddRef() => lpVtbl->Finish_AddRef(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT Finish_QueryInterface(void** ppvObject) => + lpVtbl->Finish_QueryInterface(ppvObject); + + [VtblIndex(4)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Finish_QueryInterface(Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + { + return (HRESULT)Finish_QueryInterface(__dsl_ppvObject); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + [return: NativeTypeName("ULONG")] + public uint Finish_Release() => lpVtbl->Finish_Release(); + + /// + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); +} diff --git a/sources/Core/Core/Windows/um/Unknwnbase/IClassFactory.gen.cs b/sources/Core/Core/Windows/um/Unknwnbase/IClassFactory.gen.cs new file mode 100644 index 0000000000..e2d25cabe9 --- /dev/null +++ b/sources/Core/Core/Windows/um/Unknwnbase/IClassFactory.gen.cs @@ -0,0 +1,351 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Core.IID; + +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +/// +[Guid("00000001-0000-0000-C000-000000000046")] +[NativeTypeName("struct IClassFactory : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IClassFactory : IClassFactory.Interface, IComInterface, IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClassFactory)); + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + HRESULT CreateInstance( + IUnknown pUnkOuter, + [NativeTypeName("const IID &")] Guid* riid, + void** ppvObject + ); + + [VtblIndex(3)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT CreateInstance( + IUnknown pUnkOuter, + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ); + + [VtblIndex(4)] + HRESULT LockServer(BOOL fLock); + + [VtblIndex(4)] + HRESULT LockServer(MaybeBool fLock); + } + + /// + [Guid("00000001-0000-0000-C000-000000000046")] + [NativeTypeName("struct IClassFactory : IUnknown")] + [NativeInheritance("IUnknown")] + public unsafe partial struct Native : Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IClassFactory)); + + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + + [NativeTypeName("HRESULT (IUnknown *, const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged CreateInstance; + + [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] + public delegate* unmanaged LockServer; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (IClassFactory.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT CreateInstance( + IUnknown pUnkOuter, + [NativeTypeName("const IID &")] Guid* riid, + void** ppvObject + ) + { + return ( + (delegate* unmanaged)( + lpVtbl[3] + ) + )((IClassFactory.Native*)Unsafe.AsPointer(ref this), pUnkOuter.lpVtbl, riid, ppvObject); + } + + [VtblIndex(3)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT CreateInstance( + IUnknown pUnkOuter, + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)CreateInstance(pUnkOuter, __dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(3)] + [Transformed] + public HRESULT CreateInstance(IUnknown pUnkOuter, out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return CreateInstance(pUnkOuter, TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT LockServer(BOOL fLock) + { + return ((delegate* unmanaged)(lpVtbl[4]))( + (IClassFactory.Native*)Unsafe.AsPointer(ref this), + fLock + ); + } + + [VtblIndex(4)] + [Transformed] + public HRESULT LockServer(MaybeBool fLock) => (HRESULT)LockServer((BOOL)fLock); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[0]))( + (IClassFactory.Native*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (IClassFactory.Native*)Unsafe.AsPointer(ref this) + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IClassFactory(Ptr3D vtbl) => lpVtbl = (IClassFactory.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IClassFactory(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator IClassFactory(IClassFactory.Native* value) => + new IClassFactory((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator IClassFactory.Native*(IClassFactory value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IClassFactory(Ptr3D value) => new IClassFactory(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(IClassFactory value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IClassFactory(Ptr value) => + new IClassFactory(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr(IClassFactory value) => + (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator IClassFactory(void*** value) => + new IClassFactory((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(IClassFactory value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IClassFactory(nuint value) => + new IClassFactory((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(IClassFactory value) => (nuint)value.lpVtbl; + + /// Downcasts to . + /// The instance to be converted + public static explicit operator IClassFactory(Silk.NET.Core.IUnknown value) => + new IClassFactory((Ptr)value.lpVtbl); + + /// Upcasts to . + /// The instance to be converted + public static implicit operator Silk.NET.Core.IUnknown(IClassFactory value) => + new Silk.NET.Core.IUnknown((Ptr)value.lpVtbl); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT CreateInstance( + IUnknown pUnkOuter, + [NativeTypeName("const IID &")] Guid* riid, + void** ppvObject + ) => lpVtbl->CreateInstance(pUnkOuter, riid, ppvObject); + + [VtblIndex(3)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT CreateInstance( + IUnknown pUnkOuter, + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)CreateInstance(pUnkOuter, __dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(3)] + [Transformed] + public HRESULT CreateInstance(IUnknown pUnkOuter, out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return CreateInstance(pUnkOuter, TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + public void Dispose() => Release(); + + /// + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT LockServer(BOOL fLock) => lpVtbl->LockServer(fLock); + + [VtblIndex(4)] + [Transformed] + public HRESULT LockServer(MaybeBool fLock) => (HRESULT)LockServer((BOOL)fLock); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); +} diff --git a/sources/Core/Core/Windows/um/Unknwnbase/IID.gen.cs b/sources/Core/Core/Windows/um/Unknwnbase/IID.gen.cs new file mode 100644 index 0000000000..1d34a1805f --- /dev/null +++ b/sources/Core/Core/Windows/um/Unknwnbase/IID.gen.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +public static partial class IID +{ + public static ref readonly Guid IID_IUnknown + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xC0, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_AsyncIUnknown + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x0E, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xC0, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClassFactory + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xC0, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Core/Core/Windows/um/Unknwnbase/IUnknown.gen.cs b/sources/Core/Core/Windows/um/Unknwnbase/IUnknown.gen.cs new file mode 100644 index 0000000000..a82172ad49 --- /dev/null +++ b/sources/Core/Core/Windows/um/Unknwnbase/IUnknown.gen.cs @@ -0,0 +1,222 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Core.IID; + +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core; + +/// +[Guid("00000000-0000-0000-C000-000000000046")] +public unsafe partial struct IUnknown : IUnknown.Interface, IComInterface, IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUnknown)); + + public interface Interface + { + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + uint AddRef(); + + [VtblIndex(0)] + HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject); + + [VtblIndex(0)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject); + + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + uint Release(); + } + + /// + [Guid("00000000-0000-0000-C000-000000000046")] + public unsafe partial struct Native : Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IUnknown)); + + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (IUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[0]))( + (IUnknown.Native*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (IUnknown.Native*)Unsafe.AsPointer(ref this) + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IUnknown(Ptr3D vtbl) => lpVtbl = (IUnknown.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IUnknown(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator IUnknown(IUnknown.Native* value) => + new IUnknown((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator IUnknown.Native*(IUnknown value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IUnknown(Ptr3D value) => new IUnknown(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(IUnknown value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IUnknown(Ptr value) => new IUnknown(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr(IUnknown value) => + (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator IUnknown(void*** value) => new IUnknown((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(IUnknown value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IUnknown(nuint value) => + new IUnknown((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(IUnknown value) => (nuint)value.lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + public void Dispose() => Release(); + + /// + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); +} diff --git a/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs b/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs index 7451040f89..fd5ffde80f 100644 --- a/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs +++ b/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; @@ -8,7 +8,9 @@ using System.IO; using System.IO.Hashing; using System.Linq; +using System.Numerics; using System.Runtime.InteropServices; +using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using ClangSharp; @@ -16,11 +18,14 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Text; +using Microsoft.Extensions.FileSystemGlobbing; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Caching; +using Silk.NET.SilkTouch.Logging; using Silk.NET.SilkTouch.Mods; using Silk.NET.SilkTouch.Sources; +using Silk.NET.SilkTouch.Utility; using static ClangSharp.Interop.CXDiagnosticSeverity; using static ClangSharp.Interop.CXErrorCode; @@ -37,12 +42,14 @@ namespace Silk.NET.SilkTouch.Clang; /// The input resolver to use. /// The cache provider into which ClangSharp outputs are cached. /// The mods that modify response files before they are fed to ClangSharp. +/// the progress service to use [ModConfiguration] public sealed class ClangScraper( ResponseFileHandler rspHandler, IOptionsSnapshot config, ILogger logger, IInputResolver inputResolver, + IProgressService progressService, ICacheProvider? cacheProvider = null, IEnumerable>? responseFileMods = null ) : IMod @@ -59,6 +66,12 @@ public record Configuration /// public required string[] ClangSharpResponseFiles { get; init; } + /// + /// Whether or not to Cache the output when scraping + /// Caching currently fails on large multithreaded jobs + /// + public bool CacheOutput { get; init; } = true; + /// /// Manual overrides for ClangSharp outputs (i.e. manual tweaks of generated output) that should still flow through /// the SilkTouch pipeline as if it came from ClangSharp. @@ -85,17 +98,24 @@ public record Configuration /// // TODO document public string[]? SkipScrapeIf { get; init; } + + /// + /// Generated files to Remove + /// + public string[]? GeneratedToRemove { get; init; } } /// /// Runs ClangSharp to obtain the raw bindings for the given response file. /// /// The ClangSharp configuration. + /// the index of the current rsp for logging + /// the total number of rsps private ( IEnumerable> Sources, IEnumerable> Tests, bool HasErrors - ) ScrapeRawBindings(ResponseFile config) + ) ScrapeRawBindings(ResponseFile config, int rspIndex, int rspCount) { var files = new Dictionary(); @@ -115,8 +135,11 @@ Stream OutputStreamFactory(string fileName) OutputStreamFactory ); var hasErrors = false; + int index = 0; + int count = config.Files.Count; foreach (var file in config.Files) { + index++; var filePath = Path.Combine(config.FileDirectory, file); var fileName = Path.GetFileName(file); logger.LogTrace( @@ -142,7 +165,9 @@ out var handle if (translationUnitError != CXError_Success) { var msg = $"Parsing failed for '{fileName}' due to '{translationUnitError}'."; + logger.LogError(msg); + skipProcessing = true; } else if (handle.NumDiagnostics != 0) @@ -161,7 +186,7 @@ out var handle CXDiagnostic_Warning => LogLevel.Warning, CXDiagnostic_Error => LogLevel.Error, CXDiagnostic_Fatal => LogLevel.Critical, - _ => LogLevel.Trace + _ => LogLevel.Trace, }, " {0}", diagnostic.Format(CXDiagnostic.DefaultDisplayOptions).ToString() @@ -184,7 +209,15 @@ out var handle using var translationUnit = TranslationUnit.GetOrCreate(handle); Debug.Assert(translationUnit is not null); - logger.LogInformation("Generating raw bindings for '{0}'", fileName); + logger.LogInformation( + "Generating raw bindings for '{0}' ({1}/{2}) ({3}/{4})", + fileName, + index, + count, + rspIndex, + rspCount + ); + pinvokeGenerator.GenerateBindings( translationUnit, filePath, @@ -192,11 +225,19 @@ out var handle config.TranslationFlags ); pinvokeGenerator.Close(); - logger.LogDebug( - "Completed generation for {0}, file count: {1}", - filePath, - files.Count - ); + + if (files.Count == 0) + { + logger.LogWarning("No files generated for {0}", filePath); + } + else + { + logger.LogDebug( + "Completed generation for {0}, file count: {1}", + filePath, + files.Count + ); + } } catch (Exception e) { @@ -218,6 +259,7 @@ out var handle /// Runs ClangSharp for each of the given response files and aggregates the raw outputs. /// /// The response files. + /// glob matcher to remove /// The job context. /// The configuration. /// The cache key. @@ -225,6 +267,7 @@ out var handle /// The scraper output wasn't as expected. private async Task ScrapeBindingsAsync( IReadOnlyList rsps, + Matcher toRemoveMatcher, IModContext job, Configuration cfg, string? cacheKey = null, @@ -260,6 +303,10 @@ private async Task ScrapeBindingsAsync( // Generate all the sources and tests. var aggregatedSources = new ConcurrentDictionary(); var aggregatedTests = new ConcurrentDictionary(); + int rspIndex = 0; + int rspCount = rsps.Count; + int completionIndex = 0; + progressService.SetTask("Generating Raw Bindings"); try { await Parallel.ForEachAsync( @@ -267,14 +314,19 @@ await Parallel.ForEachAsync( new ParallelOptions { CancellationToken = ct, - MaxDegreeOfParallelism = parallelism + MaxDegreeOfParallelism = parallelism, }, async (rsp, innerCt) => await Task.Run( async () => { + int index = Interlocked.Increment(ref rspIndex); // Generate the raw bindings. - var (sources, tests, hasErrors) = ScrapeRawBindings(rsp); + var (sources, tests, hasErrors) = ScrapeRawBindings( + rsp, + index, + rspCount + ); static MemoryStream Reopen(MemoryStream ms) => ms.TryGetBuffer(out var buff) && buff.Array is not null @@ -300,7 +352,11 @@ static MemoryStream Reopen(MemoryStream ms) => .TrimEnd('/'); // Cache the output. - if (cacheKey is not null && !hasErrors) + //TODO: Refactor for better Parallelisation + //Breaks with high concurrency + string relativePath = + $"{(isTest ? "tests" : "sources")}/{relativeKey}"; + if (cacheKey is not null && !hasErrors && cfg.CacheOutput) { cacheDir ??= ( await cacheProvider!.GetDirectory( @@ -313,12 +369,18 @@ static MemoryStream Reopen(MemoryStream ms) => cacheKey, CacheIntent.StageIntermediateOutput, CacheFlags.RequireNewLocked | CacheFlags.NoHostDirectory, - $"{(isTest ? "tests" : "sources")}/{relativeKey}", + relativePath, stream ); stream.Seek(0, SeekOrigin.Begin); } + if (toRemoveMatcher.Match(relativePath).HasMatches) + { + logger.LogTrace("ClangSharp skipped {0}", relativePath); + continue; + } + // Add it to the dictionary. if ( !(isTest ? aggregatedTests : aggregatedSources).TryAdd( @@ -326,7 +388,7 @@ static MemoryStream Reopen(MemoryStream ms) => CSharpSyntaxTree.ParseText( SourceText.From( cfg.ManualOverrides?.TryGetValue( - $"{(isTest ? "tests" : "sources")}/{relativeKey}", + relativePath, out var @override ) ?? false ? File.OpenRead( @@ -349,6 +411,9 @@ await inputResolver.ResolvePath(@override) logger.LogTrace("ClangSharp generated {0}", relativeKey); } } + + Interlocked.Increment(ref completionIndex); + progressService.SetProgress(completionIndex / (float)rspCount); }, innerCt ) @@ -381,6 +446,7 @@ await tree.GetRootAsync(ct), filePath: src.FullPath(fname) ) .Project; + logger.LogDebug($"Add Src Document {fname}"); } job.SourceProject = src; @@ -429,7 +495,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) // Others VisualStudioResolver.TryGetVisualStudioInfo(out _) ? "vs" - : "!vs" + : "!vs", }; // Read the configuration. @@ -441,6 +507,40 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) .ReadResponseFiles(ctx.ConfigurationDirectory, cfg.ClangSharpResponseFiles) .ToList(); + var toRemoveMatcher = new Matcher(); + if (cfg.GeneratedToRemove is not null) + { + toRemoveMatcher.AddIncludePatterns( + cfg.GeneratedToRemove.Where(toRemove => !toRemove.StartsWith("!")) + .Select(ResponseFileHandler.PathFixup) + ); + toRemoveMatcher.AddExcludePatterns( + cfg.GeneratedToRemove.Where(toRemove => toRemove.StartsWith("!")) + .Select(toRemove => toRemove[1..]) + .Select(ResponseFileHandler.PathFixup) + ); + } + + if (rsps.Count == 0) + { + logger.LogWarning("No Response files found for {}", ctx.JobKey); + } + + var missingIncludes = rsps.SelectMany(rsp => + rsp.ClangCommandLineArgs.Where(arg => + arg.StartsWith("--include-directory=") && !Directory.Exists(arg.Substring(20)) + ) + ) + .Select(arg => arg.Substring(20)) + .Distinct(); + if (missingIncludes.Count() > 0) + { + logger.LogWarning( + "The following includes are missing and may cause erroneous generation: \n" + + string.Join("\n", missingIncludes) + ); + } + // Apply modifications. This is done before the cache key as modifications to the rsps result in different // outputs. foreach (var mod in responseFileMods?.SelectMany(x => x.Get(ctx.JobKey)) ?? []) @@ -457,7 +557,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) ); // Resolve any foreign paths referenced in the response files - await inputResolver.ResolveInPlace(rsps); + await inputResolver.ResolveInPlace(rsps, progressService); // Should we completely skip running ClangSharp (e.g. we can't get Windows SDK bindings on macOS) var skip = (cfg.SkipScrapeIf?.Any(applicableSkipIfs.Contains)).GetValueOrDefault(); @@ -467,7 +567,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) if (!skip) { // Run the scraper over the response files - await ScrapeBindingsAsync(rsps, ctx, cfg, cacheKey, ct); + await ScrapeBindingsAsync(rsps, toRemoveMatcher, ctx, cfg, cacheKey, ct); } } catch (Exception e) diff --git a/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs b/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs index 4a35d510b5..3052b29c8f 100644 --- a/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs +++ b/sources/SilkTouch/SilkTouch/Clang/ResponseFileHandler.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Parsing; @@ -11,6 +11,8 @@ using ClangSharp; using Microsoft.Extensions.FileSystemGlobbing; using Microsoft.Extensions.Logging; +using Silk.NET.SilkTouch.Logging; +using Silk.NET.SilkTouch.Utility; using static ClangSharp.Interop.CXTranslationUnit_Flags; namespace Silk.NET.SilkTouch.Clang; @@ -19,7 +21,7 @@ namespace Silk.NET.SilkTouch.Clang; /// Reads a response file (rsp) containing ClangSharpPInvokeGenerator command line arguments. /// [SuppressMessage("ReSharper", "InconsistentNaming")] -public class ResponseFileHandler(ILogger logger) +public class ResponseFileHandler(ILogger logger, IProgressService progressService) { // Begin verbatim ClangSharp code private static readonly string[] s_additionalOptionAliases = ["--additional", "-a"]; @@ -1492,13 +1494,20 @@ IReadOnlyList globs directory, Environment.CurrentDirectory ); - foreach (var rsp in Glob(globs)) + IEnumerable rsps = Glob(globs); + int index = 0; + int count = rsps.Count(); + progressService.SetTask("Reading ResponseFiles"); + foreach (var rsp in rsps) { + index++; logger.LogDebug("Reading found file: {0}", rsp); var dir = Path.GetDirectoryName(rsp) ?? throw new InvalidOperationException("Couldn't get directory name of path"); var read = ReadResponseFile(RspRelativeTo(dir, rsp).ToArray(), dir, rsp); + + progressService.SetProgress(index / (float)count); yield return read with { FileDirectory = dir, @@ -1532,24 +1541,20 @@ private IEnumerable RspRelativeTo(string directory, string fullPath) } } - internal static IEnumerable Glob(IReadOnlyCollection paths, string? cd = null) + internal static string PathFixup(string path) { - cd ??= Environment.CurrentDirectory; - var matcher = new Matcher(); - static string PathFixup(string path) + if (Path.IsPathFullyQualified(path)) { - if (Path.IsPathFullyQualified(path)) - { - path = Path.GetRelativePath(Path.GetPathRoot(path)!, path); - } - - return path.Replace('\\', '/'); + path = Path.GetRelativePath(Path.GetPathRoot(path)!, path); } - matcher.AddIncludePatterns(paths.Where(x => !x.StartsWith("!")).Select(PathFixup)); - matcher.AddExcludePatterns( - paths.Where(x => x.StartsWith("!")).Select(x => x[1..]).Select(PathFixup) - ); + return path.Replace('\\', '/'); + } + + internal static IEnumerable Glob(IReadOnlyCollection paths, string? cd = null) + { + cd ??= Environment.CurrentDirectory; + var matcher = GetGlobMatcher(paths); return matcher .GetResultsInFullPath(cd) @@ -1567,4 +1572,16 @@ static string PathFixup(string path) .Distinct() .ToArray(); } + + internal static Matcher GetGlobMatcher(IReadOnlyCollection paths) + { + var matcher = new Matcher(); + + matcher.AddIncludePatterns(paths.Where(x => !x.StartsWith("!")).Select(PathFixup)); + matcher.AddExcludePatterns( + paths.Where(x => x.StartsWith("!")).Select(x => x[1..]).Select(PathFixup) + ); + + return matcher; + } } diff --git a/sources/SilkTouch/SilkTouch/JobContext.cs b/sources/SilkTouch/SilkTouch/JobContext.cs new file mode 100644 index 0000000000..1dd93fb187 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/JobContext.cs @@ -0,0 +1,35 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Silk.NET.SilkTouch +{ + /// + /// Information on the current Job + /// + public class JobContext + { + private readonly AsyncLocal _key = new AsyncLocal(); + + /// + /// The key for the relevant job + /// + public string? JobKey + { + get => _key.Value; + set => _key.Value = value; + } + + /// + /// A dictionary of all current open log file writers + /// + public readonly ConcurrentDictionary LogWriters = + new ConcurrentDictionary(); + } +} diff --git a/sources/SilkTouch/SilkTouch/Logging/ConcurrentStringWriter.cs b/sources/SilkTouch/SilkTouch/Logging/ConcurrentStringWriter.cs new file mode 100644 index 0000000000..e310067452 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Logging/ConcurrentStringWriter.cs @@ -0,0 +1,151 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ClangSharp; + +namespace Silk.NET.SilkTouch.Logging +{ + internal class ConcurrentStringWriter : StringWriter + { + private readonly object _lockObject = new object(); + + public ConcurrentStringWriter() + { + } + + public ConcurrentStringWriter(IFormatProvider? formatProvider) : base(formatProvider) + { + } + + public ConcurrentStringWriter(StringBuilder sb) : base(sb) + { + } + + public ConcurrentStringWriter(StringBuilder sb, IFormatProvider? formatProvider) : base(sb, formatProvider) + { + } + + // Writes a character to the underlying string buffer. + // + public override void Write(char value) + { + lock (_lockObject) + { + base.Write(value); + } + } + + // Writes a range of a character array to the underlying string buffer. + // This method will write count characters of data into this + // StringWriter from the buffer character array starting at position + // index. + // + public override void Write(char[] buffer, int index, int count) + { + lock (_lockObject) + { + base.Write(buffer, index, count); + } + } + + public override void Write(ReadOnlySpan buffer) + { + lock (_lockObject) + { + base.Write(buffer); + } + } + + // Writes a string to the underlying string buffer. If the given string is + // null, nothing is written. + // + public override void Write(string? value) + { + lock (_lockObject) + { + base.Write(value); + } + } + + public override void Write(StringBuilder? value) + { + lock (_lockObject) + { + base.Write(value); + } + } + + public override void WriteLine(ReadOnlySpan buffer) + { + lock (_lockObject) + { + base.WriteLine(buffer); + } + } + + public override void WriteLine(StringBuilder? value) + { + lock (_lockObject) + { + base.WriteLine(value); + } + } + + public override Task WriteAsync(StringBuilder? value, CancellationToken cancellationToken = default) + { + if (cancellationToken.IsCancellationRequested) + { + return Task.FromCanceled(cancellationToken); + } + + lock (_lockObject) + { + base.Write(value); + } + + return Task.CompletedTask; + } + + public override Task WriteLineAsync(StringBuilder? value, CancellationToken cancellationToken = default) + { + if (cancellationToken.IsCancellationRequested) + { + return Task.FromCanceled(cancellationToken); + } + + lock (_lockObject) + { + base.WriteLine(value); + } + return Task.CompletedTask; + } + + public override Task WriteLineAsync(ReadOnlyMemory buffer, CancellationToken cancellationToken = default) + { + if (cancellationToken.IsCancellationRequested) + { + return Task.FromCanceled(cancellationToken); + } + + WriteLine(buffer.Span); + return Task.CompletedTask; + } + + public string FlushText() + { + string val = string.Empty; + lock (_lockObject) + { + StringBuilder builder = GetStringBuilder(); + val = builder.ToString(); + builder.Clear(); + } + return val; + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Logging/ConsoleRenderer.cs b/sources/SilkTouch/SilkTouch/Logging/ConsoleRenderer.cs new file mode 100644 index 0000000000..75c42ce4ac --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Logging/ConsoleRenderer.cs @@ -0,0 +1,99 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Silk.NET.SilkTouch.Logging +{ + /// + /// A console renderer which handles progress bar writing + /// + public class ConsoleRenderer + { + private readonly IProgressService _progressService; + private readonly TextWriter _originalOut; + private readonly ConcurrentStringWriter _consoleOutput; + private readonly Timer _timer; + private bool _isRunning = true; + private int _progressBarCount; + private readonly object _lockObject = new object(); + + /// + /// Creates and instance of the + /// + /// the progress service + public ConsoleRenderer(IProgressService progressService) + { + _progressService = progressService; + _originalOut = Console.Out; + _consoleOutput = new ConcurrentStringWriter(); + Console.SetOut(_consoleOutput); // Redirect console output + + _timer = new Timer(Render, null, 0, 500); + } + + /// + /// Stops the console renderer processing and restores console to original state + /// + public void Stop() + { + _isRunning = false; + _timer.Dispose(); + + ClearProgressBars(); + + //Write out one fineal time before restoring output + var output = _consoleOutput.FlushText(); + _originalOut.Write(output); + + Console.SetOut(_originalOut); // Restore original output + } + + private void Render(object? state) + { + if (!_isRunning) + return; + + lock (_lockObject) + { + ClearProgressBars(); + + var progressDictionary = _progressService.GetAllProgress(); + _progressBarCount = progressDictionary.Count(); + + // Write all console output captured since the last render + var output = _consoleOutput.FlushText(); + _originalOut.Write(output); + + foreach (var kvp in progressDictionary) + { + string task = string.IsNullOrWhiteSpace(kvp.Value.Item1) + ? string.Empty + : $" - {kvp.Value.Item1}"; + _originalOut.WriteLine( + $"{kvp.Key}{task}: ({new string('|', (int)(kvp.Value.Item2 * 20))}{new string('-', 20 - (int)(kvp.Value.Item2 * 20))}) ({(kvp.Value.Item2 * 100):F2}%)" + ); + } + } + } + + private void ClearProgressBars() + { + // Clear the progress bars by moving the cursor and overwriting with spaces + if (_progressBarCount > 0) + { + int currentTop = Console.CursorTop; + Console.SetCursorPosition(0, currentTop - _progressBarCount); + for (int i = 0; i < _progressBarCount; i++) + { + _originalOut.Write(new string(' ', Console.WindowWidth)); + } + Console.SetCursorPosition(0, currentTop - _progressBarCount); + } + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Logging/IProgressService.cs b/sources/SilkTouch/SilkTouch/Logging/IProgressService.cs new file mode 100644 index 0000000000..a073951a45 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Logging/IProgressService.cs @@ -0,0 +1,48 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Silk.NET.SilkTouch.Logging +{ + /// + /// An interface for handling current task progress in a job + /// + public interface IProgressService + { + /// + /// Returns an enumerable of all progress values with job as the key, and then the task and progress in a tuple + /// + /// + IEnumerable> GetAllProgress(); + + /// + /// Get the current task and progress for this job + /// + /// current task and progress for this job + (string, float) GetCurrentTaskAndProgress(); + + /// + /// Set the name of the task for this job + /// Resets the progress to 0 + /// + /// name of the current task + void SetTask(string task); + + /// + /// Sets the progress of the current job's task + /// Values are expected between 0 and 1 + /// + /// current progress value + void SetProgress(float progress); + + /// + /// Remove the current job from the progress service + /// + void RemoveProgress(); + } +} diff --git a/sources/SilkTouch/SilkTouch/Logging/ProgressService.cs b/sources/SilkTouch/SilkTouch/Logging/ProgressService.cs new file mode 100644 index 0000000000..68f053b2fa --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Logging/ProgressService.cs @@ -0,0 +1,73 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json.Linq; + +namespace Silk.NET.SilkTouch.Logging +{ + /// + /// Default Implementation for ProgressService + /// + public class ProgressService : IProgressService + { + private ConcurrentDictionary Progress = + new ConcurrentDictionary(); + private JobContext _jobContext; + + /// + /// creates an instance of + /// + /// the current job context + public ProgressService(JobContext context) + { + _jobContext = context; + } + + /// + public IEnumerable> GetAllProgress() => Progress; + + /// + public (string, float) GetCurrentTaskAndProgress() => + Progress.TryGetValue(_jobContext.JobKey ?? string.Empty, out var value) + ? value + : (string.Empty, 0); + + /// + public void RemoveProgress() => + Progress.TryRemove(_jobContext.JobKey ?? string.Empty, out _); + + /// + public void SetProgress(float progress) + { + if (_jobContext.JobKey is null) + { + return; + } + + if (!Progress.TryGetValue(_jobContext.JobKey, out var value)) + { + value = (string.Empty, 0); + } + + Progress[_jobContext.JobKey] = (value.Item1, progress); + } + + /// + public void SetTask(string task) + { + if (_jobContext.JobKey is null) + { + return; + } + + Progress[_jobContext.JobKey] = (task, 0); + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Logging/SilkLogger.cs b/sources/SilkTouch/SilkTouch/Logging/SilkLogger.cs new file mode 100644 index 0000000000..778006be59 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Logging/SilkLogger.cs @@ -0,0 +1,100 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Console; + +namespace Silk.NET.SilkTouch.Logging +{ + /// + /// A custom logger for SilkTouch + /// + public class SilkLogger : ILogger + { + private readonly ILogger _innerLogger; + private readonly JobContext _jobContext; + + /// + /// creates an instance of + /// + /// instance of to generate internal logger + /// context variable to keep track of current job + public SilkLogger(ILoggerFactory loggerfactory, JobContext jobContext) + { + _innerLogger = loggerfactory.CreateLogger(); + _jobContext = jobContext; + } + + /// + public IDisposable? BeginScope(TState state) + where TState : notnull => _innerLogger.BeginScope(state); + + /// + public bool IsEnabled(LogLevel logLevel) => _innerLogger.IsEnabled(logLevel); + + /// + public void Log( + LogLevel logLevel, + EventId eventId, + TState state, + Exception? exception, + Func formatter + ) + { + if (!IsEnabled(logLevel)) + return; + + var message = formatter(state, exception); + var scope = _jobContext.JobKey; + + if (scope is not null) + { + var logFilePath = $"{scope}.log"; + if (!_jobContext.LogWriters.ContainsKey(logFilePath)) + { + if (File.Exists(logFilePath)) + File.Delete(logFilePath); + + _jobContext.LogWriters[logFilePath] = new StreamWriter(logFilePath, true) + { + AutoFlush = true, + }; + } + + var writer = _jobContext.LogWriters[logFilePath]; + lock (writer) + { + writer.WriteLine( + $"{GetLogLevelString(logLevel)}: {typeof(T).FullName}[{eventId.Id}] => {message}" + ); + if (exception != null) + { + writer.WriteLine(exception.ToString()); + } + } + } + // Delegate to the inner logger + _innerLogger.Log(logLevel, eventId, state, exception, formatter); + } + + private static string GetLogLevelString(LogLevel logLevel) + { + return logLevel switch + { + LogLevel.Trace => "trce", + LogLevel.Debug => "dbug", + LogLevel.Information => "info", + LogLevel.Warning => "warn", + LogLevel.Error => "fail", + LogLevel.Critical => "crit", + _ => throw new ArgumentOutOfRangeException(nameof(logLevel)), + }; + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs b/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs index 34d4e13355..bf461a4b7d 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs @@ -72,11 +72,10 @@ public Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { var qualified = name.LastIndexOf('.'); var ns = - qualified != -1 - ? ModUtils.NamespaceIntoIdentifierName(name.AsSpan()[..qualified]) - : _defaultNamespaces.TryGetValue(ctx.JobKey, out var def) - ? ModUtils.NamespaceIntoIdentifierName(def) - : null; + qualified != -1 ? ModUtils.NamespaceIntoIdentifierName(name.AsSpan()[..qualified]) + : _defaultNamespaces.TryGetValue(ctx.JobKey, out var def) + ? ModUtils.NamespaceIntoIdentifierName(def) + : null; if (ns is null) { logger.LogWarning( diff --git a/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs b/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs index 48ff5ee87e..24cc6174c0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -9,8 +9,11 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Logging; +using Silk.NET.SilkTouch.Utility; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods; @@ -20,7 +23,7 @@ namespace Silk.NET.SilkTouch.Mods; /// regards to namespaces. /// [ModConfiguration] -public class ChangeNamespace(IOptionsSnapshot config) +public class ChangeNamespace(IOptionsSnapshot config, IProgressService progressService) : IMod, IResponseFileMod { @@ -45,6 +48,7 @@ public Task> BeforeScrapeAsync(string key, List config.Get(key).Mappings?.Select(kvp => (new Regex(kvp.Key), kvp.Value)).ToArray() ?? Array.Empty<(Regex, string)>(); var tmp = Path.GetTempFileName(); + progressService.SetTask("Change Namespace Init"); for (var i = 0; i < rsps.Count; i++) { var rsp = rsps[i]; @@ -95,10 +99,11 @@ public Task> BeforeScrapeAsync(string key, List WithTypes = rsp.GeneratorConfiguration.WithTypes, WithUsings = rsp.GeneratorConfiguration.WithUsings, WithPackings = rsp.GeneratorConfiguration.WithPackings, - } + }, }; - } + progressService.SetProgress(i / (float)rsps.Count); + } _jobs[key] = ( rsps.Select(x => x.GeneratorConfiguration.DefaultNamespace) .Concat( @@ -150,17 +155,16 @@ public Rewriter( _usingsToAdd.Clear(); return base.VisitCompilationUnit(node) switch { - CompilationUnitSyntax syntax - => syntax.AddUsings( - _usingsToAdd - .Select(x => UsingDirective(ModUtils.NamespaceIntoIdentifierName(x))) - .Where(x => - syntax.Usings.All(y => x.Name?.ToString() != y.Name?.ToString()) - ) - .ToArray() - ), + CompilationUnitSyntax syntax => syntax.AddUsings( + _usingsToAdd + .Select(x => UsingDirective(ModUtils.NamespaceIntoIdentifierName(x))) + .Where(x => + syntax.Usings.All(y => x.Name?.ToString() != y.Name?.ToString()) + ) + .ToArray() + ), { } ret => ret, - null => null + null => null, }; } @@ -174,10 +178,11 @@ CompilationUnitSyntax syntax } return base.VisitNamespaceDeclaration(node) switch { - NamespaceDeclarationSyntax syntax - => syntax.WithName(ModUtils.NamespaceIntoIdentifierName(newNs)), + NamespaceDeclarationSyntax syntax => syntax.WithName( + ModUtils.NamespaceIntoIdentifierName(newNs) + ), { } ret => ret, - null => null + null => null, }; } @@ -193,10 +198,29 @@ FileScopedNamespaceDeclarationSyntax node } return base.VisitFileScopedNamespaceDeclaration(node) switch { - FileScopedNamespaceDeclarationSyntax syntax - => syntax.WithName(ModUtils.NamespaceIntoIdentifierName(newNs)), + FileScopedNamespaceDeclarationSyntax syntax => syntax.WithName( + ModUtils.NamespaceIntoIdentifierName(newNs) + ), + { } ret => ret, + null => null, + }; + } + + public override SyntaxNode? VisitUsingDirective(UsingDirectiveSyntax node) + { + var oldNs = node.Name?.ToString() ?? string.Empty; + var newNs = ModUtils.GroupedRegexReplace(_regexes, oldNs); + if (oldNs != newNs && _allNamespaces.Contains(oldNs)) + { + _usingsToAdd.Add(oldNs); + } + return base.VisitUsingDirective(node) switch + { + UsingDirectiveSyntax syntax => syntax.WithName( + ModUtils.NamespaceIntoIdentifierName(newNs) + ), { } ret => ret, - null => null + null => null, }; } } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs index f6832b1528..8f662886c3 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs @@ -1,4 +1,4 @@ -using System; +using System; using Silk.NET.SilkTouch.Clang; namespace Silk.NET.SilkTouch.Mods; @@ -29,6 +29,10 @@ public class ModLoader nameof(ExtractNestedTyping) => typeof(ExtractNestedTyping), nameof(TransformProperties) => typeof(TransformProperties), nameof(ClangScraper) => typeof(ClangScraper), + nameof(TransformInterfaces) => typeof(TransformInterfaces), + nameof(TransformCOM) => typeof(TransformCOM), + nameof(DisableWarnings) => typeof(DisableWarnings), + nameof(ImportManualFiles) => typeof(ImportManualFiles), _ => null, }; } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs index 47aa13d3a0..71c77365d3 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/ModUtils.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -131,9 +131,10 @@ public static string DiscrimStr( IEnumerable? @params, TypeSyntax? returnType ) => - (modifiers?.Any(SyntaxKind.StaticKeyword) ?? false ? "static " : string.Empty) + ((modifiers?.Any(SyntaxKind.StaticKeyword) ?? false ? "static " : string.Empty) + $"{DiscrimStr(modifiers, returnType)} {identifier}{tParams}" - + $"({string.Join(", ", @params?.Select(DiscrimStr) ?? Enumerable.Empty())})"; + + $"({string.Join(", ", @params?.Select(DiscrimStr) ?? Enumerable.Empty())})") + .Replace(" ", ""); /// /// Gets a string that can be used to discriminate a function-like element for baking purposes. diff --git a/sources/SilkTouch/SilkTouch/Mods/DisableWarnings.cs b/sources/SilkTouch/SilkTouch/Mods/DisableWarnings.cs new file mode 100644 index 0000000000..b7da173d87 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/DisableWarnings.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.Build.Evaluation; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Options; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; + +namespace Silk.NET.SilkTouch.Mods +{ + /// + /// A mod to Add warning disabling pragmas + /// + /// The configuration to use. + [ModConfiguration] + public class DisableWarnings(IOptionsSnapshot config) : Mod + { + /// + /// The configuration for the mod. + /// + public class Configuration + { + /// + /// Warning Codes to Disable + /// + public string[]? WarningCodes { get; init; } + } + + /// + public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + { + await base.ExecuteAsync(ctx, ct); + + // Read the configuration. + var cfg = config.Get(ctx.JobKey); + + if (cfg.WarningCodes is null) + { + return; + } + + // Create the pragma directive trivia + var pragmaDirective = Trivia( + PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true) + .WithErrorCodes( + SeparatedList( + cfg.WarningCodes.Select(warn => IdentifierName(warn)) + ) + ) + ); + + ctx.SourceProject = await DisableWarningsAsync(ctx.SourceProject, pragmaDirective, ct); + ctx.TestProject = await DisableWarningsAsync(ctx.TestProject, pragmaDirective, ct); + } + + private async Task DisableWarningsAsync( + Microsoft.CodeAnalysis.Project? proj, + SyntaxTrivia pragmaDirective, + CancellationToken ct + ) + { + foreach (var docId in proj?.DocumentIds ?? []) + { + var doc = + proj?.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is not { } root) + { + continue; + } + + // Find the using directive + SyntaxNode? namespaceNode = root.DescendantNodes() + .OfType() + .FirstOrDefault(); + + if (namespaceNode == null) + { + // Skip the case where no using directive is found + continue; + } + + // Get the leading trivia (comments) of the first using directive + var leadingTrivia = namespaceNode.GetLeadingTrivia(); + + // Insert the pragma directive after the comments + var newLeadingTrivia = leadingTrivia + .Insert(leadingTrivia.Count, pragmaDirective) + .Add(CarriageReturnLineFeed); + + // Update the using directive with the new leading trivia + var newUsingDirective = namespaceNode.WithLeadingTrivia(newLeadingTrivia); + + // Replace the old using directive with the new one in the root node + root = root.ReplaceNode(namespaceNode, newUsingDirective); + doc = doc.WithSyntaxRoot(root); + + proj = doc.Project; + } + return proj; + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/ImportManualFiles.cs b/sources/SilkTouch/SilkTouch/Mods/ImportManualFiles.cs new file mode 100644 index 0000000000..521cad962c --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/ImportManualFiles.cs @@ -0,0 +1,155 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.Text; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.FileSystemGlobbing; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Sources; +using static Silk.NET.SilkTouch.Mods.TransformHandles; + +namespace Silk.NET.SilkTouch.Mods +{ + /// + /// A mod to import any manual files into the generator process + /// + /// The logger to use. + /// The configuration to use. + [ModConfiguration] + public class ImportManualFiles( + ILogger logger, + IOptionsSnapshot config + ) : Mod + { + /// + /// The configuration for the mod. + /// + public class Configuration + { + /// + /// File location to import to and the file to be imported (or globs representing them) + /// + public Dictionary? ManualImports { get; init; } + } + + /// + public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + { + await base.ExecuteAsync(ctx, ct); + + // Read the configuration. + var cfg = config.Get(ctx.JobKey); + + if (cfg.ManualImports is null) + { + return; + } + + Dictionary regexConverters = []; + List pathGlobs = []; + + foreach (var import in cfg.ManualImports) + { + string regexPatternIn = GlobToRegexInput(import.Value); + string regexPatternOut = GlobToRegexOutput(import.Key); + + pathGlobs.Add(import.Value); + + regexConverters.Add(new(regexPatternIn), regexPatternOut); + } + + var files = ResponseFileHandler.Glob(pathGlobs); + + var aggregatedSources = new ConcurrentDictionary(); + var aggregatedTests = new ConcurrentDictionary(); + + foreach (var file in files) + { + foreach (var regex in regexConverters) + { + if (regex.Key.Match(file).Success) + { + string outputLocation = regex.Key.Replace(file, regex.Value); + bool isTest = outputLocation.StartsWith("tests/"); + outputLocation = outputLocation.Remove( + 0, + outputLocation.IndexOf(isTest ? "tests/" : "sources/") + ); + string relativeKey = outputLocation.Remove(0, isTest ? 6 : 8); + if ( + !(isTest ? aggregatedTests : aggregatedSources).TryAdd( + relativeKey, + CSharpSyntaxTree.ParseText( + SourceText.From(File.OpenRead(file)), + path: relativeKey + ) + ) + ) + { + logger.LogError( + "Failed to add {0} - are the response file outputs conflicting?", + relativeKey + ); + } + else + { + logger.LogTrace("ClangSharp generated {0}", relativeKey); + } + } + } + } + + var src = ctx.SourceProject; + foreach (var (fname, tree) in aggregatedSources) + { + src = src + ?.AddDocument( + Path.GetFileName(fname), + await tree.GetRootAsync(ct), + filePath: src.FullPath(fname) + ) + .Project; + logger.LogDebug($"Add Src Document {fname}"); + } + + ctx.SourceProject = src; + var test = ctx.TestProject; + foreach (var (fname, tree) in aggregatedTests) + { + test = test + ?.AddDocument( + Path.GetFileName(fname), + await tree.GetRootAsync(ct), + filePath: test.FullPath(fname) + ) + .Project; + } + + ctx.TestProject = test; + } + + private string GlobToRegexInput(string glob) + { + return glob.Replace("*", "**").Replace("****", "(.*)").Replace("**", @"([^\/]*)"); + } + + private string GlobToRegexOutput(string glob) + { + int index = 1; + return glob.Split("**") + .SelectMany(split => split.Split('*')) + .Aggregate((s1, s2) => $"{s1}${index++}{s2}"); + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs b/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs index bcc012dd2b..66e05c6a95 100644 --- a/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs +++ b/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -22,6 +22,7 @@ using Silk.NET.SilkTouch.Mods.Metadata; using Silk.NET.SilkTouch.Mods.Transformation; using Silk.NET.SilkTouch.Naming; +using Silk.NET.SilkTouch.Utility; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods; @@ -48,13 +49,12 @@ public partial class MixKhronosData( ); private static readonly char[] _listSeparators = { ',', '|', '+' }; - private static readonly Dictionary _defaultEnumNativeTypeNameMaps = - new() - { - { "GLenum", "GLEnum" }, - { "EGLenum", "EGLEnum" }, - { "GLbitfield", "GLEnum" } - }; + private static readonly Dictionary _defaultEnumNativeTypeNameMaps = new() + { + { "GLenum", "GLEnum" }, + { "EGLenum", "EGLEnum" }, + { "GLbitfield", "GLEnum" }, + }; internal class JobData { @@ -184,7 +184,7 @@ public enum ExtensionVendorTrimmingMode /// /// Only trim Khronos/first-party extension vendor names i.e. KHR and ARB. /// - KhronosOnly + KhronosOnly, } private class ExtensionVendorTrimmingModeJsonConverter @@ -230,7 +230,7 @@ public async Task InitializeAsync(IModContext ctx, CancellationToken ct = defaul Configuration = currentConfig, TypeMap = currentConfig.TypeMap is not null ? new Dictionary(currentConfig.TypeMap) - : [] + : [], }; job.TypeMap.TryAdd("int8_t", "sbyte"); job.TypeMap.TryAdd("uint8_t", "byte"); @@ -265,7 +265,7 @@ .. xml.Element("registry") ?.Element("extensions") ?.Elements("extension") .Attributes("name") - .Select(x => x.Value.Split('_')[1].ToUpper()) ?? Enumerable.Empty() + .Select(x => x.Value.Split('_')[1].ToUpper()) ?? Enumerable.Empty(), ]; job.ApiSets = apiSets; job.SupportedApiProfiles = supportedApiProfiles; @@ -443,7 +443,7 @@ public SupportedApiProfileAttribute ToAttribute(string profile) => ImpliesSets = ImpliedSets?.ToArray(), MaxVersion = EndVersion?.ToString(), MinVersion = StartVersion?.ToString(), - RequireAll = RequireAll + RequireAll = RequireAll, }; } @@ -587,7 +587,7 @@ .. profileElement ) // <-- future proofing .Where(x => x != "compatibility") // <-- assuming default "gl" is "glcompatibility" .Select(x => $"{variant}{x}"), - .. profileVariations.TryGetValue(variant, out var v) ? v : [] + .. profileVariations.TryGetValue(variant, out var v) ? v : [], ]; } } @@ -709,11 +709,10 @@ private void EvaluateFeature( // Create a HashSet to store all the symbols in this feature. // If we're not using explicit dependencies, then we track the profile-wide symbol list. We assume that the // "number" order is being respected. - var symbols = explicitDependencies - ? inheritance[apiSet] = [] - : inheritance.TryGetValue(variant, out var syms) - ? syms - : inheritance[variant] = []; + var symbols = + explicitDependencies ? inheritance[apiSet] = [] + : inheritance.TryGetValue(variant, out var syms) ? syms + : inheritance[variant] = []; // If we're using implicit dependencies in the form of secondary APIs, the symbol changes we explicitly need to // inherit are contained in the pendingChanges dictionary for this variant. @@ -839,7 +838,7 @@ and var idx // The symbol has been removed, mark it with the end version. evals[idx] = evals[idx] with { - EndVersion = number + EndVersion = number, }; } } @@ -1241,7 +1240,7 @@ vendorSuffix is null job.Groups[current] = groupInfo = groupInfo with { - ExclusiveVendor = vendorSuffix + ExclusiveVendor = vendorSuffix, }; if (notSafeToTrim) @@ -1476,7 +1475,6 @@ Action next if (ctx.JobKey is null) { next(current); - return; } current.AttributeLists.GetNativeFunctionInfo(out _, out var entryPoint, out _); @@ -1607,10 +1605,11 @@ is not { } newType static TypeSyntax PointerToGroupPointer(TypeSyntax original, string group) => original switch { - PointerTypeSyntax ptr - => ptr.WithElementType(PointerToGroupPointer(ptr.ElementType, group)), + PointerTypeSyntax ptr => ptr.WithElementType( + PointerToGroupPointer(ptr.ElementType, group) + ), PredefinedTypeSyntax or IdentifierNameSyntax => IdentifierName(group), - _ => throw new ArgumentOutOfRangeException(nameof(original)) + _ => throw new ArgumentOutOfRangeException(nameof(original)), }; TypeSyntax? GetTypeTransformation( @@ -1662,7 +1661,7 @@ ref bool anyNonTrivialParams 2 when otherGroup is not null => PointerToGroupPointer(type, group), 1 when otherGroup is not null => PointerToGroupPointer(type, otherGroup), 1 => PointerToGroupPointer(type, group), - _ => null + _ => null, }; } @@ -1938,7 +1937,7 @@ var group in (groupName is null ? Enumerable.Empty() : [groupName]) Namespace = enumNamespace is not null && groupInfo.Namespace == enumNamespace ? enumNamespace - : null + : null, } : new EnumGroup( group, diff --git a/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs b/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs index 97af583fd6..3241e7a904 100644 --- a/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs +++ b/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; @@ -273,8 +273,9 @@ await proj.GetCompilationAsync(ct) ?? throw new InvalidOperationException( "Failed to obtain compilation for source project!" ); - await RenameAllAsync( + await NameUtils.RenameAllAsync( ctx, + logger, types.SelectMany(x => { var nonFunctionConflicts = x @@ -937,132 +938,6 @@ public override SyntaxNode VisitMethodDeclaration(MethodDeclarationSyntax node) ).WithRenameSafeAttributeLists(); } - private Location? IdentifierLocation(SyntaxNode? node) => - node switch - { - BaseTypeDeclarationSyntax bt => bt.Identifier.GetLocation(), - DelegateDeclarationSyntax d => d.Identifier.GetLocation(), - EnumMemberDeclarationSyntax em => em.Identifier.GetLocation(), - EventDeclarationSyntax e => e.Identifier.GetLocation(), - MethodDeclarationSyntax m => m.Identifier.GetLocation(), - PropertyDeclarationSyntax p => p.Identifier.GetLocation(), - VariableDeclaratorSyntax v => v.Identifier.GetLocation(), - ConstructorDeclarationSyntax c => c.Identifier.GetLocation(), - DestructorDeclarationSyntax d => d.Identifier.GetLocation(), - _ => null - }; - - private async Task RenameAllAsync( - IModContext ctx, - IEnumerable<(ISymbol Symbol, string NewName)> toRename, - CancellationToken ct = default - ) - { - if (ctx.SourceProject is null) - { - return; - } - - var locations = new ConcurrentDictionary(); - // TODO this needs parallelisation config & be sensitive to the environment (future src generator form factor?) - await Parallel.ForEachAsync( - toRename, - ct, - async (tuple, _) => - { - // First, let's add all of the locations of the declaration identifiers. - var (symbol, newName) = tuple; - foreach (var syntaxRef in symbol.DeclaringSyntaxReferences) - { - var identifierLocation = IdentifierLocation(await syntaxRef.GetSyntaxAsync(ct)); - if (identifierLocation is not null) - { - locations.TryAdd(identifierLocation, newName); - } - } - - // Next, let's find all the references of the symbols. - var references = await SymbolFinder.FindReferencesAsync( - symbol, - ctx.SourceProject?.Solution - ?? throw new ArgumentException("SourceProject is null"), - ct - ); - - foreach (var referencedSymbol in references) - { - foreach (var referencedSymbolLocation in referencedSymbol.Locations) - { - if ( - referencedSymbolLocation.IsCandidateLocation - || referencedSymbolLocation.IsImplicit - ) - { - continue; - } - - locations.TryAdd(referencedSymbolLocation.Location, newName); - } - } - } - ); - - logger.LogDebug("{} referencing locations for renames for {}", locations.Count, ctx.JobKey); - - // Now it's just a simple find and replace. - var sln = ctx.SourceProject.Solution; - var srcProjId = ctx.SourceProject.Id; - var testProjId = ctx.TestProject?.Id; - foreach ( - var (syntaxTree, renameLocations) in locations - .GroupBy(x => x.Key.SourceTree) - .Select(x => (x.Key, x.OrderByDescending(y => y.Key.SourceSpan))) - ) - { - if ( - syntaxTree is null - || sln.GetDocument(syntaxTree) is not { } doc - || (doc.Project.Id != srcProjId && doc.Project.Id != testProjId) - || await syntaxTree.GetTextAsync(ct) is not { } text - ) - { - continue; - } - - var ogText = text; - foreach (var (location, newName) in renameLocations) - { - var contents = ogText.GetSubText(location.SourceSpan).ToString(); - if (contents.Contains(' ')) - { - logger.LogWarning( - "Refusing to do unsafe rename/replacement of \"{}\" to \"{}\" at {}", - contents, - newName, - location.GetLineSpan() - ); - continue; - } - - if (logger.IsEnabled(LogLevel.Trace)) - { - logger.LogTrace( - "\"{}\" -> \"{}\" at {}", - contents, - newName, - location.GetLineSpan() - ); - } - - text = text.Replace(location.SourceSpan, newName); - } - - sln = doc.WithText(text).Project.Solution; - } - - ctx.SourceProject = sln.GetProject(srcProjId); - } - /// public Task> BeforeScrapeAsync(string key, List rsps) { diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformCOM.cs b/sources/SilkTouch/SilkTouch/Mods/TransformCOM.cs new file mode 100644 index 0000000000..c5f8f07feb --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/TransformCOM.cs @@ -0,0 +1,1027 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.CommandLine; +using System.Diagnostics; +using System.Reflection; +using ClangSharp; +using ClangSharp.Interop; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Differencing; +using Microsoft.CodeAnalysis.Editing; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Silk.NET.Core; +using Silk.NET.SilkTouch.Logging; +using Silk.NET.SilkTouch.Mods.Transformation; +using Silk.NET.SilkTouch.Sources; +using Silk.NET.SilkTouch.Utility; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; +using static Silk.NET.SilkTouch.Utility.KeyedStringTree; + +namespace Silk.NET.SilkTouch.Mods +{ + /// + /// A mod to modify COM interface structs into opaque structs that act like ComPtr objects + /// + /// The logger to use. + /// The configuration to use. + /// the progress service to use + [ModConfiguration] + public class TransformCOM( + ILogger logger, + IOptionsSnapshot config, + IProgressService progressService + ) : Mod, IFunctionTransformer + { + /// + /// The configuration for the mod. + /// + public class Configuration + { + /// + /// The base type names and their full namespace definition to consider the base of the com tree + /// Usually this is (IUnknown.Interface, Silk.NET.Windows.IUnknown.Interface) + /// + public Dictionary? BaseTypes { get; init; } + + /// + /// Additional Com Types and (namespace, parent type) which are not read in this job but referenced by it + /// + public IConfigurationSection[]? AdditionalCOMTypes { get; init; } + } + + /// + public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + { + await base.ExecuteAsync(ctx, ct); + + // Read the configuration. + var cfg = config.Get(ctx.JobKey); + var proj = ctx.SourceProject; + + if (proj is null) + { + return; + } + + int count = proj?.DocumentIds.Count ?? 0; + int index = 0; + + progressService.SetTask("COM Object Discovery"); + var firstPass = new TypeDiscoverer( + cfg.BaseTypes + ?? new() { { "IUnknown.Interface", "Silk.NET.Windows.IUnknown.Interface" } }, + logger + ); + + foreach (var comType in cfg.AdditionalCOMTypes ?? []) + { + firstPass.AddInitialType( + comType.Key, + comType.GetValue("Namespace") ?? "Silk.NET", + comType.GetValue("Parent") ?? string.Empty + ); + } + + foreach (var docId in proj?.DocumentIds ?? []) + { + index++; + var doc = + proj?.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is not { } root) + { + continue; + } + + firstPass.Visit(root); + progressService.SetProgress((float)index / count); + } + + //Cleanup our lists + firstPass.FoundCOMTypes = firstPass + .FoundCOMTypes.Where(val => val.Value.Item1) + .ToDictionary(); + + index = 0; + var rewriter = new Rewriter(firstPass.FoundCOMTypes); + + progressService.SetTask("COM Object Rewrite"); + foreach (var docId in proj?.DocumentIds ?? []) + { + index++; + var doc = + proj?.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is not { } root) + { + continue; + } + + doc = doc.WithSyntaxRoot(rewriter.Visit(root).NormalizeWhitespace()); + + proj = doc.Project; + + logger.LogDebug("COM Rewrite for {0} Complete ({1}/{2})", doc.Name, index, count); + progressService.SetProgress((float)index / count); + } + ctx.SourceProject = proj; + } + + /// + public void Transform( + MethodDeclarationSyntax current, + ITransformationContext ctx, + Action next + ) + { + //pass along the original method + next(current); + + if (current.Modifiers.Any(mod => mod.IsKind(SyntaxKind.PublicKeyword))) + { + int guidPtrIndex = -1; + int voidPtrIndex = -1; + + List paramList = []; + List argList = []; + AssignmentExpressionSyntax? assignment = null; + + //look for guid and void ptr + for (var i = 0; i < current.ParameterList.Parameters.Count; i++) + { + var param = current.ParameterList.Parameters[i]; + + if (voidPtrIndex == -1) + { + if (param.Type?.ToString() == "Guid*") + { + guidPtrIndex = i; + } + else if (guidPtrIndex != -1 && param.Type?.ToString() == "void**") + { + voidPtrIndex = i; + + paramList.RemoveAt(guidPtrIndex); + argList[guidPtrIndex] = Argument( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("TCom"), + IdentifierName("NativeGuid") + ) + ); + + paramList.Add( + Parameter( + param.AttributeLists, + param.Modifiers, + ParseTypeName("TCom"), + param.Identifier, + null + ) + .AddModifiers(Token(SyntaxKind.OutKeyword)) + ); + argList.Add( + Argument( + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName(param.Identifier), + IdentifierName("GetAddressOf") + ) + ) + ) + ); + assignment = AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName(param.Identifier), + LiteralExpression(SyntaxKind.DefaultLiteralExpression) + ); + continue; + } + } + argList.Add(Argument(IdentifierName(param.Identifier.Text))); + paramList.Add(param); + } + + //if we found an available method we will have an assignment and should include that + if (assignment is not null) + { + next( + current + .AddTypeParameterListParameters(TypeParameter("TCom")) + .AddConstraintClauses( + TypeParameterConstraintClause( + IdentifierName("TCom"), + SeparatedList( + [ + TypeConstraint(IdentifierName("unmanaged")), + TypeConstraint(IdentifierName("IComInterface")), + ] + ) + ) + ) + .WithParameterList(ParameterList(SeparatedList(paramList))) + .WithExpressionBody(null) + .WithSemicolonToken(Token(SyntaxKind.None)) + .WithBody( + Block( + ExpressionStatement(assignment), + ReturnStatement( + InvocationExpression( + IdentifierName(current.Identifier), + ArgumentList(SeparatedList(argList)) + ) + ) + ) + ) + ); + } + } + } + + class TypeDiscoverer : CSharpSyntaxWalker + { + private Dictionary> _interfaceParenting = + new Dictionary>(); + + /// + /// The list of known COM interface types + /// (name of type, is it a struct?, InheritanceTree) + /// + public Dictionary FoundCOMTypes = []; + + private readonly Dictionary _baseTypes; + private ILogger _logger; + + private List _ObjectNames = []; + + public TypeDiscoverer( + Dictionary BaseTypes, + ILogger logger + ) + { + _logger = logger; + _baseTypes = BaseTypes; + InheritanceTrees = new KeyedStringTree[_baseTypes.Count]; + + int i = 0; + foreach (var baseType in BaseTypes) + { + InheritanceTrees[i] = new(baseType.Key, baseType.Value); + i++; + } + } + + public KeyedStringTree[] InheritanceTrees; + + public override void VisitStructDeclaration(StructDeclarationSyntax node) + { + _ObjectNames.Add(node.Identifier.Text); + base.VisitStructDeclaration(node); + _ObjectNames.RemoveAt(_ObjectNames.Count - 1); + + if (node.Identifier.Text == "Native") + return; + + var bases = node.BaseList; + + var fields = node.Members.OfType(); + + if ( + bases is null + || fields.Any(fds => + !fds.Modifiers.Contains(Token(SyntaxKind.StaticKeyword)) + && fds.Declaration.Type.ToString() != "Native*" + && !fds.Declaration.Type.ToString().StartsWith("delegate") + && fds.Declaration.Variables[0].Identifier.Text != "lpVtbl" + ) + || !fields.Any(fds => + fds.Declaration.Type.ToString() == "Native*" + && fds.Declaration.Variables[0].Identifier.Text == "lpVtbl" + ) + ) + { + return; + } + + var typeName = $"{node.Identifier}"; + + if (_ObjectNames.Count > 0) + typeName = $"{string.Join('.', _ObjectNames)}.{typeName}"; + + CheckBases((typeName, true, node.NamespaceFromSyntaxNode()), bases); + } + + public override void VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) + { + base.VisitInterfaceDeclaration(node); + + var bases = node.BaseList; + + if (bases is null) + { + return; + } + + var typeName = $"{node.Identifier}"; + + if (_ObjectNames.Count > 0) + typeName = $"{string.Join('.', _ObjectNames)}.{typeName}"; + + CheckBases((typeName, false, node.NamespaceFromSyntaxNode()), bases); + } + + public void AddInitialType(string typeName, string _namespace, string? parentName) + { + if (parentName is null) + { + FoundCOMTypes.Add(typeName, (true, null)); + return; + } + KeyedStringTree? tree = null; + + foreach (var inheritanceTree in InheritanceTrees) + { + if ( + inheritanceTree.TryAddNode(parentName, typeName, $"{_namespace}.{typeName}") + ) + { + tree = inheritanceTree; + break; + } + } + + if (tree is not null) + { + COMTypeValidated(typeName, (false, tree), parentName, _namespace); + return; + } + + if (!_interfaceParenting.ContainsKey(parentName)) + _interfaceParenting.Add(parentName, new()); + + _interfaceParenting[parentName].Add((typeName, false, _namespace)); + } + + private void CheckBases((string, bool, string) typeName, BaseListSyntax bases) + { + foreach (BaseTypeSyntax baseType in bases.Types) + { + string type = baseType.Type.ToString(); + bool found = false; + + int i = 0; + foreach (var BaseType in _baseTypes) + { + if (BaseType.Key == type) + { + COMTypeValidated( + typeName.Item1, + (typeName.Item2, InheritanceTrees[i]), + BaseType.Key, + typeName.Item3 + ); + found = true; + break; + } + } + + if (found) + break; + + if (FoundCOMTypes.TryGetValue(type, out var val)) + { + COMTypeValidated( + typeName.Item1, + (typeName.Item2, val.Item2), + type, + typeName.Item3 + ); + break; + } + } + + foreach (BaseTypeSyntax baseType in bases.Types) + { + string fullName = $"{baseType.Type}"; + if (!_interfaceParenting.ContainsKey(fullName)) + _interfaceParenting.Add(fullName, new()); + + _interfaceParenting[fullName].Add(typeName); + } + } + + private void COMTypeValidated( + string typeName, + (bool, KeyedStringTree?) value, + string parentName, + string _namespace + ) + { + if (FoundCOMTypes.ContainsKey(typeName)) + { + return; + } + + FoundCOMTypes.Add(typeName, value); + + if ( + !value.Item2?.TryAddNode(parentName, typeName, $"{_namespace}.{typeName}") + ?? true + ) + { + _logger.LogWarning( + "Failed to add {} to its Inheritence tree, casts will not generate properly", + typeName + ); + } + + if ( + !_interfaceParenting.TryGetValue( + typeName, + out List<(string, bool, string)>? children + ) + ) + return; + + foreach ((string, bool, string) childName in children) + { + COMTypeValidated( + childName.Item1, + (childName.Item2, value.Item2), + typeName, + childName.Item3 + ); + } + } + } + + class Rewriter(Dictionary ComTypes) : CSharpSyntaxRewriter + { + bool isInCom = false; + bool disposeFound = false; + + public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) + { + string name = node.Identifier.ToString(); + bool parentIsCom = isInCom; + + if ( + ComTypes.TryGetValue(name, out var Value) + && Value.Item2 is not null + && Value.Item2.FindNode(name, out KeyedStringTree.Node? treeNode) + && treeNode.Parent is not null + ) + { + bool parentDispose = disposeFound; + isInCom = true; + disposeFound = false; + //visit and modify ComType Variables and internal usages first + node = (base.VisitStructDeclaration(node) as StructDeclarationSyntax)!; + node = node.AddBaseListTypes(SimpleBaseType(ParseTypeName("IDisposable"))); + + if (!disposeFound) + { + node = node.AddMembers( + MethodDeclaration(ParseTypeName("void"), "Dispose") + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithExpressionBody( + ArrowExpressionClause( + InvocationExpression(IdentifierName("Release")) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + ) + .WithLeadingTrivia( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia, + List( + new XmlNodeSyntax[] + { + XmlText("/// "), + XmlElement( + XmlElementStartTag(XmlName("inheritdoc")) + .WithAttributes( + SingletonList( + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + "IDisposable.Dispose" + ) + ) + ) + ) + ), + XmlElementEndTag(XmlName("inheritdoc")) + ), + XmlText("\n\t"), + } + ) + ) + ) + ); + } + + node = node.AddMembers( + MethodDeclaration( + GenericName("Ptr2D") + .WithTypeArgumentList( + TypeArgumentList( + SingletonSeparatedList( + ParseTypeName("TNativeInterface") + ) + ) + ), + "GetAddressOf" + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.ReadOnlyKeyword) + ) + ) + .WithTypeParameterList( + TypeParameterList( + SingletonSeparatedList(TypeParameter("TNativeInterface")) + ) + ) + .WithConstraintClauses( + List( + [ + TypeParameterConstraintClause( + IdentifierName("TNativeInterface"), + SingletonSeparatedList( + TypeConstraint(IdentifierName("unmanaged")) + ) + ), + ] + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + CastExpression( + PointerType(PointerType(ParseTypeName("TNativeInterface"))), + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("Unsafe"), + IdentifierName("AsPointer") + ), + ArgumentList( + SingletonSeparatedList( + Argument( + RefExpression( + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("Unsafe"), + IdentifierName("AsRef") + ), + ArgumentList( + SingletonSeparatedList( + Argument(ThisExpression()) + .WithRefKindKeyword( + Token( + SyntaxKind.InKeyword + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia, + List( + new XmlNodeSyntax[] + { + XmlText("/// "), + XmlElement( + XmlElementStartTag(XmlName("inheritdoc")) + .WithAttributes( + SingletonList( + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + "IComInterface.GetAddressOf{TNativeInterface}()" + ) + ) + ) + ) + ), + XmlElementEndTag(XmlName("inheritdoc")) + ), + XmlText("\n\t"), + } + ) + ) + ) + ), + MethodDeclaration(ParseTypeName("Ptr2D"), "GetAddressOf") + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.ReadOnlyKeyword) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + CastExpression( + PointerType(PointerType(ParseTypeName("void"))), + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("Unsafe"), + IdentifierName("AsPointer") + ), + ArgumentList( + SingletonSeparatedList( + Argument( + RefExpression( + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("Unsafe"), + IdentifierName("AsRef") + ), + ArgumentList( + SingletonSeparatedList( + Argument(ThisExpression()) + .WithRefKindKeyword( + Token( + SyntaxKind.InKeyword + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia, + List( + new XmlNodeSyntax[] + { + XmlText("/// "), + XmlElement( + XmlElementStartTag(XmlName("inheritdoc")) + .WithAttributes( + SingletonList( + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + "IComInterface.GetAddressOf()" + ) + ) + ) + ) + ), + XmlElementEndTag(XmlName("inheritdoc")) + ), + XmlText("\n\t"), + } + ) + ) + ) + ) + ); + + //Correct to the .Interface version which will always be our parent + treeNode = treeNode.Parent; + + if (treeNode.Parent is not null) + { + node = generateUpcasts(node, name, treeNode.Parent); + } + + disposeFound = parentDispose; + } + else + { + isInCom = false; + node = (base.VisitStructDeclaration(node) as StructDeclarationSyntax)!; + } + + isInCom = parentIsCom; + + return node; + } + + public override SyntaxNode? VisitSimpleBaseType(SimpleBaseTypeSyntax node) + { + return isInCom && node.Type.ToString() == "INativeGuid" + ? SimpleBaseType(ParseTypeName("IComInterface")) + : base.VisitSimpleBaseType(node); + } + + public override SyntaxNode? VisitMethodDeclaration(MethodDeclarationSyntax node) + { + if ( + isInCom + && node.Identifier.Text == "Dispose" + && node.ParameterList.Parameters.Count == 0 + ) + { + if (node.ExpressionBody is not null) + { + node = node.WithBody( + Block( + ExpressionStatement(node.ExpressionBody.Expression), + ExpressionStatement( + InvocationExpression(IdentifierName("Release")) + ) + ) + ) + .WithExpressionBody(null); + } + else if (node.Body is not null) + { + node = node.WithBody( + Block( + node.Body.Statements.Append( + ExpressionStatement( + InvocationExpression(IdentifierName("Release")) + ) + ) + ) + ); + } + + node = node.WithLeadingTrivia( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia, + List( + new XmlNodeSyntax[] + { + XmlText("/// "), + XmlElement( + XmlElementStartTag(XmlName("inheritdoc")) + .WithAttributes( + SingletonList( + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + "IDisposable.Dispose" + ) + ) + ) + ) + ), + XmlElementEndTag(XmlName("inheritdoc")) + ), + XmlText("\n\t"), + } + ) + ) + ) + ); + } + + return base.VisitMethodDeclaration(node); + } + + private StructDeclarationSyntax generateUpcasts( + StructDeclarationSyntax node, + string className, + KeyedStringTree.Node treeNode + ) + { + string castName = InterfaceNameToStructName(treeNode.Value); + + node = node.AddMembers(GenerateCastDefinition(className, castName, false)); + node = node.AddMembers(GenerateCastDefinition(castName, className)); + + if (treeNode.Parent is not null) + { + return generateUpcasts(node, className, treeNode.Parent); + } + + return node; + } + + private string InterfaceNameToStructName(string interfaceName) => + interfaceName.EndsWith(".Interface") + ? interfaceName.Remove(interfaceName.Length - 10) + : interfaceName; + + private ConversionOperatorDeclarationSyntax GenerateCastDefinition( + string className, + string castName, + bool implicitCast = true + ) + { + return ConversionOperatorDeclaration( + Token( + implicitCast ? SyntaxKind.ImplicitKeyword : SyntaxKind.ExplicitKeyword + ), + ParseTypeName(className) + ) + .WithModifiers( + TokenList(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.StaticKeyword)) + ) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("value")).WithType(ParseTypeName(castName)) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + ObjectCreationExpression(IdentifierName(className)) + .WithArgumentList( + ArgumentList( + SingletonSeparatedList( + Argument( + CastExpression( + ParseTypeName($"Ptr<{className}.Native>"), + IdentifierName("value.lpVtbl") + ) + ) + ) + ) + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + TriviaList( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia + ) + .WithContent( + List( + new XmlNodeSyntax[] + { + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("summary")), + List( + new XmlNodeSyntax[] + { + XmlText( + $"{(implicitCast ? "Up" : "Down")}casts " + ), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + castName + ) + ) + ), + } + ) + ), + XmlText(" to "), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + className + ) + ) + ), + } + ) + ), + XmlText("."), + } + ), + XmlElementEndTag(XmlName("summary")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("param")) + .WithAttributes( + SingletonList( + XmlNameAttribute( + XmlName("name"), + Token( + SyntaxKind.DoubleQuoteToken + ), + IdentifierName("value"), + Token( + SyntaxKind.DoubleQuoteToken + ) + ) + ) + ), + List( + new XmlNodeSyntax[] + { + XmlText("The "), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + castName + ) + ) + ), + } + ) + ), + XmlText(" instance to be converted "), + } + ), + XmlElementEndTag(XmlName("param")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + } + ) + ) + ) + ) + ); + } + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs b/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs index 222c974af8..40ef950027 100644 --- a/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs +++ b/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs @@ -1,12 +1,21 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; +using System.Runtime.InteropServices; +using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Logging; using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Logging; using Silk.NET.SilkTouch.Mods.Transformation; +using Silk.NET.SilkTouch.Naming; +using Silk.NET.SilkTouch.Utility; +using static System.Runtime.InteropServices.JavaScript.JSType; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods; @@ -15,10 +24,19 @@ namespace Silk.NET.SilkTouch.Mods; /// Mods the bindings to use the Silk.NET.Core pointer types. /// [ModConfiguration] -public class TransformFunctions(FunctionTransformer ft) : ModCSharpSyntaxRewriter, IMod +public class TransformFunctions( + FunctionTransformer ft, + ILogger logger, + IProgressService progressService +) : ModCSharpSyntaxRewriter, IMod { private ThreadLocal _jobKey = new(); + private SemanticModel? _semanticModel; + private Dictionary _toRename = []; + private string _typeName = string.Empty; + private string _namespace = string.Empty; + /// /// Configuration for the and related code. /// @@ -33,6 +51,11 @@ public class Configuration /// Types to treat as boolean and their boolean schemes if different to default. /// public Dictionary? BoolTypes { get; init; } + + /// + /// Should the benefit of the doubt transformation be used for ArrayParameterTransformer + /// + public bool BenefitOfTheDoubtArrayTransformation { get; init; } = false; } /// @@ -54,22 +77,121 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { _jobKey.Value = ctx.JobKey; var proj = ctx.SourceProject; + + int count = proj?.DocumentIds.Count ?? 0; + int index = 0; + + Stopwatch watch = Stopwatch.StartNew(); + progressService.SetTask("Transforming Functions"); foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) { + index++; + UsingsToAdd.Clear(); + _typeName = string.Empty; var doc = proj!.GetDocument(docId) ?? throw new InvalidOperationException("Document missing"); if (await doc.GetSyntaxRootAsync(ct) is { } root) { proj = doc.WithSyntaxRoot(Visit(root).NormalizeWhitespace()).Project; } + + progressService.SetProgress((float)index / count); + } + watch.Stop(); + List times = [watch.Elapsed]; + watch.Restart(); + + progressService.SetTask("Getting Project Compilation"); + var compilation = await proj!.GetCompilationAsync(); + if (compilation is null) + { + logger.LogWarning( + "project was unable to compile, some usages may not be properly updated" + ); + } + + watch.Stop(); + times.Add(watch.Elapsed); + watch.Restart(); + + List<(ISymbol, string)> toRenameSymbols = []; + Visitor visitor = new(_toRename, toRenameSymbols, logger); + + index = 0; + + progressService.SetTask("Gathering Symbols"); + foreach (var docId in proj.DocumentIds ?? []) + { + index++; + var doc = + proj!.GetDocument(docId) ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is { } root) + { + var syntaxTree = await doc.GetSyntaxTreeAsync(); + _semanticModel = + compilation is not null && syntaxTree is not null + ? compilation.GetSemanticModel(syntaxTree!) + : await doc.GetSemanticModelAsync(); + + visitor.SemanticModel = _semanticModel; + visitor.Visit(root); + } + progressService.SetProgress((float)index / count); } ctx.SourceProject = proj; + + watch.Stop(); + times.Add(watch.Elapsed); + watch.Restart(); + + await NameUtils.RenameAllAsync(ctx, logger, toRenameSymbols, ct, false, true); + + watch.Stop(); + times.Add(watch.Elapsed); + + logger.LogInformation( + "TransformFunction Timing Data:" + + $"\nTransform Function : {times[0]}" + + $"\nProject Compilation : {times[1]}" + + $"\nGathering Symbols : {times[2]}" + + $"\nRename Symbols : {times[3]}" + ); + } + + /// + public override SyntaxNode? VisitClassDeclaration(ClassDeclarationSyntax node) + { + string parentName = _typeName; + _typeName += $".{node.Identifier}"; + _namespace = node.NamespaceFromSyntaxNode(); + var ret = base.VisitClassDeclaration(node) is ClassDeclarationSyntax cd + ? cd.WithMembers( + List( + cd.Members.Where(x => x is not MethodDeclarationSyntax) + .Concat( + ft.GetTransformedFunctions( + _jobKey.Value, + cd.Members.OfType(), + this + ) + .Select(FunctionSelect) + .OrderBy(x => x.Identifier.ToString()) + ) + ) + ) + : node; + _typeName = parentName; + return ret; } /// - public override SyntaxNode? VisitClassDeclaration(ClassDeclarationSyntax node) => - base.VisitClassDeclaration(node) is ClassDeclarationSyntax cd + public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) + { + string parentName = _typeName; + _typeName += $".{node.Identifier}"; + _namespace = node.NamespaceFromSyntaxNode(); + var ret = base.VisitStructDeclaration(node) is StructDeclarationSyntax cd ? cd.WithMembers( List( cd.Members.Where(x => x is not MethodDeclarationSyntax) @@ -79,15 +201,23 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) cd.Members.OfType(), this ) + .Select(FunctionSelect) .OrderBy(x => x.Identifier.ToString()) ) ) ) : node; + _typeName = parentName; + return ret; + } /// - public override SyntaxNode? VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) => - base.VisitInterfaceDeclaration(node) is InterfaceDeclarationSyntax id + public override SyntaxNode? VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) + { + string parentName = _typeName; + _typeName += $".{node.Identifier}"; + _namespace = node.NamespaceFromSyntaxNode(); + var ret = base.VisitInterfaceDeclaration(node) is InterfaceDeclarationSyntax id ? id.WithMembers( List( id.Members.Where(x => x is not MethodDeclarationSyntax) @@ -97,9 +227,134 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) id.Members.OfType(), this ) + .Select(FunctionSelect) .OrderBy(x => x.Identifier.ToString()) ) ) ) : node; + _typeName = parentName; + return ret; + } + + private MethodDeclarationSyntax FunctionSelect(TransformedFunction transFunc) + { + if (!transFunc.IsOriginal || !transFunc.HasConflictingSignature) + return transFunc.Function; + + // Sometimes when functions are transformed they only differ by return type. C# doesn't allow + // this, so we add a suffix to the original function to differentiate them. + var newIden = $"{transFunc.Function.Identifier}Raw"; + + var transformedDiscrim = + _namespace + + "." + + _typeName + + ":" + + ModUtils.DiscrimStr( + transFunc.Function.Modifiers, + transFunc.Function.TypeParameterList, + transFunc.Function.Identifier.ToString(), + transFunc.Function.ParameterList, + returnType: null + ); + _toRename.Add(transformedDiscrim, newIden); + + // Add the suffixed function + var newFun = transFunc + .Function.WithRenameSafeAttributeLists() + .WithIdentifier(Identifier(newIden)) + .WithAttributeLists( + List( + transFunc + .Function.AttributeLists.Select(x => + x.WithAttributes( + SeparatedList( + x.Attributes.Where(y => + !y.IsAttribute( + "System.Runtime.InteropServices.UnmanagedCallersOnly" + ) + ) + ) + ) + ) + .Where(x => x.Attributes.Count > 0) + ) + ); + + return newFun; + } + + private class Visitor( + Dictionary toRename, + List<(ISymbol, string)> toRenameSymbols, + ILogger logger + ) : CSharpSyntaxWalker + { + public SemanticModel? SemanticModel; + + private string _typeName = string.Empty; + private string _namespace = string.Empty; + + public override void VisitClassDeclaration(ClassDeclarationSyntax node) + { + string parentName = _typeName; + _typeName += $".{node.Identifier}"; + _namespace = node.NamespaceFromSyntaxNode(); + base.VisitClassDeclaration(node); + _typeName = parentName; + } + + public override void VisitStructDeclaration(StructDeclarationSyntax node) + { + string parentName = _typeName; + _typeName += $".{node.Identifier}"; + _namespace = node.NamespaceFromSyntaxNode(); + base.VisitStructDeclaration(node); + _typeName = parentName; + } + + public override void VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) + { + string parentName = _typeName; + _typeName += $".{node.Identifier}"; + _namespace = node.NamespaceFromSyntaxNode(); + base.VisitInterfaceDeclaration(node); + _typeName = parentName; + } + + public override void VisitMethodDeclaration(MethodDeclarationSyntax node) + { + base.VisitMethodDeclaration(node); + + var discrimWithRet = + _namespace + + "." + + _typeName + + ":" + + ModUtils.DiscrimStr( + node.Modifiers, + node.TypeParameterList, + node.Identifier.ToString(), + node.ParameterList, + returnType: null + ); + + if (!toRename.TryGetValue(discrimWithRet, out string? newName)) + { + return; + } + + var symbol = SemanticModel.GetDeclaredSymbol(node); + + if (symbol is not null) + { + toRenameSymbols.Add((symbol, newName)); + } + else + { + logger.LogError("Unable to retrieve symbol for {}", discrimWithRet); + } + } + } } diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformInterfaces.cs b/sources/SilkTouch/SilkTouch/Mods/TransformInterfaces.cs new file mode 100644 index 0000000000..9231e8ede9 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/TransformInterfaces.cs @@ -0,0 +1,1760 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Linq.Expressions; +using System.Text; +using System.Threading.Tasks; +using ClangSharp; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.FileSystemGlobbing; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Logging; +using Silk.NET.SilkTouch.Utility; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; +using static Silk.NET.SilkTouch.Utility.KeyedStringTree; + +namespace Silk.NET.SilkTouch.Mods +{ + /// + /// A mod to modify interface structs into opaque structs to hide pointers + /// + /// The logger to use. + /// The configuration to use. + /// The progress service to use + [ModConfiguration] + public class TransformInterfaces( + ILogger logger, + IOptionsSnapshot config, + IProgressService progressService + ) : Mod + { + /// + /// The configuration for the mod. + /// + public class Configuration + { + /// + /// List of namespaces to include + /// + public string[]? IncludeList { get; init; } + + /// + /// List of additional interface names to consider + /// + public string[]? AdditionalInterfaces { get; set; } + } + + /// + public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + { + await base.ExecuteAsync(ctx, ct); + + // Read the configuration. + var cfg = config.Get(ctx.JobKey); + var proj = ctx.SourceProject; + + if (proj is null) + { + return; + } + + //setup matcher + var includes = (cfg.IncludeList ?? ["**"]).Select(type => type.Replace(".", "/")); + Matcher matcher = new Matcher(); + matcher.AddIncludePatterns( + includes.Where(x => !x.StartsWith("!")).Select(ResponseFileHandler.PathFixup) + ); + matcher.AddExcludePatterns( + includes + .Where(x => x.StartsWith("!")) + .Select(x => x[1..]) + .Select(ResponseFileHandler.PathFixup) + ); + + int count = proj?.DocumentIds.Count ?? 0; + int index = 0; + + progressService.SetTask("Interface Discovery"); + var firstPass = new TypeDiscoverer(matcher); + foreach (var docId in proj?.DocumentIds ?? []) + { + index++; + + var doc = + proj?.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is not { } root) + { + continue; + } + + firstPass.Visit(root); + + progressService.SetProgress((float)index / count); + } + + if (cfg.AdditionalInterfaces is not null) + { + foreach (var inter in cfg.AdditionalInterfaces) + { + if (!firstPass.FoundTypes.ContainsKey(inter)) + firstPass.FoundTypes.Add(inter, inter); + } + } + + var compilation = await proj!.GetCompilationAsync(); + if (compilation is null) + { + logger.LogWarning( + "project was unable to compile, some usages may not be properly updated" + ); + } + + index = 0; + progressService.SetTask("Interface Object Usage Update"); + + UsageUpdater updater = new(firstPass.FoundTypes); + foreach (var docId in proj?.DocumentIds ?? []) + { + index++; + var doc = + proj?.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is not { } root) + { + continue; + } + + var syntaxTree = await doc.GetSyntaxTreeAsync(); + if (syntaxTree is null) + { + logger.LogWarning("unable to retrieve Semantic Model for {}", doc.Name); + continue; + } + updater.SemanticModel = compilation is not null + ? compilation.GetSemanticModel(syntaxTree!) + : await doc.GetSemanticModelAsync(); + + doc = doc.WithSyntaxRoot(updater.Visit(root).NormalizeWhitespace()); + + proj = doc.Project; + + logger.LogDebug( + "Interface Object Usage Update for {0} Complete ({1}/{2})", + doc.Name, + index, + count + ); + progressService.SetProgress((float)index / count); + } + + index = 0; + var rewriter = new Rewriter(firstPass.FoundTypes); + progressService.SetTask("Interface Object Usage Rewrite"); + foreach (var docId in proj?.DocumentIds ?? []) + { + index++; + var doc = + proj?.GetDocument(docId) + ?? throw new InvalidOperationException("Document missing"); + if (await doc.GetSyntaxRootAsync(ct) is not { } root) + { + continue; + } + + doc = doc.WithSyntaxRoot(rewriter.Visit(root).NormalizeWhitespace()); + + proj = doc.Project; + + logger.LogDebug( + "Interface Object Rewrite for {0} Complete ({1}/{2})", + doc.Name, + index, + count + ); + progressService.SetProgress((float)index / count); + } + ctx.SourceProject = proj; + } + + class TypeDiscoverer : CSharpSyntaxWalker + { + /// + /// The list of known interface types + /// + public Dictionary FoundTypes = []; + + private Matcher _matcher; + + public TypeDiscoverer(Matcher matcher) + { + _matcher = matcher; + } + + public override void VisitStructDeclaration(StructDeclarationSyntax node) + { + base.VisitStructDeclaration(node); + + var fields = node.DescendantNodes().OfType(); + + string matchString = + $"{node.NamespaceFromSyntaxNode().Replace('.', '/')}/{node.Identifier.Text}"; + + if ( + node.Identifier.Text == "Vtbl" + || !_matcher.Match(matchString).HasMatches + || fields.Any(fds => + !fds.Modifiers.Contains(Token(SyntaxKind.StaticKeyword)) + && fds.Declaration.Type.ToString() != "void**" + && !fds.Declaration.Type.ToString().StartsWith("delegate") + && fds.Declaration.Variables[0].Identifier.Text != "lpVtbl" + ) + || !fields.Any(fds => + fds.Declaration.Type is FunctionPointerTypeSyntax fpts + && fpts.ParameterList is not null + && fpts.ParameterList.Parameters[0].Type.ToString() == "TSelf*" + ) + || !fields.Any(fds => + fds.Declaration.Type.ToString() == "void**" + && fds.Declaration.Variables[0].Identifier.Text == "lpVtbl" + ) + || FoundTypes.ContainsKey(node.Identifier.Text) + ) + { + return; + } + + FoundTypes.Add(node.Identifier.Text, node.Identifier.Text); + } + } + + class UsageUpdater(Dictionary InterfaceTypes) : CSharpSyntaxRewriter + { + public SemanticModel? SemanticModel; + List _newMethods = []; + + public override SyntaxNode? VisitMemberAccessExpression( + MemberAccessExpressionSyntax node + ) + { + if (!node.IsKind(SyntaxKind.PointerMemberAccessExpression)) + return base.VisitMemberAccessExpression(node); + + var typeInfo = SemanticModel.GetTypeInfo(node.Expression); + if ( + typeInfo.Type is null + || GetPointerDepth(typeInfo.Type, out ITypeSymbol innerType) > 1 + ) + return base.VisitMemberAccessExpression(node); + var name = GetTypeName(innerType.ToString() ?? string.Empty); + + // Check if the type is a ComType + if (typeInfo.Type != null && InterfaceTypes.ContainsKey(name)) + { + return MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + node.Expression, + node.Name + ); + } + return base.VisitMemberAccessExpression(node); + } + + public override SyntaxNode? VisitAssignmentExpression(AssignmentExpressionSyntax node) + { + if (!node.Right.IsKind(SyntaxKind.NullLiteralExpression)) + return base.VisitAssignmentExpression(node); + + var typeInfo = SemanticModel.GetTypeInfo(node); + if ( + typeInfo.Type is null + || GetPointerDepth(typeInfo.Type, out ITypeSymbol innerType) > 1 + ) + return base.VisitAssignmentExpression(node); + + var name = GetTypeName(innerType.ToString() ?? string.Empty); + // Check if the type is a ComType + if (typeInfo.Type is not null && InterfaceTypes.ContainsKey(name)) + { + return AssignmentExpression( + node.Kind(), + node.Left, + LiteralExpression(SyntaxKind.DefaultLiteralExpression) + ); + } + return base.VisitAssignmentExpression(node); + } + + public override SyntaxNode? VisitInvocationExpression(InvocationExpressionSyntax node) + { + var symbolInfo = SemanticModel.GetSymbolInfo(node); + InvocationExpressionSyntax newInvocation = node; + bool changed = false; + string type = symbolInfo.Symbol?.GetType().ToString() ?? ""; + if (symbolInfo.Symbol is IMethodSymbol methodSymbol) + { + var arguments = newInvocation.ArgumentList.Arguments; + for (int i = 0; i < arguments.Count; i++) + { + var argument = arguments[i]; + + // Get the corresponding parameter type + int pointerDepth = GetPointerDepth( + methodSymbol.Parameters[i].Type, + out ITypeSymbol parameterType + ); + + if (pointerDepth != 1) + continue; + + var name = GetTypeName(parameterType?.ToString() ?? string.Empty); + + // Check if the argument is a null literal + if (argument.Expression.IsKind(SyntaxKind.NullLiteralExpression)) + { + // Check if the parameter type is ComType + if (InterfaceTypes.ContainsKey(name)) + { + changed = true; + var newDefaultArg = Argument( + LiteralExpression(SyntaxKind.DefaultLiteralExpression) + ); + newInvocation = newInvocation.ReplaceNode(argument, newDefaultArg); + arguments = newInvocation.ArgumentList.Arguments; + } + } + } + } + else if (symbolInfo.Symbol is IFunctionPointerTypeSymbol functionPointerSymbol) + { + var arguments = newInvocation.ArgumentList.Arguments; + int pointerDepth = 0; + ITypeSymbol parameterType; + string? name; + int i; + TypeSyntax castType; + for (i = 0; i < arguments.Count; i++) + { + ArgumentSyntax argument = arguments[i]; + + // Get the corresponding parameter type + pointerDepth = GetPointerDepth( + functionPointerSymbol.Signature.Parameters[i].Type, + out parameterType + ); + name = GetTypeName(parameterType?.ToString() ?? string.Empty); + + bool changedArg = TryChangeNativeArgument( + argument, + pointerDepth, + name, + out var newArg + ); + if (changedArg) + { + changed = true; + newInvocation = newInvocation.ReplaceNode(argument, newArg); + arguments = newInvocation.ArgumentList.Arguments; + } + } + + pointerDepth = GetPointerDepth( + functionPointerSymbol.Signature.ReturnType, + out parameterType + ); + name = GetTypeName(parameterType?.ToString() ?? string.Empty); + + castType = ParseTypeName(name); + for (; pointerDepth > 0; pointerDepth--) + { + castType = PointerType(castType); + } + + if (InterfaceTypes.ContainsKey(name)) + { + return CastExpression(castType, newInvocation); + } + } + return changed ? newInvocation : base.VisitInvocationExpression(node); + } + + public override SyntaxNode? VisitBinaryExpression(BinaryExpressionSyntax node) + { + if ( + !node.Left.IsKind(SyntaxKind.NullLiteralExpression) + && !node.Right.IsKind(SyntaxKind.NullLiteralExpression) + ) + return base.VisitBinaryExpression(node); + + var typeInfoR = SemanticModel.GetTypeInfo(node.Right); + var typeInfoL = SemanticModel.GetTypeInfo(node.Left); + + ITypeSymbol? innerTypeR = null; + ITypeSymbol? innerTypeL = null; + int depthR = 0; + int depthL = 0; + + if ( + ( + typeInfoR.Type is null + || (depthR = GetPointerDepth(typeInfoR.Type, out innerTypeR)) > 1 + ) + && ( + typeInfoL.Type is null + || (depthL = GetPointerDepth(typeInfoL.Type, out innerTypeL)) > 1 + ) + ) + return base.VisitBinaryExpression(node); + + var nameR = GetTypeName(innerTypeR?.ToString() ?? string.Empty); + var nameL = GetTypeName(innerTypeL?.ToString() ?? string.Empty); + + if (node.Left.IsKind(SyntaxKind.NullLiteralExpression)) + { + // Check if the type is an interface Type + if (depthR <= 1 && typeInfoR.Type != null && InterfaceTypes.ContainsKey(nameR)) + { + return BinaryExpression( + node.Kind(), + node.Left, + IdentifierName($"{node.Right.ToString()}.lpVtbl") + ); + } + } + else + { + // Check if the type is an interface Type + if (depthL <= 1 && typeInfoL.Type != null && InterfaceTypes.ContainsKey(nameL)) + { + return BinaryExpression( + node.Kind(), + IdentifierName($"{node.Left.ToString()}.lpVtbl"), + node.Right + ); + } + } + + return base.VisitBinaryExpression(node); + } + + public override SyntaxNode? VisitVariableDeclaration(VariableDeclarationSyntax node) + { + if ( + !node.Variables.Any(var => + var.Initializer is not null + && var.Initializer.Value is LiteralExpressionSyntax lit + && lit.IsKind(SyntaxKind.NullLiteralExpression) + ) + ) + return base.VisitVariableDeclaration(node); + + // Get the corresponding parameter type + var variableType = node.Type; + var pointerDepth = GetPointerDepth(variableType, out var innerType); + if (pointerDepth > 1) + return base.VisitVariableDeclaration(node); + + if (pointerDepth == 0) + { + return node.WithType(ParseTypeName($"{variableType}.Native")); + } + + var name = GetTypeName(innerType.ToString() ?? string.Empty); + + // Check if the parameter type is ComType + if (!InterfaceTypes.ContainsKey(name)) + { + return base.VisitVariableDeclaration(node); + } + + var newInstantiation = node; + var variables = node.Variables; + for (int i = 0; i < variables.Count; i++) + { + var variableExpression = + variables[i].Initializer?.Value as LiteralExpressionSyntax; + // Check if the variable is instantiated to a null literal + if ( + variableExpression is not null + && variableExpression.IsKind(SyntaxKind.NullLiteralExpression) + ) + { + var newDefaultArg = LiteralExpression(SyntaxKind.DefaultLiteralExpression); + newInstantiation = newInstantiation.ReplaceNode( + variableExpression, + newDefaultArg + ); + } + } + return newInstantiation; + } + + public override SyntaxNode? VisitMethodDeclaration(MethodDeclarationSyntax node) + { + var orig = node; + if (node.Modifiers.Any(token => token.IsKind(SyntaxKind.ExternKeyword))) + { + var pointerDepth = GetPointerDepth(node.ReturnType, out var innerType); + var name = innerType.ToString(); + var shouldEditReturnType = InterfaceTypes.ContainsKey(name); + if ( + shouldEditReturnType + || node.ParameterList.Parameters.Any(param => + { + if (param.Type is null) + return false; + pointerDepth = GetPointerDepth(param.Type, out var innerType); + name = innerType.ToString(); + return InterfaceTypes.ContainsKey(name); + }) + ) + { + pointerDepth = GetPointerDepth(orig.ReturnType, out innerType); + var returnType = shouldEditReturnType + ? IdentifierName($"{innerType}.Native") + : orig.ReturnType; + if (shouldEditReturnType) + { + for (; pointerDepth > 0; pointerDepth--) + { + returnType = PointerType(returnType); + } + } + + node = node.WithIdentifier(Identifier($"_{node.Identifier}")) + .WithReturnType(returnType) + .WithModifiers( + TokenList( + node.Modifiers.Where(modifier => + !modifier.IsKind(SyntaxKind.PublicKeyword) + ) + ) + ) + .AddModifiers(Token(SyntaxKind.PrivateKeyword).WithLeadingTrivia()); + + var InvocationExp = InvocationExpression( + IdentifierName(node.Identifier.Text), + ArgumentList( + SeparatedList( + node.ParameterList.Parameters.Select(param => + { + if (param.Type is null) + { + return Argument(IdentifierName(param.Identifier.Text)); + } + + pointerDepth = GetPointerDepth( + param.Type, + out var parameterType + ); + name = GetTypeName( + parameterType?.ToString() ?? string.Empty + ); + + TryChangeNativeArgument( + Argument(IdentifierName(param.Identifier.Text)), + pointerDepth, + name, + out var newArg + ); + return newArg; + }) + ) + ) + ); + + _newMethods.Add( + MethodDeclaration(orig.ReturnType, orig.Identifier) + .WithParameterList(orig.ParameterList) + .WithModifiers( + TokenList( + orig.Modifiers.Where(modifier => + !modifier.IsKind(SyntaxKind.ExternKeyword) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + shouldEditReturnType + ? CastExpression(orig.ReturnType, InvocationExp) + : InvocationExp + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + ); + } + } + + return base.VisitMethodDeclaration(node); + } + + public override SyntaxNode? VisitPropertyDeclaration(PropertyDeclarationSyntax node) + { + if ( + node.Type is FunctionPointerTypeSyntax funcPtrType + && node.ExpressionBody is not null + && node.ExpressionBody.Expression is PrefixUnaryExpressionSyntax pues + && funcPtrType.ParameterList.Parameters.Any(param => + { + var pointerDepth = GetPointerDepth(param.Type, out var innerType); + var name = innerType.ToString(); + return InterfaceTypes.ContainsKey(name); + }) + ) + { + node = node.WithExpressionBody( + ArrowExpressionClause( + PrefixUnaryExpression( + SyntaxKind.AddressOfExpression, + IdentifierName($"_{pues.Operand.ToString()}") + ) + ) + ); + } + return base.VisitPropertyDeclaration(node); + } + + public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) => + MethodAddDeclaration(() => base.VisitStructDeclaration(node)); + + public override SyntaxNode? VisitClassDeclaration(ClassDeclarationSyntax node) => + MethodAddDeclaration(() => base.VisitClassDeclaration(node)); + + private SyntaxNode? MethodAddDeclaration(Func typeVisit) + { + var parentNewMehods = _newMethods; + _newMethods = _newMethods.Count > 0 ? [] : _newMethods; + var newNode = typeVisit(); + + if (newNode is not TypeDeclarationSyntax typeNode) + return newNode; + if (_newMethods.Count > 0) + typeNode = typeNode.AddMembers(_newMethods.ToArray()); + _newMethods.Clear(); + _newMethods = parentNewMehods; + + return typeNode; + } + + private string GetTypeName(string fullTypeName) + { + int dot = fullTypeName.LastIndexOf('.'); + + if (dot != -1) + { + return fullTypeName.Substring(dot + 1); + } + + return fullTypeName; + } + + private bool TryChangeNativeArgument( + ArgumentSyntax originalArg, + int pointerDepth, + string name, + [NotNullWhen(true)] out ArgumentSyntax newArg + ) + { + if ( + pointerDepth == 0 + || !InterfaceTypes.ContainsKey(name) + || ( + originalArg.Expression is CastExpressionSyntax cast + && cast.Expression.ToString() == "Unsafe.AsPointer(ref this)" + ) + ) + { + newArg = originalArg; + return false; + } + + if (pointerDepth > 2) + { + var castType = ParseTypeName(name); + for (; pointerDepth > 0; pointerDepth--) + { + castType = PointerType(castType); + } + + newArg = Argument(CastExpression(castType, originalArg.Expression)); + return true; + } + + // Check if the argument is a null literal + if (originalArg.Expression.IsKind(SyntaxKind.NullLiteralExpression)) + { + newArg = Argument(LiteralExpression(SyntaxKind.DefaultLiteralExpression)); + } + else if (pointerDepth == 1) + { + newArg = Argument( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + originalArg.Expression, + IdentifierName("lpVtbl") + ) + ); + } + else + { + newArg = Argument( + PrefixUnaryExpression( + SyntaxKind.AddressOfExpression, + MemberAccessExpression( + SyntaxKind.PointerMemberAccessExpression, + originalArg.Expression, + IdentifierName("lpVtbl") + ) + ) + ); + } + return true; + } + } + + class Rewriter(Dictionary InterfaceTypes) : CSharpSyntaxRewriter + { + string currentType = ""; + + public override SyntaxNode? VisitPointerType(PointerTypeSyntax node) + { + var name = node.ElementType.ToString(); + + return + ( + name == currentType + && node.Parent?.Parent is ArgumentSyntax arg1 + && arg1.Parent is ArgumentListSyntax argList1 + && argList1.Arguments[0] == arg1 + ) + || ( + node.Parent is CastExpressionSyntax cast1 + && cast1.Expression.ToString() == "Unsafe.AsPointer(ref this)" + ) + || node.Ancestors() + .Any(anc => + anc is FunctionPointerParameterSyntax + || ( + anc is InvocationExpressionSyntax ies + && ( + ies.Expression.DescendantNodes() + .Any(desc => desc is FunctionPointerTypeSyntax) + || ( + ies.FirstAncestorOrSelf(an => + an is TypeDeclarationSyntax + ) + ?.Members.Any(mem => + mem is MethodDeclarationSyntax meth + && meth.Identifier.Text == ies.Expression.ToString() + && meth.Modifiers.Any(mod => + mod.IsKind(SyntaxKind.PrivateKeyword) + ) + && meth.Modifiers.Any(mod => + mod.IsKind(SyntaxKind.ExternKeyword) + ) + ) ?? false + ) + ) + ) + || ( + anc is MethodDeclarationSyntax mds + && mds.Modifiers.Any(mod => mod.IsKind(SyntaxKind.ExternKeyword)) + && mds.Modifiers.Any(mod => mod.IsKind(SyntaxKind.PrivateKeyword)) + ) + ) + || !InterfaceTypes.ContainsKey(name) + ? base.VisitPointerType(node) + : IdentifierName(name); + } + + public override SyntaxNode? VisitIdentifierName(IdentifierNameSyntax node) + { + var name = node.Identifier.Text; + return + InterfaceTypes.ContainsKey(name) + && node.Ancestors().OfType().Count() > 0 + ? IdentifierName($"{name}.Native") + : base.VisitIdentifierName(node); + } + + public override SyntaxNode? VisitParameter(ParameterSyntax node) + { + var visited = base.VisitParameter(node); + var visitedParameter = visited as ParameterSyntax; + if ( + visitedParameter is null + || visitedParameter.Default is null + || visitedParameter.Type is null + || !visitedParameter.Default.Value.IsKind(SyntaxKind.NullLiteralExpression) + || !InterfaceTypes.ContainsKey( + visitedParameter.Type?.ToString() ?? string.Empty + ) + ) + { + return visited; + } + + return Parameter( + visitedParameter.AttributeLists, + visitedParameter.Modifiers, + visitedParameter.Type, + visitedParameter.Identifier, + EqualsValueClause(LiteralExpression(SyntaxKind.DefaultLiteralExpression)) + ); + } + + public override SyntaxNode? VisitSimpleBaseType(SimpleBaseTypeSyntax node) => node; + + public override SyntaxNode? VisitTypeConstraint(TypeConstraintSyntax node) => node; + + const string NATIVE_VARIABLE_NAME = "lpVtbl"; + + public override SyntaxNode? VisitStructDeclaration(StructDeclarationSyntax node) + { + string name = node.Identifier.ToString(); + + if (InterfaceTypes.TryGetValue(name, out var Value)) + { + currentType = name; + //visit and modify ComType Variables and internal usages first + node = (base.VisitStructDeclaration(node) as StructDeclarationSyntax)!; + + var constructors = node.Members.OfType(); + node = node.RemoveNodes(constructors, SyntaxRemoveOptions.KeepNoTrivia)!; + node = node.AddMembers( + constructors + .Select(cons => cons.WithIdentifier(Identifier("Native"))) + .ToArray() + ); + + var originalBaseList = node.BaseList; + var fullNameBase = node + .BaseList?.DescendantNodes() + .OfType() + .Where(baseType => baseType.Type.ToString() == $"{name}.Interface") + .FirstOrDefault(); + + if (fullNameBase is not null) + node = node.ReplaceNode( + fullNameBase, + SimpleBaseType(ParseTypeName("Interface")) + ); + + var interfaceNodes = node + .Members.OfType() + .Where(inter => inter.Identifier.Text == "Interface"); + + node = + node.RemoveNodes(interfaceNodes ?? [], SyntaxRemoveOptions.KeepNoTrivia) + ?? node; + + var nativeName = $"{name}.Native"; + + var parentNode = StructDeclaration( + node.AttributeLists, + node.Modifiers, + Identifier(name), + null, + null, + List([]), + List( + [ + FieldDeclaration( + VariableDeclaration( + PointerType(ParseTypeName("Native")), + SingletonSeparatedList( + VariableDeclarator(NATIVE_VARIABLE_NAME) + ) + ) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))), + ] + ) + ) + .AddMembers( + node.Members.Where(mem => + ( + mem is MethodDeclarationSyntax meth + && meth.ExplicitInterfaceSpecifier is not null + ) + || ( + mem is PropertyDeclarationSyntax prop + && prop?.ExplicitInterfaceSpecifier is not null + ) + || ( + ( + mem is MethodDeclarationSyntax + || mem is PropertyDeclarationSyntax + ) + && mem.Modifiers.Any(mod => + mod.IsKind(SyntaxKind.PublicKeyword) + ) + ) + ) + .Select(origMember => + { + bool isStatic = origMember.Modifiers.Any(mod => + mod.IsKind(SyntaxKind.StaticKeyword) + ); + bool isPublic = origMember.Modifiers.Any(mod => + mod.IsKind(SyntaxKind.PublicKeyword) + ); + var AccessKind = isStatic + ? SyntaxKind.SimpleMemberAccessExpression + : SyntaxKind.PointerMemberAccessExpression; + ExpressionSyntax variable = isStatic + ? IdentifierName("Native") + : IdentifierName(NATIVE_VARIABLE_NAME); + if (origMember is MethodDeclarationSyntax method) + { + var node = MethodDeclaration( + method.ReturnType, + method.Identifier + ) + .WithAttributeLists(method.AttributeLists) + .WithModifiers(method.Modifiers) + .WithExplicitInterfaceSpecifier( + method.ExplicitInterfaceSpecifier + ) + .WithParameterList(method.ParameterList) + .WithLeadingTrivia(method.GetLeadingTrivia()); + + if (method.ExplicitInterfaceSpecifier is not null) + { + if (method.ExpressionBody is not null) + { + node = node.WithExpressionBody( + method.ExpressionBody + ); + } + else + { + node = node.WithBody(method.Body); + } + } + else + { + node = node.WithExpressionBody( + ArrowExpressionClause( + InvocationExpression( + MemberAccessExpression( + AccessKind, + variable, + IdentifierName(method.Identifier) + ), + ArgumentList( + SeparatedList( + method.ParameterList.Parameters.Select( + param => + Argument( + IdentifierName( + param.Identifier + ) + ) + ) + ) + ) + ) + ) + ) + .WithSemicolonToken( + Token(SyntaxKind.SemicolonToken) + ); + } + + return (MemberDeclarationSyntax)node; + } + else + { + var property = (origMember as PropertyDeclarationSyntax)!; + + var node = PropertyDeclaration( + property.Type, + property.Identifier + ) + .WithAttributeLists(property.AttributeLists) + .WithModifiers(property.Modifiers) + .WithExplicitInterfaceSpecifier( + property.ExplicitInterfaceSpecifier + ) + .WithLeadingTrivia(property.GetLeadingTrivia()); + + if (property.ExplicitInterfaceSpecifier is not null) + { + if (property.ExpressionBody is not null) + { + node = node.WithExpressionBody( + property.ExpressionBody + ) + .WithSemicolonToken( + Token(SyntaxKind.SemicolonToken) + ); + } + else + { + node = node.WithAccessorList(property.AccessorList); + } + } + else + { + node = node.WithExpressionBody( + ArrowExpressionClause( + MemberAccessExpression( + AccessKind, + variable, + IdentifierName(property.Identifier) + ) + ) + ) + .WithSemicolonToken( + Token(SyntaxKind.SemicolonToken) + ); + } + + return node; + } + }) + .ToArray() + ) + .AddMembers(interfaceNodes?.ToArray() ?? []) + .AddMembers([node.WithIdentifier(Identifier("Native"))]) + .WithLeadingTrivia(node.GetLeadingTrivia()) + .WithBaseList(originalBaseList); + + //Add vtbl constructor to ComType + parentNode = parentNode.AddMembers( + ConstructorDeclaration(name) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("vtbl")) + .WithType(ParseTypeName("Ptr3D")) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName("lpVtbl"), + CastExpression( + PointerType(ParseTypeName(nativeName)), + IdentifierName("vtbl") + ) + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + TriviaList( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia + ) + .WithContent( + List( + new XmlNodeSyntax[] + { + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("summary")), + List( + new XmlNodeSyntax[] + { + XmlText( + "Initializes a new instance of the " + ), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + name + ) + ) + ), + } + ) + ), + XmlText( + " struct with the specified virtual table pointer." + ), + } + ), + XmlElementEndTag(XmlName("summary")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("param")) + .WithAttributes( + SingletonList( + XmlNameAttribute( + XmlName("name"), + Token( + SyntaxKind.DoubleQuoteToken + ), + IdentifierName("vtbl"), + Token( + SyntaxKind.DoubleQuoteToken + ) + ) + ) + ), + SingletonList( + XmlText( + "The pointer to virtual table." + ) + ), + XmlElementEndTag(XmlName("param")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + } + ) + ) + ) + ) + ), + ConstructorDeclaration(name) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("vtbl")) + .WithType(ParseTypeName($"Ptr<{nativeName}>")) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName("lpVtbl"), + IdentifierName("vtbl") + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + TriviaList( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia + ) + .WithContent( + List( + new XmlNodeSyntax[] + { + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("summary")), + List( + new XmlNodeSyntax[] + { + XmlText( + "Initializes a new instance of the " + ), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + name + ) + ) + ), + } + ) + ), + XmlText( + " struct with the specified virtual table pointer." + ), + } + ), + XmlElementEndTag(XmlName("summary")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("param")) + .WithAttributes( + SingletonList( + XmlNameAttribute( + XmlName("name"), + Token( + SyntaxKind.DoubleQuoteToken + ), + IdentifierName("vtbl"), + Token( + SyntaxKind.DoubleQuoteToken + ) + ) + ) + ), + SingletonList( + XmlText( + "The pointer to virtual table." + ) + ), + XmlElementEndTag(XmlName("param")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + } + ) + ) + ) + ) + ) + ); + + parentNode = generateCasts( + parentNode, + name, + PointerType(ParseTypeName(nativeName)), + nativeName, + CastExpression(ParseTypeName("Ptr"), IdentifierName("value")), + false, + true + ); + parentNode = generateCasts( + parentNode, + name, + ParseTypeName("Ptr3D"), + "Ptr3D", + IdentifierName("value"), + pointerCast: false + ); + parentNode = generateCasts( + parentNode, + name, + ParseTypeName($"Ptr<{nativeName}>"), + $"Ptr", + IdentifierName("value"), + pointerCast: false + ); + parentNode = generateCasts( + parentNode, + name, + PointerType(PointerType(PointerType(ParseTypeName("void")))), + "void***", + CastExpression(ParseTypeName("Ptr"), IdentifierName("value")), + castSeeTag: false + ); + + parentNode = generateCasts( + parentNode, + name, + ParseTypeName("nuint"), + "nuint", + CastExpression( + ParseTypeName("Ptr"), + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("value"), + IdentifierName("ToPointer") + ) + ) + ), + pointerCast: false + ); + + currentType = ""; + return parentNode; + } + + return base.VisitStructDeclaration(node); + } + + private StructDeclarationSyntax generateCasts( + StructDeclarationSyntax node, + string name, + TypeSyntax castType, + string castXmlName, + ExpressionSyntax constructorArgExpression, + bool castTo = true, + bool implicitTo = false, + bool pointerCast = true, + bool castSeeTag = true + ) + { + var castXmlType = ParseTypeName(castXmlName); + + ExpressionSyntax expression = castTo + ? CastExpression( + castType, + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("value"), + IdentifierName("lpVtbl") + ) + ) + : MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("value"), + IdentifierName("lpVtbl") + ); + + XmlNodeSyntax castXmlTag = castSeeTag + ? XmlEmptyElement( + XmlName("see"), + List( + new[] { XmlCrefAttribute(NameMemberCref(castXmlType)) } + ) + ) + : XmlText(castXmlName); + + return node.AddMembers( + ConversionOperatorDeclaration( + Token( + implicitTo ? SyntaxKind.ImplicitKeyword : SyntaxKind.ExplicitKeyword + ), + ParseTypeName(name) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.StaticKeyword) + ) + ) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("value")).WithType(castType) + ) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + ObjectCreationExpression(IdentifierName(name)) + .WithArgumentList( + ArgumentList( + SingletonSeparatedList( + Argument(constructorArgExpression) + ) + ) + ) + ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + TriviaList( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia + ) + .WithContent( + List( + new XmlNodeSyntax[] + { + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("summary")), + List( + new XmlNodeSyntax[] + { + XmlText("casts "), + castXmlTag, + XmlText(" to "), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + name + ) + ) + ), + } + ) + ), + XmlText("."), + } + ), + XmlElementEndTag(XmlName("summary")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("param")) + .WithAttributes( + SingletonList( + XmlNameAttribute( + XmlName("name"), + Token( + SyntaxKind.DoubleQuoteToken + ), + IdentifierName("value"), + Token( + SyntaxKind.DoubleQuoteToken + ) + ) + ) + ), + List( + new XmlNodeSyntax[] + { + XmlText("The "), + castXmlTag, + XmlText( + " instance to be converted " + ), + } + ), + XmlElementEndTag(XmlName("param")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + } + ) + ) + ) + ) + ), + ConversionOperatorDeclaration(Token(SyntaxKind.ImplicitKeyword), castType) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.StaticKeyword) + ) + ) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("value")).WithType(IdentifierName(name)) + ) + ) + ) + .WithExpressionBody(ArrowExpressionClause(expression)) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) + .WithLeadingTrivia( + TriviaList( + Trivia( + DocumentationCommentTrivia( + SyntaxKind.SingleLineDocumentationCommentTrivia + ) + .WithContent( + List( + new XmlNodeSyntax[] + { + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("summary")), + List( + new XmlNodeSyntax[] + { + XmlText("casts "), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + name + ) + ) + ), + } + ) + ), + XmlText(" to "), + castXmlTag, + XmlText( + $" {(pointerCast ? "pointer" : "")}." + ), + } + ), + XmlElementEndTag(XmlName("summary")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextLiteral( + TriviaList( + DocumentationCommentExterior( + "/// " + ) + ), + " ", + " ", + TriviaList() + ) + ) + ), + XmlElement( + XmlElementStartTag(XmlName("param")) + .WithAttributes( + SingletonList( + XmlNameAttribute( + XmlName("name"), + Token( + SyntaxKind.DoubleQuoteToken + ), + IdentifierName("value"), + Token( + SyntaxKind.DoubleQuoteToken + ) + ) + ) + ), + List( + new XmlNodeSyntax[] + { + XmlText("The "), + XmlEmptyElement( + XmlName("see"), + List( + new[] + { + XmlCrefAttribute( + NameMemberCref( + IdentifierName( + name + ) + ) + ), + } + ) + ), + XmlText( + " instance to be converted " + ), + } + ), + XmlElementEndTag(XmlName("param")) + ), + XmlText() + .WithTextTokens( + TokenList( + XmlTextNewLine( + TriviaList(), + "\n", + "\n", + TriviaList() + ) + ) + ), + } + ) + ) + ) + ) + ) + ); + } + } + + private static int GetPointerDepth(TypeSyntax type, out TypeSyntax innerMost) + { + int depth = 0; + innerMost = type; + while (innerMost is PointerTypeSyntax pointerType) + { + depth++; + innerMost = pointerType.ElementType; + } + return depth; + } + + private static int GetPointerDepth(ITypeSymbol type, out ITypeSymbol innerMost) + { + int depth = 0; + innerMost = type; + while (innerMost is IPointerTypeSymbol pointerType) + { + depth++; + innerMost = pointerType.PointedAtType; + } + return depth; + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs index 7454f23398..39b323efb7 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs @@ -9,6 +9,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Mods.Metadata; using Silk.NET.SilkTouch.Naming; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -18,7 +19,8 @@ namespace Silk.NET.SilkTouch.Mods.Transformation; /// /// Transforms functions with exactly one pointer parameter with an element count determined from another parameter. /// -public class ArrayParameterTransformer : IFunctionTransformer +public class ArrayParameterTransformer(IOptionsSnapshot? options) + : IFunctionTransformer { /// public void Transform( @@ -31,6 +33,8 @@ Action next // Modified heavily to use count metadata instead of function signature styles. This allowed us to also coalesce // the ReturnTypeOverloader and NonKhrReturnTypeOverloader into this single transformer. + var cfg = options?.Get(ctx.JobKey); + // Keep the original in the loop: next(decl); @@ -87,8 +91,8 @@ decl.ReturnType is not PredefinedTypeSyntax pt x.CountParamIdx, // 2. Select only the last parameter this count parameter is associated with ParamForCount: x.ParamsForCount.Select( - (y, j) => (PtrParamInfo: y, ParamForCountIdx: j) - ) + (y, j) => (PtrParamInfo: y, ParamForCountIdx: j) + ) .LastOrDefault() ) ) @@ -130,7 +134,8 @@ decl.ReturnType is not PredefinedTypeSyntax pt verb = verb[..(verb[1..].IndexOfAny(NameUtils.Uppercase) + 1)]; var benefitOfDoubt = false; if ( - countParam is null + (cfg?.BenefitOfTheDoubtArrayTransformation ?? false) + && countParam is null && ptrParam is null && verb is "Get" or "Gen" or "Create" or "New" or "Delete" && decl.ParameterList.Parameters.Count == 2 // Type checking is done in the next if. @@ -253,7 +258,6 @@ is BlockSyntax blk // call. ? Block( (StatementSyntax[]) - [ LocalDeclarationStatement( VariableDeclaration( @@ -271,7 +275,7 @@ is BlockSyntax blk ) ), .. blk.Statements, - ReturnStatement(IdentifierName(ptrParam)) + ReturnStatement(IdentifierName(ptrParam)), ] ) : blk @@ -309,15 +313,15 @@ public override SyntaxNode VisitReturnStatement(ReturnStatementSyntax node) => ? syn.WithParameters( SeparatedList( syn.Parameters.Select(x => - x.Identifier.ToString() == countParam - || (isOutput && x.Identifier.ToString() == ptrParam) - ? null + x.Identifier.ToString() == countParam + || (isOutput && x.Identifier.ToString() == ptrParam) + ? null : base.VisitParameter(x) is ParameterSyntax p ? p.Identifier.ToString() == ptrParam - ? p.WithType(ptrElementType) + ? p.WithType(ptrElementType) : p - : null - ) + : null + ) .OfType() ) ) diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs index 8519678e15..f025179f59 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Extensions.Options; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -68,11 +69,42 @@ paramNative is not null ) ) { + var defaultAttr = param + .AttributeLists.Select(attrList => + attrList.Attributes.FirstOrDefault(attr => + attr.IsAttribute("System.Runtime.InteropServices.DefaultParameterValue") + ) + ) + .FirstOrDefault(); + + if (defaultAttr is not null && defaultAttr.ArgumentList?.Arguments.Count > 0) + { + string argValue = + defaultAttr.ArgumentList?.Arguments[0].Expression.ToString() + ?? string.Empty; + + if (argValue != string.Empty && argValue != "true" && argValue != "false") + { + param = param.ReplaceNode( + defaultAttr, + defaultAttr.WithArgumentList( + AttributeArgumentList( + SingletonSeparatedList( + AttributeArgument( + IdentifierName(argValue == "0" ? "false" : "true") + ) + ) + ) + ) + ); + } + } + (@params ??= [.. current.ParameterList.Parameters])[i] = param.WithType( string.IsNullOrWhiteSpace(paramBoolScheme) ? GenericName( Identifier("MaybeBool"), - TypeArgumentList(SingletonSeparatedList(param.Type)) + TypeArgumentList(SingletonSeparatedList(param.Type!)) ) : GenericName( Identifier("MaybeBool"), @@ -80,7 +112,7 @@ paramNative is not null SeparatedList( // ReSharper disable once RedundantCast <-- false positive (IEnumerable) - [param.Type, IdentifierName(paramBoolScheme)] + [param.Type!, IdentifierName(paramBoolScheme)] ) ) ) diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs index a1cefab423..4df22e4da3 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs @@ -5,11 +5,26 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.FindSymbols; using Microsoft.Extensions.Logging; +using Silk.NET.SilkTouch.Utility; +using static System.Runtime.InteropServices.JavaScript.JSType; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods.Transformation; +/// +/// An output function from +/// +/// Function syntax +/// Is there another function which will have a conflicting syntax +/// Is this the original function syntax +public record TransformedFunction( + MethodDeclarationSyntax Function, + bool HasConflictingSignature, + bool IsOriginal +); + /// /// Contains utilities for actioning s. /// @@ -31,7 +46,7 @@ ILogger logger /// Whether to include the original function in the outputs before the transformed ones. /// /// The transformed (and optionally original) functions. - public IEnumerable GetTransformedFunctions( + public IEnumerable GetTransformedFunctions( string? key, IEnumerable functions, ITransformationContext ctx, @@ -39,7 +54,7 @@ public IEnumerable GetTransformedFunctions( ) { var ret = functions is IReadOnlyCollection coll - ? new List(coll.Count) + ? new List(coll.Count) : []; var discrims = new HashSet(); @@ -49,7 +64,7 @@ public IEnumerable GetTransformedFunctions( IFunctionTransformer, Action >( - meth => + (meth) => { // Get the discriminator string to determine whether it conflicts. Note that we set the return type // to null as overloads that differ only by return type aren't acceptable. However, we do need a @@ -70,11 +85,36 @@ public IEnumerable GetTransformedFunctions( meth.ReturnType ); + bool hasConflictingSignature = false; + + if (ctx.Original is not null && includeOriginal) + { + var origDiscrim = ModUtils.DiscrimStr( + ctx.Original.Modifiers, + ctx.Original.TypeParameterList, + ctx.Original.Identifier.ToString(), + ctx.Original.ParameterList, + returnType: null + ); + + hasConflictingSignature = origDiscrim == discrim; + } + + var declTy = ctx.Original?.FirstAncestorOrSelf(); + + bool isInInterface = declTy is InterfaceDeclarationSyntax; + // Only add it if it's an overload that does not conflict. if (discrims.Add(discrimWithRet) && discrims.Add(discrim)) { + if (isInInterface) + { + meth = meth.WithBody(null) + .WithExpressionBody(null) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)); + } // Small fixup to convert to use expression bodies where possible - if ( + else if ( meth.ExpressionBody is null && meth.Body?.Statements.Count == 1 && ( @@ -95,7 +135,7 @@ meth.Body.Statements[0] as ExpressionStatementSyntax .WithExpressionBody(ArrowExpressionClause(expr)) .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)); } - ret.Add(meth); + ret.Add(new(meth, hasConflictingSignature, false)); } // TODO else warn maybe? }, @@ -153,45 +193,34 @@ meth.Body.Statements[0] as ExpressionStatementSyntax } ctx.Original = function; - if (TransformFunctions(function, transform) is not null && includeOriginal) + TransformFunctions(function, transform); + if (includeOriginal) { // Try to add the original function as-is - if (discrims.Add(discrim)) - { - ret.Insert(idx, function); - } - else - { - // Sometimes when functions are transformed they only differ by return type. C# doesn't allow - // this, so we add a suffix to the original function to differentiate them. - var newIden = $"{function.Identifier}Raw"; - var rep = new Dictionary - { - { function.Identifier.ToString(), newIden } - }; - - // Any reference to the original function needs to be replaced as well. - foreach (ref var added in CollectionsMarshal.AsSpan(ret)[idx..]) - { - added = (MethodDeclarationSyntax)added.ReplaceIdentifiers(rep); - } - - // Add the suffixed function - var newFun = function - .WithRenameSafeAttributeLists() - .WithIdentifier(Identifier(newIden)); - discrim = ModUtils.DiscrimStr( - function.Modifiers, - function.TypeParameterList, - newIden, - function.ParameterList, - returnType: null - ); - if (discrims.Add(discrim)) - { - ret.Insert(idx, newFun); - } - } + ret.Insert( + idx, + new( + function.WithAttributeLists( + List( + function + .AttributeLists.Select(x => + x.WithAttributes( + SeparatedList( + x.Attributes.Where(y => + !y.IsAttribute( + "System.Runtime.InteropServices.UnmanagedCallersOnly" + ) + ) + ) + ) + ) + .Where(x => x.Attributes.Count > 0) + ) + ), + !discrims.Add(discrim), + true + ) + ); } ctx.Original = null; @@ -201,22 +230,30 @@ meth.Body.Statements[0] as ExpressionStatementSyntax return ret; } - private MethodDeclarationSyntax? TransformFunctions( + private void TransformFunctions( MethodDeclarationSyntax function, Action transform ) { if (function.ExplicitInterfaceSpecifier is not null) { - return null; + return; } var declTy = function.FirstAncestorOrSelf(); + bool isInInterface = declTy is InterfaceDeclarationSyntax; + // The Silk DSL can be applied to static and non-static methods in a class or a struct. - if (declTy is not (ClassDeclarationSyntax or StructDeclarationSyntax)) + if (declTy is not (ClassDeclarationSyntax or StructDeclarationSyntax) && !isInInterface) + { + return; + } + + if (isInInterface) { - return null; + transform(function); + return; } StatementSyntax impl = ExpressionStatement( @@ -225,7 +262,20 @@ Action transform ArgumentList( SeparatedList( function.ParameterList.Parameters.Select(x => - Argument(IdentifierName(x.Identifier)) + Argument( + null, + x.Modifiers.Where(mod => + mod.IsKind(SyntaxKind.RefKeyword) + || mod.IsKind(SyntaxKind.InKeyword) + || mod.IsKind(SyntaxKind.OutKeyword) + ) + .FirstOrDefault(), + IdentifierName( + x.Identifier.Text == function.Identifier.Text + ? $"_{x.Identifier.Text}" + : x.Identifier.Text + ) + ) ) ) ) @@ -239,7 +289,21 @@ Action transform ); } + // Fix for some malformed trivia var originalFunction = function; + + if (function.HasLeadingTrivia) + { + function = function.WithLeadingTrivia( + function + .GetLeadingTrivia() + .Where(trivia => + !trivia.IsKind(SyntaxKind.SingleLineDocumentationCommentTrivia) + ) + .ToSyntaxTriviaList() + ); + } + function = function .WithBody(Block(impl)) .WithAttributeLists( @@ -272,11 +336,21 @@ Action transform .AddNativeFunction(originalFunction) .WithExpressionBody(null) .WithSemicolonToken(default) + .WithParameterList( + ParameterList( + SeparatedList( + function.ParameterList.Parameters.Select(param => + param.Identifier.Text == function.Identifier.Text + ? param.WithIdentifier(Identifier($"_{param.Identifier.Text}")) + : param + ) + ) + ) + ) .WithModifiers( TokenList(function.Modifiers.Where(x => !x.IsKind(SyntaxKind.ExternKeyword))) ); transform(function); - return function; } } diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs index 0e7b788989..a5e7a591b4 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs @@ -7,6 +7,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using static System.Runtime.InteropServices.JavaScript.JSType; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods.Transformation; @@ -167,11 +168,6 @@ is not MethodDeclarationSyntax methWithReplacementsButNoFixed // Defensive check, the transformer should always make the initial body for us. var body = methWithReplacementsButNoFixed.Body; - if (body is null) - { - _parameterIdentifiers = null; - return node; - } // Remove the extern keyword from the outer method methWithReplacementsButNoFixed = methWithReplacementsButNoFixed @@ -182,9 +178,41 @@ is not MethodDeclarationSyntax methWithReplacementsButNoFixed ) ) ) + .WithAttributeLists( + List( + methWithReplacementsButNoFixed + .AttributeLists.Select(x => + x.WithAttributes( + SeparatedList( + x.Attributes.Where(y => + !y.IsAttribute( + "System.Runtime.InteropServices.UnmanagedCallersOnly" + ) + ) + ) + ) + ) + .Where(x => x.Attributes.Count > 0) + ) + ) .AddMaxOpt(); _ctx.Value?.AddUsing("System.Runtime.CompilerServices"); + // Need to check on the return type, but assume that there's an implicit conversion in the DSL + if (_returnTypeReplaceable) + { + _returnTypeReplaceable = false; + methWithReplacementsButNoFixed = methWithReplacementsButNoFixed.WithReturnType( + GetDSLType(node.ReturnType, node.AttributeLists, SyntaxKind.ReturnKeyword) + ); + } + + if (body is null) + { + _parameterIdentifiers = null; + return methWithReplacementsButNoFixed; + } + // Generate the fixed blocks for the "inner idents" foreach (var param in paramsToChange) { @@ -197,7 +225,7 @@ is not MethodDeclarationSyntax methWithReplacementsButNoFixed continue; } - body = body.WithStatements( + body = body!.WithStatements( SingletonList( body.Statements.AddFixed(s => FixedStatement( @@ -219,15 +247,6 @@ is not MethodDeclarationSyntax methWithReplacementsButNoFixed _parameterIdentifiers = null; - // Need to check on the return type, but assume that there's an implicit conversion in the DSL - if (_returnTypeReplaceable) - { - _returnTypeReplaceable = false; - methWithReplacementsButNoFixed = methWithReplacementsButNoFixed.WithReturnType( - GetDSLType(node.ReturnType, node.AttributeLists, SyntaxKind.ReturnKeyword) - ); - } - return methWithReplacementsButNoFixed.WithBody(body); } @@ -245,7 +264,14 @@ is not MethodDeclarationSyntax methWithReplacementsButNoFixed // Are we converting *to* a DSL type? if (toDsl) { - return ret.WithType(GetDSLType(ret.Type, node.AttributeLists, null)); + return ret.WithType(GetDSLType(ret.Type, node.AttributeLists, null)) + .WithDefault( + node.Default is not null && node.Default.Value.ToString() == "null" + ? EqualsValueClause( + LiteralExpression(SyntaxKind.DefaultLiteralExpression) + ) + : node.Default + ); } // Are we converting *from* a DSL type? @@ -286,7 +312,7 @@ or IdentifierNameSyntax public override SyntaxNode? VisitIdentifierName(IdentifierNameSyntax node) { var ret = base.VisitIdentifierName(node) as IdentifierNameSyntax; - if (ret is null) + if (ret is null || ret.Parent is InvocationExpressionSyntax) { return ret; } diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/TransformationUtils.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/TransformationUtils.cs index 758353a67a..e2f623a97e 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/TransformationUtils.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/TransformationUtils.cs @@ -259,16 +259,13 @@ is not { } idn GenericNameSyntax { TypeArgumentList.Arguments.Count: 1 } gn when gn.Identifier.ToString().AsSpan() is { Length: >= 3 } span && span[..3] is "Ref" or "Ptr" - && (span.Length == 3 || span[^1] is 'D') - => span.Length == 3 - ? gn.TypeArgumentList.Arguments[0] - : byte.TryParse(span[3..^1], out var nd) - ? gn.WithIdentifier( - nd <= 2 - ? Identifier(span[..3].ToString()) - : Identifier($"{span[..3]}{nd - 1}") - ) - : null, - _ => null + && (span.Length == 3 || span[^1] is 'D') => span.Length == 3 + ? gn.TypeArgumentList.Arguments[0] + : byte.TryParse(span[3..^1], out var nd) + ? gn.WithIdentifier( + nd <= 2 ? Identifier(span[..3].ToString()) : Identifier($"{span[..3]}{nd - 1}") + ) + : null, + _ => null, }; } diff --git a/sources/SilkTouch/SilkTouch/Naming/NameUtils.cs b/sources/SilkTouch/SilkTouch/Naming/NameUtils.cs index bafa4b0cab..137d430141 100644 --- a/sources/SilkTouch/SilkTouch/Naming/NameUtils.cs +++ b/sources/SilkTouch/SilkTouch/Naming/NameUtils.cs @@ -1,11 +1,23 @@ -using System; +using System; using System.Buffers; +using System.Collections.Concurrent; using System.Collections.Generic; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using Humanizer; +using Microsoft.Build.Evaluation; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Editing; +using Microsoft.CodeAnalysis.FindSymbols; +using Microsoft.Extensions.Logging; +using Silk.NET.SilkTouch.Mods; +using Silk.NET.SilkTouch.Utility; +using Project = Microsoft.CodeAnalysis.Project; namespace Silk.NET.SilkTouch.Naming; @@ -291,4 +303,152 @@ private static string MakeFirstLetterUpper(string wordToConvert, CultureInfo cul [GeneratedRegex(@"(?<=\D)(?=\d)|(?<=\d)(?=\D)|\W+")] private static partial Regex Words(); } + + private static Location? IdentifierLocation(SyntaxNode? node) => + node switch + { + BaseTypeDeclarationSyntax bt => bt.Identifier.GetLocation(), + DelegateDeclarationSyntax d => d.Identifier.GetLocation(), + EnumMemberDeclarationSyntax em => em.Identifier.GetLocation(), + EventDeclarationSyntax e => e.Identifier.GetLocation(), + MethodDeclarationSyntax m => m.Identifier.GetLocation(), + PropertyDeclarationSyntax p => p.Identifier.GetLocation(), + VariableDeclaratorSyntax v => v.Identifier.GetLocation(), + ConstructorDeclarationSyntax c => c.Identifier.GetLocation(), + DestructorDeclarationSyntax d => d.Identifier.GetLocation(), + _ => null, + }; + + /// + /// Rename all symbols with the given new names + /// + /// Mod context to use + /// list of symbols to rename with new names + /// cancellation token + /// logger + /// whether to replace any declaration references or not + /// should candidate references or implicit references be included + /// + /// + public static async Task RenameAllAsync( + IModContext ctx, + ILogger logger, + IEnumerable<(ISymbol Symbol, string NewName)> toRename, + CancellationToken ct = default, + bool includeDeclarations = true, + bool includeCandidateLocations = false + ) + { + if (ctx.SourceProject is null) + { + return; + } + + var locations = new ConcurrentDictionary(); + // TODO this needs parallelisation config & be sensitive to the environment (future src generator form factor?) + await Parallel.ForEachAsync( + toRename, + ct, + async (tuple, _) => + { + // First, let's add all of the locations of the declaration identifiers. + var (symbol, newName) = tuple; + if (includeDeclarations) + { + foreach (var syntaxRef in symbol.DeclaringSyntaxReferences) + { + var identifierLocation = IdentifierLocation( + await syntaxRef.GetSyntaxAsync(ct) + ); + if (identifierLocation is not null) + { + locations.TryAdd(identifierLocation, newName); + } + } + } + + // Next, let's find all the references of the symbols. + var references = await SymbolFinder.FindReferencesAsync( + symbol, + ctx.SourceProject?.Solution + ?? throw new ArgumentException("SourceProject is null"), + ct + ); + + foreach (var referencedSymbol in references) + { + foreach (var referencedSymbolLocation in referencedSymbol.Locations) + { + if ( + !includeCandidateLocations + && ( + referencedSymbolLocation.IsCandidateLocation + || referencedSymbolLocation.IsImplicit + ) + ) + { + continue; + } + + locations.TryAdd(referencedSymbolLocation.Location, newName); + } + } + } + ); + + logger.LogDebug("{} referencing locations for renames for {}", locations.Count, ctx.JobKey); + + // Now it's just a simple find and replace. + var sln = ctx.SourceProject.Solution; + var srcProjId = ctx.SourceProject.Id; + var testProjId = ctx.TestProject?.Id; + foreach ( + var (syntaxTree, renameLocations) in locations + .GroupBy(x => x.Key.SourceTree) + .Select(x => (x.Key, x.OrderByDescending(y => y.Key.SourceSpan))) + ) + { + if ( + syntaxTree is null + || sln.GetDocument(syntaxTree) is not { } doc + || (doc.Project.Id != srcProjId && doc.Project.Id != testProjId) + || await syntaxTree.GetTextAsync(ct) is not { } text + ) + { + continue; + } + + var ogText = text; + foreach (var (location, newName) in renameLocations) + { + var contents = ogText.GetSubText(location.SourceSpan).ToString(); + if (contents.Contains(' ')) + { + logger.LogWarning( + "Refusing to do unsafe rename/replacement of \"{}\" to \"{}\" at {}", + contents, + newName, + location.GetLineSpan() + ); + continue; + } + + if (logger.IsEnabled(LogLevel.Trace)) + { + logger.LogTrace( + "\"{}\" -> \"{}\" at {}", + contents, + newName, + location.GetLineSpan() + ); + } + + text = text.Replace(location.SourceSpan, newName); + } + + sln = doc.WithText(text).Project.Solution; + } + + ctx.SourceProject = sln.GetProject(srcProjId); + } } diff --git a/sources/SilkTouch/SilkTouch/Program.cs b/sources/SilkTouch/SilkTouch/Program.cs index 5e14a1a6af..afdd9425e8 100644 --- a/sources/SilkTouch/SilkTouch/Program.cs +++ b/sources/SilkTouch/SilkTouch/Program.cs @@ -12,19 +12,29 @@ using Microsoft.Extensions.Logging.Console; using Silk.NET.SilkTouch; using Silk.NET.SilkTouch.Caching; +using Silk.NET.SilkTouch.Logging; +using Silk.NET.SilkTouch.Utility; var logging = new Option(new[] { "--log-level", "-l" }, () => LogLevel.Information); var skip = new Option( new[] { "--skip", "-s" }, Array.Empty, - "A list of job names to skip." + "A list of job names to skip. Takes precendence over --only." ) { - Arity = ArgumentArity.ZeroOrMore + Arity = ArgumentArity.ZeroOrMore, +}; +var only = new Option( + new[] { "--only", "-o" }, + Array.Empty, + "A list of job names to run." +) +{ + Arity = ArgumentArity.ZeroOrMore, }; var configs = new Argument("configs", "Path(s) to JSON SilkTouch configuration(s)") { - Arity = ArgumentArity.OneOrMore + Arity = ArgumentArity.OneOrMore, }; var configOverrides = new Argument( "overrides", @@ -32,14 +42,14 @@ "Arguments recognisable by Microsoft.Extensions.Configuration.CommandLine to override JSON configuration items." ) { - Arity = ArgumentArity.ZeroOrMore + Arity = ArgumentArity.ZeroOrMore, }; var jobs = new Option( new[] { "--max-jobs", "-j" }, () => Environment.ProcessorCount, "Maximum number of parallel ClangSharp executions." ); -var rootCommand = new RootCommand { logging, skip, configs, configOverrides, jobs }; +var rootCommand = new RootCommand { logging, skip, only, configs, configOverrides, jobs }; rootCommand.SetHandler(async ctx => { // Create the ConfigurationBuilder with support for env var & command line overrides @@ -62,35 +72,62 @@ // Register MSBuild MSBuildLocator.RegisterDefaults(); + JobContext jobContext = new(); + var sp = new ServiceCollection() + .AddSingleton(jobContext) + .AddSingleton() .AddLogging(builder => { + builder.ClearProviders(); builder.AddSimpleConsole(opts => { opts.SingleLine = true; opts.ColorBehavior = Console.IsOutputRedirected ? LoggerColorBehavior.Disabled : LoggerColorBehavior.Default; - opts.IncludeScopes = false; + opts.IncludeScopes = true; + }); + + var loggerFactory = LoggerFactory.Create(builder => + { + builder.AddConsole(); }); + builder.SetMinimumLevel(ctx.ParseResult.GetValueForOption(logging)); + + builder.Services.AddSingleton(typeof(ILogger<>), typeof(SilkLogger<>)); }) + .AddSingleton() .AddOptions() .AddSilkTouch(config) .BuildServiceProvider(); + // Start the console renderer + var consoleRenderer = sp.GetService(); + var logger = sp.GetRequiredService>(); - var skipped = ctx.ParseResult.GetValueForOption(skip); + var skipped = SeparateCSV(ctx.ParseResult.GetValueForOption(skip)); + var jobsToRun = SeparateCSV(ctx.ParseResult.GetValueForOption(only)); + var generator = sp.GetRequiredService(); + var progressService = sp.GetRequiredService(); + await Parallel.ForEachAsync( config .GetSection("Jobs") .GetChildren() .Where(x => - skipped?.All(y => !x.Key.Equals(y, StringComparison.OrdinalIgnoreCase)) ?? true + (skipped?.All(y => !x.Key.Equals(y, StringComparison.OrdinalIgnoreCase)) ?? true) + && ( + jobsToRun is null + || jobsToRun.Count == 0 + || jobsToRun.Any(y => x.Key.Equals(y, StringComparison.OrdinalIgnoreCase)) + ) ), async (job, ct) => { + jobContext.JobKey = job.Key; await generator.RunAsync( job.Key, job, @@ -98,10 +135,35 @@ await generator.RunAsync( // ctx.ParseResult.GetValueForOption(jobs), ct ); + progressService.RemoveProgress(); } ); + + // Stop the renderer gracefully + consoleRenderer?.Stop(); + // workaround for dangling logging/socket engine threads Environment.Exit(0); }); await rootCommand.InvokeAsync(args); + +static List SeparateCSV(Span strs) +{ + if (strs.Length == 0) + return []; + + List result = []; + foreach (string str in strs) + { + if (str.Contains(',')) + { + result.AddRange(str.Split(',')); + } + else + { + result.Add(str); + } + } + return result; +} diff --git a/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs b/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs index 4809f51f0b..efe0fb0414 100644 --- a/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs +++ b/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs b/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs index 7ae2dfdee6..409abfbdaa 100644 --- a/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs +++ b/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs @@ -52,6 +52,8 @@ public async Task RunAsync( CancellationToken ct = default ) { + using var scope = logger.BeginScope("{} >", key); + var sw = Stopwatch.StartNew(); var job = jobConfig.Get() @@ -72,11 +74,15 @@ public async Task RunAsync( var srcProj = ctx.SourceProject; var testProj = ctx.TestProject; + var modPerf = new Dictionary(); + // Initialize the mods foreach (var jobMod in jobMods) { logger.LogDebug("Using mod {0} for {1}", jobMod.GetType().Name, key); + modPerf.Add(jobMod, Stopwatch.StartNew()); await jobMod.InitializeAsync(ctx, ct); + modPerf[jobMod].Stop(); if (ctx.SourceProject != srcProj || ctx.TestProject != testProj) { throw new InvalidOperationException( @@ -88,12 +94,25 @@ public async Task RunAsync( foreach (var jobMod in jobMods) { logger.LogInformation("Executing {} for {}...", jobMod.GetType().Name, key); + modPerf[jobMod].Start(); await jobMod.ExecuteAsync(ctx, ct); + modPerf[jobMod].Stop(); } // Manually dispose so that we don't do this when generation fails (await using is too clever). await ctx.DisposeAsync(); + logger.LogInformation( + "Job Mod Performance Data for {} \n{}", + key, + string.Join( + "\n", + modPerf.Select(kvp => + $"{kvp.Key.GetType().Name} : {kvp.Value.Elapsed.TotalSeconds} seconds" + ) + ) + ); + // Output the generated bindings logger.LogInformation( "Bindings generation for {} completed in {} seconds.", diff --git a/sources/SilkTouch/SilkTouch/Sources/IInputResolver.cs b/sources/SilkTouch/SilkTouch/Sources/IInputResolver.cs index cd067d39e9..afb8584b66 100644 --- a/sources/SilkTouch/SilkTouch/Sources/IInputResolver.cs +++ b/sources/SilkTouch/SilkTouch/Sources/IInputResolver.cs @@ -4,7 +4,9 @@ using System.Threading.Tasks; using ClangSharp; using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Logging; using Silk.NET.SilkTouch.Mods; +using Silk.NET.SilkTouch.Utility; namespace Silk.NET.SilkTouch.Sources; @@ -33,9 +35,11 @@ async Task ResolvePath(string path) => /// Resolves all of the paths referenced in the given response file in place. /// /// The response files. + /// the progress service to use /// An asynchronous task. - async Task ResolveInPlace(IList rsps) + async Task ResolveInPlace(IList rsps, IProgressService? progressService = null) { + progressService?.SetTask("Resolving File Paths"); // Resolve any foreign paths for (var i = 0; i < rsps.Count; i++) { @@ -130,6 +134,7 @@ await ResolvePath(rsp.GeneratorConfiguration.OutputLocation), ) } }; + progressService?.SetProgress(i / (float)rsps.Count); } } diff --git a/sources/SilkTouch/SilkTouch/Utility/KeyedStringTree.cs b/sources/SilkTouch/SilkTouch/Utility/KeyedStringTree.cs new file mode 100644 index 0000000000..d402de6045 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Utility/KeyedStringTree.cs @@ -0,0 +1,167 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics.CodeAnalysis; + +namespace Silk.NET.SilkTouch.Utility +{ + /// + /// Easily combinable and searchable tree structure + /// + public class KeyedStringTree + { + ReaderWriterLockSlim _concurrencyLock = new(); + + /// + /// ctor for + /// + /// + /// + public KeyedStringTree(string rootKey, string rootValue) + { + RootNode = new(rootKey, rootValue); + } + + Node RootNode; + + /// + /// Finds a node with a given value + /// + /// key to search for + /// found node or null + /// Whether node was present in the tree + public bool FindNode(string key, [NotNullWhen(true)] out Node? node) + { + _concurrencyLock.EnterReadLock(); + bool ret = _FindNode(key, out node); + _concurrencyLock.ExitReadLock(); + return ret; + } + + private bool _FindNode(string key, [NotNullWhen(true)] out Node? node) + { + node = null; + if (RootNode is null) + { + return false; + } + + Queue nodesToCheck = new(); + + if (RootNode.Key == key) + { + node = RootNode; + return true; + } + + nodesToCheck.Enqueue(RootNode); + + while (nodesToCheck.TryDequeue(out Node? check)) + { + foreach (KeyValuePair child in check.Children) + { + if (child.Value.Key == key) + { + node = child.Value; + return true; + } + + nodesToCheck.Enqueue(child.Value); + } + } + + return false; + } + + /// + /// Attempts to add another Tree into this one by combining the root with a matching node + /// + /// + /// Whether combination was successful + public bool TryConsume(KeyedStringTree other) + { + _concurrencyLock.EnterWriteLock(); + if (!_FindNode(other.RootNode.Key, out Node? node)) + { + _concurrencyLock.ExitWriteLock(); + return false; + } + + CombineNodes(node, other.RootNode); + _concurrencyLock.ExitWriteLock(); + return true; + } + + /// + /// Attempts to add a new node to some parent node + /// + /// key of the parent node + /// key of the new child node + /// value of the new child node + /// if the parent node was found in the tree + public bool TryAddNode(string parentKey, string newNodeKey, string newNodeValue) + { + _concurrencyLock.EnterWriteLock(); + if (!_FindNode(parentKey, out Node? node)) + { + _concurrencyLock.ExitWriteLock(); + return false; + } + + if (!node.Children.ContainsKey(newNodeKey)) + { + node.Children.Add(newNodeKey, new(newNodeKey, newNodeValue, node)); + } + _concurrencyLock.ExitWriteLock(); + return true; + } + + private void CombineNodes(Node baseNode, Node additiveNode) + { + foreach (KeyValuePair child in additiveNode.Children) + { + if (baseNode.Children.TryGetValue(child.Key, out Node? baseChild)) + { + CombineNodes(baseChild, child.Value); + } + else + { + baseNode.Children.Add(child.Key, child.Value); + } + } + } + + /// + /// Node from a + /// + public class Node + { + internal Node(string key, string value, Node? parent = null) + { + Key = key; + Value = value; + Parent = parent; + } + + /// + /// Key at this node + /// + public string Key; + + /// + /// Value at this node + /// + public string Value; + + /// + /// All children for this node + /// + public Dictionary Children = new(); + + /// + /// this node's parent or null if root node + /// + public Node? Parent; + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12/D3D12TokenizedProgramFormat/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3d12/D3D12TokenizedProgramFormat/DirectX.Manual.cs new file mode 100644 index 0000000000..f0e523477b --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/D3D12TokenizedProgramFormat/DirectX.Manual.cs @@ -0,0 +1,603 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from D3D12TokenizedProgramFormat.hpp in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D10; +using static Silk.NET.DirectX.D3D10_SB_EXTENDED_OPERAND_TYPE; +using static Silk.NET.DirectX.D3D10_SB_OPCODE_TYPE; +using static Silk.NET.DirectX.D3D11; +using static Silk.NET.DirectX.D3D12; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static uint D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_MASK(uint Coord) => + 0x0000000Fu << D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_SHIFT(Coord); + + public static int D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_SHIFT(uint Coord) => + 9 + 4 * ((int)(Coord) & D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_COORD_MASK); + + public static uint D3D10_SB_OPERAND_4_COMPONENT_MASK(int ComponentName) => + (1u << (D3D10_SB_OPERAND_4_COMPONENT_MASK_SHIFT + ComponentName)) + & D3D10_SB_OPERAND_4_COMPONENT_MASK_MASK; + + public static uint D3D10_SB_OPERAND_INDEX_REPRESENTATION_MASK(int Dim) => + 0x3u << D3D10_SB_OPERAND_INDEX_REPRESENTATION_SHIFT(Dim); + + public static int D3D10_SB_OPERAND_INDEX_REPRESENTATION_SHIFT(int Dim) => 22 + 3 * (Dim & 3); + + public static D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN DECODE_D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN( + uint OpcodeToken0 + ) => + (D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN)( + (OpcodeToken0 & D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN_MASK) + >> D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN_SHIFT + ); + + public static D3D10_SB_CUSTOMDATA_CLASS DECODE_D3D10_SB_CUSTOMDATA_CLASS( + uint CustomDataDescTok + ) => + (D3D10_SB_CUSTOMDATA_CLASS)( + (CustomDataDescTok & D3D10_SB_CUSTOMDATA_CLASS_MASK) >> D3D10_SB_CUSTOMDATA_CLASS_SHIFT + ); + + public static D3D10_SB_EXTENDED_OPCODE_TYPE DECODE_D3D10_SB_EXTENDED_OPCODE_TYPE( + uint OpcodeToken1 + ) => (D3D10_SB_EXTENDED_OPCODE_TYPE)(OpcodeToken1 & D3D10_SB_EXTENDED_OPCODE_TYPE_MASK); + + public static D3D10_SB_EXTENDED_OPERAND_TYPE DECODE_D3D10_SB_EXTENDED_OPERAND_TYPE( + uint OperandToken1 + ) => (D3D10_SB_EXTENDED_OPERAND_TYPE)(OperandToken1 & D3D10_SB_EXTENDED_OPERAND_TYPE_MASK); + + public static uint DECODE_D3D10_SB_GLOBAL_FLAGS(uint OpcodeToken0) => + OpcodeToken0 & D3D10_SB_GLOBAL_FLAGS_MASK; + + public static D3D10_SB_PRIMITIVE DECODE_D3D10_SB_GS_INPUT_PRIMITIVE(uint OpcodeToken0) => + (D3D10_SB_PRIMITIVE)( + (OpcodeToken0 & D3D10_SB_GS_INPUT_PRIMITIVE_MASK) >> D3D10_SB_GS_INPUT_PRIMITIVE_SHIFT + ); + + public static D3D10_SB_PRIMITIVE_TOPOLOGY DECODE_D3D10_SB_GS_OUTPUT_PRIMITIVE_TOPOLOGY( + uint OpcodeToken0 + ) => + (D3D10_SB_PRIMITIVE_TOPOLOGY)( + (OpcodeToken0 & D3D10_SB_GS_OUTPUT_PRIMITIVE_TOPOLOGY_MASK) + >> D3D10_SB_GS_OUTPUT_PRIMITIVE_TOPOLOGY_SHIFT + ); + + public static D3D10_SB_INTERPOLATION_MODE DECODE_D3D10_SB_INPUT_INTERPOLATION_MODE( + uint OpcodeToken0 + ) => + (D3D10_SB_INTERPOLATION_MODE)( + (OpcodeToken0 & D3D10_SB_INPUT_INTERPOLATION_MODE_MASK) + >> D3D10_SB_INPUT_INTERPOLATION_MODE_SHIFT + ); + + public static D3D10_SB_INSTRUCTION_RETURN_TYPE DECODE_D3D10_SB_INSTRUCTION_RETURN_TYPE( + uint OpcodeToken0 + ) => + (D3D10_SB_INSTRUCTION_RETURN_TYPE)( + (OpcodeToken0 & D3D10_SB_INSTRUCTION_RETURN_TYPE_MASK) + >> D3D10_SB_INSTRUCTION_RETURN_TYPE_SHIFT + ); + + public static D3D10_SB_INSTRUCTION_TEST_BOOLEAN DECODE_D3D10_SB_INSTRUCTION_TEST_BOOLEAN( + uint OpcodeToken0 + ) => + (D3D10_SB_INSTRUCTION_TEST_BOOLEAN)( + (OpcodeToken0 & D3D10_SB_INSTRUCTION_TEST_BOOLEAN_MASK) + >> D3D10_SB_INSTRUCTION_TEST_BOOLEAN_SHIFT + ); + + public static D3D10_SB_NAME DECODE_D3D10_SB_NAME(uint NameToken) => + (D3D10_SB_NAME)(NameToken & D3D10_SB_NAME_MASK); + + public static D3D10_SB_OPCODE_TYPE DECODE_D3D10_SB_OPCODE_TYPE(uint OpcodeToken0) => + (D3D10_SB_OPCODE_TYPE)(OpcodeToken0 & D3D10_SB_OPCODE_TYPE_MASK); + + public static uint DECODE_D3D10_SB_OPERAND_4_COMPONENT_MASK(uint OperandToken0) => + OperandToken0 & D3D10_SB_OPERAND_4_COMPONENT_MASK_MASK; + + public static D3D10_SB_4_COMPONENT_NAME DECODE_D3D10_SB_OPERAND_4_COMPONENT_SELECT_1( + uint OperandToken0 + ) => + (D3D10_SB_4_COMPONENT_NAME)( + (OperandToken0 & D3D10_SB_OPERAND_4_COMPONENT_SELECT_1_MASK) + >> D3D10_SB_OPERAND_4_COMPONENT_SELECT_1_SHIFT + ); + + public static D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE DECODE_D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE( + uint OperandToken0 + ) => + (D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE)( + (OperandToken0 & D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE_MASK) + >> D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE_SHIFT + ); + + public static uint DECODE_D3D10_SB_OPERAND_4_COMPONENT_SWIZZLE(uint OperandToken0) => + OperandToken0 & D3D10_SB_OPERAND_4_COMPONENT_SWIZZLE_MASK; + + public static D3D10_SB_4_COMPONENT_NAME DECODE_D3D10_SB_OPERAND_4_COMPONENT_SWIZZLE_SOURCE( + uint OperandToken0, + int DestComp + ) => + (D3D10_SB_4_COMPONENT_NAME)( + ( + OperandToken0 + >> ( + D3D10_SB_OPERAND_4_COMPONENT_SWIZZLE_SHIFT + + 2 * ((DestComp) & D3D10_SB_4_COMPONENT_NAME_MASK) + ) + ) & D3D10_SB_4_COMPONENT_NAME_MASK + ); + + public static D3D10_SB_OPERAND_INDEX_DIMENSION DECODE_D3D10_SB_OPERAND_INDEX_DIMENSION( + uint OperandToken0 + ) => + (D3D10_SB_OPERAND_INDEX_DIMENSION)( + (OperandToken0 & D3D10_SB_OPERAND_INDEX_DIMENSION_MASK) + >> D3D10_SB_OPERAND_INDEX_DIMENSION_SHIFT + ); + + public static D3D10_SB_OPERAND_INDEX_REPRESENTATION DECODE_D3D10_SB_OPERAND_INDEX_REPRESENTATION( + int Dim, + uint OperandToken0 + ) => + (D3D10_SB_OPERAND_INDEX_REPRESENTATION)( + (OperandToken0 & D3D10_SB_OPERAND_INDEX_REPRESENTATION_MASK(Dim)) + >> D3D10_SB_OPERAND_INDEX_REPRESENTATION_SHIFT(Dim) + ); + + public static D3D10_SB_OPERAND_MODIFIER DECODE_D3D10_SB_OPERAND_MODIFIER(uint OperandToken1) => + (D3D10_SB_OPERAND_MODIFIER)( + (OperandToken1 & D3D10_SB_OPERAND_MODIFIER_MASK) >> D3D10_SB_OPERAND_MODIFIER_SHIFT + ); + + public static D3D10_SB_OPERAND_NUM_COMPONENTS DECODE_D3D10_SB_OPERAND_NUM_COMPONENTS( + uint OperandToken0 + ) => ((D3D10_SB_OPERAND_NUM_COMPONENTS)(OperandToken0 & D3D10_SB_OPERAND_NUM_COMPONENTS_MASK)); + + public static D3D10_SB_OPERAND_TYPE DECODE_D3D10_SB_OPERAND_TYPE(uint OperandToken0) => + (D3D10_SB_OPERAND_TYPE)( + (OperandToken0 & D3D10_SB_OPERAND_TYPE_MASK) >> D3D10_SB_OPERAND_TYPE_SHIFT + ); + + public static D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE DECODE_D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE( + uint OpcodeToken0 + ) => + (D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE)( + (OpcodeToken0 & D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE_MASK) + >> D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE_SHIFT + ); + + public static D3D10_SB_RESOURCE_DIMENSION DECODE_D3D10_SB_RESOURCE_DIMENSION( + uint OpcodeToken0 + ) => + (D3D10_SB_RESOURCE_DIMENSION)( + (OpcodeToken0 & D3D10_SB_RESOURCE_DIMENSION_MASK) >> D3D10_SB_RESOURCE_DIMENSION_SHIFT + ); + + public static D3D10_SB_RESOURCE_RETURN_TYPE DECODE_D3D10_SB_RESOURCE_RETURN_TYPE( + uint ResourceReturnTypeToken, + int Component + ) => + (D3D10_SB_RESOURCE_RETURN_TYPE)( + (ResourceReturnTypeToken >> (Component * D3D10_SB_RESOURCE_RETURN_TYPE_NUMBITS)) + & D3D10_SB_RESOURCE_RETURN_TYPE_MASK + ); + + public static uint DECODE_D3D10_SB_RESOURCE_SAMPLE_COUNT(uint OpcodeToken0) => + (uint)( + (OpcodeToken0 & D3D10_SB_RESOURCE_SAMPLE_COUNT_MASK) + >> D3D10_SB_RESOURCE_SAMPLE_COUNT_SHIFT + ); + + public static D3D10_SB_SAMPLER_MODE DECODE_D3D10_SB_SAMPLER_MODE(uint OpcodeToken0) => + (D3D10_SB_SAMPLER_MODE)( + (OpcodeToken0 & D3D10_SB_SAMPLER_MODE_MASK) >> D3D10_SB_SAMPLER_MODE_SHIFT + ); + + public static uint DECODE_D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH(uint OpcodeToken0) => + (OpcodeToken0 & D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH_MASK) + >> D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH_SHIFT; + + public static uint DECODE_D3D10_SB_TOKENIZED_PROGRAM_LENGTH(uint LenTok) => LenTok; + + public static uint DECODE_D3D10_SB_TOKENIZED_PROGRAM_MAJOR_VERSION(uint VerTok) => + (VerTok & D3D10_SB_TOKENIZED_PROGRAM_MAJOR_VERSION_MASK) + >> D3D10_SB_TOKENIZED_PROGRAM_MAJOR_VERSION_SHIFT; + + public static uint DECODE_D3D10_SB_TOKENIZED_PROGRAM_MINOR_VERSION(uint VerTok) => + VerTok & D3D10_SB_TOKENIZED_PROGRAM_MINOR_VERSION_MASK; + + public static D3D10_SB_TOKENIZED_PROGRAM_TYPE DECODE_D3D10_SB_TOKENIZED_PROGRAM_TYPE( + uint VerTok + ) => + ( + (D3D10_SB_TOKENIZED_PROGRAM_TYPE)( + (VerTok & D3D10_SB_TOKENIZED_PROGRAM_TYPE_MASK) + >> D3D10_SB_TOKENIZED_PROGRAM_TYPE_SHIFT + ) + ); + + public static uint DECODE_D3D11_SB_ACCESS_COHERENCY_FLAGS(uint OperandToken0) => + OperandToken0 & D3D11_SB_ACCESS_COHERENCY_MASK; + + public static D3D10_SB_RESOURCE_DIMENSION DECODE_D3D11_SB_EXTENDED_RESOURCE_DIMENSION( + uint OpcodeTokenN + ) => + (D3D10_SB_RESOURCE_DIMENSION)( + ((OpcodeTokenN) & D3D11_SB_EXTENDED_RESOURCE_DIMENSION_MASK) + >> D3D11_SB_EXTENDED_RESOURCE_DIMENSION_SHIFT + ); + + public static uint DECODE_D3D11_SB_EXTENDED_RESOURCE_DIMENSION_STRUCTURE_STRIDE( + uint OpcodeTokenN + ) => + (OpcodeTokenN & D3D11_SB_EXTENDED_RESOURCE_DIMENSION_STRUCTURE_STRIDE_MASK) + >> D3D11_SB_EXTENDED_RESOURCE_DIMENSION_STRUCTURE_STRIDE_SHIFT; + + public static D3D10_SB_RESOURCE_RETURN_TYPE DECODE_D3D11_SB_EXTENDED_RESOURCE_RETURN_TYPE( + uint OpcodeTokenN, + int Component + ) => + (D3D10_SB_RESOURCE_RETURN_TYPE)( + ( + OpcodeTokenN + >> ( + Component * D3D10_SB_RESOURCE_RETURN_TYPE_NUMBITS + + D3D11_SB_EXTENDED_RESOURCE_RETURN_TYPE_SHIFT + ) + ) & D3D10_SB_RESOURCE_RETURN_TYPE_MASK + ); + + public static uint DECODE_D3D11_SB_INPUT_CONTROL_POINT_COUNT(uint OpcodeToken0) => + (uint)( + (OpcodeToken0 & D3D11_SB_INPUT_CONTROL_POINT_COUNT_MASK) + >> D3D11_SB_INPUT_CONTROL_POINT_COUNT_SHIFT + ); + + public static uint DECODE_D3D11_SB_INSTRUCTION_PRECISE_VALUES(uint OpcodeToken0) => + ( + (OpcodeToken0 & D3D11_SB_INSTRUCTION_PRECISE_VALUES_MASK) + >> D3D11_SB_INSTRUCTION_PRECISE_VALUES_SHIFT + ); + + public static uint DECODE_D3D11_SB_INTERFACE_ARRAY_LENGTH(uint OpcodeToken0) => + (OpcodeToken0 & D3D11_SB_INTERFACE_ARRAY_LENGTH_MASK) + >> D3D11_SB_INTERFACE_ARRAY_LENGTH_SHIFT; + + public static bool DECODE_D3D11_SB_INTERFACE_INDEXED_BIT(uint OpcodeToken0) => + ( + (OpcodeToken0 & D3D11_SB_INTERFACE_INDEXED_BIT_MASK) + >> D3D11_SB_INTERFACE_INDEXED_BIT_SHIFT + ) != 0; + + public static uint DECODE_D3D11_SB_INTERFACE_TABLE_LENGTH(uint OpcodeToken0) => + (OpcodeToken0 & D3D11_SB_INTERFACE_TABLE_LENGTH_MASK) + >> D3D11_SB_INTERFACE_TABLE_LENGTH_SHIFT; + + public static D3D11_SB_OPERAND_MIN_PRECISION DECODE_D3D11_SB_OPERAND_MIN_PRECISION( + uint OperandToken1 + ) => + ( + (D3D11_SB_OPERAND_MIN_PRECISION)( + ((OperandToken1) & D3D11_SB_OPERAND_MIN_PRECISION_MASK) + >> D3D11_SB_OPERAND_MIN_PRECISION_SHIFT + ) + ); + + public static uint DECODE_D3D11_SB_OUTPUT_CONTROL_POINT_COUNT(uint OpcodeToken0) => + (OpcodeToken0 & D3D11_SB_OUTPUT_CONTROL_POINT_COUNT_MASK) + >> D3D11_SB_OUTPUT_CONTROL_POINT_COUNT_SHIFT; + + public static uint DECODE_D3D11_SB_RESOURCE_FLAGS(uint OperandToken0) => + OperandToken0 & D3D11_SB_RESOURCE_FLAGS_MASK; + + public static uint DECODE_D3D11_SB_SYNC_FLAGS(uint OperandToken0) => + OperandToken0 & D3D11_SB_SYNC_FLAGS_MASK; + + public static D3D11_SB_TESSELLATOR_DOMAIN DECODE_D3D11_SB_TESS_DOMAIN(uint OpcodeToken0) => + (D3D11_SB_TESSELLATOR_DOMAIN)( + (OpcodeToken0 & D3D11_SB_TESS_DOMAIN_MASK) >> D3D11_SB_TESS_DOMAIN_SHIFT + ); + + public static D3D11_SB_TESSELLATOR_OUTPUT_PRIMITIVE DECODE_D3D11_SB_TESS_OUTPUT_PRIMITIVE( + uint OpcodeToken0 + ) => + (D3D11_SB_TESSELLATOR_OUTPUT_PRIMITIVE)( + (OpcodeToken0 & D3D11_SB_TESS_OUTPUT_PRIMITIVE_MASK) + >> D3D11_SB_TESS_OUTPUT_PRIMITIVE_SHIFT + ); + + public static D3D11_SB_TESSELLATOR_PARTITIONING DECODE_D3D11_SB_TESS_PARTITIONING( + uint OpcodeToken0 + ) => + (D3D11_SB_TESSELLATOR_PARTITIONING)( + (OpcodeToken0 & D3D11_SB_TESS_PARTITIONING_MASK) >> D3D11_SB_TESS_PARTITIONING_SHIFT + ); + + public static uint DECODE_D3D11_SB_UAV_FLAGS(uint OperandToken0) => + OperandToken0 & D3D11_SB_UAV_FLAGS_MASK; + + public static uint DECODE_D3D12_SB_OPERAND_NON_UNIFORM(uint OperandToken1) => + (OperandToken1 & D3D12_SB_OPERAND_NON_UNIFORM_MASK) >> D3D12_SB_OPERAND_NON_UNIFORM_SHIFT; + + public static int DECODE_IMMEDIATE_D3D10_SB_ADDRESS_OFFSET(uint Coord, uint OpcodeToken1) => + (int)( + (OpcodeToken1 & D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_MASK(Coord)) + >> (D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_SHIFT(Coord)) + ); + + public static bool DECODE_IS_D3D10_SB_INSTRUCTION_SATURATE_ENABLED(uint OpcodeToken0) => + (OpcodeToken0 & D3D10_SB_INSTRUCTION_SATURATE_MASK) != 0; + + public static bool DECODE_IS_D3D10_SB_OPCODE_EXTENDED(uint OpcodeToken0) => + ((OpcodeToken0 & D3D10_SB_OPCODE_EXTENDED_MASK) >> D3D10_SB_OPCODE_EXTENDED_SHIFT) != 0; + + public static bool DECODE_IS_D3D10_SB_OPERAND_DOUBLE_EXTENDED(uint OperandToken1) => + ( + (OperandToken1 & D3D10_SB_OPERAND_DOUBLE_EXTENDED_MASK) + >> D3D10_SB_OPERAND_DOUBLE_EXTENDED_SHIFT + ) != 0; + + public static bool DECODE_IS_D3D10_SB_OPERAND_EXTENDED(uint OperandToken0) => + ((OperandToken0 & D3D10_SB_OPERAND_EXTENDED_MASK) >> D3D10_SB_OPERAND_EXTENDED_SHIFT) != 0; + + public static uint ENCODE_D3D10_SB_CUSTOMDATA_CLASS( + D3D10_SB_CUSTOMDATA_CLASS CustomDataClass + ) => + ENCODE_D3D10_SB_OPCODE_TYPE(D3D10_SB_OPCODE_CUSTOMDATA) + | ( + ((uint)(CustomDataClass) << D3D10_SB_CUSTOMDATA_CLASS_SHIFT) + & D3D10_SB_CUSTOMDATA_CLASS_MASK + ); + + public static uint ENCODE_D3D10_SB_D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN( + D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN AccessPattern + ) => + ((uint)(AccessPattern) << D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN_SHIFT) + & D3D10_SB_CONSTANT_BUFFER_ACCESS_PATTERN_MASK; + + public static uint ENCODE_D3D10_SB_EXTENDED_OPCODE_TYPE( + D3D10_SB_EXTENDED_OPCODE_TYPE ExtOpcodeType + ) => (uint)(ExtOpcodeType) & D3D10_SB_EXTENDED_OPCODE_TYPE_MASK; + + public static uint ENCODE_D3D10_SB_EXTENDED_OPERAND_MODIFIER( + D3D10_SB_OPERAND_MODIFIER SourceMod + ) => + (((uint)(SourceMod) << D3D10_SB_OPERAND_MODIFIER_SHIFT) & D3D10_SB_OPERAND_MODIFIER_MASK) + | ENCODE_D3D10_SB_EXTENDED_OPERAND_TYPE(D3D10_SB_EXTENDED_OPERAND_MODIFIER) + | ENCODE_D3D10_SB_OPERAND_DOUBLE_EXTENDED(false); + + public static uint ENCODE_D3D10_SB_EXTENDED_OPERAND_TYPE( + D3D10_SB_EXTENDED_OPERAND_TYPE ExtOperandType + ) => (uint)(ExtOperandType) & D3D10_SB_EXTENDED_OPERAND_TYPE_MASK; + + public static uint ENCODE_D3D10_SB_GLOBAL_FLAGS(uint Flags) => + Flags & D3D10_SB_GLOBAL_FLAGS_MASK; + + public static uint ENCODE_D3D10_SB_GS_INPUT_PRIMITIVE(D3D10_SB_PRIMITIVE Prim) => + ((uint)(Prim) << D3D10_SB_GS_INPUT_PRIMITIVE_SHIFT) & D3D10_SB_GS_INPUT_PRIMITIVE_MASK; + + public static uint ENCODE_D3D10_SB_GS_OUTPUT_PRIMITIVE_TOPOLOGY( + D3D10_SB_PRIMITIVE_TOPOLOGY PrimTopology + ) => + ((uint)(PrimTopology) << D3D10_SB_GS_OUTPUT_PRIMITIVE_TOPOLOGY_SHIFT) + & D3D10_SB_GS_OUTPUT_PRIMITIVE_TOPOLOGY_MASK; + + public static uint ENCODE_D3D10_SB_INPUT_INTERPOLATION_MODE( + D3D10_SB_INTERPOLATION_MODE InterpolationMode + ) => + ((uint)(InterpolationMode) << D3D10_SB_INPUT_INTERPOLATION_MODE_SHIFT) + & D3D10_SB_INPUT_INTERPOLATION_MODE_MASK; + + public static uint ENCODE_D3D10_SB_INSTRUCTION_RETURN_TYPE( + D3D10_SB_INSTRUCTION_RETURN_TYPE ReturnType + ) => + ((uint)(ReturnType) << D3D10_SB_INSTRUCTION_RETURN_TYPE_SHIFT) + & D3D10_SB_INSTRUCTION_RETURN_TYPE_MASK; + + public static uint ENCODE_D3D10_SB_INSTRUCTION_SATURATE(bool bSat) => + bSat ? D3D10_SB_INSTRUCTION_SATURATE_MASK : 0u; + + public static uint ENCODE_D3D10_SB_INSTRUCTION_TEST_BOOLEAN( + D3D10_SB_INSTRUCTION_TEST_BOOLEAN Boolean + ) => + ((uint)(Boolean) << D3D10_SB_INSTRUCTION_TEST_BOOLEAN_SHIFT) + & D3D10_SB_INSTRUCTION_TEST_BOOLEAN_MASK; + + public static uint ENCODE_D3D10_SB_NAME(D3D10_SB_NAME Name) => + (uint)(Name) & D3D10_SB_NAME_MASK; + + public static uint ENCODE_D3D10_SB_OPCODE_EXTENDED(bool bExtended) => + bExtended ? D3D10_SB_OPCODE_EXTENDED_MASK : 0u; + + public static uint ENCODE_D3D10_SB_OPCODE_TYPE(D3D10_SB_OPCODE_TYPE OpcodeName) => + (uint)(OpcodeName) & D3D10_SB_OPCODE_TYPE_MASK; + + public static uint ENCODE_D3D10_SB_OPERAND_4_COMPONENT_MASK(uint ComponentMask) => + ComponentMask & D3D10_SB_OPERAND_4_COMPONENT_MASK_MASK; + + public static uint ENCODE_D3D10_SB_OPERAND_4_COMPONENT_SELECT_1( + D3D10_SB_4_COMPONENT_NAME SelectedComp + ) => + ((uint)(SelectedComp) << D3D10_SB_OPERAND_4_COMPONENT_SELECT_1_SHIFT) + & D3D10_SB_OPERAND_4_COMPONENT_SELECT_1_MASK; + + public static uint ENCODE_D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE( + D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE SelectionMode + ) => + ((uint)(SelectionMode) << D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE_SHIFT) + & D3D10_SB_OPERAND_4_COMPONENT_SELECTION_MODE_MASK; + + public static uint ENCODE_D3D10_SB_OPERAND_4_COMPONENT_SWIZZLE( + D3D10_SB_4_COMPONENT_NAME XSrc, + D3D10_SB_4_COMPONENT_NAME YSrc, + D3D10_SB_4_COMPONENT_NAME ZSrc, + D3D10_SB_4_COMPONENT_NAME WSrc + ) => + ( + ((uint)(XSrc) & D3D10_SB_4_COMPONENT_NAME_MASK) + | (((uint)(YSrc) & D3D10_SB_4_COMPONENT_NAME_MASK) << 2) + | (((uint)(ZSrc) & D3D10_SB_4_COMPONENT_NAME_MASK) << 4) + | (((uint)(WSrc) & D3D10_SB_4_COMPONENT_NAME_MASK) << 6) + ) << D3D10_SB_OPERAND_4_COMPONENT_SWIZZLE_SHIFT; + + public static uint ENCODE_D3D10_SB_OPERAND_DOUBLE_EXTENDED(bool bExtended) => + bExtended ? D3D10_SB_OPERAND_DOUBLE_EXTENDED_MASK : 0; + + public static uint ENCODE_D3D10_SB_OPERAND_EXTENDED(bool bExtended) => + bExtended ? D3D10_SB_OPERAND_EXTENDED_MASK : 0u; + + public static uint ENCODE_D3D10_SB_OPERAND_INDEX_DIMENSION( + D3D10_SB_OPERAND_INDEX_DIMENSION OperandIndexDim + ) => + ((uint)(OperandIndexDim) << D3D10_SB_OPERAND_INDEX_DIMENSION_SHIFT) + & D3D10_SB_OPERAND_INDEX_DIMENSION_MASK; + + public static uint ENCODE_D3D10_SB_OPERAND_INDEX_REPRESENTATION( + int Dim, + D3D10_SB_OPERAND_INDEX_REPRESENTATION IndexRepresentation + ) => + ((uint)(IndexRepresentation) << D3D10_SB_OPERAND_INDEX_REPRESENTATION_SHIFT(Dim)) + & D3D10_SB_OPERAND_INDEX_REPRESENTATION_MASK(Dim); + + public static uint ENCODE_D3D10_SB_OPERAND_NUM_COMPONENTS( + D3D10_SB_OPERAND_NUM_COMPONENTS NumComp + ) => (uint)(NumComp) & D3D10_SB_OPERAND_NUM_COMPONENTS_MASK; + + public static uint ENCODE_D3D10_SB_OPERAND_TYPE(D3D10_SB_OPERAND_TYPE OperandType) => + ((uint)(OperandType) << D3D10_SB_OPERAND_TYPE_SHIFT) & D3D10_SB_OPERAND_TYPE_MASK; + + public static uint ENCODE_D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE( + D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE ReturnType + ) => + ((uint)(ReturnType) << D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE_SHIFT) + & D3D10_SB_RESINFO_INSTRUCTION_RETURN_TYPE_MASK; + + public static uint ENCODE_D3D10_SB_RESOURCE_DIMENSION( + D3D10_SB_RESOURCE_DIMENSION ResourceDim + ) => + ((uint)(ResourceDim) << D3D10_SB_RESOURCE_DIMENSION_SHIFT) + & D3D10_SB_RESOURCE_DIMENSION_MASK; + + public static uint ENCODE_D3D10_SB_RESOURCE_RETURN_TYPE( + D3D10_SB_RESOURCE_RETURN_TYPE ReturnType, + int Component + ) => + ((uint)(ReturnType) & D3D10_SB_RESOURCE_RETURN_TYPE_MASK) + << (Component * D3D10_SB_RESOURCE_RETURN_TYPE_NUMBITS); + + public static uint ENCODE_D3D10_SB_RESOURCE_SAMPLE_COUNT(uint SampleCount) => + (((SampleCount > 127) ? 127 : SampleCount) << D3D10_SB_RESOURCE_SAMPLE_COUNT_SHIFT) + & D3D10_SB_RESOURCE_SAMPLE_COUNT_MASK; + + public static uint ENCODE_D3D10_SB_SAMPLER_MODE(D3D10_SB_SAMPLER_MODE SamplerMode) => + ((uint)(SamplerMode) << D3D10_SB_SAMPLER_MODE_SHIFT) & D3D10_SB_SAMPLER_MODE_MASK; + + public static uint ENCODE_D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH(uint Length) => + (Length << D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH_SHIFT) + & D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH_MASK; + + public static uint ENCODE_D3D10_SB_TOKENIZED_PROGRAM_LENGTH(uint Length) => Length; + + public static uint ENCODE_D3D10_SB_TOKENIZED_PROGRAM_VERSION_TOKEN( + D3D10_SB_TOKENIZED_PROGRAM_TYPE ProgType, + uint MajorVer, + uint MinorVer + ) => + ( + ((uint)(ProgType) << D3D10_SB_TOKENIZED_PROGRAM_TYPE_SHIFT) + & D3D10_SB_TOKENIZED_PROGRAM_TYPE_MASK + ) + | ( + ( + (MajorVer << D3D10_SB_TOKENIZED_PROGRAM_MAJOR_VERSION_SHIFT) + & D3D10_SB_TOKENIZED_PROGRAM_MAJOR_VERSION_MASK + ) + ) + | (MinorVer & D3D10_SB_TOKENIZED_PROGRAM_MINOR_VERSION_MASK); + + public static uint ENCODE_D3D11_SB_ACCESS_COHERENCY_FLAGS(uint Flags) => + Flags & D3D11_SB_ACCESS_COHERENCY_MASK; + + public static uint ENCODE_D3D11_SB_EXTENDED_RESOURCE_DIMENSION( + D3D10_SB_RESOURCE_DIMENSION ResourceDim + ) => + ((uint)(ResourceDim) << D3D11_SB_EXTENDED_RESOURCE_DIMENSION_SHIFT) + & D3D11_SB_EXTENDED_RESOURCE_DIMENSION_MASK; + + public static uint ENCODE_D3D11_SB_EXTENDED_RESOURCE_DIMENSION_STRUCTURE_STRIDE(uint Stride) => + (Stride << D3D11_SB_EXTENDED_RESOURCE_DIMENSION_STRUCTURE_STRIDE_SHIFT) + & D3D11_SB_EXTENDED_RESOURCE_DIMENSION_STRUCTURE_STRIDE_MASK; + + public static uint ENCODE_D3D11_SB_EXTENDED_RESOURCE_RETURN_TYPE( + D3D10_SB_RESOURCE_RETURN_TYPE ReturnType, + int Component + ) => + ((uint)(ReturnType) & D3D10_SB_RESOURCE_RETURN_TYPE_MASK) + << ( + Component * D3D10_SB_RESOURCE_RETURN_TYPE_NUMBITS + + D3D11_SB_EXTENDED_RESOURCE_RETURN_TYPE_SHIFT + ); + + public static uint ENCODE_D3D11_SB_INPUT_CONTROL_POINT_COUNT(uint Count) => + (Count << D3D11_SB_INPUT_CONTROL_POINT_COUNT_SHIFT) + & D3D11_SB_INPUT_CONTROL_POINT_COUNT_MASK; + + public static uint ENCODE_D3D11_SB_INSTRUCTION_PRECISE_VALUES(uint ComponentMask) => + (ComponentMask << D3D11_SB_INSTRUCTION_PRECISE_VALUES_SHIFT) + & D3D11_SB_INSTRUCTION_PRECISE_VALUES_MASK; + + public static uint ENCODE_D3D11_SB_INTERFACE_ARRAY_LENGTH(uint ArrayLength) => + (ArrayLength << D3D11_SB_INTERFACE_ARRAY_LENGTH_SHIFT) + & D3D11_SB_INTERFACE_ARRAY_LENGTH_MASK; + + public static uint ENCODE_D3D11_SB_INTERFACE_INDEXED_BIT(bool IndexedBit) => + ((IndexedBit ? 1u : 0u) << D3D11_SB_INTERFACE_INDEXED_BIT_SHIFT) + & D3D11_SB_INTERFACE_INDEXED_BIT_MASK; + + public static uint ENCODE_D3D11_SB_INTERFACE_TABLE_LENGTH(uint TableLength) => + (TableLength << D3D11_SB_INTERFACE_TABLE_LENGTH_SHIFT) + & D3D11_SB_INTERFACE_TABLE_LENGTH_MASK; + + public static uint ENCODE_D3D11_SB_OPERAND_MIN_PRECISION( + D3D11_SB_OPERAND_MIN_PRECISION MinPrecision + ) => + ((uint)(MinPrecision) << D3D11_SB_OPERAND_MIN_PRECISION_SHIFT) + & D3D11_SB_OPERAND_MIN_PRECISION_MASK; + + public static uint ENCODE_D3D11_SB_OUTPUT_CONTROL_POINT_COUNT(uint Count) => + (Count << D3D11_SB_OUTPUT_CONTROL_POINT_COUNT_SHIFT) + & D3D11_SB_OUTPUT_CONTROL_POINT_COUNT_MASK; + + public static uint ENCODE_D3D11_SB_RESOURCE_FLAGS(uint Flags) => + Flags & D3D11_SB_RESOURCE_FLAGS_MASK; + + public static uint ENCODE_D3D11_SB_SYNC_FLAGS(uint Flags) => Flags & D3D11_SB_SYNC_FLAGS_MASK; + + public static uint ENCODE_D3D11_SB_TESS_DOMAIN(D3D11_SB_TESSELLATOR_DOMAIN Domain) => + ((uint)(Domain) << D3D11_SB_TESS_DOMAIN_SHIFT) & D3D11_SB_TESS_DOMAIN_MASK; + + public static uint ENCODE_D3D11_SB_TESS_OUTPUT_PRIMITIVE( + D3D11_SB_TESSELLATOR_OUTPUT_PRIMITIVE OutputPrimitive + ) => + ((uint)(OutputPrimitive) << D3D11_SB_TESS_OUTPUT_PRIMITIVE_SHIFT) + & D3D11_SB_TESS_OUTPUT_PRIMITIVE_MASK; + + public static uint ENCODE_D3D11_SB_TESS_PARTITIONING( + D3D11_SB_TESSELLATOR_PARTITIONING Partitioning + ) => + ((uint)(Partitioning) << D3D11_SB_TESS_PARTITIONING_SHIFT) + & D3D11_SB_TESS_PARTITIONING_MASK; + + public static uint ENCODE_D3D11_SB_UAV_FLAGS(uint Flags) => Flags & D3D11_SB_UAV_FLAGS_MASK; + + public static uint ENCODE_D3D12_SB_OPERAND_NON_UNIFORM(uint NonUniform) => + (NonUniform << D3D12_SB_OPERAND_NON_UNIFORM_SHIFT) & D3D12_SB_OPERAND_NON_UNIFORM_MASK; + + public static uint ENCODE_IMMEDIATE_D3D10_SB_ADDRESS_OFFSET(uint Coord, int ImmediateOffset) => + (uint)(ImmediateOffset << D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_SHIFT(Coord)) + & D3D10_SB_IMMEDIATE_ADDRESS_OFFSET_MASK(Coord); +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3d12/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3d12/d3d12/DirectX.Manual.cs new file mode 100644 index 0000000000..e5a6bff0d3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3d12/DirectX.Manual.cs @@ -0,0 +1,319 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D12; +using static Silk.NET.DirectX.D3D12_FILTER_REDUCTION_TYPE; +using static Silk.NET.DirectX.D3D12_FILTER_TYPE; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static ref readonly Guid D3D12ComputeOnlyDevices + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x08, + 0xAB, + 0xF7, + 0x50, + 0x6D, + 0x4B, + 0x14, + 0x4E, + 0x89, + 0xA5, + 0x5D, + 0x16, + 0xCD, + 0x27, + 0x25, + 0x94, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static D3D12_FILTER_REDUCTION_TYPE D3D12_DECODE_FILTER_REDUCTION( + D3D12_FILTER D3D12Filter + ) => + (D3D12_FILTER_REDUCTION_TYPE)( + ((uint)D3D12Filter >> unchecked((int)D3D12_FILTER_REDUCTION_TYPE_SHIFT)) + & D3D12_FILTER_REDUCTION_TYPE_MASK + ); + + public static bool D3D12_DECODE_IS_ANISOTROPIC_FILTER(D3D12_FILTER D3D12Filter) + { + return (((uint)D3D12Filter & D3D12_ANISOTROPIC_FILTERING_BIT) != 0) + && (D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIN_FILTER(D3D12Filter)) + && (D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MAG_FILTER(D3D12Filter)) + && (D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIP_FILTER(D3D12Filter)); + } + + public static bool D3D12_DECODE_IS_COMPARISON_FILTER(D3D12_FILTER D3D12Filter) => + D3D12_DECODE_FILTER_REDUCTION(D3D12Filter) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON; + + public static D3D12_FILTER_TYPE D3D12_DECODE_MAG_FILTER(D3D12_FILTER D3D12Filter) => + (D3D12_FILTER_TYPE)( + ((uint)D3D12Filter >> unchecked((int)D3D12_MAG_FILTER_SHIFT)) & D3D12_FILTER_TYPE_MASK + ); + + public static D3D12_FILTER_TYPE D3D12_DECODE_MIN_FILTER(D3D12_FILTER D3D12Filter) => + (D3D12_FILTER_TYPE)( + ((uint)D3D12Filter >> unchecked((int)D3D12_MIN_FILTER_SHIFT)) & D3D12_FILTER_TYPE_MASK + ); + + public static D3D12_FILTER_TYPE D3D12_DECODE_MIP_FILTER(D3D12_FILTER D3D12Filter) => + (D3D12_FILTER_TYPE)( + ((uint)D3D12Filter >> unchecked((int)D3D12_MIP_FILTER_SHIFT)) & D3D12_FILTER_TYPE_MASK + ); + + public static D3D12_SHADER_COMPONENT_MAPPING D3D12_DECODE_SHADER_4_COMPONENT_MAPPING( + int ComponentToExtract, + uint Mapping + ) => + (D3D12_SHADER_COMPONENT_MAPPING)( + (Mapping >> (unchecked((int)D3D12_SHADER_COMPONENT_MAPPING_SHIFT) * ComponentToExtract)) + & D3D12_SHADER_COMPONENT_MAPPING_MASK + ); + + public static D3D12_FILTER D3D12_ENCODE_ANISOTROPIC_FILTER( + D3D12_FILTER_REDUCTION_TYPE reduction + ) => + (D3D12_FILTER)( + D3D12_ANISOTROPIC_FILTERING_BIT + | (uint)D3D12_ENCODE_BASIC_FILTER( + D3D12_FILTER_TYPE_LINEAR, + D3D12_FILTER_TYPE_LINEAR, + D3D12_FILTER_TYPE_LINEAR, + reduction + ) + ); + + public static D3D12_FILTER D3D12_ENCODE_BASIC_FILTER( + D3D12_FILTER_TYPE min, + D3D12_FILTER_TYPE mag, + D3D12_FILTER_TYPE mip, + D3D12_FILTER_REDUCTION_TYPE reduction + ) + { + return (D3D12_FILTER)( + (((uint)min & D3D12_FILTER_TYPE_MASK) << unchecked((int)D3D12_MIN_FILTER_SHIFT)) + | (((uint)mag & D3D12_FILTER_TYPE_MASK) << unchecked((int)D3D12_MAG_FILTER_SHIFT)) + | (((uint)mip & D3D12_FILTER_TYPE_MASK) << unchecked((int)D3D12_MIP_FILTER_SHIFT)) + | ( + ((uint)reduction & D3D12_FILTER_REDUCTION_TYPE_MASK) + << unchecked((int)D3D12_FILTER_REDUCTION_TYPE_SHIFT) + ) + ); + } + + public static D3D12_FILTER D3D12_ENCODE_MIN_MAG_ANISOTROPIC_MIP_POINT_FILTER( + D3D12_FILTER_REDUCTION_TYPE reduction + ) => + (D3D12_FILTER)(D3D12_ANISOTROPIC_FILTERING_BIT) + | D3D12_ENCODE_BASIC_FILTER( + D3D12_FILTER_TYPE_LINEAR, + D3D12_FILTER_TYPE_LINEAR, + D3D12_FILTER_TYPE_POINT, + reduction + ); + + public static uint D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING( + D3D12_SHADER_COMPONENT_MAPPING Src0, + D3D12_SHADER_COMPONENT_MAPPING Src1, + D3D12_SHADER_COMPONENT_MAPPING Src2, + D3D12_SHADER_COMPONENT_MAPPING Src3 + ) + { + return ((uint)Src0 & D3D12_SHADER_COMPONENT_MAPPING_MASK) + | ( + ((uint)Src1 & D3D12_SHADER_COMPONENT_MAPPING_MASK) + << unchecked((int)D3D12_SHADER_COMPONENT_MAPPING_SHIFT) + ) + | ( + ((uint)Src2 & D3D12_SHADER_COMPONENT_MAPPING_MASK) + << (unchecked((int)D3D12_SHADER_COMPONENT_MAPPING_SHIFT) * 2) + ) + | ( + ((uint)Src3 & D3D12_SHADER_COMPONENT_MAPPING_MASK) + << (unchecked((int)D3D12_SHADER_COMPONENT_MAPPING_SHIFT) * 3) + ) + | D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES; + } + + public static uint D3D12_GET_COARSE_SHADING_RATE_X_AXIS(uint x) => + (x >> unchecked((int)D3D12_SHADING_RATE_X_AXIS_SHIFT)) & D3D12_SHADING_RATE_VALID_MASK; + + public static uint D3D12_GET_COARSE_SHADING_RATE_Y_AXIS(uint y) => + y & D3D12_SHADING_RATE_VALID_MASK; + + public static uint D3D12_MAKE_COARSE_SHADING_RATE(uint x, uint y) => + (x << unchecked((int)D3D12_SHADING_RATE_X_AXIS_SHIFT)) | y; + + public static HRESULT D3D12_SET_OBJECT_NAME_A(TD3D12Object* pObject, sbyte* pName) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + return D3D12_SET_OBJECT_NAME_N_A(pObject, (uint)lstrlenA(pName), pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D12_SET_OBJECT_NAME_A( + Ref pObject, + Ref pName + ) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + fixed (sbyte* __dsl_pName = pName) + fixed (TD3D12Object* __dsl_pObject = pObject) + { + return (HRESULT)D3D12_SET_OBJECT_NAME_A(__dsl_pObject, __dsl_pName); + } + } + + public static HRESULT D3D12_SET_OBJECT_NAME_N_A( + TD3D12Object* pObject, + uint Chars, + sbyte* pName + ) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + var guid = WKPDID_D3DDebugObjectName; + return pObject->SetPrivateData(&guid, Chars, pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D12_SET_OBJECT_NAME_N_A( + Ref pObject, + uint Chars, + Ref pName + ) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + fixed (sbyte* __dsl_pName = pName) + fixed (TD3D12Object* __dsl_pObject = pObject) + { + return (HRESULT)D3D12_SET_OBJECT_NAME_N_A(__dsl_pObject, Chars, __dsl_pName); + } + } + + public static HRESULT D3D12_SET_OBJECT_NAME_N_W( + TD3D12Object* pObject, + uint Chars, + char* pName + ) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + var guid = WKPDID_D3DDebugObjectNameW; + return pObject->SetPrivateData(&guid, Chars * 2, pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D12_SET_OBJECT_NAME_N_W( + Ref pObject, + uint Chars, + Ref pName + ) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + fixed (char* __dsl_pName = pName) + fixed (TD3D12Object* __dsl_pObject = pObject) + { + return (HRESULT)D3D12_SET_OBJECT_NAME_N_W(__dsl_pObject, Chars, __dsl_pName); + } + } + + public static HRESULT D3D12_SET_OBJECT_NAME_W(TD3D12Object* pObject, char* pName) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + return D3D12_SET_OBJECT_NAME_N_W(pObject, (uint)lstrlenW(pName), pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D12_SET_OBJECT_NAME_W( + Ref pObject, + Ref pName + ) + where TD3D12Object : unmanaged, ID3D12Object.Interface + { + fixed (char* __dsl_pName = pName) + fixed (TD3D12Object* __dsl_pObject = pObject) + { + return (HRESULT)D3D12_SET_OBJECT_NAME_W(__dsl_pObject, __dsl_pName); + } + } + + /// + + public static HRESULT D3D12Reflect( + [NativeTypeName("LPCVOID")] void* pSrcData, + [NativeTypeName("SIZE_T")] nuint SrcDataSize, + ID3D11ShaderReflection* ppReflector + ) + { + return D3DReflect( + pSrcData, + SrcDataSize, + __uuidof(), + unchecked((void**)(ppReflector)) + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D12Reflect( + [NativeTypeName("LPCVOID")] Ref pSrcData, + [NativeTypeName("SIZE_T")] nuint SrcDataSize, + Ref ppReflector + ) + { + fixed (ID3D11ShaderReflection* __dsl_ppReflector = ppReflector) + fixed (void* __dsl_pSrcData = pSrcData) + { + return (HRESULT)D3D12Reflect(__dsl_pSrcData, SrcDataSize, __dsl_ppReflector); + } + } + + /// + + public static HRESULT D3D12ReflectLibrary( + [NativeTypeName("LPCVOID")] void* pSrcData, + [NativeTypeName("SIZE_T")] nuint SrcDataSize, + ID3D12LibraryReflection* ppReflector + ) + { + return D3DReflectLibrary( + pSrcData, + SrcDataSize, + __uuidof(), + (void**)ppReflector + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D12ReflectLibrary( + [NativeTypeName("LPCVOID")] Ref pSrcData, + [NativeTypeName("SIZE_T")] nuint SrcDataSize, + Ref ppReflector + ) + { + fixed (ID3D12LibraryReflection* __dsl_ppReflector = ppReflector) + fixed (void* __dsl_pSrcData = pSrcData) + { + return (HRESULT)D3D12ReflectLibrary(__dsl_pSrcData, SrcDataSize, __dsl_ppReflector); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3d12shader/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3d12/d3d12shader/DirectX.Manual.cs new file mode 100644 index 0000000000..f7855a2f7f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3d12shader/DirectX.Manual.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d12shader.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static int D3D12_SHVER_GET_MAJOR(int _Version) => (_Version >> 4) & 0xF; + + public static int D3D12_SHVER_GET_MINOR(int _Version) => (_Version >> 0) & 0xF; + + public static D3D12_SHADER_VERSION_TYPE D3D12_SHVER_GET_TYPE(int _Version) => + (D3D12_SHADER_VERSION_TYPE)((_Version >> 16) & 0xFFFF); +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D.gen.cs new file mode 100644 index 0000000000..35af0e1681 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D.gen.cs @@ -0,0 +1,244 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class D3D +{ + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D_TEXTURE_LAYOUT_ROW_MAJOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x4F, + 0x23, + 0xDC, + 0xB5, + 0xBB, + 0x72, + 0xEC, + 0x4B, + 0x97, + 0x05, + 0x8C, + 0xF2, + 0x58, + 0xDF, + 0x6B, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x29, + 0x0F, + 0x4C, + 0x5F, + 0x3F, + 0x35, + 0x4D, + 0x84, + 0xC9, + 0xBC, + 0x09, + 0x83, + 0xB6, + 0x2C, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048")] + public const int D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION = 2048; + + [NativeTypeName("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096")] + public const int D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION = 4096; + + [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048")] + public const int D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION = 2048; + + [NativeTypeName("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096")] + public const int D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION = 4096; + + [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512")] + public const int D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION = 512; + + [NativeTypeName("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096")] + public const int D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION = 4096; + + [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256")] + public const int D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 256; + + [NativeTypeName("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2")] + public const int D3D_FL9_1_DEFAULT_MAX_ANISOTROPY = 2; + + [NativeTypeName("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535")] + public const int D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT = 65535; + + [NativeTypeName("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575")] + public const int D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT = 1048575; + + [NativeTypeName("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1")] + public const int D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT = 1; + + [NativeTypeName("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4")] + public const int D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT = 4; + + [NativeTypeName("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128")] + public const int D3D_FL9_1_MAX_TEXTURE_REPEAT = 128; + + [NativeTypeName("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048")] + public const int D3D_FL9_2_MAX_TEXTURE_REPEAT = 2048; + + [NativeTypeName("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192")] + public const int D3D_FL9_3_MAX_TEXTURE_REPEAT = 8192; + + [NativeTypeName("#define D3D_SHADER_FEATURE_DOUBLES 0x00001")] + public const int D3D_SHADER_FEATURE_DOUBLES = 0x00001; + + [NativeTypeName( + "#define D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X 0x00002" + )] + public const int D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X = + 0x00002; + + [NativeTypeName("#define D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE 0x00004")] + public const int D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE = 0x00004; + + [NativeTypeName("#define D3D_SHADER_FEATURE_64_UAVS 0x00008")] + public const int D3D_SHADER_FEATURE_64_UAVS = 0x00008; + + [NativeTypeName("#define D3D_SHADER_FEATURE_MINIMUM_PRECISION 0x00010")] + public const int D3D_SHADER_FEATURE_MINIMUM_PRECISION = 0x00010; + + [NativeTypeName("#define D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS 0x00020")] + public const int D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS = 0x00020; + + [NativeTypeName("#define D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS 0x00040")] + public const int D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS = 0x00040; + + [NativeTypeName("#define D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING 0x00080")] + public const int D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING = 0x00080; + + [NativeTypeName("#define D3D_SHADER_FEATURE_TILED_RESOURCES 0x00100")] + public const int D3D_SHADER_FEATURE_TILED_RESOURCES = 0x00100; + + [NativeTypeName("#define D3D_SHADER_FEATURE_STENCIL_REF 0x00200")] + public const int D3D_SHADER_FEATURE_STENCIL_REF = 0x00200; + + [NativeTypeName("#define D3D_SHADER_FEATURE_INNER_COVERAGE 0x00400")] + public const int D3D_SHADER_FEATURE_INNER_COVERAGE = 0x00400; + + [NativeTypeName("#define D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00800")] + public const int D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS = 0x00800; + + [NativeTypeName("#define D3D_SHADER_FEATURE_ROVS 0x01000")] + public const int D3D_SHADER_FEATURE_ROVS = 0x01000; + + [NativeTypeName( + "#define D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x02000" + )] + public const int D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER = + 0x02000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_WAVE_OPS 0x04000")] + public const int D3D_SHADER_FEATURE_WAVE_OPS = 0x04000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_INT64_OPS 0x08000")] + public const int D3D_SHADER_FEATURE_INT64_OPS = 0x08000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_VIEW_ID 0x10000")] + public const int D3D_SHADER_FEATURE_VIEW_ID = 0x10000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_BARYCENTRICS 0x20000")] + public const int D3D_SHADER_FEATURE_BARYCENTRICS = 0x20000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_NATIVE_16BIT_OPS 0x40000")] + public const int D3D_SHADER_FEATURE_NATIVE_16BIT_OPS = 0x40000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_SHADING_RATE 0x80000")] + public const int D3D_SHADER_FEATURE_SHADING_RATE = 0x80000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 0x100000")] + public const int D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 = 0x100000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLER_FEEDBACK 0x200000")] + public const int D3D_SHADER_FEATURE_SAMPLER_FEEDBACK = 0x200000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE 0x400000")] + public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE = 0x400000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED 0x800000")] + public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED = 0x800000; + + [NativeTypeName( + "#define D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x1000000" + )] + public const int D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS = 0x1000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x2000000")] + public const int D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING = 0x2000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x4000000")] + public const int D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING = 0x4000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_WAVE_MMA 0x8000000")] + public const int D3D_SHADER_FEATURE_WAVE_MMA = 0x8000000; + + [NativeTypeName( + "#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000" + )] + public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 0x10000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS 0x20000000")] + public const int D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS = 0x20000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES 0x40000000")] + public const int D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES = 0x40000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS 0x80000000")] + public const uint D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS = 0x80000000; + + [NativeTypeName("#define D3D_SHADER_FEATURE_EXTENDED_COMMAND_INFO 0x100000000ull")] + public const ulong D3D_SHADER_FEATURE_EXTENDED_COMMAND_INFO = 0x100000000UL; + + [NativeTypeName("#define D3D_OPT_SHADER_FEATURE_USES_DERIVATIVES 0x0000010000000000ull")] + public const ulong D3D_OPT_SHADER_FEATURE_USES_DERIVATIVES = 0x0000010000000000UL; + + [NativeTypeName("#define D3D_OPT_SHADER_FEATURE_REQUIRES_GROUP 0x0000020000000000ull")] + public const ulong D3D_OPT_SHADER_FEATURE_REQUIRES_GROUP = 0x0000020000000000UL; + + [NativeTypeName("#define D3D_COMPONENT_MASK_X 1")] + public const int D3D_COMPONENT_MASK_X = 1; + + [NativeTypeName("#define D3D_COMPONENT_MASK_Y 2")] + public const int D3D_COMPONENT_MASK_Y = 2; + + [NativeTypeName("#define D3D_COMPONENT_MASK_Z 4")] + public const int D3D_COMPONENT_MASK_Z = 4; + + [NativeTypeName("#define D3D_COMPONENT_MASK_W 8")] + public const int D3D_COMPONENT_MASK_W = 8; +} diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_CBUFFER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_CBUFFER_TYPE.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_CBUFFER_TYPE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_CBUFFER_TYPE.gen.cs index 4970aa4e14..bcaf6ce3c3 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_CBUFFER_TYPE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_CBUFFER_TYPE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_DRIVER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_DRIVER_TYPE.gen.cs similarity index 96% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_DRIVER_TYPE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_DRIVER_TYPE.gen.cs index 8727a3d02f..60c2ebb6ba 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_DRIVER_TYPE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_DRIVER_TYPE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FEATURE_LEVEL.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FEATURE_LEVEL.gen.cs similarity index 90% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FEATURE_LEVEL.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FEATURE_LEVEL.gen.cs index e35528d59d..22669ba60b 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FEATURE_LEVEL.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FEATURE_LEVEL.gen.cs @@ -1,11 +1,16 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// public enum D3D_FEATURE_LEVEL { + /// + + D3D_FEATURE_LEVEL_1_0_GENERIC = 0x100, + /// D3D_FEATURE_LEVEL_1_0_CORE = 0x1000, diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_COMPONENT_INTERPRETATION.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_COMPONENT_INTERPRETATION.gen.cs similarity index 96% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_COMPONENT_INTERPRETATION.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_COMPONENT_INTERPRETATION.gen.cs index 09914308d1..ad2f92d104 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_COMPONENT_INTERPRETATION.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_COMPONENT_INTERPRETATION.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_COMPONENT_NAME.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_COMPONENT_NAME.gen.cs similarity index 96% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_COMPONENT_NAME.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_COMPONENT_NAME.gen.cs index 00e0cada7c..73788c516f 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_COMPONENT_NAME.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_COMPONENT_NAME.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_LAYOUT.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_LAYOUT.gen.cs similarity index 92% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_LAYOUT.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_LAYOUT.gen.cs index 1f0b0679be..43dccb559f 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_LAYOUT.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_LAYOUT.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_TYPE_LEVEL.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_TYPE_LEVEL.gen.cs similarity index 93% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_TYPE_LEVEL.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_TYPE_LEVEL.gen.cs index c1a5793e61..ac2ea90701 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_FORMAT_TYPE_LEVEL.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_FORMAT_TYPE_LEVEL.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_INCLUDE_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_INCLUDE_TYPE.gen.cs similarity index 95% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_INCLUDE_TYPE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_INCLUDE_TYPE.gen.cs index 483af3405f..645120d831 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_INCLUDE_TYPE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_INCLUDE_TYPE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_INTERPOLATION_MODE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_INTERPOLATION_MODE.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_INTERPOLATION_MODE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_INTERPOLATION_MODE.gen.cs index e98e723093..d846bada9b 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_INTERPOLATION_MODE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_INTERPOLATION_MODE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_MIN_PRECISION.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_MIN_PRECISION.gen.cs similarity index 96% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_MIN_PRECISION.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_MIN_PRECISION.gen.cs index 98f2559451..37309f20ce 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_MIN_PRECISION.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_MIN_PRECISION.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_NAME.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_NAME.gen.cs similarity index 99% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_NAME.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_NAME.gen.cs index bd7ec645cc..fd2d465817 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_NAME.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_NAME.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PARAMETER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PARAMETER_FLAGS.gen.cs similarity index 94% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PARAMETER_FLAGS.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PARAMETER_FLAGS.gen.cs index cfc48ee806..53da99f065 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PARAMETER_FLAGS.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PARAMETER_FLAGS.gen.cs @@ -1,8 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license using System; - +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PRIMITIVE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PRIMITIVE.gen.cs similarity index 99% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PRIMITIVE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PRIMITIVE.gen.cs index f9fb12235e..e9d71379b7 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PRIMITIVE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PRIMITIVE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PRIMITIVE_TOPOLOGY.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PRIMITIVE_TOPOLOGY.gen.cs similarity index 99% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PRIMITIVE_TOPOLOGY.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PRIMITIVE_TOPOLOGY.gen.cs index ad0677fe9d..19a5dd1140 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_PRIMITIVE_TOPOLOGY.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_PRIMITIVE_TOPOLOGY.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_REGISTER_COMPONENT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_REGISTER_COMPONENT_TYPE.gen.cs new file mode 100644 index 0000000000..61c966fb16 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_REGISTER_COMPONENT_TYPE.gen.cs @@ -0,0 +1,89 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +public enum D3D_REGISTER_COMPONENT_TYPE +{ + /// + + D3D_REGISTER_COMPONENT_UNKNOWN = 0, + + /// + + D3D_REGISTER_COMPONENT_UINT32 = 1, + + /// + + D3D_REGISTER_COMPONENT_SINT32 = 2, + + /// + + D3D_REGISTER_COMPONENT_FLOAT32 = 3, + + /// + + D3D_REGISTER_COMPONENT_UINT16 = 4, + + /// + + D3D_REGISTER_COMPONENT_SINT16 = 5, + + /// + + D3D_REGISTER_COMPONENT_FLOAT16 = 6, + + /// + + D3D_REGISTER_COMPONENT_UINT64 = 7, + + /// + + D3D_REGISTER_COMPONENT_SINT64 = 8, + + /// + + D3D_REGISTER_COMPONENT_FLOAT64 = 9, + + /// + + D3D10_REGISTER_COMPONENT_UNKNOWN = D3D_REGISTER_COMPONENT_UNKNOWN, + + /// + + D3D10_REGISTER_COMPONENT_UINT32 = D3D_REGISTER_COMPONENT_UINT32, + + /// + + D3D10_REGISTER_COMPONENT_SINT32 = D3D_REGISTER_COMPONENT_SINT32, + + /// + + D3D10_REGISTER_COMPONENT_FLOAT32 = D3D_REGISTER_COMPONENT_FLOAT32, + + /// + + D3D10_REGISTER_COMPONENT_UINT16 = D3D_REGISTER_COMPONENT_UINT16, + + /// + + D3D10_REGISTER_COMPONENT_SINT16 = D3D_REGISTER_COMPONENT_SINT16, + + /// + + D3D10_REGISTER_COMPONENT_FLOAT16 = D3D_REGISTER_COMPONENT_FLOAT16, + + /// + + D3D10_REGISTER_COMPONENT_UINT64 = D3D_REGISTER_COMPONENT_UINT64, + + /// + + D3D10_REGISTER_COMPONENT_SINT64 = D3D_REGISTER_COMPONENT_SINT64, + + /// + + D3D10_REGISTER_COMPONENT_FLOAT64 = D3D_REGISTER_COMPONENT_FLOAT64, +} diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_RESOURCE_RETURN_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_RESOURCE_RETURN_TYPE.gen.cs similarity index 98% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_RESOURCE_RETURN_TYPE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_RESOURCE_RETURN_TYPE.gen.cs index 21330dad9f..40dd4a569d 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_RESOURCE_RETURN_TYPE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_RESOURCE_RETURN_TYPE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_CBUFFER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_CBUFFER_FLAGS.gen.cs similarity index 94% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_CBUFFER_FLAGS.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_CBUFFER_FLAGS.gen.cs index 3ee6ecd32d..6d65e5c075 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_CBUFFER_FLAGS.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_CBUFFER_FLAGS.gen.cs @@ -1,8 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license using System; - +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_INPUT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_INPUT_FLAGS.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_INPUT_FLAGS.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_INPUT_FLAGS.gen.cs index 34526113b9..b8e37a69ad 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_INPUT_FLAGS.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_INPUT_FLAGS.gen.cs @@ -1,8 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license using System; - +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_INPUT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_INPUT_TYPE.gen.cs similarity index 98% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_INPUT_TYPE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_INPUT_TYPE.gen.cs index 21d05ee191..458e214e1d 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_INPUT_TYPE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_INPUT_TYPE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_MACRO.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_MACRO.gen.cs similarity index 92% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_MACRO.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_MACRO.gen.cs index 8681a5fedf..fa19990338 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_MACRO.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_MACRO.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_CLASS.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_CLASS.gen.cs similarity index 98% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_CLASS.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_CLASS.gen.cs index 45ab52e4c1..1dd9750a22 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_CLASS.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_CLASS.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_FLAGS.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_FLAGS.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_FLAGS.gen.cs index 55e95656d6..9262b9487d 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_FLAGS.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_FLAGS.gen.cs @@ -1,8 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license using System; - +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_TYPE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_TYPE.gen.cs similarity index 99% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_TYPE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_TYPE.gen.cs index 38b5850eb2..6d57c344da 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_VARIABLE_TYPE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_VARIABLE_TYPE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SRV_DIMENSION.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SRV_DIMENSION.gen.cs similarity index 99% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SRV_DIMENSION.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SRV_DIMENSION.gen.cs index f7c58958c0..3513b8707d 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_SRV_DIMENSION.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SRV_DIMENSION.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_DOMAIN.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_DOMAIN.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_DOMAIN.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_DOMAIN.gen.cs index 321efb6b9c..3bd9230d07 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_DOMAIN.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_DOMAIN.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_OUTPUT_PRIMITIVE.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_OUTPUT_PRIMITIVE.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_OUTPUT_PRIMITIVE.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_OUTPUT_PRIMITIVE.gen.cs index 7a8915afb9..16fbb99ead 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_OUTPUT_PRIMITIVE.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_OUTPUT_PRIMITIVE.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_PARTITIONING.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_PARTITIONING.gen.cs similarity index 97% rename from sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_PARTITIONING.gen.cs rename to sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_PARTITIONING.gen.cs index 5e5c0e3ba1..d204e51dec 100644 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_TESSELLATOR_PARTITIONING.gen.cs +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_TESSELLATOR_PARTITIONING.gen.cs @@ -1,6 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX; /// diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/DirectX.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/DirectX.gen.cs new file mode 100644 index 0000000000..4f8f90c558 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/DirectX.gen.cs @@ -0,0 +1,132 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + [NativeTypeName("const GUID")] + public static ref readonly Guid WKPDID_D3DDebugObjectName + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x22, + 0x8C, + 0x9B, + 0x42, + 0x88, + 0x91, + 0x0C, + 0x4B, + 0x87, + 0x42, + 0xAC, + 0xB0, + 0xBF, + 0x85, + 0xC2, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid WKPDID_D3DDebugObjectNameW + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x5F, + 0xCA, + 0x4C, + 0x1F, + 0x92, + 0xC8, + 0x42, + 0x85, + 0x66, + 0x70, + 0xCA, + 0xF2, + 0xA9, + 0xB7, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid WKPDID_CommentStringW + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x9D, + 0x14, + 0xD0, + 0xE8, + 0x90, + 0xC8, + 0x4E, + 0x81, + 0x44, + 0xE9, + 0x00, + 0xAD, + 0x26, + 0x6B, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid WKPDID_D3D12UniqueObjectId + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x15, + 0xDE, + 0x39, + 0x1B, + 0x04, + 0xEC, + 0xAE, + 0x4B, + 0xBA, + 0x4D, + 0x8C, + 0xEF, + 0x79, + 0xFC, + 0x04, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DBlob.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DBlob.gen.cs new file mode 100644 index 0000000000..371b75d330 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DBlob.gen.cs @@ -0,0 +1,315 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.Win32.IID; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// + +[Guid("8BA5FB08-5195-40E2-AC58-0D989C3A0102")] +[NativeTypeName("struct ID3D10Blob : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3DBlob : ID3DBlob.Interface, IComInterface, IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Blob)); + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + [return: NativeTypeName("LPVOID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + Ptr GetBufferPointer(); + + [VtblIndex(3)] + [return: NativeTypeName("LPVOID")] + void* GetBufferPointerRaw(); + + [VtblIndex(4)] + [return: NativeTypeName("SIZE_T")] + nuint GetBufferSize(); + } + + /// + + [Guid("8BA5FB08-5195-40E2-AC58-0D989C3A0102")] + [NativeTypeName("struct ID3D10Blob : IUnknown")] + [NativeInheritance("IUnknown")] + public unsafe partial struct Native : Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Blob)); + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + + [NativeTypeName("LPVOID () __attribute__((stdcall))")] + public delegate* unmanaged GetBufferPointer; + + [NativeTypeName("SIZE_T () __attribute__((stdcall))")] + public delegate* unmanaged GetBufferSize; + } + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (ID3DBlob.Native*)Unsafe.AsPointer(ref this) + ); + } + + [VtblIndex(3)] + [return: NativeTypeName("LPVOID")] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetBufferPointer() => (void*)GetBufferPointerRaw(); + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + [return: NativeTypeName("LPVOID")] + public void* GetBufferPointerRaw() + { + return ((delegate* unmanaged)(lpVtbl[3]))( + (ID3DBlob.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + [return: NativeTypeName("SIZE_T")] + public nuint GetBufferSize() + { + return ((delegate* unmanaged)(lpVtbl[4]))( + (ID3DBlob.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[0]))( + (ID3DBlob.Native*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (ID3DBlob.Native*)Unsafe.AsPointer(ref this) + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + + public ID3DBlob(Ptr3D vtbl) => lpVtbl = (ID3DBlob.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + + public ID3DBlob(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + + public static implicit operator ID3DBlob(ID3DBlob.Native* value) => + new ID3DBlob((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + + public static implicit operator ID3DBlob.Native*(ID3DBlob value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + + public static explicit operator ID3DBlob(Ptr3D value) => new ID3DBlob(value); + + /// casts to . + /// The instance to be converted + + public static implicit operator Ptr3D(ID3DBlob value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + + public static explicit operator ID3DBlob(Ptr value) => new ID3DBlob(value); + + /// casts to . + /// The instance to be converted + + public static implicit operator Ptr(ID3DBlob value) => + (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + + public static explicit operator ID3DBlob(void*** value) => new ID3DBlob((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + + public static implicit operator void***(ID3DBlob value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + + public static explicit operator ID3DBlob(nuint value) => + new ID3DBlob((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + + public static implicit operator nuint(ID3DBlob value) => (nuint)value.lpVtbl; + + /// Downcasts to . + /// The instance to be converted + + public static explicit operator ID3DBlob(Silk.NET.Core.IUnknown value) => + new ID3DBlob((Ptr)value.lpVtbl); + + /// Upcasts to . + /// The instance to be converted + + public static implicit operator Silk.NET.Core.IUnknown(ID3DBlob value) => + new Silk.NET.Core.IUnknown((Ptr)value.lpVtbl); + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + public void Dispose() => Release(); + + /// + + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + [VtblIndex(3)] + [return: NativeTypeName("LPVOID")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public Ptr GetBufferPointer() => (void*)GetBufferPointerRaw(); + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + [return: NativeTypeName("LPVOID")] + public void* GetBufferPointerRaw() => lpVtbl->GetBufferPointerRaw(); + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + [return: NativeTypeName("SIZE_T")] + public nuint GetBufferSize() => lpVtbl->GetBufferSize(); + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DDestructionNotifier.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DDestructionNotifier.gen.cs new file mode 100644 index 0000000000..624538ac13 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DDestructionNotifier.gen.cs @@ -0,0 +1,337 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.Win32.IID; + +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +[Guid("A06EB39A-50DA-425B-8C31-4EECD6C270F3")] +[NativeTypeName("struct ID3DDestructionNotifier : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3DDestructionNotifier + : ID3DDestructionNotifier.Interface, + IComInterface, + IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDestructionNotifier)); + + public interface Interface : IUnknown.Interface + { + [VtblIndex(4)] + HRESULT UnregisterDestructionCallback(uint callbackID); + } + + /// + [Guid("A06EB39A-50DA-425B-8C31-4EECD6C270F3")] + [NativeTypeName("struct ID3DDestructionNotifier : IUnknown")] + [NativeInheritance("IUnknown")] + public unsafe partial struct Native : Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDestructionNotifier)); + + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + + [NativeTypeName( + "HRESULT (PFN_DESTRUCTION_CALLBACK, void *, UINT *) __attribute__((stdcall))" + )] + public delegate* unmanaged< + TSelf*, + delegate* unmanaged, + void*, + uint*, + int> RegisterDestructionCallback; + + [NativeTypeName("HRESULT (UINT) __attribute__((stdcall))")] + public delegate* unmanaged UnregisterDestructionCallback; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (ID3DDestructionNotifier.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ( + (delegate* unmanaged)( + lpVtbl[0] + ) + )((ID3DDestructionNotifier.Native*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT RegisterDestructionCallback( + [NativeTypeName("PFN_DESTRUCTION_CALLBACK")] + delegate* unmanaged callbackFn, + void* pData, + uint* pCallbackID + ) + { + return ( + (delegate* unmanaged< + ID3DDestructionNotifier.Native*, + delegate* unmanaged, + void*, + uint*, + int>)(lpVtbl[3]) + )( + (ID3DDestructionNotifier.Native*)Unsafe.AsPointer(ref this), + callbackFn, + pData, + pCallbackID + ); + } + + [VtblIndex(3)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT RegisterDestructionCallback( + [NativeTypeName("PFN_DESTRUCTION_CALLBACK")] + delegate* unmanaged callbackFn, + Ref pData, + Ref pCallbackID + ) + { + fixed (uint* __dsl_pCallbackID = pCallbackID) + fixed (void* __dsl_pData = pData) + { + return (HRESULT)RegisterDestructionCallback( + callbackFn, + __dsl_pData, + __dsl_pCallbackID + ); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (ID3DDestructionNotifier.Native*)Unsafe.AsPointer(ref this) + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT UnregisterDestructionCallback(uint callbackID) + { + return ((delegate* unmanaged)(lpVtbl[4]))( + (ID3DDestructionNotifier.Native*)Unsafe.AsPointer(ref this), + callbackID + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public ID3DDestructionNotifier(Ptr3D vtbl) => lpVtbl = (ID3DDestructionNotifier.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public ID3DDestructionNotifier(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator ID3DDestructionNotifier( + ID3DDestructionNotifier.Native* value + ) => new ID3DDestructionNotifier((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator ID3DDestructionNotifier.Native*( + ID3DDestructionNotifier value + ) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DDestructionNotifier(Ptr3D value) => + new ID3DDestructionNotifier(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(ID3DDestructionNotifier value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DDestructionNotifier( + Ptr value + ) => new ID3DDestructionNotifier(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr( + ID3DDestructionNotifier value + ) => (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator ID3DDestructionNotifier(void*** value) => + new ID3DDestructionNotifier((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(ID3DDestructionNotifier value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DDestructionNotifier(nuint value) => + new ID3DDestructionNotifier((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(ID3DDestructionNotifier value) => (nuint)value.lpVtbl; + + /// Downcasts to . + /// The instance to be converted + public static explicit operator ID3DDestructionNotifier(Silk.NET.Core.IUnknown value) => + new ID3DDestructionNotifier((Ptr)value.lpVtbl); + + /// Upcasts to . + /// The instance to be converted + public static implicit operator Silk.NET.Core.IUnknown(ID3DDestructionNotifier value) => + new Silk.NET.Core.IUnknown((Ptr)value.lpVtbl); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + public void Dispose() => Release(); + + /// + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [VtblIndex(0)] + [Transformed] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT RegisterDestructionCallback( + [NativeTypeName("PFN_DESTRUCTION_CALLBACK")] delegate* unmanaged callbackFn, + void* pData, + uint* pCallbackID + ) => lpVtbl->RegisterDestructionCallback(callbackFn, pData, pCallbackID); + + [VtblIndex(3)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT RegisterDestructionCallback( + [NativeTypeName("PFN_DESTRUCTION_CALLBACK")] delegate* unmanaged callbackFn, + Ref pData, + Ref pCallbackID + ) + { + fixed (uint* __dsl_pCallbackID = pCallbackID) + fixed (void* __dsl_pData = pData) + { + return (HRESULT)RegisterDestructionCallback(callbackFn, __dsl_pData, __dsl_pCallbackID); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT UnregisterDestructionCallback(uint callbackID) => + lpVtbl->UnregisterDestructionCallback(callbackID); +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DInclude.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DInclude.gen.cs new file mode 100644 index 0000000000..423d44b8fd --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DInclude.gen.cs @@ -0,0 +1,260 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.CompilerServices; +using Silk.NET.Win32; + +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +public unsafe partial struct ID3DInclude : ID3DInclude.Interface +{ + public Native* lpVtbl; + + public interface Interface + { + [VtblIndex(1)] + HRESULT Close([NativeTypeName("LPCVOID")] void* pData); + + [VtblIndex(1)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT Close([NativeTypeName("LPCVOID")] Ref pData); + + [VtblIndex(0)] + HRESULT Open( + D3D_INCLUDE_TYPE IncludeType, + [NativeTypeName("LPCSTR")] sbyte* pFileName, + [NativeTypeName("LPCVOID")] void* pParentData, + [NativeTypeName("LPCVOID *")] void** ppData, + uint* pBytes + ); + + [VtblIndex(0)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT Open( + D3D_INCLUDE_TYPE IncludeType, + [NativeTypeName("LPCSTR")] Ref pFileName, + [NativeTypeName("LPCVOID")] Ref pParentData, + [NativeTypeName("LPCVOID *")] Ref2D ppData, + Ref pBytes + ); + } + + /// + public unsafe partial struct Native : Interface + { + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName( + "HRESULT (D3D_INCLUDE_TYPE, LPCSTR, LPCVOID, LPCVOID *, UINT *) __attribute__((nothrow)) __attribute__((stdcall))" + )] + public delegate* unmanaged< + TSelf*, + D3D_INCLUDE_TYPE, + sbyte*, + void*, + void**, + uint*, + int> Open; + + [NativeTypeName("HRESULT (LPCVOID) __attribute__((nothrow)) __attribute__((stdcall))")] + public delegate* unmanaged Close; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public HRESULT Close([NativeTypeName("LPCVOID")] void* pData) + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (ID3DInclude.Native*)Unsafe.AsPointer(ref this), + pData + ); + } + + [VtblIndex(1)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT Close([NativeTypeName("LPCVOID")] Ref pData) + { + fixed (void* __dsl_pData = pData) + { + return (HRESULT)Close(__dsl_pData); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT Open( + D3D_INCLUDE_TYPE IncludeType, + [NativeTypeName("LPCSTR")] sbyte* pFileName, + [NativeTypeName("LPCVOID")] void* pParentData, + [NativeTypeName("LPCVOID *")] void** ppData, + uint* pBytes + ) + { + return ( + (delegate* unmanaged< + ID3DInclude.Native*, + D3D_INCLUDE_TYPE, + sbyte*, + void*, + void**, + uint*, + int>)(lpVtbl[0]) + )( + (ID3DInclude.Native*)Unsafe.AsPointer(ref this), + IncludeType, + pFileName, + pParentData, + ppData, + pBytes + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT Open( + D3D_INCLUDE_TYPE IncludeType, + [NativeTypeName("LPCSTR")] Ref pFileName, + [NativeTypeName("LPCVOID")] Ref pParentData, + [NativeTypeName("LPCVOID *")] Ref2D ppData, + Ref pBytes + ) + { + fixed (uint* __dsl_pBytes = pBytes) + fixed (void** __dsl_ppData = ppData) + fixed (void* __dsl_pParentData = pParentData) + fixed (sbyte* __dsl_pFileName = pFileName) + { + return (HRESULT)Open( + IncludeType, + __dsl_pFileName, + __dsl_pParentData, + __dsl_ppData, + __dsl_pBytes + ); + } + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public ID3DInclude(Ptr3D vtbl) => lpVtbl = (ID3DInclude.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public ID3DInclude(Ptr vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator ID3DInclude(ID3DInclude.Native* value) => + new ID3DInclude((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator ID3DInclude.Native*(ID3DInclude value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DInclude(Ptr3D value) => new ID3DInclude(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(ID3DInclude value) => (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DInclude(Ptr value) => + new ID3DInclude(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr(ID3DInclude value) => + (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator ID3DInclude(void*** value) => + new ID3DInclude((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(ID3DInclude value) => (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DInclude(nuint value) => + new ID3DInclude((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(ID3DInclude value) => (nuint)value.lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public HRESULT Close([NativeTypeName("LPCVOID")] void* pData) => lpVtbl->Close(pData); + + [VtblIndex(1)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Close([NativeTypeName("LPCVOID")] Ref pData) + { + fixed (void* __dsl_pData = pData) + { + return (HRESULT)Close(__dsl_pData); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT Open( + D3D_INCLUDE_TYPE IncludeType, + [NativeTypeName("LPCSTR")] sbyte* pFileName, + [NativeTypeName("LPCVOID")] void* pParentData, + [NativeTypeName("LPCVOID *")] void** ppData, + uint* pBytes + ) => lpVtbl->Open(IncludeType, pFileName, pParentData, ppData, pBytes); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Open( + D3D_INCLUDE_TYPE IncludeType, + [NativeTypeName("LPCSTR")] Ref pFileName, + [NativeTypeName("LPCVOID")] Ref pParentData, + [NativeTypeName("LPCVOID *")] Ref2D ppData, + Ref pBytes + ) + { + fixed (uint* __dsl_pBytes = pBytes) + fixed (void** __dsl_ppData = ppData) + fixed (void* __dsl_pParentData = pParentData) + fixed (sbyte* __dsl_pFileName = pFileName) + { + return (HRESULT)Open( + IncludeType, + __dsl_pFileName, + __dsl_pParentData, + __dsl_ppData, + __dsl_pBytes + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12/d3dcommon/IID.gen.cs b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/IID.gen.cs new file mode 100644 index 0000000000..cafdb6e446 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/d3dcommon/IID.gen.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class IID +{ + [NativeTypeName("const GUID")] + public static ref readonly Guid IID_ID3D10Blob + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x08, + 0xFB, + 0xA5, + 0x8B, + 0x95, + 0x51, + 0xE2, + 0x40, + 0xAC, + 0x58, + 0x0D, + 0x98, + 0x9C, + 0x3A, + 0x01, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define IID_ID3DBlob IID_ID3D10Blob")] + public static ref readonly Guid IID_ID3DBlob => ref IID_ID3D10Blob; + public static ref readonly Guid IID_ID3DDestructionNotifier + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xB3, + 0x6E, + 0xA0, + 0xDA, + 0x50, + 0x5B, + 0x42, + 0x8C, + 0x31, + 0x4E, + 0xEC, + 0xD6, + 0xC2, + 0x70, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12/dxcore_interface/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3d12/dxcore_interface/DirectX.Manual.cs new file mode 100644 index 0000000000..a782ecb08d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/dxcore_interface/DirectX.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static HRESULT MAKE_DXCORE_HRESULT(int code) => MAKE_HRESULT(1, _FACDXCORE, code); +} diff --git a/sources/Win32/Win32/DirectX/d3d12/dxgicommon/DXGI_RATIONAL.Manual.cs b/sources/Win32/Win32/DirectX/d3d12/dxgicommon/DXGI_RATIONAL.Manual.cs new file mode 100644 index 0000000000..586dbb45ec --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/dxgicommon/DXGI_RATIONAL.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct DXGI_RATIONAL +{ + public DXGI_RATIONAL(uint numerator, uint denominator) + { + Numerator = numerator; + Denominator = denominator; + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12/dxgicommon/DXGI_SAMPLE_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3d12/dxgicommon/DXGI_SAMPLE_DESC.Manual.cs new file mode 100644 index 0000000000..854b45d599 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12/dxgicommon/DXGI_SAMPLE_DESC.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct DXGI_SAMPLE_DESC +{ + public DXGI_SAMPLE_DESC(uint count, uint quality) + { + Count = count; + Quality = quality; + } +} diff --git a/sources/Win32/Win32/DirectX/d3d12on7/D3D11On12On7/IID.Manual.cs b/sources/Win32/Win32/DirectX/d3d12on7/D3D11On12On7/IID.Manual.cs new file mode 100644 index 0000000000..554f69bac4 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3d12on7/D3D11On12On7/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from D3D11On12On7.h in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 +// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class IID +{ + public static ref readonly Guid IID_ID3D11On12On7 + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_barriers/D3D12_RESOURCE_BARRIER.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_barriers/D3D12_RESOURCE_BARRIER.Manual.cs new file mode 100644 index 0000000000..8ff8413d01 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_barriers/D3D12_RESOURCE_BARRIER.Manual.cs @@ -0,0 +1,57 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_barriers.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.CompilerServices; +using static Silk.NET.DirectX.D3D12_RESOURCE_BARRIER_FLAGS; +using static Silk.NET.DirectX.D3D12_RESOURCE_BARRIER_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +[NativeTypeName("struct CD3DX12_RESOURCE_BARRIER : D3D12_RESOURCE_BARRIER")] +[NativeInheritance("D3D12_RESOURCE_BARRIER")] +public unsafe partial struct D3D12_RESOURCE_BARRIER +{ + [return: NativeTypeName("CD3DX12_RESOURCE_BARRIER")] + public static D3D12_RESOURCE_BARRIER InitAliasing( + ID3D12Resource pResourceBefore, + ID3D12Resource pResourceAfter + ) + { + Unsafe.SkipInit(out D3D12_RESOURCE_BARRIER result); + result.Type = D3D12_RESOURCE_BARRIER_TYPE_ALIASING; + result.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; + result.Aliasing.pResourceBefore = pResourceBefore; + result.Aliasing.pResourceAfter = pResourceAfter; + return result; + } + + [return: NativeTypeName("CD3DX12_RESOURCE_BARRIER")] + public static D3D12_RESOURCE_BARRIER InitTransition( + ID3D12Resource pResource, + D3D12_RESOURCE_STATES stateBefore, + D3D12_RESOURCE_STATES stateAfter, + uint subresource = (0xffffffff), + D3D12_RESOURCE_BARRIER_FLAGS flags = D3D12_RESOURCE_BARRIER_FLAG_NONE + ) + { + Unsafe.SkipInit(out D3D12_RESOURCE_BARRIER result); + result.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; + result.Flags = flags; + result.Anonymous.Transition.pResource = pResource; + result.Anonymous.Transition.StateBefore = stateBefore; + result.Anonymous.Transition.StateAfter = stateAfter; + result.Anonymous.Transition.Subresource = subresource; + return result; + } + + [return: NativeTypeName("CD3DX12_RESOURCE_BARRIER")] + public static D3D12_RESOURCE_BARRIER InitUAV(ID3D12Resource pResource) + { + Unsafe.SkipInit(out D3D12_RESOURCE_BARRIER result); + result.Type = D3D12_RESOURCE_BARRIER_TYPE_UAV; + result.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; + result.Anonymous.UAV.pResource = pResource; + return result; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_barriers/D3D12_TEXTURE_BARRIER.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_barriers/D3D12_TEXTURE_BARRIER.Manual.cs new file mode 100644 index 0000000000..65865478f4 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_barriers/D3D12_TEXTURE_BARRIER.Manual.cs @@ -0,0 +1,33 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_barriers.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D12_TEXTURE_BARRIER_FLAGS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_TEXTURE_BARRIER +{ + public D3D12_TEXTURE_BARRIER( + D3D12_BARRIER_SYNC syncBefore, + D3D12_BARRIER_SYNC syncAfter, + D3D12_BARRIER_ACCESS accessBefore, + D3D12_BARRIER_ACCESS accessAfter, + D3D12_BARRIER_LAYOUT layoutBefore, + D3D12_BARRIER_LAYOUT layoutAfter, + ID3D12Resource pRes, + [NativeTypeName("const D3D12_BARRIER_SUBRESOURCE_RANGE &")] + in D3D12_BARRIER_SUBRESOURCE_RANGE subresources, + D3D12_TEXTURE_BARRIER_FLAGS flag = D3D12_TEXTURE_BARRIER_FLAG_NONE + ) + { + SyncBefore = syncBefore; + SyncAfter = syncAfter; + AccessBefore = accessBefore; + AccessAfter = accessAfter; + LayoutBefore = layoutBefore; + LayoutAfter = layoutAfter; + pResource = pRes; + Subresources = subresources; + Flags = flag; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_check_feature_support/CD3DX12FeatureSupport.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_check_feature_support/CD3DX12FeatureSupport.Manual.cs new file mode 100644 index 0000000000..cbdd5efb47 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_check_feature_support/CD3DX12FeatureSupport.Manual.cs @@ -0,0 +1,1457 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_check_feature_support.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D_FEATURE_LEVEL; +using static Silk.NET.DirectX.D3D_ROOT_SIGNATURE_VERSION; +using static Silk.NET.DirectX.D3D_SHADER_MODEL; +using static Silk.NET.DirectX.D3D12; +using static Silk.NET.DirectX.D3D12_CROSS_NODE_SHARING_TIER; +using static Silk.NET.DirectX.D3D12_FEATURE; +using static Silk.NET.DirectX.D3D12_HEAP_SERIALIZATION_TIER; +using static Silk.NET.DirectX.D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS; +using static Silk.NET.DirectX.D3D12_TRI_STATE; +using static Silk.NET.DirectX.DXGI; +using static Silk.NET.Win32.E; +using static Silk.NET.Win32.S; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe struct CD3DX12FeatureSupport : IDisposable +{ + private ID3D12Device m_pDevice; + private HRESULT m_hStatus; + private D3D12_FEATURE_DATA_D3D12_OPTIONS m_dOptions; + private D3D_FEATURE_LEVEL m_eMaxFeatureLevel; + private D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT m_dGPUVASupport; + private D3D12_FEATURE_DATA_SHADER_MODEL m_dShaderModel; + private D3D12_FEATURE_DATA_D3D12_OPTIONS1 m_dOptions1; + + [NativeTypeName("std::vector")] + private D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT* m_dProtectedResourceSessionSupport; + private D3D12_FEATURE_DATA_ROOT_SIGNATURE m_dRootSignature; + + [NativeTypeName("std::vector")] + private D3D12_FEATURE_DATA_ARCHITECTURE1* m_dArchitecture1; + private D3D12_FEATURE_DATA_D3D12_OPTIONS2 m_dOptions2; + private D3D12_FEATURE_DATA_SHADER_CACHE m_dShaderCache; + private D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY m_dCommandQueuePriority; + private D3D12_FEATURE_DATA_D3D12_OPTIONS3 m_dOptions3; + private D3D12_FEATURE_DATA_EXISTING_HEAPS m_dExistingHeaps; + private D3D12_FEATURE_DATA_D3D12_OPTIONS4 m_dOptions4; + + [NativeTypeName("std::vector")] + private D3D12_FEATURE_DATA_SERIALIZATION* m_dSerialization; + private D3D12_FEATURE_DATA_CROSS_NODE m_dCrossNode; + private D3D12_FEATURE_DATA_D3D12_OPTIONS5 m_dOptions5; + private D3D12_FEATURE_DATA_DISPLAYABLE m_dDisplayable; + private D3D12_FEATURE_DATA_D3D12_OPTIONS6 m_dOptions6; + private D3D12_FEATURE_DATA_D3D12_OPTIONS7 m_dOptions7; + + [NativeTypeName("std::vector")] + private D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT* m_dProtectedResourceSessionTypeCount; + + [NativeTypeName("std::vector")] + private ProtectedResourceSessionTypesLocal* m_dProtectedResourceSessionTypes; + private D3D12_FEATURE_DATA_D3D12_OPTIONS8 m_dOptions8; + private D3D12_FEATURE_DATA_D3D12_OPTIONS9 m_dOptions9; + private D3D12_FEATURE_DATA_D3D12_OPTIONS10 m_dOptions10; + private D3D12_FEATURE_DATA_D3D12_OPTIONS11 m_dOptions11; + private D3D12_FEATURE_DATA_D3D12_OPTIONS12 m_dOptions12; + private D3D12_FEATURE_DATA_D3D12_OPTIONS13 m_dOptions13; + private D3D12_FEATURE_DATA_D3D12_OPTIONS14 m_dOptions14; + private D3D12_FEATURE_DATA_D3D12_OPTIONS15 m_dOptions15; + private D3D12_FEATURE_DATA_D3D12_OPTIONS16 m_dOptions16; + private D3D12_FEATURE_DATA_D3D12_OPTIONS17 m_dOptions17; + private D3D12_FEATURE_DATA_D3D12_OPTIONS18 m_dOptions18; + private D3D12_FEATURE_DATA_D3D12_OPTIONS19 m_dOptions19; + private D3D12_FEATURE_DATA_D3D12_OPTIONS20 m_dOptions20; + + // Default constructor that creates an empty object + public CD3DX12FeatureSupport() + { + m_hStatus = E_INVALIDARG; + } + + [NativeTypeName( + "struct ProtectedResourceSessionTypesLocal : D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES" + )] + [NativeInheritance("D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES")] + private struct ProtectedResourceSessionTypesLocal + { + public D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES Base; + + [NativeTypeName("std::vector")] + public Guid* TypeVec; + + [UnscopedRef] + public ref uint NodeIndex => ref Base.NodeIndex; + + [UnscopedRef] + public ref uint Count => ref Base.Count; + + [UnscopedRef] + public ref Guid* pTypes => ref Base.pTypes; + } + + [Transformed] + // D3D12_OPTIONS6 + public readonly MaybeBool AdditionalShadingRatesSupported() => + (MaybeBool)(BOOL)AdditionalShadingRatesSupportedRaw(); + + // D3D12_OPTIONS6 + public readonly BOOL AdditionalShadingRatesSupportedRaw() => + m_dOptions6.AdditionalShadingRatesSupported; + + [Transformed] + // D3D12_OPTIONS14 + public readonly MaybeBool AdvancedTextureOpsSupported() => + (MaybeBool)(BOOL)AdvancedTextureOpsSupportedRaw(); + + // D3D12_OPTIONS14 + public readonly BOOL AdvancedTextureOpsSupportedRaw() => + m_dOptions14.AdvancedTextureOpsSupported; + + [Transformed] + public readonly MaybeBool AlphaBlendFactorSupported() => + (MaybeBool)(BOOL)AlphaBlendFactorSupportedRaw(); + + public readonly BOOL AlphaBlendFactorSupportedRaw() => m_dOptions13.AlphaBlendFactorSupported; + + [Transformed] + public readonly MaybeBool AnisoFilterWithPointMipSupported() => + (MaybeBool)(BOOL)AnisoFilterWithPointMipSupportedRaw(); + + public readonly BOOL AnisoFilterWithPointMipSupportedRaw() => + m_dOptions19.AnisoFilterWithPointMipSupported; + + [Transformed] + // D3D12_OPTIONS11 + public readonly MaybeBool AtomicInt64OnDescriptorHeapResourceSupported() => + (MaybeBool)(BOOL)AtomicInt64OnDescriptorHeapResourceSupportedRaw(); + + // D3D12_OPTIONS11 + public readonly BOOL AtomicInt64OnDescriptorHeapResourceSupportedRaw() => + m_dOptions11.AtomicInt64OnDescriptorHeapResourceSupported; + + [Transformed] + public readonly MaybeBool AtomicInt64OnGroupSharedSupported() => + (MaybeBool)(BOOL)AtomicInt64OnGroupSharedSupportedRaw(); + + public readonly BOOL AtomicInt64OnGroupSharedSupportedRaw() => + m_dOptions9.AtomicInt64OnGroupSharedSupported; + + [Transformed] + public readonly MaybeBool AtomicInt64OnTypedResourceSupported() => + (MaybeBool)(BOOL)AtomicInt64OnTypedResourceSupportedRaw(); + + public readonly BOOL AtomicInt64OnTypedResourceSupportedRaw() => + m_dOptions9.AtomicInt64OnTypedResourceSupported; + + [Transformed] + public readonly MaybeBool BackgroundProcessingSupported() => + (MaybeBool)(BOOL)BackgroundProcessingSupportedRaw(); + + public readonly BOOL BackgroundProcessingSupportedRaw() => + m_dOptions6.BackgroundProcessingSupported; + + [Transformed] + public readonly MaybeBool BarycentricsSupported() => + (MaybeBool)(BOOL)BarycentricsSupportedRaw(); + + public readonly BOOL BarycentricsSupportedRaw() => m_dOptions3.BarycentricsSupported; + + [Transformed] + public readonly MaybeBool CacheCoherentUMA(uint NodeIndex = 0) => + (MaybeBool)(BOOL)CacheCoherentUMARaw(NodeIndex); + + public readonly BOOL CacheCoherentUMARaw(uint NodeIndex = 0) => + m_dArchitecture1[NodeIndex].CacheCoherentUMA; + + [Transformed] + public readonly MaybeBool CastingFullyTypedFormatSupported() => + (MaybeBool)(BOOL)CastingFullyTypedFormatSupportedRaw(); + + public readonly BOOL CastingFullyTypedFormatSupportedRaw() => + m_dOptions3.CastingFullyTypedFormatSupported; + + [Transformed] + // COMMAND_QUEUE_PRIORITY + public MaybeBool CommandQueuePrioritySupported( + D3D12_COMMAND_LIST_TYPE CommandListType, + uint Priority + ) => (MaybeBool)(BOOL)CommandQueuePrioritySupportedRaw(CommandListType, Priority); + + // COMMAND_QUEUE_PRIORITY + public BOOL CommandQueuePrioritySupportedRaw( + D3D12_COMMAND_LIST_TYPE CommandListType, + uint Priority + ) + { + m_dCommandQueuePriority.CommandListType = CommandListType; + m_dCommandQueuePriority.Priority = Priority; + fixed (CD3DX12FeatureSupport* pThis = &this) + { + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_COMMAND_QUEUE_PRIORITY, + &pThis->m_dCommandQueuePriority, + (uint)(sizeof(D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY)) + ) + ) + ) + { + return false; + } + } + return m_dCommandQueuePriority.PriorityForTypeIsSupported; + } + + [Transformed] + // D3D12_OPTIONS20 + public readonly MaybeBool ComputeOnlyWriteWatchSupported() => + (MaybeBool)(BOOL)ComputeOnlyWriteWatchSupportedRaw(); + + // D3D12_OPTIONS20 + public readonly BOOL ComputeOnlyWriteWatchSupportedRaw() => + m_dOptions20.ComputeOnlyWriteWatchSupported; + + public readonly D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier() => + m_dOptions.ConservativeRasterizationTier; + + [Transformed] + // D3D12_OPTIONS3 + public readonly MaybeBool CopyQueueTimestampQueriesSupported() => + (MaybeBool)(BOOL)CopyQueueTimestampQueriesSupportedRaw(); + + // D3D12_OPTIONS3 + public readonly BOOL CopyQueueTimestampQueriesSupportedRaw() => + m_dOptions3.CopyQueueTimestampQueriesSupported; + + [Transformed] + public readonly MaybeBool CrossAdapterRowMajorTextureSupported() => + (MaybeBool)(BOOL)CrossAdapterRowMajorTextureSupportedRaw(); + + public readonly BOOL CrossAdapterRowMajorTextureSupportedRaw() => + m_dOptions.CrossAdapterRowMajorTextureSupported; + + [Transformed] + // CROSS_NODE + // CrossNodeSharingTier handled in D3D12Options + public readonly MaybeBool CrossNodeAtomicShaderInstructions() => + (MaybeBool)(BOOL)CrossNodeAtomicShaderInstructionsRaw(); + + // CROSS_NODE + // CrossNodeSharingTier handled in D3D12Options + public readonly BOOL CrossNodeAtomicShaderInstructionsRaw() => + m_dCrossNode.AtomicShaderInstructions; + + public readonly D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier() + { + if (m_dCrossNode.SharingTier > D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED) + { + return m_dCrossNode.SharingTier; + } + else + { + return m_dOptions.CrossNodeSharingTier; + } + } + + [Transformed] + // D3D12_OPTIONS2 + public readonly MaybeBool DepthBoundsTestSupported() => + (MaybeBool)(BOOL)DepthBoundsTestSupportedRaw(); + + // D3D12_OPTIONS2 + public readonly BOOL DepthBoundsTestSupportedRaw() => m_dOptions2.DepthBoundsTestSupported; + + [Transformed] + public readonly MaybeBool DerivativesInMeshAndAmplificationShadersSupported() => + (MaybeBool)(BOOL)DerivativesInMeshAndAmplificationShadersSupportedRaw(); + + public readonly BOOL DerivativesInMeshAndAmplificationShadersSupportedRaw() => + m_dOptions9.DerivativesInMeshAndAmplificationShadersSupported; + + [Transformed] + // DISPLAYABLE + public readonly MaybeBool DisplayableTexture() => + (MaybeBool)(BOOL)DisplayableTextureRaw(); + + // DISPLAYABLE + public readonly BOOL DisplayableTextureRaw() => m_dDisplayable.DisplayableTexture; + + public void Dispose() + { + NativeMemory.Free(m_dProtectedResourceSessionSupport); + m_dProtectedResourceSessionSupport = null; + NativeMemory.Free(m_dArchitecture1); + m_dArchitecture1 = null; + NativeMemory.Free(m_dSerialization); + m_dSerialization = null; + NativeMemory.Free(m_dProtectedResourceSessionTypeCount); + m_dProtectedResourceSessionTypeCount = null; + if (m_dProtectedResourceSessionTypes != null) + { + uint uNodeCount = m_pDevice.GetNodeCount(); + for (nuint NodeIndex = 0; NodeIndex < uNodeCount; NodeIndex++) + { + NativeMemory.Free(m_dProtectedResourceSessionTypes[NodeIndex].TypeVec); + } + NativeMemory.Free(m_dProtectedResourceSessionTypes); + m_dProtectedResourceSessionTypes = null; + } + } + + [Transformed] + // Getter functions for each feature class + // D3D12_OPTIONS + public readonly MaybeBool DoublePrecisionFloatShaderOps() => + (MaybeBool)(BOOL)DoublePrecisionFloatShaderOpsRaw(); + + // Getter functions for each feature class + // D3D12_OPTIONS + public readonly BOOL DoublePrecisionFloatShaderOpsRaw() => + m_dOptions.DoublePrecisionFloatShaderOps; + + [Transformed] + // D3D12_OPTIONS16 + public readonly MaybeBool DynamicDepthBiasSupported() => + (MaybeBool)(BOOL)DynamicDepthBiasSupportedRaw(); + + // D3D12_OPTIONS16 + public readonly BOOL DynamicDepthBiasSupportedRaw() => m_dOptions16.DynamicDepthBiasSupported; + + [Transformed] + public readonly MaybeBool DynamicIndexBufferStripCutSupported() => + (MaybeBool)(BOOL)DynamicIndexBufferStripCutSupportedRaw(); + + public readonly BOOL DynamicIndexBufferStripCutSupportedRaw() => + m_dOptions15.DynamicIndexBufferStripCutSupported; + + [Transformed] + public readonly MaybeBool EnhancedBarriersSupported() => + (MaybeBool)(BOOL)EnhancedBarriersSupportedRaw(); + + public readonly BOOL EnhancedBarriersSupportedRaw() => m_dOptions12.EnhancedBarriersSupported; + + [Transformed] + // EXISTING_HEAPS + public readonly MaybeBool ExistingHeapsSupported() => + (MaybeBool)(BOOL)ExistingHeapsSupportedRaw(); + + // EXISTING_HEAPS + public readonly BOOL ExistingHeapsSupportedRaw() => m_dExistingHeaps.Supported; + + [Transformed] + public readonly MaybeBool ExpandedComputeResourceStates() => + (MaybeBool)(BOOL)ExpandedComputeResourceStatesRaw(); + + public readonly BOOL ExpandedComputeResourceStatesRaw() => + m_dOptions1.ExpandedComputeResourceStates; + + // FORMAT_INFO + public readonly HRESULT FormatInfo( + DXGI_FORMAT Format, + [NativeTypeName("UINT8 &")] out byte PlaneCount + ) + { + D3D12_FEATURE_DATA_FORMAT_INFO dFormatInfo; + dFormatInfo.Format = Format; + HRESULT result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_FORMAT_INFO, + &dFormatInfo, + (uint)(sizeof(D3D12_FEATURE_DATA_FORMAT_INFO)) + ); + if (FAILED(result)) + { + PlaneCount = 0; + } + else + { + PlaneCount = dFormatInfo.PlaneCount; + } + return result; + } + + // FORMAT_SUPPORT + public readonly HRESULT FormatSupport( + DXGI_FORMAT Format, + [NativeTypeName("D3D12_FORMAT_SUPPORT1 &")] out D3D12_FORMAT_SUPPORT1 Support1, + [NativeTypeName("D3D12_FORMAT_SUPPORT2 &")] out D3D12_FORMAT_SUPPORT2 Support2 + ) + { + D3D12_FEATURE_DATA_FORMAT_SUPPORT dFormatSupport; + dFormatSupport.Format = Format; + // It is possible that the function call returns an error + HRESULT result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_FORMAT_SUPPORT, + &dFormatSupport, + (uint)(sizeof(D3D12_FEATURE_DATA_FORMAT_SUPPORT)) + ); + Support1 = dFormatSupport.Support1; + Support2 = dFormatSupport.Support2; // Two outputs. Probably better just to take in the struct as an argument? + return result; + } + + // Retrieves the status of the object. If an error occurred in the initialization process, the function returns the error code. + public readonly HRESULT GetStatus() => m_hStatus; + + [Transformed] + public readonly MaybeBool GPUUploadHeapSupported() => + (MaybeBool)(BOOL)GPUUploadHeapSupportedRaw(); + + public readonly BOOL GPUUploadHeapSupportedRaw() => m_dOptions16.GPUUploadHeapSupported; + + // SERIALIZATION + public readonly D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier(uint NodeIndex = 0) => + m_dSerialization[NodeIndex].HeapSerializationTier; + + // ROOT_SIGNATURE + public readonly D3D_ROOT_SIGNATURE_VERSION HighestRootSignatureVersion() => + m_dRootSignature.HighestVersion; + + // SHADER_MODEL + public readonly D3D_SHADER_MODEL HighestShaderModel() => m_dShaderModel.HighestShaderModel; + + [Transformed] + public readonly MaybeBool IndependentFrontAndBackStencilRefMaskSupported() => + (MaybeBool)(BOOL)IndependentFrontAndBackStencilRefMaskSupportedRaw(); + + public readonly BOOL IndependentFrontAndBackStencilRefMaskSupportedRaw() => + m_dOptions14.IndependentFrontAndBackStencilRefMaskSupported; + + // Initialize data from the given device + public HRESULT Init(ID3D12Device pDevice) + { + if (pDevice.lpVtbl == null) + { + m_hStatus = E_INVALIDARG; + return m_hStatus; + } + m_pDevice = pDevice; + fixed (CD3DX12FeatureSupport* pThis = &this) + { + // Initialize static feature support data structures + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS, + &pThis->m_dOptions, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS)) + ) + ) + ) + { + m_dOptions = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT, + &pThis->m_dGPUVASupport, + (uint)(sizeof(D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT)) + ) + ) + ) + { + m_dGPUVASupport = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS1, + &pThis->m_dOptions1, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS1)) + ) + ) + ) + { + m_dOptions1 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS2, + &pThis->m_dOptions2, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS2)) + ) + ) + ) + { + m_dOptions2 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_SHADER_CACHE, + &pThis->m_dShaderCache, + (uint)(sizeof(D3D12_FEATURE_DATA_SHADER_CACHE)) + ) + ) + ) + { + m_dShaderCache = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS3, + &pThis->m_dOptions3, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS3)) + ) + ) + ) + { + m_dOptions3 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_EXISTING_HEAPS, + &pThis->m_dExistingHeaps, + (uint)(sizeof(D3D12_FEATURE_DATA_EXISTING_HEAPS)) + ) + ) + ) + { + m_dExistingHeaps = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS4, + &pThis->m_dOptions4, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS4)) + ) + ) + ) + { + m_dOptions4 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_CROSS_NODE, + &pThis->m_dCrossNode, + (uint)(sizeof(D3D12_FEATURE_DATA_CROSS_NODE)) + ) + ) + ) + { + m_dCrossNode = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS5, + &pThis->m_dOptions5, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5)) + ) + ) + ) + { + m_dOptions5 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_DISPLAYABLE, + &pThis->m_dDisplayable, + (uint)(sizeof(D3D12_FEATURE_DATA_DISPLAYABLE)) + ) + ) + ) + { + m_dDisplayable = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS6, + &pThis->m_dOptions6, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS6)) + ) + ) + ) + { + m_dOptions6 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS7, + &pThis->m_dOptions7, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS7)) + ) + ) + ) + { + m_dOptions7 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS8, + &pThis->m_dOptions8, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS8)) + ) + ) + ) + { + m_dOptions8 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS9, + &pThis->m_dOptions9, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS9)) + ) + ) + ) + { + m_dOptions9 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS10, + &pThis->m_dOptions10, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS10)) + ) + ) + ) + { + m_dOptions10 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS11, + &pThis->m_dOptions11, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS11)) + ) + ) + ) + { + m_dOptions11 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS12, + &pThis->m_dOptions12, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS12)) + ) + ) + ) + { + m_dOptions12 = default; + m_dOptions12.MSPrimitivesPipelineStatisticIncludesCulledPrimitives = + D3D12_TRI_STATE_UNKNOWN; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS13, + &pThis->m_dOptions13, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS13)) + ) + ) + ) + { + m_dOptions13 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS14, + &pThis->m_dOptions14, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS14)) + ) + ) + ) + { + m_dOptions14 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS15, + &pThis->m_dOptions15, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS15)) + ) + ) + ) + { + m_dOptions15 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS16, + &pThis->m_dOptions16, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS16)) + ) + ) + ) + { + m_dOptions16 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS17, + &pThis->m_dOptions17, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS17)) + ) + ) + ) + { + m_dOptions17 = default; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS18, + &pThis->m_dOptions18, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS18)) + ) + ) + ) + { + m_dOptions18.RenderPassesValid = false; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS19, + &pThis->m_dOptions19, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS19)) + ) + ) + ) + { + m_dOptions19 = default; + m_dOptions19.SupportedSampleCountsWithNoOutputs = 1; + m_dOptions19.MaxSamplerDescriptorHeapSize = + D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE; + m_dOptions19.MaxSamplerDescriptorHeapSizeWithStaticSamplers = + D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE; + m_dOptions19.MaxViewDescriptorHeapSize = + D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1; + } + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_D3D12_OPTIONS20, + &pThis->m_dOptions20, + (uint)(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS20)) + ) + ) + ) + { + m_dOptions20 = default; + } + } + // Initialize per-node feature support data structures + uint uNodeCount = m_pDevice.GetNodeCount(); + NativeMemory.Free(m_dProtectedResourceSessionSupport); + m_dProtectedResourceSessionSupport = + (D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT*)( + NativeMemory.Alloc( + uNodeCount, + (uint)(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT)) + ) + ); + NativeMemory.Free(m_dArchitecture1); + m_dArchitecture1 = (D3D12_FEATURE_DATA_ARCHITECTURE1*)( + NativeMemory.Alloc(uNodeCount, (uint)(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE1))) + ); + NativeMemory.Free(m_dSerialization); + m_dSerialization = (D3D12_FEATURE_DATA_SERIALIZATION*)( + NativeMemory.Alloc(uNodeCount, (uint)(sizeof(D3D12_FEATURE_DATA_SERIALIZATION))) + ); + NativeMemory.Free(m_dProtectedResourceSessionTypeCount); + m_dProtectedResourceSessionTypeCount = + (D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT*)( + NativeMemory.Alloc( + uNodeCount, + (uint)(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT)) + ) + ); + NativeMemory.Free(m_dProtectedResourceSessionTypes); + m_dProtectedResourceSessionTypes = (ProtectedResourceSessionTypesLocal*)( + NativeMemory.Alloc(uNodeCount, (uint)(sizeof(ProtectedResourceSessionTypesLocal))) + ); + for (uint NodeIndex = 0; NodeIndex < uNodeCount; NodeIndex++) + { + m_dProtectedResourceSessionSupport[NodeIndex].NodeIndex = NodeIndex; + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT, + &m_dProtectedResourceSessionSupport[NodeIndex], + (uint)(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT)) + ) + ) + ) + { + m_dProtectedResourceSessionSupport[NodeIndex].Support = + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE; + } + m_dArchitecture1[NodeIndex].NodeIndex = NodeIndex; + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_ARCHITECTURE1, + &m_dArchitecture1[NodeIndex], + (uint)(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE1)) + ) + ) + ) + { + D3D12_FEATURE_DATA_ARCHITECTURE dArchLocal = default; + dArchLocal.NodeIndex = NodeIndex; + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_ARCHITECTURE, + &dArchLocal, + (uint)(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE)) + ) + ) + ) + { + dArchLocal.TileBasedRenderer = false; + dArchLocal.UMA = false; + dArchLocal.CacheCoherentUMA = false; + } + m_dArchitecture1[NodeIndex].TileBasedRenderer = dArchLocal.TileBasedRenderer; + m_dArchitecture1[NodeIndex].UMA = dArchLocal.UMA; + m_dArchitecture1[NodeIndex].CacheCoherentUMA = dArchLocal.CacheCoherentUMA; + m_dArchitecture1[NodeIndex].IsolatedMMU = false; + } + m_dSerialization[NodeIndex].NodeIndex = NodeIndex; + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_SERIALIZATION, + &m_dSerialization[NodeIndex], + (uint)(sizeof(D3D12_FEATURE_DATA_SERIALIZATION)) + ) + ) + ) + { + m_dSerialization[NodeIndex].HeapSerializationTier = D3D12_HEAP_SERIALIZATION_TIER_0; + } + m_dProtectedResourceSessionTypeCount[NodeIndex].NodeIndex = NodeIndex; + if ( + FAILED( + m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT, + &m_dProtectedResourceSessionTypeCount[NodeIndex], + (uint)(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT)) + ) + ) + ) + { + m_dProtectedResourceSessionTypeCount[NodeIndex].Count = 0; + } + // Special procedure to initialize local protected resource session types structs + // Must wait until session type count initialized + _ = QueryProtectedResourceSessionTypes( + NodeIndex, + m_dProtectedResourceSessionTypeCount[NodeIndex].Count + ); + } + // Initialize features that requires highest version check + if (FAILED(m_hStatus = QueryHighestShaderModel())) + { + return m_hStatus; + } + if (FAILED(m_hStatus = QueryHighestRootSignatureVersion())) + { + return m_hStatus; + } + // Initialize Feature Levels data + if (FAILED(m_hStatus = QueryHighestFeatureLevel())) + { + return m_hStatus; + } + return m_hStatus; + } + + [Transformed] + public readonly MaybeBool Int64ShaderOps() => (MaybeBool)(BOOL)Int64ShaderOpsRaw(); + + public readonly BOOL Int64ShaderOpsRaw() => m_dOptions1.Int64ShaderOps; + + [Transformed] + public readonly MaybeBool InvertedViewportDepthFlipsZSupported() => + (MaybeBool)(BOOL)InvertedViewportDepthFlipsZSupportedRaw(); + + public readonly BOOL InvertedViewportDepthFlipsZSupportedRaw() => + m_dOptions13.InvertedViewportDepthFlipsZSupported; + + [Transformed] + public readonly MaybeBool InvertedViewportHeightFlipsYSupported() => + (MaybeBool)(BOOL)InvertedViewportHeightFlipsYSupportedRaw(); + + public readonly BOOL InvertedViewportHeightFlipsYSupportedRaw() => + m_dOptions13.InvertedViewportHeightFlipsYSupported; + + [Transformed] + public readonly MaybeBool IsolatedMMU(uint NodeIndex = 0) => + (MaybeBool)(BOOL)IsolatedMMURaw(NodeIndex); + + public readonly BOOL IsolatedMMURaw(uint NodeIndex = 0) => + m_dArchitecture1[NodeIndex].IsolatedMMU; + + [Transformed] + public readonly MaybeBool ManualWriteTrackingResourceSupported() => + (MaybeBool)(BOOL)ManualWriteTrackingResourceSupportedRaw(); + + public readonly BOOL ManualWriteTrackingResourceSupportedRaw() => + m_dOptions17.ManualWriteTrackingResourceSupported; + + // GPU_VIRTUAL_ADDRESS_SUPPORT + public readonly uint MaxGPUVirtualAddressBitsPerProcess() => + m_dGPUVASupport.MaxGPUVirtualAddressBitsPerProcess; + + public readonly uint MaxGPUVirtualAddressBitsPerResource() + { + if (m_dOptions.MaxGPUVirtualAddressBitsPerResource > 0) + { + return m_dOptions.MaxGPUVirtualAddressBitsPerResource; + } + else + { + return m_dGPUVASupport.MaxGPUVirtualAddressBitsPerResource; + } + } + + public readonly uint MaxSamplerDescriptorHeapSize() => + m_dOptions19.MaxSamplerDescriptorHeapSize; + + public readonly uint MaxSamplerDescriptorHeapSizeWithStaticSamplers() => + m_dOptions19.MaxSamplerDescriptorHeapSizeWithStaticSamplers; + + // FEATURE_LEVELS + public readonly D3D_FEATURE_LEVEL MaxSupportedFeatureLevel() => m_eMaxFeatureLevel; + + public readonly uint MaxViewDescriptorHeapSize() => m_dOptions19.MaxViewDescriptorHeapSize; + + [Transformed] + public readonly MaybeBool MeshShaderPerPrimitiveShadingRateSupported() => + (MaybeBool)(BOOL)MeshShaderPerPrimitiveShadingRateSupportedRaw(); + + public readonly BOOL MeshShaderPerPrimitiveShadingRateSupportedRaw() => + m_dOptions10.MeshShaderPerPrimitiveShadingRateSupported; + + [Transformed] + // D3D12_OPTIONS9 + public readonly MaybeBool MeshShaderPipelineStatsSupported() => + (MaybeBool)(BOOL)MeshShaderPipelineStatsSupportedRaw(); + + // D3D12_OPTIONS9 + public readonly BOOL MeshShaderPipelineStatsSupportedRaw() => + m_dOptions9.MeshShaderPipelineStatsSupported; + + [Transformed] + public readonly MaybeBool MeshShaderSupportsFullRangeRenderTargetArrayIndex() => + (MaybeBool)(BOOL)MeshShaderSupportsFullRangeRenderTargetArrayIndexRaw(); + + public readonly BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndexRaw() => + m_dOptions9.MeshShaderSupportsFullRangeRenderTargetArrayIndex; + + // D3D12_OPTIONS7 + public readonly D3D12_MESH_SHADER_TIER MeshShaderTier() => m_dOptions7.MeshShaderTier; + + public readonly D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport() => + m_dOptions.MinPrecisionSupport; + + [Transformed] + // D3D12_OPTIONS19 + public readonly MaybeBool MismatchingOutputDimensionsSupported() => + (MaybeBool)(BOOL)MismatchingOutputDimensionsSupportedRaw(); + + // D3D12_OPTIONS19 + public readonly BOOL MismatchingOutputDimensionsSupportedRaw() => + m_dOptions19.MismatchingOutputDimensionsSupported; + + [Transformed] + // D3D12_OPTIONS4 + public readonly MaybeBool MSAA64KBAlignedTextureSupported() => + (MaybeBool)(BOOL)MSAA64KBAlignedTextureSupportedRaw(); + + // D3D12_OPTIONS4 + public readonly BOOL MSAA64KBAlignedTextureSupportedRaw() => + m_dOptions4.MSAA64KBAlignedTextureSupported; + + // D3D12_OPTIONS12 + public readonly D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives() => + m_dOptions12.MSPrimitivesPipelineStatisticIncludesCulledPrimitives; + + // MUTLTISAMPLE_QUALITY_LEVELS + public readonly HRESULT MultisampleQualityLevels( + DXGI_FORMAT Format, + uint SampleCount, + D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags, + [NativeTypeName("UINT &")] out uint NumQualityLevels + ) + { + D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS dMultisampleQualityLevels; + dMultisampleQualityLevels.Format = Format; + dMultisampleQualityLevels.SampleCount = SampleCount; + dMultisampleQualityLevels.Flags = Flags; + HRESULT result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS, + &dMultisampleQualityLevels, + (uint)(sizeof(D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS)) + ); + if (SUCCEEDED(result)) + { + NumQualityLevels = dMultisampleQualityLevels.NumQualityLevels; + } + else + { + NumQualityLevels = 0; + } + return result; + } + + [Transformed] + public readonly MaybeBool NarrowQuadrilateralLinesSupported() => + (MaybeBool)(BOOL)NarrowQuadrilateralLinesSupportedRaw(); + + public readonly BOOL NarrowQuadrilateralLinesSupportedRaw() => + m_dOptions19.NarrowQuadrilateralLinesSupported; + + [Transformed] + public readonly MaybeBool Native16BitShaderOpsSupported() => + (MaybeBool)(BOOL)Native16BitShaderOpsSupportedRaw(); + + public readonly BOOL Native16BitShaderOpsSupportedRaw() => + m_dOptions4.Native16BitShaderOpsSupported; + + [Transformed] + // D3D12_OPTIONS17 + public readonly MaybeBool NonNormalizedCoordinateSamplersSupported() => + (MaybeBool)(BOOL)NonNormalizedCoordinateSamplersSupportedRaw(); + + // D3D12_OPTIONS17 + public readonly BOOL NonNormalizedCoordinateSamplersSupportedRaw() => + m_dOptions17.NonNormalizedCoordinateSamplersSupported; + + [Transformed] + public readonly MaybeBool OutputMergerLogicOp() => + (MaybeBool)(BOOL)OutputMergerLogicOpRaw(); + + public readonly BOOL OutputMergerLogicOpRaw() => m_dOptions.OutputMergerLogicOp; + + [Transformed] + public readonly MaybeBool PerPrimitiveShadingRateSupportedWithViewportIndexing() => + (MaybeBool)(BOOL)PerPrimitiveShadingRateSupportedWithViewportIndexingRaw(); + + public readonly BOOL PerPrimitiveShadingRateSupportedWithViewportIndexingRaw() => + m_dOptions6.PerPrimitiveShadingRateSupportedWithViewportIndexing; + + [Transformed] + public readonly MaybeBool PointSamplingAddressesNeverRoundUp() => + (MaybeBool)(BOOL)PointSamplingAddressesNeverRoundUpRaw(); + + public readonly BOOL PointSamplingAddressesNeverRoundUpRaw() => + m_dOptions19.PointSamplingAddressesNeverRoundUp; + + public readonly D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier() => + m_dOptions2.ProgrammableSamplePositionsTier; + + // PROTECTED_RESOURCE_SESSION_SUPPORT + public readonly D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS ProtectedResourceSessionSupport( + uint NodeIndex = 0 + ) => m_dProtectedResourceSessionSupport[NodeIndex].Support; + + // PROTECTED_RESOURCE_SESSION_TYPE_COUNT + public readonly uint ProtectedResourceSessionTypeCount(uint NodeIndex = 0) => + m_dProtectedResourceSessionTypeCount[NodeIndex].Count; + + // PROTECTED_RESOURCE_SESSION_TYPES + [return: NativeTypeName("std::vector")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public readonly Ptr ProtectedResourceSessionTypes(uint NodeIndex = 0) => + (Guid*)ProtectedResourceSessionTypesRaw(NodeIndex); + + // PROTECTED_RESOURCE_SESSION_TYPES + [return: NativeTypeName("std::vector")] + public readonly Guid* ProtectedResourceSessionTypesRaw(uint NodeIndex = 0) => + m_dProtectedResourceSessionTypes[NodeIndex].TypeVec; + + [Transformed] + public readonly MaybeBool PSSpecifiedStencilRefSupported() => + (MaybeBool)(BOOL)PSSpecifiedStencilRefSupportedRaw(); + + public readonly BOOL PSSpecifiedStencilRefSupportedRaw() => + m_dOptions.PSSpecifiedStencilRefSupported; + + // Helper function to decide the highest feature level + private HRESULT QueryHighestFeatureLevel() + { + HRESULT result; + // Check against a list of all feature levels present in d3dcommon.h + // Needs to be updated for future feature levels + const int numLevels = 12; + D3D_FEATURE_LEVEL* allLevels = + stackalloc D3D_FEATURE_LEVEL[numLevels] { + D3D_FEATURE_LEVEL_12_2, + D3D_FEATURE_LEVEL_12_1, + D3D_FEATURE_LEVEL_12_0, + D3D_FEATURE_LEVEL_11_1, + D3D_FEATURE_LEVEL_11_0, + D3D_FEATURE_LEVEL_10_1, + D3D_FEATURE_LEVEL_10_0, + D3D_FEATURE_LEVEL_9_3, + D3D_FEATURE_LEVEL_9_2, + D3D_FEATURE_LEVEL_9_1, + D3D_FEATURE_LEVEL_1_0_CORE, + D3D_FEATURE_LEVEL_1_0_GENERIC, + }; + D3D12_FEATURE_DATA_FEATURE_LEVELS dFeatureLevel; + dFeatureLevel.NumFeatureLevels = numLevels; + dFeatureLevel.pFeatureLevelsRequested = allLevels; + result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_FEATURE_LEVELS, + &dFeatureLevel, + (uint)(sizeof(D3D12_FEATURE_DATA_FEATURE_LEVELS)) + ); + if (SUCCEEDED(result)) + { + m_eMaxFeatureLevel = dFeatureLevel.MaxSupportedFeatureLevel; + } + else + { + m_eMaxFeatureLevel = (D3D_FEATURE_LEVEL)(0); + if (result == DXGI_ERROR_UNSUPPORTED) + { + // Indicates that none supported. Continue initialization + result = S_OK; + } + } + return result; + } + + // Helper function to decide the highest root signature supported + // Must be updated whenever a new root signature version is added to the d3d12.h header + private HRESULT QueryHighestRootSignatureVersion() + { + HRESULT result; + const int numRootSignatureVersions = 4; + D3D_ROOT_SIGNATURE_VERSION* allRootSignatureVersions = + stackalloc D3D_ROOT_SIGNATURE_VERSION[numRootSignatureVersions] { + D3D_ROOT_SIGNATURE_VERSION_1_2, + D3D_ROOT_SIGNATURE_VERSION_1_1, + D3D_ROOT_SIGNATURE_VERSION_1_0, + D3D_ROOT_SIGNATURE_VERSION_1, + }; + fixed (CD3DX12FeatureSupport* pThis = &this) + { + for (nuint i = 0; i < numRootSignatureVersions; i++) + { + m_dRootSignature.HighestVersion = allRootSignatureVersions[i]; + result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_ROOT_SIGNATURE, + &pThis->m_dRootSignature, + (uint)(sizeof(D3D12_FEATURE_DATA_ROOT_SIGNATURE)) + ); + if (result != E_INVALIDARG) + { + if (FAILED(result)) + { + m_dRootSignature.HighestVersion = (D3D_ROOT_SIGNATURE_VERSION)(0); + } + // If succeeded, the highest version is already written into the member struct + return result; + } + } + } + // No version left. Set to invalid value and continue. + m_dRootSignature.HighestVersion = (D3D_ROOT_SIGNATURE_VERSION)(0); + return S_OK; + } + + // Helper function to decide the highest shader model supported by the system + // Stores the result in m_dShaderModel + // Must be updated whenever a new shader model is added to the d3d12.h header + private HRESULT QueryHighestShaderModel() + { + // Check support in descending order + HRESULT result; + const int numModelVersions = 10; + D3D_SHADER_MODEL* allModelVersions = + stackalloc D3D_SHADER_MODEL[numModelVersions] { + D3D_SHADER_MODEL_6_8, + D3D_SHADER_MODEL_6_7, + D3D_SHADER_MODEL_6_6, + D3D_SHADER_MODEL_6_5, + D3D_SHADER_MODEL_6_4, + D3D_SHADER_MODEL_6_3, + D3D_SHADER_MODEL_6_2, + D3D_SHADER_MODEL_6_1, + D3D_SHADER_MODEL_6_0, + D3D_SHADER_MODEL_5_1, + }; + fixed (CD3DX12FeatureSupport* pThis = &this) + { + for (nuint i = 0; i < numModelVersions; i++) + { + m_dShaderModel.HighestShaderModel = allModelVersions[i]; + result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_SHADER_MODEL, + &pThis->m_dShaderModel, + (uint)(sizeof(D3D12_FEATURE_DATA_SHADER_MODEL)) + ); + if (result != E_INVALIDARG) + { + // Indicates that the version is recognizable by the runtime and stored in the struct + // Also terminate on unexpected error code + if (FAILED(result)) + { + m_dShaderModel.HighestShaderModel = (D3D_SHADER_MODEL)(0); + } + return result; + } + } + } + // Shader model may not be supported. Continue the rest initializations + m_dShaderModel.HighestShaderModel = (D3D_SHADER_MODEL)(0); + return S_OK; + } + + // QUERY_META_COMMAND + public readonly HRESULT QueryMetaCommand( + [NativeTypeName("D3D12_FEATURE_DATA_QUERY_META_COMMAND &")] + out D3D12_FEATURE_DATA_QUERY_META_COMMAND dQueryMetaCommand + ) + { + fixed (D3D12_FEATURE_DATA_QUERY_META_COMMAND* pQueryMetaCommand = &dQueryMetaCommand) + { + return m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_QUERY_META_COMMAND, + pQueryMetaCommand, + (uint)(sizeof(D3D12_FEATURE_DATA_QUERY_META_COMMAND)) + ); + } + } + + // Helper function to initialize local protected resource session types structs + private HRESULT QueryProtectedResourceSessionTypes(uint NodeIndex, uint Count) + { + ref ProtectedResourceSessionTypesLocal CurrentPRSTypes = + ref m_dProtectedResourceSessionTypes[NodeIndex]; + CurrentPRSTypes.NodeIndex = NodeIndex; + CurrentPRSTypes.Count = Count; + NativeMemory.Free(CurrentPRSTypes.TypeVec); + CurrentPRSTypes.TypeVec = (Guid*)( + NativeMemory.Alloc(CurrentPRSTypes.Count, (uint)(sizeof(Guid))) + ); + CurrentPRSTypes.pTypes = CurrentPRSTypes.TypeVec; + HRESULT result = m_pDevice.CheckFeatureSupport( + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES, + &m_dProtectedResourceSessionTypes[NodeIndex], + (uint)(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES)) + ); + if (FAILED(result)) + { + // Resize TypeVec to empty + NativeMemory.Free(CurrentPRSTypes.TypeVec); + CurrentPRSTypes.TypeVec = null; + } + return result; + } + + [Transformed] + public readonly MaybeBool RasterizerDesc2Supported() => + (MaybeBool)(BOOL)RasterizerDesc2SupportedRaw(); + + public readonly BOOL RasterizerDesc2SupportedRaw() => m_dOptions19.RasterizerDesc2Supported; + + public readonly D3D12_RAYTRACING_TIER RaytracingTier() => m_dOptions5.RaytracingTier; + + [Transformed] + public readonly MaybeBool RelaxedFormatCastingSupported() => + (MaybeBool)(BOOL)RelaxedFormatCastingSupportedRaw(); + + public readonly BOOL RelaxedFormatCastingSupportedRaw() => + m_dOptions12.RelaxedFormatCastingSupported; + + public readonly D3D12_RENDER_PASS_TIER RenderPassesTier() => m_dOptions5.RenderPassesTier; + + [Transformed] + // D3D12_OPTIONS18 + public readonly MaybeBool RenderPassesValid() => + (MaybeBool)(BOOL)RenderPassesValidRaw(); + + // D3D12_OPTIONS18 + public readonly BOOL RenderPassesValidRaw() => m_dOptions18.RenderPassesValid; + + public readonly D3D12_RESOURCE_BINDING_TIER ResourceBindingTier() => + m_dOptions.ResourceBindingTier; + + public readonly D3D12_RESOURCE_HEAP_TIER ResourceHeapTier() => m_dOptions.ResourceHeapTier; + + [Transformed] + public readonly MaybeBool ROVsSupported() => (MaybeBool)(BOOL)ROVsSupportedRaw(); + + public readonly BOOL ROVsSupportedRaw() => m_dOptions.ROVsSupported; + + public readonly D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier() => + m_dOptions7.SamplerFeedbackTier; + + // SHADER_CACHE + public readonly D3D12_SHADER_CACHE_SUPPORT_FLAGS ShaderCacheSupportFlags() => + m_dShaderCache.SupportFlags; + + public readonly uint ShadingRateImageTileSize() => m_dOptions6.ShadingRateImageTileSize; + + public readonly D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier() => + m_dOptions4.SharedResourceCompatibilityTier; + + [Transformed] + // D3D12_OPTIONS5 + public readonly MaybeBool SRVOnlyTiledResourceTier3() => + (MaybeBool)(BOOL)SRVOnlyTiledResourceTier3Raw(); + + // D3D12_OPTIONS5 + public readonly BOOL SRVOnlyTiledResourceTier3Raw() => m_dOptions5.SRVOnlyTiledResourceTier3; + + [Transformed] + public readonly MaybeBool StandardSwizzle64KBSupported() => + (MaybeBool)(BOOL)StandardSwizzle64KBSupportedRaw(); + + public readonly BOOL StandardSwizzle64KBSupportedRaw() => + m_dOptions.StandardSwizzle64KBSupported; + + public readonly uint SupportedSampleCountsWithNoOutputs() => + m_dOptions19.SupportedSampleCountsWithNoOutputs; + + [Transformed] + public readonly MaybeBool TextureCopyBetweenDimensionsSupported() => + (MaybeBool)(BOOL)TextureCopyBetweenDimensionsSupportedRaw(); + + public readonly BOOL TextureCopyBetweenDimensionsSupportedRaw() => + m_dOptions13.TextureCopyBetweenDimensionsSupported; + + [Transformed] + // ARCHITECTURE1 + public readonly MaybeBool TileBasedRenderer(uint NodeIndex = 0) => + (MaybeBool)(BOOL)TileBasedRendererRaw(NodeIndex); + + // ARCHITECTURE1 + public readonly BOOL TileBasedRendererRaw(uint NodeIndex = 0) => + m_dArchitecture1[NodeIndex].TileBasedRenderer; + + public readonly D3D12_TILED_RESOURCES_TIER TiledResourcesTier() => + m_dOptions.TiledResourcesTier; + + public readonly uint TotalLaneCount() => m_dOptions1.TotalLaneCount; + + [Transformed] + // D3D12_OPTIONS15 + public readonly MaybeBool TriangleFanSupported() => + (MaybeBool)(BOOL)TriangleFanSupportedRaw(); + + // D3D12_OPTIONS15 + public readonly BOOL TriangleFanSupportedRaw() => m_dOptions15.TriangleFanSupported; + + [Transformed] + public readonly MaybeBool TypedUAVLoadAdditionalFormats() => + (MaybeBool)(BOOL)TypedUAVLoadAdditionalFormatsRaw(); + + public readonly BOOL TypedUAVLoadAdditionalFormatsRaw() => + m_dOptions.TypedUAVLoadAdditionalFormats; + + [Transformed] + public readonly MaybeBool UMA(uint NodeIndex = 0) => + (MaybeBool)(BOOL)UMARaw(NodeIndex); + + public readonly BOOL UMARaw(uint NodeIndex = 0) => m_dArchitecture1[NodeIndex].UMA; + + [Transformed] + // D3D12_OPTIONS8 + public readonly MaybeBool UnalignedBlockTexturesSupported() => + (MaybeBool)(BOOL)UnalignedBlockTexturesSupportedRaw(); + + // D3D12_OPTIONS8 + public readonly BOOL UnalignedBlockTexturesSupportedRaw() => + m_dOptions8.UnalignedBlockTexturesSupported; + + [Transformed] + // D3D12_OPTIONS13 + public readonly MaybeBool UnrestrictedBufferTextureCopyPitchSupported() => + (MaybeBool)(BOOL)UnrestrictedBufferTextureCopyPitchSupportedRaw(); + + // D3D12_OPTIONS13 + public readonly BOOL UnrestrictedBufferTextureCopyPitchSupportedRaw() => + m_dOptions13.UnrestrictedBufferTextureCopyPitchSupported; + + [Transformed] + public readonly MaybeBool UnrestrictedVertexElementAlignmentSupported() => + (MaybeBool)(BOOL)UnrestrictedVertexElementAlignmentSupportedRaw(); + + public readonly BOOL UnrestrictedVertexElementAlignmentSupportedRaw() => + m_dOptions13.UnrestrictedVertexElementAlignmentSupported; + + [Transformed] + // D3D12_OPTIONS10 + public readonly MaybeBool VariableRateShadingSumCombinerSupported() => + (MaybeBool)(BOOL)VariableRateShadingSumCombinerSupportedRaw(); + + // D3D12_OPTIONS10 + public readonly BOOL VariableRateShadingSumCombinerSupportedRaw() => + m_dOptions10.VariableRateShadingSumCombinerSupported; + + public readonly D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier() => + m_dOptions6.VariableShadingRateTier; + + public readonly D3D12_VIEW_INSTANCING_TIER ViewInstancingTier() => + m_dOptions3.ViewInstancingTier; + + [Transformed] + public readonly MaybeBool VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation() => + (MaybeBool) + (BOOL)VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulationRaw(); + + public readonly BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulationRaw() => + m_dOptions.VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation; + + public readonly uint WaveLaneCountMax() => m_dOptions1.WaveLaneCountMax; + + public readonly uint WaveLaneCountMin() => m_dOptions1.WaveLaneCountMin; + + public readonly D3D12_WAVE_MMA_TIER WaveMMATier() => m_dOptions9.WaveMMATier; + + [Transformed] + // D3D12_OPTIONS1 + public readonly MaybeBool WaveOps() => (MaybeBool)(BOOL)WaveOpsRaw(); + + // D3D12_OPTIONS1 + public readonly BOOL WaveOpsRaw() => m_dOptions1.WaveOps; + + [Transformed] + public readonly MaybeBool WriteableMSAATexturesSupported() => + (MaybeBool)(BOOL)WriteableMSAATexturesSupportedRaw(); + + public readonly BOOL WriteableMSAATexturesSupportedRaw() => + m_dOptions14.WriteableMSAATexturesSupported; + + public readonly D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags() => + m_dOptions3.WriteBufferImmediateSupportFlags; +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_BLEND_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_BLEND_DESC.Manual.cs new file mode 100644 index 0000000000..a9745718d8 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_BLEND_DESC.Manual.cs @@ -0,0 +1,353 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_BLEND_DESC +{ + public static ref readonly D3D12_BLEND_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_CLEAR_VALUE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_CLEAR_VALUE.Manual.cs new file mode 100644 index 0000000000..a6ebc367ab --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_CLEAR_VALUE.Manual.cs @@ -0,0 +1,99 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_CLEAR_VALUE : IEquatable +{ + public D3D12_CLEAR_VALUE(DXGI_FORMAT format, [NativeTypeName("const FLOAT[4]")] float* color) + { + Unsafe.SkipInit(out this); + Format = format; + Anonymous.Color[0] = color[0]; + Anonymous.Color[1] = color[1]; + Anonymous.Color[2] = color[2]; + Anonymous.Color[3] = color[3]; + } + + public D3D12_CLEAR_VALUE( + DXGI_FORMAT format, + float depth, + [NativeTypeName("UINT8")] byte stencil + ) + { + Format = format; + Anonymous.DepthStencil.Depth = depth; + Anonymous.DepthStencil.Stencil = stencil; + } + + /// + + public static bool operator ==( + [NativeTypeName("const D3D12_CLEAR_VALUE &")] in D3D12_CLEAR_VALUE a, + [NativeTypeName("const D3D12_CLEAR_VALUE &")] in D3D12_CLEAR_VALUE b + ) + { + if (a.Format != b.Format) + { + return false; + } + if ( + (a.Format == DXGI_FORMAT_D24_UNORM_S8_UINT) + || (a.Format == DXGI_FORMAT_D16_UNORM) + || (a.Format == DXGI_FORMAT_D32_FLOAT) + || (a.Format == DXGI_FORMAT_D32_FLOAT_S8X24_UINT) + ) + { + return (a.Anonymous.DepthStencil.Depth == b.Anonymous.DepthStencil.Depth) + && (a.Anonymous.DepthStencil.Stencil == b.Anonymous.DepthStencil.Stencil); + } + else + { + return (a.Anonymous.Color[0] == b.Anonymous.Color[0]) + && (a.Anonymous.Color[1] == b.Anonymous.Color[1]) + && (a.Anonymous.Color[2] == b.Anonymous.Color[2]) + && (a.Anonymous.Color[3] == b.Anonymous.Color[3]); + } + } + + /// + + public static bool operator !=( + [NativeTypeName("const D3D12_CLEAR_VALUE &")] in D3D12_CLEAR_VALUE l, + [NativeTypeName("const D3D12_CLEAR_VALUE &")] in D3D12_CLEAR_VALUE r + ) => !(l == r); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_CLEAR_VALUE other) && Equals(other); + + public readonly bool Equals(D3D12_CLEAR_VALUE other) => (this == other); + + public override readonly int GetHashCode() + { + var hashCode = new HashCode(); + hashCode.Add(Format); + if ( + (Format == DXGI_FORMAT_D24_UNORM_S8_UINT) + || (Format == DXGI_FORMAT_D16_UNORM) + || (Format == DXGI_FORMAT_D32_FLOAT) + || (Format == DXGI_FORMAT_D32_FLOAT_S8X24_UINT) + ) + { + hashCode.Add(Anonymous.DepthStencil.Depth); + hashCode.Add(Anonymous.DepthStencil.Stencil); + } + else + { + hashCode.Add(Anonymous.Color[0]); + hashCode.Add(Anonymous.Color[1]); + hashCode.Add(Anonymous.Color[2]); + hashCode.Add(Anonymous.Color[3]); + } + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC.Manual.cs new file mode 100644 index 0000000000..c2245921ca --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC.Manual.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_DEPTH_STENCIL_DESC +{ + public static ref readonly D3D12_DEPTH_STENCIL_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC1.Manual.cs new file mode 100644 index 0000000000..499d8b261d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC1.Manual.cs @@ -0,0 +1,129 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_DEPTH_STENCIL_DESC1 +{ + public static ref readonly D3D12_DEPTH_STENCIL_DESC1 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D12_DEPTH_STENCIL_DESC1( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] in D3D12_DEPTH_STENCIL_DESC o + ) + { + DepthEnable = o.DepthEnable; + DepthWriteMask = o.DepthWriteMask; + DepthFunc = o.DepthFunc; + StencilEnable = o.StencilEnable; + StencilReadMask = o.StencilReadMask; + StencilWriteMask = o.StencilWriteMask; + FrontFace.StencilFailOp = o.FrontFace.StencilFailOp; + FrontFace.StencilDepthFailOp = o.FrontFace.StencilDepthFailOp; + FrontFace.StencilPassOp = o.FrontFace.StencilPassOp; + FrontFace.StencilFunc = o.FrontFace.StencilFunc; + BackFace.StencilFailOp = o.BackFace.StencilFailOp; + BackFace.StencilDepthFailOp = o.BackFace.StencilDepthFailOp; + BackFace.StencilPassOp = o.BackFace.StencilPassOp; + BackFace.StencilFunc = o.BackFace.StencilFunc; + DepthBoundsTestEnable = 0; + } + + public static explicit operator D3D12_DEPTH_STENCIL_DESC(D3D12_DEPTH_STENCIL_DESC1 value) => + new D3D12_DEPTH_STENCIL_DESC + { + DepthEnable = value.DepthEnable, + DepthWriteMask = value.DepthWriteMask, + DepthFunc = value.DepthFunc, + StencilEnable = value.StencilEnable, + StencilReadMask = value.StencilReadMask, + StencilWriteMask = value.StencilWriteMask, + FrontFace = new D3D12_DEPTH_STENCILOP_DESC + { + StencilFailOp = value.FrontFace.StencilFailOp, + StencilDepthFailOp = value.FrontFace.StencilDepthFailOp, + StencilPassOp = value.FrontFace.StencilPassOp, + StencilFunc = value.FrontFace.StencilFunc, + }, + BackFace = new D3D12_DEPTH_STENCILOP_DESC + { + StencilFailOp = value.BackFace.StencilFailOp, + StencilDepthFailOp = value.BackFace.StencilDepthFailOp, + StencilPassOp = value.BackFace.StencilPassOp, + StencilFunc = value.BackFace.StencilFunc, + }, + }; +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC2.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC2.Manual.cs new file mode 100644 index 0000000000..5de07762aa --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_DEPTH_STENCIL_DESC2.Manual.cs @@ -0,0 +1,158 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_DEPTH_STENCIL_DESC2 +{ + public D3D12_DEPTH_STENCIL_DESC2( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] in D3D12_DEPTH_STENCIL_DESC1 o + ) + { + DepthEnable = o.DepthEnable; + DepthWriteMask = o.DepthWriteMask; + DepthFunc = o.DepthFunc; + StencilEnable = o.StencilEnable; + FrontFace.StencilFailOp = o.FrontFace.StencilFailOp; + FrontFace.StencilDepthFailOp = o.FrontFace.StencilDepthFailOp; + FrontFace.StencilPassOp = o.FrontFace.StencilPassOp; + FrontFace.StencilFunc = o.FrontFace.StencilFunc; + FrontFace.StencilReadMask = o.StencilReadMask; + FrontFace.StencilWriteMask = o.StencilWriteMask; + BackFace.StencilFailOp = o.BackFace.StencilFailOp; + BackFace.StencilDepthFailOp = o.BackFace.StencilDepthFailOp; + BackFace.StencilPassOp = o.BackFace.StencilPassOp; + BackFace.StencilFunc = o.BackFace.StencilFunc; + BackFace.StencilReadMask = o.StencilReadMask; + BackFace.StencilWriteMask = o.StencilWriteMask; + DepthBoundsTestEnable = o.DepthBoundsTestEnable; + } + + public D3D12_DEPTH_STENCIL_DESC2( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] in D3D12_DEPTH_STENCIL_DESC o + ) + { + DepthEnable = o.DepthEnable; + DepthWriteMask = o.DepthWriteMask; + DepthFunc = o.DepthFunc; + StencilEnable = o.StencilEnable; + FrontFace.StencilFailOp = o.FrontFace.StencilFailOp; + FrontFace.StencilDepthFailOp = o.FrontFace.StencilDepthFailOp; + FrontFace.StencilPassOp = o.FrontFace.StencilPassOp; + FrontFace.StencilFunc = o.FrontFace.StencilFunc; + FrontFace.StencilReadMask = o.StencilReadMask; + FrontFace.StencilWriteMask = o.StencilWriteMask; + BackFace.StencilFailOp = o.BackFace.StencilFailOp; + BackFace.StencilDepthFailOp = o.BackFace.StencilDepthFailOp; + BackFace.StencilPassOp = o.BackFace.StencilPassOp; + BackFace.StencilFunc = o.BackFace.StencilFunc; + BackFace.StencilReadMask = o.StencilReadMask; + BackFace.StencilWriteMask = o.StencilWriteMask; + DepthBoundsTestEnable = 0; + } + + public static ref readonly D3D12_DEPTH_STENCIL_DESC2 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public static explicit operator D3D12_DEPTH_STENCIL_DESC(in D3D12_DEPTH_STENCIL_DESC2 value) => + new D3D12_DEPTH_STENCIL_DESC + { + DepthEnable = value.DepthEnable, + DepthWriteMask = value.DepthWriteMask, + DepthFunc = value.DepthFunc, + StencilEnable = value.StencilEnable, + StencilReadMask = value.FrontFace.StencilReadMask, + StencilWriteMask = value.FrontFace.StencilWriteMask, + FrontFace = new D3D12_DEPTH_STENCILOP_DESC + { + StencilFailOp = value.FrontFace.StencilFailOp, + StencilDepthFailOp = value.FrontFace.StencilDepthFailOp, + StencilPassOp = value.FrontFace.StencilPassOp, + StencilFunc = value.FrontFace.StencilFunc, + }, + BackFace = new D3D12_DEPTH_STENCILOP_DESC + { + StencilFailOp = value.BackFace.StencilFailOp, + StencilDepthFailOp = value.BackFace.StencilDepthFailOp, + StencilPassOp = value.BackFace.StencilPassOp, + StencilFunc = value.BackFace.StencilFunc, + }, + }; +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_HEAP_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_HEAP_DESC.Manual.cs new file mode 100644 index 0000000000..c0f05b2239 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_HEAP_DESC.Manual.cs @@ -0,0 +1,41 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_HEAP_DESC : IEquatable +{ + /// + + public static bool operator ==( + [NativeTypeName("const D3D12_HEAP_DESC &")] in D3D12_HEAP_DESC l, + [NativeTypeName("const D3D12_HEAP_DESC &")] in D3D12_HEAP_DESC r + ) => + (l.SizeInBytes == r.SizeInBytes) + && (l.Properties == r.Properties) + && (l.Alignment == r.Alignment) + && (l.Flags == r.Flags); + + /// + + public static bool operator !=( + [NativeTypeName("const D3D12_HEAP_DESC &")] in D3D12_HEAP_DESC l, + [NativeTypeName("const D3D12_HEAP_DESC &")] in D3D12_HEAP_DESC r + ) => !(l == r); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_HEAP_DESC other) && Equals(other); + + public readonly bool Equals(D3D12_HEAP_DESC other) => (this == other); + + public override readonly int GetHashCode() => + HashCode.Combine(SizeInBytes, Properties, Alignment, Flags); + + public readonly bool IsCPUAccessible() + { + return Properties.IsCPUAccessible(); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_HEAP_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_HEAP_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..e9855134cf --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_HEAP_PROPERTIES.Manual.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_HEAP_PROPERTIES : IEquatable +{ + /// + + public static bool operator ==( + [NativeTypeName("const D3D12_HEAP_PROPERTIES &")] in D3D12_HEAP_PROPERTIES l, + [NativeTypeName("const D3D12_HEAP_PROPERTIES &")] in D3D12_HEAP_PROPERTIES r + ) => + (l.Type == r.Type) + && (l.CPUPageProperty == r.CPUPageProperty) + && (l.MemoryPoolPreference == r.MemoryPoolPreference) + && (l.CreationNodeMask == r.CreationNodeMask) + && (l.VisibleNodeMask == r.VisibleNodeMask); + + /// + + public static bool operator !=( + [NativeTypeName("const D3D12_HEAP_PROPERTIES &")] in D3D12_HEAP_PROPERTIES l, + [NativeTypeName("const D3D12_HEAP_PROPERTIES &")] in D3D12_HEAP_PROPERTIES r + ) => !(l == r); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_HEAP_PROPERTIES other) && Equals(other); + + public readonly bool Equals(D3D12_HEAP_PROPERTIES other) => (this == other); + + public override readonly int GetHashCode() => + HashCode.Combine( + Type, + CPUPageProperty, + MemoryPoolPreference, + CreationNodeMask, + VisibleNodeMask + ); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC.Manual.cs new file mode 100644 index 0000000000..481b1d2e3e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC.Manual.cs @@ -0,0 +1,69 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RASTERIZER_DESC +{ + public static ref readonly D3D12_RASTERIZER_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC1.Manual.cs new file mode 100644 index 0000000000..7966a151e1 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC1.Manual.cs @@ -0,0 +1,107 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_RASTERIZER_DESC1 +{ + public D3D12_RASTERIZER_DESC1( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] in D3D12_RASTERIZER_DESC o + ) + { + FillMode = o.FillMode; + CullMode = o.CullMode; + FrontCounterClockwise = o.FrontCounterClockwise; + DepthBias = (float)(o.DepthBias); + DepthBiasClamp = o.DepthBiasClamp; + SlopeScaledDepthBias = o.SlopeScaledDepthBias; + DepthClipEnable = o.DepthClipEnable; + MultisampleEnable = o.MultisampleEnable; + AntialiasedLineEnable = o.AntialiasedLineEnable; + ForcedSampleCount = o.ForcedSampleCount; + ConservativeRaster = o.ConservativeRaster; + } + + public static ref readonly D3D12_RASTERIZER_DESC1 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public static explicit operator D3D12_RASTERIZER_DESC(in D3D12_RASTERIZER_DESC1 value) + { + D3D12_RASTERIZER_DESC o = new D3D12_RASTERIZER_DESC + { + FillMode = value.FillMode, + CullMode = value.CullMode, + FrontCounterClockwise = value.FrontCounterClockwise, + DepthBias = (int)(value.DepthBias), + DepthBiasClamp = value.DepthBiasClamp, + SlopeScaledDepthBias = value.SlopeScaledDepthBias, + DepthClipEnable = value.DepthClipEnable, + MultisampleEnable = value.MultisampleEnable, + AntialiasedLineEnable = value.AntialiasedLineEnable, + ForcedSampleCount = value.ForcedSampleCount, + ConservativeRaster = value.ConservativeRaster, + }; + return o; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC2.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC2.Manual.cs new file mode 100644 index 0000000000..fa6b7c9f02 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RASTERIZER_DESC2.Manual.cs @@ -0,0 +1,195 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_LINE_RASTERIZATION_MODE; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_RASTERIZER_DESC2 +{ + public static ref readonly D3D12_RASTERIZER_DESC2 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D12_RASTERIZER_DESC2( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] D3D12_RASTERIZER_DESC* o + ) + { + FillMode = o->FillMode; + CullMode = o->CullMode; + FrontCounterClockwise = o->FrontCounterClockwise; + DepthBias = (float)(o->DepthBias); + DepthBiasClamp = o->DepthBiasClamp; + SlopeScaledDepthBias = o->SlopeScaledDepthBias; + DepthClipEnable = o->DepthClipEnable; + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_ALIASED; + if ((o->MultisampleEnable) != 0) + { + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE; + } + else if ((o->AntialiasedLineEnable) != 0) + { + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED; + } + ForcedSampleCount = o->ForcedSampleCount; + ConservativeRaster = o->ConservativeRaster; + } + + public D3D12_RASTERIZER_DESC2( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] in D3D12_RASTERIZER_DESC o + ) + { + FillMode = o.FillMode; + CullMode = o.CullMode; + FrontCounterClockwise = o.FrontCounterClockwise; + DepthBias = (float)(o.DepthBias); + DepthBiasClamp = o.DepthBiasClamp; + SlopeScaledDepthBias = o.SlopeScaledDepthBias; + DepthClipEnable = o.DepthClipEnable; + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_ALIASED; + if ((o.MultisampleEnable) != 0) + { + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE; + } + else if ((o.AntialiasedLineEnable) != 0) + { + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED; + } + ForcedSampleCount = o.ForcedSampleCount; + ConservativeRaster = o.ConservativeRaster; + } + + public D3D12_RASTERIZER_DESC2( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] in D3D12_RASTERIZER_DESC1 o + ) + { + FillMode = o.FillMode; + CullMode = o.CullMode; + FrontCounterClockwise = o.FrontCounterClockwise; + DepthBias = o.DepthBias; + DepthBiasClamp = o.DepthBiasClamp; + SlopeScaledDepthBias = o.SlopeScaledDepthBias; + DepthClipEnable = o.DepthClipEnable; + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_ALIASED; + if ((o.MultisampleEnable) != 0) + { + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE; + } + else if ((o.AntialiasedLineEnable) != 0) + { + LineRasterizationMode = D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED; + } + ForcedSampleCount = o.ForcedSampleCount; + ConservativeRaster = o.ConservativeRaster; + } + + public static explicit operator D3D12_RASTERIZER_DESC(in D3D12_RASTERIZER_DESC2 value) + { + D3D12_RASTERIZER_DESC o = new D3D12_RASTERIZER_DESC + { + FillMode = value.FillMode, + CullMode = value.CullMode, + FrontCounterClockwise = value.FrontCounterClockwise, + DepthBias = (int)(value.DepthBias), + DepthBiasClamp = value.DepthBiasClamp, + SlopeScaledDepthBias = value.SlopeScaledDepthBias, + DepthClipEnable = value.DepthClipEnable, + MultisampleEnable = FALSE, + AntialiasedLineEnable = FALSE, + ForcedSampleCount = value.ForcedSampleCount, + ConservativeRaster = value.ConservativeRaster, + }; + if (value.LineRasterizationMode == D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED) + { + o.AntialiasedLineEnable = 1; + } + else if (value.LineRasterizationMode != D3D12_LINE_RASTERIZATION_MODE_ALIASED) + { + o.MultisampleEnable = 1; + } + return o; + } + + public static explicit operator D3D12_RASTERIZER_DESC1(in D3D12_RASTERIZER_DESC2 value) + { + D3D12_RASTERIZER_DESC1 o = new D3D12_RASTERIZER_DESC1 + { + FillMode = value.FillMode, + CullMode = value.CullMode, + FrontCounterClockwise = value.FrontCounterClockwise, + DepthBias = value.DepthBias, + DepthBiasClamp = value.DepthBiasClamp, + SlopeScaledDepthBias = value.SlopeScaledDepthBias, + DepthClipEnable = value.DepthClipEnable, + MultisampleEnable = FALSE, + AntialiasedLineEnable = FALSE, + ForcedSampleCount = value.ForcedSampleCount, + ConservativeRaster = value.ConservativeRaster, + }; + if (value.LineRasterizationMode == D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED) + { + o.AntialiasedLineEnable = 1; + } + else if (value.LineRasterizationMode != D3D12_LINE_RASTERIZATION_MODE_ALIASED) + { + o.MultisampleEnable = 1; + } + return o; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RESOURCE_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RESOURCE_DESC.Manual.cs new file mode 100644 index 0000000000..d12e34c764 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RESOURCE_DESC.Manual.cs @@ -0,0 +1,95 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +using static Silk.NET.DirectX.D3D12_RESOURCE_FLAGS; +using static Silk.NET.DirectX.D3D12_TEXTURE_LAYOUT; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_RESOURCE_DESC : IEquatable +{ + /// + + public static bool operator ==( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC l, + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC r + ) => + (l.Dimension == r.Dimension) + && (l.Alignment == r.Alignment) + && (l.Width == r.Width) + && (l.Height == r.Height) + && (l.DepthOrArraySize == r.DepthOrArraySize) + && (l.MipLevels == r.MipLevels) + && (l.Format == r.Format) + && (l.SampleDesc.Count == r.SampleDesc.Count) + && (l.SampleDesc.Quality == r.SampleDesc.Quality) + && (l.Layout == r.Layout) + && (l.Flags == r.Flags); + + /// + + public static bool operator !=( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC l, + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC r + ) => !(l == r); + + [return: NativeTypeName("UINT16")] + public readonly ushort ArraySize() + { + return (Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE3D ? DepthOrArraySize : (ushort)(1)); + } + + [return: NativeTypeName("CD3DX12_RESOURCE_DESC")] + public static D3D12_RESOURCE_DESC Buffer( + [NativeTypeName("const D3D12_RESOURCE_ALLOCATION_INFO &")] + in D3D12_RESOURCE_ALLOCATION_INFO resAllocInfo, + D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE + ) + { + return new D3D12_RESOURCE_DESC( + D3D12_RESOURCE_DIMENSION_BUFFER, + resAllocInfo.Alignment, + resAllocInfo.SizeInBytes, + 1, + 1, + 1, + DXGI_FORMAT_UNKNOWN, + 1, + 0, + D3D12_TEXTURE_LAYOUT_ROW_MAJOR, + flags + ); + } + + [return: NativeTypeName("UINT16")] + public readonly ushort Depth() + { + return (Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D ? DepthOrArraySize : (ushort)(1)); + } + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RESOURCE_DESC other) && Equals(other); + + public readonly bool Equals(D3D12_RESOURCE_DESC other) => (this == other); + + public override readonly int GetHashCode() + { + var hashCode = new HashCode(); + hashCode.Add(Dimension); + hashCode.Add(Alignment); + hashCode.Add(Width); + hashCode.Add(Height); + hashCode.Add(DepthOrArraySize); + hashCode.Add(MipLevels); + hashCode.Add(Format); + hashCode.Add(SampleDesc.Count); + hashCode.Add(SampleDesc.Quality); + hashCode.Add(Layout); + hashCode.Add(Flags); + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RESOURCE_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RESOURCE_DESC1.Manual.cs new file mode 100644 index 0000000000..ad2ddbf4fe --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RESOURCE_DESC1.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +using static Silk.NET.DirectX.D3D12_RESOURCE_FLAGS; +using static Silk.NET.DirectX.D3D12_TEXTURE_LAYOUT; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_RESOURCE_DESC1 : IEquatable +{ + /// + + public static bool operator ==( + [NativeTypeName("const D3D12_RESOURCE_DESC1 &")] in D3D12_RESOURCE_DESC1 l, + [NativeTypeName("const D3D12_RESOURCE_DESC1 &")] in D3D12_RESOURCE_DESC1 r + ) => + (l.Dimension == r.Dimension) + && (l.Alignment == r.Alignment) + && (l.Width == r.Width) + && (l.Height == r.Height) + && (l.DepthOrArraySize == r.DepthOrArraySize) + && (l.MipLevels == r.MipLevels) + && (l.Format == r.Format) + && (l.SampleDesc.Count == r.SampleDesc.Count) + && (l.SampleDesc.Quality == r.SampleDesc.Quality) + && (l.Layout == r.Layout) + && (l.Flags == r.Flags) + && (l.SamplerFeedbackMipRegion.Width == r.SamplerFeedbackMipRegion.Width) + && (l.SamplerFeedbackMipRegion.Height == r.SamplerFeedbackMipRegion.Height) + && (l.SamplerFeedbackMipRegion.Depth == r.SamplerFeedbackMipRegion.Depth); + + /// + + public static bool operator !=( + [NativeTypeName("const D3D12_RESOURCE_DESC1 &")] in D3D12_RESOURCE_DESC1 l, + [NativeTypeName("const D3D12_RESOURCE_DESC1 &")] in D3D12_RESOURCE_DESC1 r + ) => !(l == r); + + public D3D12_RESOURCE_DESC1( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC o + ) + { + Dimension = o.Dimension; + Alignment = o.Alignment; + Width = o.Width; + Height = o.Height; + DepthOrArraySize = o.DepthOrArraySize; + MipLevels = o.MipLevels; + Format = o.Format; + SampleDesc = o.SampleDesc; + Layout = o.Layout; + Flags = o.Flags; + SamplerFeedbackMipRegion = new D3D12_MIP_REGION { }; + } + + [return: NativeTypeName("UINT16")] + public readonly ushort ArraySize() + { + return (Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE3D ? DepthOrArraySize : (ushort)(1)); + } + + [return: NativeTypeName("CD3DX12_RESOURCE_DESC1")] + public static D3D12_RESOURCE_DESC1 Buffer( + [NativeTypeName("const D3D12_RESOURCE_ALLOCATION_INFO &")] + in D3D12_RESOURCE_ALLOCATION_INFO resAllocInfo, + D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE + ) + { + return new D3D12_RESOURCE_DESC1( + D3D12_RESOURCE_DIMENSION_BUFFER, + resAllocInfo.Alignment, + resAllocInfo.SizeInBytes, + 1, + 1, + 1, + DXGI_FORMAT_UNKNOWN, + 1, + 0, + D3D12_TEXTURE_LAYOUT_ROW_MAJOR, + flags, + 0, + 0, + 0 + ); + } + + [return: NativeTypeName("UINT16")] + public readonly ushort Depth() + { + return (Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D ? DepthOrArraySize : (ushort)(1)); + } + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RESOURCE_DESC1 other) && Equals(other); + + public readonly bool Equals(D3D12_RESOURCE_DESC1 other) => (this == other); + + public override readonly int GetHashCode() + { + var hashCode = new HashCode(); + hashCode.Add(Dimension); + hashCode.Add(Alignment); + hashCode.Add(Width); + hashCode.Add(Height); + hashCode.Add(DepthOrArraySize); + hashCode.Add(MipLevels); + hashCode.Add(Format); + hashCode.Add(SampleDesc.Count); + hashCode.Add(SampleDesc.Quality); + hashCode.Add(Layout); + hashCode.Add(Flags); + hashCode.Add(SamplerFeedbackMipRegion.Width); + hashCode.Add(SamplerFeedbackMipRegion.Height); + hashCode.Add(SamplerFeedbackMipRegion.Depth); + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RT_FORMAT_ARRAY.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RT_FORMAT_ARRAY.Manual.cs new file mode 100644 index 0000000000..0dfaaad72d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_RT_FORMAT_ARRAY.Manual.cs @@ -0,0 +1,24 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +[NativeTypeName("struct CD3DX12_RT_FORMAT_ARRAY : D3D12_RT_FORMAT_ARRAY")] +[NativeInheritance("D3D12_RT_FORMAT_ARRAY")] +public unsafe partial struct D3D12_RT_FORMAT_ARRAY +{ + public D3D12_RT_FORMAT_ARRAY( + [NativeTypeName("const DXGI_FORMAT *")] DXGI_FORMAT* pFormats, + uint NumFormats + ) + { + NumRenderTargets = NumFormats; + fixed (DXGI_FORMAT* pRTFormats = &RTFormats[0]) + { + NativeMemory.Copy(pFormats, pRTFormats, sizeof(DXGI_FORMAT)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_SUBRESOURCE_FOOTPRINT.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_SUBRESOURCE_FOOTPRINT.Manual.cs new file mode 100644 index 0000000000..d8ef863235 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_SUBRESOURCE_FOOTPRINT.Manual.cs @@ -0,0 +1,23 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_SUBRESOURCE_FOOTPRINT +{ + public D3D12_SUBRESOURCE_FOOTPRINT( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC resDesc, + uint rowPitch + ) + { + Format = resDesc.Format; + Width = (uint)(resDesc.Width); + Height = resDesc.Height; + Depth = ( + resDesc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D ? resDesc.DepthOrArraySize : 1U + ); + RowPitch = rowPitch; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_SUBRESOURCE_RANGE_UINT64.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_SUBRESOURCE_RANGE_UINT64.Manual.cs new file mode 100644 index 0000000000..e5ea2ee2a3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_SUBRESOURCE_RANGE_UINT64.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_SUBRESOURCE_RANGE_UINT64 +{ + public D3D12_SUBRESOURCE_RANGE_UINT64( + uint subresource, + [NativeTypeName("const D3D12_RANGE_UINT64 &")] in D3D12_RANGE_UINT64 range + ) + { + Subresource = subresource; + Range = range; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_TEXTURE_COPY_LOCATION.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_TEXTURE_COPY_LOCATION.Manual.cs new file mode 100644 index 0000000000..477cd93ffe --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_TEXTURE_COPY_LOCATION.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D12_TEXTURE_COPY_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_TEXTURE_COPY_LOCATION +{ + public D3D12_TEXTURE_COPY_LOCATION( + ID3D12Resource pRes, + [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT &")] + in D3D12_PLACED_SUBRESOURCE_FOOTPRINT Footprint + ) + { + pResource = pRes; + Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT; + Anonymous.PlacedFootprint = Footprint; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_VIEWPORT.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_VIEWPORT.Manual.cs new file mode 100644 index 0000000000..165ccd74b7 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_VIEWPORT.Manual.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_VIEWPORT : IEquatable +{ + public D3D12_VIEWPORT( + ID3D12Resource pResource, + uint mipSlice = 0, + float topLeftX = 0.0f, + float topLeftY = 0.0f, + float minDepth = (0.0f), + float maxDepth = (1.0f) + ) + { + D3D12_RESOURCE_DESC Desc = pResource.GetDesc(); + ulong SubresourceWidth = Desc.Width >> (int)(mipSlice); + ulong SubresourceHeight = Desc.Height >> (int)(mipSlice); + switch (Desc.Dimension) + { + case D3D12_RESOURCE_DIMENSION_BUFFER: + { + TopLeftX = topLeftX; + TopLeftY = 0.0f; + Width = (float)(Desc.Width) - topLeftX; + Height = 1.0f; + break; + } + case D3D12_RESOURCE_DIMENSION_TEXTURE1D: + { + TopLeftX = topLeftX; + TopLeftY = 0.0f; + Width = ((SubresourceWidth) != 0 ? (float)(SubresourceWidth) : 1.0f) - topLeftX; + Height = 1.0f; + break; + } + case D3D12_RESOURCE_DIMENSION_TEXTURE2D: + case D3D12_RESOURCE_DIMENSION_TEXTURE3D: + { + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = ((SubresourceWidth) != 0 ? (float)(SubresourceWidth) : 1.0f) - topLeftX; + Height = ((SubresourceHeight) != 0 ? (float)(SubresourceHeight) : 1.0f) - topLeftY; + break; + } + case D3D12_RESOURCE_DIMENSION_UNKNOWN: + default: + { + break; + } + } + MinDepth = minDepth; + MaxDepth = maxDepth; + } + + /// + + public static bool operator ==( + [NativeTypeName("const D3D12_VIEWPORT &")] in D3D12_VIEWPORT l, + [NativeTypeName("const D3D12_VIEWPORT &")] in D3D12_VIEWPORT r + ) => + (l.TopLeftX == r.TopLeftX) + && (l.TopLeftY == r.TopLeftY) + && (l.Width == r.Width) + && (l.Height == r.Height) + && (l.MinDepth == r.MinDepth) + && (l.MaxDepth == r.MaxDepth); + + /// + + public static bool operator !=( + [NativeTypeName("const D3D12_VIEWPORT &")] in D3D12_VIEWPORT l, + [NativeTypeName("const D3D12_VIEWPORT &")] in D3D12_VIEWPORT r + ) => !(l == r); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_VIEWPORT other) && Equals(other); + + public readonly bool Equals(D3D12_VIEWPORT other) => (this == other); + + public override readonly int GetHashCode() => + HashCode.Combine(TopLeftX, TopLeftY, Width, Height, MinDepth, MaxDepth); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_VIEW_INSTANCING_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_VIEW_INSTANCING_DESC.Manual.cs new file mode 100644 index 0000000000..0b9c22311d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/D3D12_VIEW_INSTANCING_DESC.Manual.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_VIEW_INSTANCING_DESC +{ + public static ref readonly D3D12_VIEW_INSTANCING_DESC DEFAULT + { + get + { + ReadOnlySpan data; + if (Environment.Is64BitProcess) + { + data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + else + { + data = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; + } + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/DirectX.Manual.cs new file mode 100644 index 0000000000..bb9d53d9eb --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_core/DirectX.Manual.cs @@ -0,0 +1,81 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_core.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.CompilerServices; +using static Silk.NET.DirectX.D3D12; +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +using static Silk.NET.DirectX.D3D12_TEXTURE_LAYOUT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static ID3D12CommandList* CommandListCast(t_CommandListType** pp) + where t_CommandListType : unmanaged, ID3D12CommandList.Interface + { + return (ID3D12CommandList*)(pp); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CommandListCast( + Ref2D pp + ) + where t_CommandListType : unmanaged, ID3D12CommandList.Interface + { + fixed (t_CommandListType** __dsl_pp = pp) + { + return (ID3D12CommandList*)CommandListCast(__dsl_pp); + } + } + + [return: NativeTypeName("const CD3DX12_RESOURCE_DESC1 *")] + public static ref readonly D3D12_RESOURCE_DESC1 D3DX12ConditionallyExpandAPIDesc( + [NativeTypeName("CD3DX12_RESOURCE_DESC1 &")] ref D3D12_RESOURCE_DESC1 LclDesc, + [NativeTypeName("const CD3DX12_RESOURCE_DESC1 *")] in D3D12_RESOURCE_DESC1 pDesc + ) + { + if ((pDesc.MipLevels == 0) || (pDesc.Alignment == 0)) + { + LclDesc = pDesc; + if (pDesc.MipLevels == 0) + { + ulong uiMaxDimension = ulong.Max( + (LclDesc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D) + ? LclDesc.DepthOrArraySize + : 1UL, + ulong.Max(LclDesc.Width, LclDesc.Height) + ); + ushort uiRet = 0; + while (uiMaxDimension > 0) + { + uiRet++; + uiMaxDimension >>= 1; + } + LclDesc.MipLevels = uiRet; + } + if (pDesc.Alignment == 0) + { + if ( + (pDesc.Layout == D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE) + || (pDesc.Layout == D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE) + ) + { + LclDesc.Alignment = D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT; + } + else + { + LclDesc.Alignment = + (pDesc.SampleDesc.Count > 1) + ? (ulong)(D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT) + : (ulong)(D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT); + } + } + return ref LclDesc; + } + else + { + return ref pDesc; + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_MESH_STATE_STREAM.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_MESH_STATE_STREAM.Manual.cs new file mode 100644 index 0000000000..d64fcdbc32 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_MESH_STATE_STREAM.Manual.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe struct CD3DX12_PIPELINE_MESH_STATE_STREAM +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_AS AS; + public CD3DX12_PIPELINE_STATE_STREAM_MS MS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc; + + public CD3DX12_PIPELINE_MESH_STATE_STREAM( + [NativeTypeName("const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC &")] + in D3DX12_MESH_SHADER_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + PS = Desc.PS; + AS = Desc.AS; + MS = Desc.MS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC1(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public readonly D3DX12_MESH_SHADER_PIPELINE_STATE_DESC MeshShaderDescV0() + { + D3DX12_MESH_SHADER_PIPELINE_STATE_DESC D = new D3DX12_MESH_SHADER_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + PS = PS, + AS = AS, + MS = MS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = RasterizerState, + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM.Manual.cs new file mode 100644 index 0000000000..b898387b1b --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM.Manual.cs @@ -0,0 +1,116 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +// CD3DX12_PIPELINE_STATE_STREAM works on OS Build 15063+ but does not support new subobject(s) added in OS Build 16299+. +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout; + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue; + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType; + public CD3DX12_PIPELINE_STATE_STREAM_VS VS; + public CD3DX12_PIPELINE_STATE_STREAM_GS GS; + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput; + public CD3DX12_PIPELINE_STATE_STREAM_HS HS; + public CD3DX12_PIPELINE_STATE_STREAM_DS DS; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_CS CS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + + public CD3DX12_PIPELINE_STATE_STREAM( + [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC &")] + in D3D12_GRAPHICS_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + InputLayout = Desc.InputLayout; + IBStripCutValue = Desc.IBStripCutValue; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + VS = Desc.VS; + GS = Desc.GS; + StreamOutput = Desc.StreamOutput; + HS = Desc.HS; + DS = Desc.DS; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC1(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + } + + public CD3DX12_PIPELINE_STATE_STREAM( + [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC &")] + in D3D12_COMPUTE_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + CS = Desc.CS; + CachedPSO = Desc.CachedPSO; + } + + public readonly D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() => + new D3D12_COMPUTE_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + CS = CS, + CachedPSO = CachedPSO, + }; + + public readonly D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() + { + D3D12_GRAPHICS_PIPELINE_STATE_DESC D = new D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + InputLayout = InputLayout, + IBStripCutValue = IBStripCutValue, + PrimitiveTopologyType = PrimitiveTopologyType, + VS = VS, + GS = GS, + StreamOutput = StreamOutput, + HS = HS, + DS = DS, + PS = PS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = RasterizerState, + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM1.Manual.cs new file mode 100644 index 0000000000..3c38b0c30a --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM1.Manual.cs @@ -0,0 +1,144 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +// CD3DX12_PIPELINE_STATE_STREAM1 Works on OS Build 16299+ (where there is a new view instancing subobject). +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM1 +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout; + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue; + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType; + public CD3DX12_PIPELINE_STATE_STREAM_VS VS; + public CD3DX12_PIPELINE_STATE_STREAM_GS GS; + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput; + public CD3DX12_PIPELINE_STATE_STREAM_HS HS; + public CD3DX12_PIPELINE_STATE_STREAM_DS DS; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_CS CS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc; + + // Mesh and amplification shaders must be set manually, since they do not have representation in D3D12_GRAPHICS_PIPELINE_STATE_DESC + public CD3DX12_PIPELINE_STATE_STREAM1( + [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC &")] + in D3D12_GRAPHICS_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + InputLayout = Desc.InputLayout; + IBStripCutValue = Desc.IBStripCutValue; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + VS = Desc.VS; + GS = Desc.GS; + StreamOutput = Desc.StreamOutput; + HS = Desc.HS; + DS = Desc.DS; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC1(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM1( + [NativeTypeName("const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC &")] + in D3DX12_MESH_SHADER_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC1(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM1( + [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC &")] + in D3D12_COMPUTE_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + CS = Desc.CS; + CachedPSO = Desc.CachedPSO; + DepthStencilState.pssInner.DepthEnable = false; + } + + public readonly D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() => + new D3D12_COMPUTE_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + CS = CS, + CachedPSO = CachedPSO, + }; + + public readonly D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() + { + D3D12_GRAPHICS_PIPELINE_STATE_DESC D = new D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + InputLayout = InputLayout, + IBStripCutValue = IBStripCutValue, + PrimitiveTopologyType = PrimitiveTopologyType, + VS = VS, + GS = GS, + StreamOutput = StreamOutput, + HS = HS, + DS = DS, + PS = PS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = RasterizerState, + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM2.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM2.Manual.cs new file mode 100644 index 0000000000..22491d0cb7 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM2.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +// CD3DX12_PIPELINE_STATE_STREAM2 Works on OS Build 19041+ (where there is a new mesh shader pipeline). +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM2 +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout; + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue; + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType; + public CD3DX12_PIPELINE_STATE_STREAM_VS VS; + public CD3DX12_PIPELINE_STATE_STREAM_GS GS; + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput; + public CD3DX12_PIPELINE_STATE_STREAM_HS HS; + public CD3DX12_PIPELINE_STATE_STREAM_DS DS; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_AS AS; + public CD3DX12_PIPELINE_STATE_STREAM_MS MS; + public CD3DX12_PIPELINE_STATE_STREAM_CS CS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc; + + // Mesh and amplification shaders must be set manually, since they do not have representation in D3D12_GRAPHICS_PIPELINE_STATE_DESC + public CD3DX12_PIPELINE_STATE_STREAM2( + [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC &")] + in D3D12_GRAPHICS_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + InputLayout = Desc.InputLayout; + IBStripCutValue = Desc.IBStripCutValue; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + VS = Desc.VS; + GS = Desc.GS; + StreamOutput = Desc.StreamOutput; + HS = Desc.HS; + DS = Desc.DS; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC1(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM2( + [NativeTypeName("const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC &")] + in D3DX12_MESH_SHADER_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + PS = Desc.PS; + AS = Desc.AS; + MS = Desc.MS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC1(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM2( + [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC &")] + in D3D12_COMPUTE_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + CS = Desc.CS; + CachedPSO = Desc.CachedPSO; + DepthStencilState.pssInner.DepthEnable = false; + } + + public readonly D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() => + new D3D12_COMPUTE_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + CS = CS, + CachedPSO = CachedPSO, + }; + + public readonly D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() + { + D3D12_GRAPHICS_PIPELINE_STATE_DESC D = new D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + InputLayout = InputLayout, + IBStripCutValue = IBStripCutValue, + PrimitiveTopologyType = PrimitiveTopologyType, + VS = VS, + GS = GS, + StreamOutput = StreamOutput, + HS = HS, + DS = DS, + PS = PS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = RasterizerState, + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM3.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM3.Manual.cs new file mode 100644 index 0000000000..2aca6c6086 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM3.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +// Use CD3DX12_PIPELINE_STATE_STREAM3 for D3D12_DEPTH_STENCIL_DESC2 when CheckFeatureSupport returns true for Options14::IndependentFrontAndBackStencilSupported is true +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM3 +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout; + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue; + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType; + public CD3DX12_PIPELINE_STATE_STREAM_VS VS; + public CD3DX12_PIPELINE_STATE_STREAM_GS GS; + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput; + public CD3DX12_PIPELINE_STATE_STREAM_HS HS; + public CD3DX12_PIPELINE_STATE_STREAM_DS DS; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_AS AS; + public CD3DX12_PIPELINE_STATE_STREAM_MS MS; + public CD3DX12_PIPELINE_STATE_STREAM_CS CS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc; + + // Mesh and amplification shaders must be set manually, since they do not have representation in D3D12_GRAPHICS_PIPELINE_STATE_DESC + public CD3DX12_PIPELINE_STATE_STREAM3( + [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC &")] + in D3D12_GRAPHICS_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + InputLayout = Desc.InputLayout; + IBStripCutValue = Desc.IBStripCutValue; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + VS = Desc.VS; + GS = Desc.GS; + StreamOutput = Desc.StreamOutput; + HS = Desc.HS; + DS = Desc.DS; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC2(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM3( + [NativeTypeName("const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC &")] + in D3DX12_MESH_SHADER_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + PS = Desc.PS; + AS = Desc.AS; + MS = Desc.MS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC2(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = Desc.RasterizerState; + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM3( + [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC &")] + in D3D12_COMPUTE_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + CS = Desc.CS; + CachedPSO = Desc.CachedPSO; + DepthStencilState.pssInner.DepthEnable = false; + } + + public readonly D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() => + new D3D12_COMPUTE_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + CS = CS, + CachedPSO = CachedPSO, + }; + + public readonly D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() + { + D3D12_GRAPHICS_PIPELINE_STATE_DESC D = new D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + InputLayout = InputLayout, + IBStripCutValue = IBStripCutValue, + PrimitiveTopologyType = PrimitiveTopologyType, + VS = VS, + GS = GS, + StreamOutput = StreamOutput, + HS = HS, + DS = DS, + PS = PS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = RasterizerState, + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM4.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM4.Manual.cs new file mode 100644 index 0000000000..4cc98fe7b6 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM4.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +// Use CD3DX12_PIPELINE_STATE_STREAM4 for D3D12_RASTERIZER_DESC1 when CheckFeatureSupport returns true for Options16::DynamicDepthBiasSupported is true +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM4 +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout; + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue; + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType; + public CD3DX12_PIPELINE_STATE_STREAM_VS VS; + public CD3DX12_PIPELINE_STATE_STREAM_GS GS; + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput; + public CD3DX12_PIPELINE_STATE_STREAM_HS HS; + public CD3DX12_PIPELINE_STATE_STREAM_DS DS; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_AS AS; + public CD3DX12_PIPELINE_STATE_STREAM_MS MS; + public CD3DX12_PIPELINE_STATE_STREAM_CS CS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1 RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc; + + // Mesh and amplification shaders must be set manually, since they do not have representation in D3D12_GRAPHICS_PIPELINE_STATE_DESC + public CD3DX12_PIPELINE_STATE_STREAM4( + [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC &")] + in D3D12_GRAPHICS_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + InputLayout = Desc.InputLayout; + IBStripCutValue = Desc.IBStripCutValue; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + VS = Desc.VS; + GS = Desc.GS; + StreamOutput = Desc.StreamOutput; + HS = Desc.HS; + DS = Desc.DS; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC2(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = new D3D12_RASTERIZER_DESC1(Desc.RasterizerState); + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM4( + [NativeTypeName("const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC &")] + in D3DX12_MESH_SHADER_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + PS = Desc.PS; + AS = Desc.AS; + MS = Desc.MS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC2(Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = new D3D12_RASTERIZER_DESC1(Desc.RasterizerState); + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM4( + [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC &")] + in D3D12_COMPUTE_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + CS = Desc.CS; + CachedPSO = Desc.CachedPSO; + DepthStencilState.pssInner.DepthEnable = false; + } + + public readonly D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() => + new D3D12_COMPUTE_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + CS = CS, + CachedPSO = CachedPSO, + }; + + public readonly D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() + { + D3D12_GRAPHICS_PIPELINE_STATE_DESC D = new D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + InputLayout = InputLayout, + IBStripCutValue = IBStripCutValue, + PrimitiveTopologyType = PrimitiveTopologyType, + VS = VS, + GS = GS, + StreamOutput = StreamOutput, + HS = HS, + DS = DS, + PS = PS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = (D3D12_RASTERIZER_DESC)(RasterizerState.pssInner), + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM5.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM5.Manual.cs new file mode 100644 index 0000000000..eae546edee --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM5.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +// Use CD3DX12_PIPELINE_STATE_STREAM5 for D3D12_RASTERIZER_DESC2 when CheckFeatureSupport returns true for Options19::RasterizerDesc2Supported is true +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM5 +{ + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS Flags; + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK NodeMask; + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE pRootSignature; + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT InputLayout; + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE IBStripCutValue; + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY PrimitiveTopologyType; + public CD3DX12_PIPELINE_STATE_STREAM_VS VS; + public CD3DX12_PIPELINE_STATE_STREAM_GS GS; + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT StreamOutput; + public CD3DX12_PIPELINE_STATE_STREAM_HS HS; + public CD3DX12_PIPELINE_STATE_STREAM_DS DS; + public CD3DX12_PIPELINE_STATE_STREAM_PS PS; + public CD3DX12_PIPELINE_STATE_STREAM_AS AS; + public CD3DX12_PIPELINE_STATE_STREAM_MS MS; + public CD3DX12_PIPELINE_STATE_STREAM_CS CS; + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC BlendState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2 DepthStencilState; + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT DSVFormat; + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2 RasterizerState; + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS RTVFormats; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC SampleDesc; + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK SampleMask; + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO CachedPSO; + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING ViewInstancingDesc; + + // Mesh and amplification shaders must be set manually, since they do not have representation in D3D12_GRAPHICS_PIPELINE_STATE_DESC + public CD3DX12_PIPELINE_STATE_STREAM5( + [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC &")] + in D3D12_GRAPHICS_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + InputLayout = Desc.InputLayout; + IBStripCutValue = Desc.IBStripCutValue; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + VS = Desc.VS; + GS = Desc.GS; + StreamOutput = Desc.StreamOutput; + HS = Desc.HS; + DS = Desc.DS; + PS = Desc.PS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC2(in Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = new D3D12_RASTERIZER_DESC2(in Desc.RasterizerState); + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM5( + [NativeTypeName("const D3DX12_MESH_SHADER_PIPELINE_STATE_DESC &")] + in D3DX12_MESH_SHADER_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + PrimitiveTopologyType = Desc.PrimitiveTopologyType; + PS = Desc.PS; + AS = Desc.AS; + MS = Desc.MS; + BlendState = Desc.BlendState; + DepthStencilState = new D3D12_DEPTH_STENCIL_DESC2(in Desc.DepthStencilState); + DSVFormat = Desc.DSVFormat; + RasterizerState = new D3D12_RASTERIZER_DESC2(Desc.RasterizerState); + fixed (DXGI_FORMAT* pFormats = &Desc.RTVFormats[0]) + { + RTVFormats = new D3D12_RT_FORMAT_ARRAY(pFormats, Desc.NumRenderTargets); + } + SampleDesc = Desc.SampleDesc; + SampleMask = Desc.SampleMask; + CachedPSO = Desc.CachedPSO; + ViewInstancingDesc = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM5( + [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC &")] + in D3D12_COMPUTE_PIPELINE_STATE_DESC Desc + ) + { + Flags = Desc.Flags; + NodeMask = Desc.NodeMask; + pRootSignature = Desc.pRootSignature; + CS = Desc.CS; + CachedPSO = Desc.CachedPSO; + DepthStencilState.pssInner.DepthEnable = false; + } + + public readonly D3D12_COMPUTE_PIPELINE_STATE_DESC ComputeDescV0() => + new D3D12_COMPUTE_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + CS = CS, + CachedPSO = CachedPSO, + }; + + public readonly D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDescV0() + { + D3D12_GRAPHICS_PIPELINE_STATE_DESC D = new D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + Flags = Flags, + NodeMask = NodeMask, + pRootSignature = pRootSignature, + InputLayout = InputLayout, + IBStripCutValue = IBStripCutValue, + PrimitiveTopologyType = PrimitiveTopologyType, + VS = VS, + GS = GS, + StreamOutput = StreamOutput, + HS = HS, + DS = DS, + PS = PS, + BlendState = BlendState, + DepthStencilState = (D3D12_DEPTH_STENCIL_DESC)(DepthStencilState.pssInner), + DSVFormat = DSVFormat, + RasterizerState = (D3D12_RASTERIZER_DESC)(RasterizerState.pssInner), + NumRenderTargets = RTVFormats.pssInner.NumRenderTargets, + SampleDesc = SampleDesc, + SampleMask = SampleMask, + CachedPSO = CachedPSO, + }; + fixed (DXGI_FORMAT* pFormat = &RTVFormats.pssInner.RTFormats[0]) + { + NativeMemory.Copy(pFormat, &D.RTVFormats[0], 8 * sizeof(DXGI_FORMAT)); + } + return D; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_AS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_AS.Manual.cs new file mode 100644 index 0000000000..d0f64ba492 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_AS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_AS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_AS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_AS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_AS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_AS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_AS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC.Manual.cs new file mode 100644 index 0000000000..248f6f9f40 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_BLEND_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND; + pssInner = D3D12_BLEND_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC( + [NativeTypeName("D3D12_BLEND_DESC const &")] in D3D12_BLEND_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC( + in D3D12_BLEND_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC(value); + + public static implicit operator D3D12_BLEND_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_BLEND_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO.Manual.cs new file mode 100644 index 0000000000..c3ce6b5dc6 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_CACHED_PIPELINE_STATE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO( + [NativeTypeName("D3D12_CACHED_PIPELINE_STATE const &")] in D3D12_CACHED_PIPELINE_STATE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO( + in D3D12_CACHED_PIPELINE_STATE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO(value); + + public static implicit operator D3D12_CACHED_PIPELINE_STATE( + in CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_CACHED_PIPELINE_STATE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_CS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_CS.Manual.cs new file mode 100644 index 0000000000..797eaba21e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_CS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_CS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_CS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_CS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_CS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_CS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_CS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL.Manual.cs new file mode 100644 index 0000000000..acb20947a2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_DEPTH_STENCIL_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL; + pssInner = D3D12_DEPTH_STENCIL_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL( + [NativeTypeName("D3D12_DEPTH_STENCIL_DESC const &")] in D3D12_DEPTH_STENCIL_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL( + in D3D12_DEPTH_STENCIL_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL(value); + + public static implicit operator D3D12_DEPTH_STENCIL_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_DEPTH_STENCIL_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1.Manual.cs new file mode 100644 index 0000000000..fc6e615586 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_DEPTH_STENCIL_DESC1 pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1; + pssInner = D3D12_DEPTH_STENCIL_DESC1.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1( + [NativeTypeName("D3D12_DEPTH_STENCIL_DESC1 const &")] in D3D12_DEPTH_STENCIL_DESC1 i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1( + in D3D12_DEPTH_STENCIL_DESC1 value + ) => new CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1(value); + + public static implicit operator D3D12_DEPTH_STENCIL_DESC1( + in CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1 value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_DEPTH_STENCIL_DESC1 pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2.Manual.cs new file mode 100644 index 0000000000..55efc16e2f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2 +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_DEPTH_STENCIL_DESC2 pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2; + pssInner = D3D12_DEPTH_STENCIL_DESC2.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2( + [NativeTypeName("D3D12_DEPTH_STENCIL_DESC2 const &")] in D3D12_DEPTH_STENCIL_DESC2 i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2( + in D3D12_DEPTH_STENCIL_DESC2 value + ) => new CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2(value); + + public static implicit operator D3D12_DEPTH_STENCIL_DESC2( + in CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2 value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_DEPTH_STENCIL_DESC2 pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT.Manual.cs new file mode 100644 index 0000000000..8dd9476cae --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref DXGI_FORMAT pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT( + [NativeTypeName("DXGI_FORMAT const &")] in DXGI_FORMAT i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT( + in DXGI_FORMAT value + ) => new CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT(value); + + public static implicit operator DXGI_FORMAT( + in CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public DXGI_FORMAT pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DS.Manual.cs new file mode 100644 index 0000000000..1abf4af2f5 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_DS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_DS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_DS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_DS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_DS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_DS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_DS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_FLAGS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_FLAGS.Manual.cs new file mode 100644 index 0000000000..c8816bbb7e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_FLAGS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_FLAGS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_FLAGS pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_FLAGS( + [NativeTypeName("D3D12_PIPELINE_STATE_FLAGS const &")] in D3D12_PIPELINE_STATE_FLAGS i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_FLAGS( + in D3D12_PIPELINE_STATE_FLAGS value + ) => new CD3DX12_PIPELINE_STATE_STREAM_FLAGS(value); + + public static implicit operator D3D12_PIPELINE_STATE_FLAGS( + in CD3DX12_PIPELINE_STATE_STREAM_FLAGS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_PIPELINE_STATE_FLAGS pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_GS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_GS.Manual.cs new file mode 100644 index 0000000000..3dd0ce08c7 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_GS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_GS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_GS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_GS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_GS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_GS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_GS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_HS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_HS.Manual.cs new file mode 100644 index 0000000000..a3afa462ec --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_HS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_HS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_HS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_HS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_HS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_HS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_HS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE.Manual.cs new file mode 100644 index 0000000000..e14896b3bc --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE.Manual.cs @@ -0,0 +1,53 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_INDEX_BUFFER_STRIP_CUT_VALUE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE( + [NativeTypeName("D3D12_INDEX_BUFFER_STRIP_CUT_VALUE const &")] + in D3D12_INDEX_BUFFER_STRIP_CUT_VALUE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE( + in D3D12_INDEX_BUFFER_STRIP_CUT_VALUE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE(value); + + public static implicit operator D3D12_INDEX_BUFFER_STRIP_CUT_VALUE( + in CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_INDEX_BUFFER_STRIP_CUT_VALUE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT.Manual.cs new file mode 100644 index 0000000000..cd672e450e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_INPUT_LAYOUT_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT( + [NativeTypeName("D3D12_INPUT_LAYOUT_DESC const &")] in D3D12_INPUT_LAYOUT_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT( + in D3D12_INPUT_LAYOUT_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT(value); + + public static implicit operator D3D12_INPUT_LAYOUT_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_INPUT_LAYOUT_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_MS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_MS.Manual.cs new file mode 100644 index 0000000000..8aff2b8895 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_MS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_MS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_MS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_MS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_MS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_MS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_MS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK.Manual.cs new file mode 100644 index 0000000000..1f77976a2b --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK.Manual.cs @@ -0,0 +1,48 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref uint pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK([NativeTypeName("uint const &")] in uint i) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK(in uint value) => + new CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK(value); + + public static implicit operator uint(in CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK value) => + value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public uint pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY.Manual.cs new file mode 100644 index 0000000000..139f728fab --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_PRIMITIVE_TOPOLOGY_TYPE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY( + [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY_TYPE const &")] in D3D12_PRIMITIVE_TOPOLOGY_TYPE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY( + in D3D12_PRIMITIVE_TOPOLOGY_TYPE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY(value); + + public static implicit operator D3D12_PRIMITIVE_TOPOLOGY_TYPE( + in CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_PRIMITIVE_TOPOLOGY_TYPE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_PS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_PS.Manual.cs new file mode 100644 index 0000000000..cd96856852 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_PS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_PS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_PS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_PS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_PS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_PS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_PS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER.Manual.cs new file mode 100644 index 0000000000..7e7c296054 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_RASTERIZER_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER; + pssInner = D3D12_RASTERIZER_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER( + [NativeTypeName("D3D12_RASTERIZER_DESC const &")] in D3D12_RASTERIZER_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER( + in D3D12_RASTERIZER_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER(value); + + public static implicit operator D3D12_RASTERIZER_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_RASTERIZER_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1.Manual.cs new file mode 100644 index 0000000000..45fb2124f7 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1 +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_RASTERIZER_DESC1 pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1; + pssInner = D3D12_RASTERIZER_DESC1.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1( + [NativeTypeName("D3D12_RASTERIZER_DESC1 const &")] in D3D12_RASTERIZER_DESC1 i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1( + in D3D12_RASTERIZER_DESC1 value + ) => new CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1(value); + + public static implicit operator D3D12_RASTERIZER_DESC1( + in CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1 value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_RASTERIZER_DESC1 pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2.Manual.cs new file mode 100644 index 0000000000..a3886c229f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2 +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_RASTERIZER_DESC2 pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2; + pssInner = D3D12_RASTERIZER_DESC2.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2( + [NativeTypeName("D3D12_RASTERIZER_DESC2 const &")] in D3D12_RASTERIZER_DESC2 i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2( + in D3D12_RASTERIZER_DESC2 value + ) => new CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2(value); + + public static implicit operator D3D12_RASTERIZER_DESC2( + in CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2 value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_RASTERIZER_DESC2 pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS.Manual.cs new file mode 100644 index 0000000000..a56f7df0d9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_RT_FORMAT_ARRAY pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS( + [NativeTypeName("D3D12_RT_FORMAT_ARRAY const &")] in D3D12_RT_FORMAT_ARRAY i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS( + in D3D12_RT_FORMAT_ARRAY value + ) => new CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS(value); + + public static implicit operator D3D12_RT_FORMAT_ARRAY( + in CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_RT_FORMAT_ARRAY pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE.Manual.cs new file mode 100644 index 0000000000..8f0628bea1 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public unsafe struct CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref ID3D12RootSignature pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE( + [NativeTypeName("ID3D12RootSignature* const &")] in ID3D12RootSignature i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE( + in ID3D12RootSignature value + ) => new CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE(value); + + public static implicit operator ID3D12RootSignature( + in CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public ID3D12RootSignature pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC.Manual.cs new file mode 100644 index 0000000000..f1d675a716 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref DXGI_SAMPLE_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC; + pssInner = new DXGI_SAMPLE_DESC(1, 0); + } + + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC( + [NativeTypeName("DXGI_SAMPLE_DESC const &")] in DXGI_SAMPLE_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC( + in DXGI_SAMPLE_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC(value); + + public static implicit operator DXGI_SAMPLE_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public DXGI_SAMPLE_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK.Manual.cs new file mode 100644 index 0000000000..c71e42a198 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK.Manual.cs @@ -0,0 +1,48 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref uint pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK; + pssInner = uint.MaxValue; + } + + public CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK([NativeTypeName("uint const &")] in uint i) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK(in uint value) => + new CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK(value); + + public static implicit operator uint(in CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK value) => + value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public uint pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT.Manual.cs new file mode 100644 index 0000000000..f94791ebb0 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_STREAM_OUTPUT_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT( + [NativeTypeName("D3D12_STREAM_OUTPUT_DESC const &")] in D3D12_STREAM_OUTPUT_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT( + in D3D12_STREAM_OUTPUT_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT(value); + + public static implicit operator D3D12_STREAM_OUTPUT_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_STREAM_OUTPUT_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING.Manual.cs new file mode 100644 index 0000000000..3e4947b787 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_VIEW_INSTANCING_DESC pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING; + pssInner = D3D12_VIEW_INSTANCING_DESC.DEFAULT; + } + + public CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING( + [NativeTypeName("D3D12_VIEW_INSTANCING_DESC const &")] in D3D12_VIEW_INSTANCING_DESC i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING( + in D3D12_VIEW_INSTANCING_DESC value + ) => new CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING(value); + + public static implicit operator D3D12_VIEW_INSTANCING_DESC( + in CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_VIEW_INSTANCING_DESC pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_VS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_VS.Manual.cs new file mode 100644 index 0000000000..98471f5c73 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/CD3DX12_PIPELINE_STATE_STREAM_VS.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +[StructLayout(LayoutKind.Explicit)] +public struct CD3DX12_PIPELINE_STATE_STREAM_VS +{ + [FieldOffset(0)] + private readonly unsafe void* _Anonymous_e__Alignment; + + [FieldOffset(0)] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType => ref Anonymous.pssType; + + [UnscopedRef] + public ref D3D12_SHADER_BYTECODE pssInner => ref Anonymous.pssInner; + + public CD3DX12_PIPELINE_STATE_STREAM_VS() + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS; + pssInner = default; + } + + public CD3DX12_PIPELINE_STATE_STREAM_VS( + [NativeTypeName("D3D12_SHADER_BYTECODE const &")] in D3D12_SHADER_BYTECODE i + ) + { + pssType = D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS; + pssInner = i; + } + + public static implicit operator CD3DX12_PIPELINE_STATE_STREAM_VS( + in D3D12_SHADER_BYTECODE value + ) => new CD3DX12_PIPELINE_STATE_STREAM_VS(value); + + public static implicit operator D3D12_SHADER_BYTECODE( + in CD3DX12_PIPELINE_STATE_STREAM_VS value + ) => value.pssInner; + + public struct _Anonymous_e__Struct + { + public D3D12_PIPELINE_STATE_SUBOBJECT_TYPE pssType; + public D3D12_SHADER_BYTECODE pssInner; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/DirectX.Manual.cs new file mode 100644 index 0000000000..0f9598e63f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/DirectX.Manual.cs @@ -0,0 +1,317 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_pipeline_state_stream.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; +using static Silk.NET.Win32.E; +using static Silk.NET.Win32.S; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static HRESULT D3DX12ParsePipelineStream( + [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC &")] + in D3D12_PIPELINE_STATE_STREAM_DESC Desc, + ID3DX12PipelineParserCallbacks pCallbacks + ) + { + if (pCallbacks.lpVtbl == null) + { + return E_INVALIDARG; + } + if (Desc.SizeInBytes == 0 || Desc.pPipelineStateSubobjectStream == null) + { + pCallbacks.ErrorBadInputParameter(1); // first parameter issue + return E_INVALIDARG; + } + bool* SubobjectSeen = stackalloc bool[(int)(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID)]; + for ( + nuint CurOffset = 0, SizeOfSubobject = 0; + CurOffset < Desc.SizeInBytes; + CurOffset += SizeOfSubobject + ) + { + byte* pStream = (byte*)(Desc.pPipelineStateSubobjectStream) + CurOffset; + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE SubobjectType = + *(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE*)(pStream); + if ( + (SubobjectType < 0) + || (SubobjectType >= D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID) + ) + { + pCallbacks.ErrorUnknownSubobject((uint)(SubobjectType)); + return E_INVALIDARG; + } + if (SubobjectSeen[(int)(D3DX12GetBaseSubobjectType(SubobjectType))]) + { + pCallbacks.ErrorDuplicateSubobject(SubobjectType); + return E_INVALIDARG; // disallow subobject duplicates in a stream + } + SubobjectSeen[(int)(SubobjectType)] = true; + switch (SubobjectType) + { + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE: + { + pCallbacks.RootSignatureCb( + ((CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS: + { + pCallbacks.VSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_VS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_VS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS: + { + pCallbacks.PSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_PS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_PS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS: + { + pCallbacks.DSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_DS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_DS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS: + { + pCallbacks.HSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_HS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_HS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS: + { + pCallbacks.GSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_GS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_GS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS: + { + pCallbacks.CSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_CS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_CS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS: + { + pCallbacks.ASCb( + &((CD3DX12_PIPELINE_STATE_STREAM_AS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_AS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS: + { + pCallbacks.MSCb( + &((CD3DX12_PIPELINE_STATE_STREAM_MS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_MS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT: + { + pCallbacks.StreamOutputCb( + &((CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND: + { + pCallbacks.BlendStateCb( + &((CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK: + { + pCallbacks.SampleMaskCb( + ((CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER: + { + pCallbacks.RasterizerStateCb( + &((CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1: + { + pCallbacks.RasterizerState1Cb( + &((CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER1)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2: + { + pCallbacks.RasterizerState2Cb( + &((CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER2)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL: + { + pCallbacks.DepthStencilStateCb( + &((CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1: + { + pCallbacks.DepthStencilState1Cb( + &((CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2: + { + pCallbacks.DepthStencilState2Cb( + &((CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL2)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT: + { + pCallbacks.InputLayoutCb( + &((CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE: + { + pCallbacks.IBStripCutValueCb( + ((CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)( + sizeof(CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE) + ); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY: + { + pCallbacks.PrimitiveTopologyTypeCb( + ((CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)( + sizeof(CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY) + ); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS: + { + pCallbacks.RTVFormatsCb( + &((CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)( + sizeof(CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS) + ); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT: + { + pCallbacks.DSVFormatCb( + ((CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)( + sizeof(CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT) + ); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC: + { + pCallbacks.SampleDescCb( + &((CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK: + { + pCallbacks.NodeMaskCb( + ((CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO: + { + pCallbacks.CachedPSOCb( + &((CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS: + { + pCallbacks.FlagsCb( + ((CD3DX12_PIPELINE_STATE_STREAM_FLAGS*)(pStream))->Anonymous.pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_FLAGS)); + break; + } + case D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING: + { + pCallbacks.ViewInstancingCb( + &((CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING*)(pStream)) + ->Anonymous + .pssInner + ); + SizeOfSubobject = (uint)(sizeof(CD3DX12_PIPELINE_STATE_STREAM_VIEW_INSTANCING)); + break; + } + default: + { + pCallbacks.ErrorUnknownSubobject((uint)(SubobjectType)); + return E_INVALIDARG; + } + } + } + return S_OK; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/ID3DX12PipelineParserCallbacks.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/ID3DX12PipelineParserCallbacks.Manual.cs new file mode 100644 index 0000000000..e6c7953009 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_pipeline_state_stream/ID3DX12PipelineParserCallbacks.Manual.cs @@ -0,0 +1,1826 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System.Runtime.CompilerServices; + +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +public unsafe partial struct ID3DX12PipelineParserCallbacks + : ID3DX12PipelineParserCallbacks.Interface +{ + public Native* lpVtbl; + + public interface Interface + { + [VtblIndex(13)] + void ASCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* AS); + + [VtblIndex(13)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void ASCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref AS); + + [VtblIndex(15)] + void BlendStateCb( + [NativeTypeName("const D3D12_BLEND_DESC &")] D3D12_BLEND_DESC* BlendState + ); + + [VtblIndex(15)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void BlendStateCb( + [NativeTypeName("const D3D12_BLEND_DESC &")] Ref BlendState + ); + + [VtblIndex(27)] + void CachedPSOCb( + [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] + D3D12_CACHED_PIPELINE_STATE* CachedPSO + ); + + [VtblIndex(27)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void CachedPSOCb( + [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] + Ref CachedPSO + ); + + [VtblIndex(12)] + void CSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* CS); + + [VtblIndex(12)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void CSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref CS); + + [VtblIndex(17)] + void DepthStencilState1Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] + D3D12_DEPTH_STENCIL_DESC1* DepthStencilState + ); + + [VtblIndex(17)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void DepthStencilState1Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] + Ref DepthStencilState + ); + + [VtblIndex(18)] + void DepthStencilState2Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] + D3D12_DEPTH_STENCIL_DESC2* DepthStencilState + ); + + [VtblIndex(18)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void DepthStencilState2Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] + Ref DepthStencilState + ); + + [VtblIndex(16)] + void DepthStencilStateCb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] + D3D12_DEPTH_STENCIL_DESC* DepthStencilState + ); + + [VtblIndex(16)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void DepthStencilStateCb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] + Ref DepthStencilState + ); + + [VtblIndex(31)] + void Dispose(); + + [VtblIndex(10)] + void DSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* DS); + + [VtblIndex(10)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void DSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref DS); + + [VtblIndex(19)] + void DSVFormatCb(DXGI_FORMAT DSVFormat); + + [VtblIndex(28)] + void ErrorBadInputParameter(uint ParameterIndex); + + [VtblIndex(29)] + void ErrorDuplicateSubobject(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE DuplicateType); + + [VtblIndex(30)] + void ErrorUnknownSubobject(uint UnknownTypeValue); + + [VtblIndex(0)] + void FlagsCb(D3D12_PIPELINE_STATE_FLAGS Flags); + + [VtblIndex(7)] + void GSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* GS); + + [VtblIndex(7)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void GSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref GS); + + [VtblIndex(9)] + void HSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* HS); + + [VtblIndex(9)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void HSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref HS); + + [VtblIndex(4)] + void IBStripCutValueCb(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue); + + [VtblIndex(3)] + void InputLayoutCb( + [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] D3D12_INPUT_LAYOUT_DESC* InputLayout + ); + + [VtblIndex(3)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void InputLayoutCb( + [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] + Ref InputLayout + ); + + [VtblIndex(14)] + void MSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* MS); + + [VtblIndex(14)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void MSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref MS); + + [VtblIndex(1)] + void NodeMaskCb(uint NodeMask); + + [VtblIndex(5)] + void PrimitiveTopologyTypeCb(D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType); + + [VtblIndex(11)] + void PSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* PS); + + [VtblIndex(11)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void PSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref PS); + + [VtblIndex(21)] + void RasterizerState1Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] + D3D12_RASTERIZER_DESC1* RasterizerState + ); + + [VtblIndex(21)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void RasterizerState1Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] + Ref RasterizerState + ); + + [VtblIndex(22)] + void RasterizerState2Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC2 &")] + D3D12_RASTERIZER_DESC2* RasterizerState + ); + + [VtblIndex(22)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void RasterizerState2Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC2 &")] + Ref RasterizerState + ); + + [VtblIndex(20)] + void RasterizerStateCb( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] D3D12_RASTERIZER_DESC* RasterizerState + ); + + [VtblIndex(20)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void RasterizerStateCb( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] + Ref RasterizerState + ); + + [VtblIndex(2)] + void RootSignatureCb(ID3D12RootSignature pRootSignature); + + [VtblIndex(23)] + void RTVFormatsCb( + [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] D3D12_RT_FORMAT_ARRAY* RTVFormats + ); + + [VtblIndex(23)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void RTVFormatsCb( + [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] Ref RTVFormats + ); + + [VtblIndex(24)] + void SampleDescCb( + [NativeTypeName("const DXGI_SAMPLE_DESC &")] DXGI_SAMPLE_DESC* SampleDesc + ); + + [VtblIndex(24)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void SampleDescCb( + [NativeTypeName("const DXGI_SAMPLE_DESC &")] Ref SampleDesc + ); + + [VtblIndex(25)] + void SampleMaskCb(uint SampleMask); + + [VtblIndex(8)] + void StreamOutputCb( + [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] + D3D12_STREAM_OUTPUT_DESC* StreamOutput + ); + + [VtblIndex(8)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void StreamOutputCb( + [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] + Ref StreamOutput + ); + + [VtblIndex(26)] + void ViewInstancingCb( + [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] + D3D12_VIEW_INSTANCING_DESC* ViewInstancingDesc + ); + + [VtblIndex(26)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void ViewInstancingCb( + [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] + Ref ViewInstancingDesc + ); + + [VtblIndex(6)] + void VSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* VS); + + [VtblIndex(6)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + void VSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref VS); + } + + /// + public unsafe partial struct Native : Interface + { + public void** lpVtbl; + + public partial struct Vtbl + where TSelf : unmanaged, Interface + { + [NativeTypeName("void (D3D12_PIPELINE_STATE_FLAGS)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_PIPELINE_STATE_FLAGS, + void> FlagsCb; + + [NativeTypeName("void (UINT)")] + public delegate* unmanaged[MemberFunction] NodeMaskCb; + + [NativeTypeName("void (ID3D12RootSignature *)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + ID3D12RootSignature.Native*, + void> RootSignatureCb; + + [NativeTypeName("void (const D3D12_INPUT_LAYOUT_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_INPUT_LAYOUT_DESC*, + void> InputLayoutCb; + + [NativeTypeName("void (D3D12_INDEX_BUFFER_STRIP_CUT_VALUE)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE, + void> IBStripCutValueCb; + + [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY_TYPE)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_PRIMITIVE_TOPOLOGY_TYPE, + void> PrimitiveTopologyTypeCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] VSCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] GSCb; + + [NativeTypeName("void (const D3D12_STREAM_OUTPUT_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_STREAM_OUTPUT_DESC*, + void> StreamOutputCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] HSCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] DSCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] PSCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] CSCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] ASCb; + + [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] + public delegate* unmanaged[MemberFunction] MSCb; + + [NativeTypeName("void (const D3D12_BLEND_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_BLEND_DESC*, + void> BlendStateCb; + + [NativeTypeName("void (const D3D12_DEPTH_STENCIL_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_DEPTH_STENCIL_DESC*, + void> DepthStencilStateCb; + + [NativeTypeName("void (const D3D12_DEPTH_STENCIL_DESC1 &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_DEPTH_STENCIL_DESC1*, + void> DepthStencilState1Cb; + + [NativeTypeName("void (const D3D12_DEPTH_STENCIL_DESC2 &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_DEPTH_STENCIL_DESC2*, + void> DepthStencilState2Cb; + + [NativeTypeName("void (DXGI_FORMAT)")] + public delegate* unmanaged[MemberFunction] DSVFormatCb; + + [NativeTypeName("void (const D3D12_RASTERIZER_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_RASTERIZER_DESC*, + void> RasterizerStateCb; + + [NativeTypeName("void (const D3D12_RASTERIZER_DESC1 &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_RASTERIZER_DESC1*, + void> RasterizerState1Cb; + + [NativeTypeName("void (const D3D12_RASTERIZER_DESC2 &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_RASTERIZER_DESC2*, + void> RasterizerState2Cb; + + [NativeTypeName("void (const D3D12_RT_FORMAT_ARRAY &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_RT_FORMAT_ARRAY*, + void> RTVFormatsCb; + + [NativeTypeName("void (const DXGI_SAMPLE_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + DXGI_SAMPLE_DESC*, + void> SampleDescCb; + + [NativeTypeName("void (UINT)")] + public delegate* unmanaged[MemberFunction] SampleMaskCb; + + [NativeTypeName("void (const D3D12_VIEW_INSTANCING_DESC &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_VIEW_INSTANCING_DESC*, + void> ViewInstancingCb; + + [NativeTypeName("void (const D3D12_CACHED_PIPELINE_STATE &)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_CACHED_PIPELINE_STATE*, + void> CachedPSOCb; + + [NativeTypeName("void (UINT)")] + public delegate* unmanaged[MemberFunction] ErrorBadInputParameter; + + [NativeTypeName("void (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE)")] + public delegate* unmanaged[MemberFunction]< + TSelf*, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE, + void> ErrorDuplicateSubobject; + + [NativeTypeName("void (UINT)")] + public delegate* unmanaged[MemberFunction] ErrorUnknownSubobject; + + [NativeTypeName("void () noexcept")] + public delegate* unmanaged[MemberFunction] Dispose; + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ASCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* AS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[13]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), AS); + } + + [VtblIndex(13)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ASCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref AS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_AS = AS) + { + ASCb(__dsl_AS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void BlendStateCb( + [NativeTypeName("const D3D12_BLEND_DESC &")] D3D12_BLEND_DESC* BlendState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_BLEND_DESC*, + void>)(lpVtbl[15]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), BlendState); + } + + [VtblIndex(15)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void BlendStateCb( + [NativeTypeName("const D3D12_BLEND_DESC &")] Ref BlendState + ) + { + fixed (D3D12_BLEND_DESC* __dsl_BlendState = BlendState) + { + BlendStateCb(__dsl_BlendState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void CachedPSOCb( + [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] + D3D12_CACHED_PIPELINE_STATE* CachedPSO + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_CACHED_PIPELINE_STATE*, + void>)(lpVtbl[27]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), CachedPSO); + } + + [VtblIndex(27)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CachedPSOCb( + [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] + Ref CachedPSO + ) + { + fixed (D3D12_CACHED_PIPELINE_STATE* __dsl_CachedPSO = CachedPSO) + { + CachedPSOCb(__dsl_CachedPSO); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void CSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* CS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[12]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), CS); + } + + [VtblIndex(12)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref CS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_CS = CS) + { + CSCb(__dsl_CS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void DepthStencilState1Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] + D3D12_DEPTH_STENCIL_DESC1* DepthStencilState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_DEPTH_STENCIL_DESC1*, + void>)(lpVtbl[17]) + )( + (ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), + DepthStencilState + ); + } + + [VtblIndex(17)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DepthStencilState1Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] + Ref DepthStencilState + ) + { + fixed (D3D12_DEPTH_STENCIL_DESC1* __dsl_DepthStencilState = DepthStencilState) + { + DepthStencilState1Cb(__dsl_DepthStencilState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DepthStencilState2Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] + D3D12_DEPTH_STENCIL_DESC2* DepthStencilState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_DEPTH_STENCIL_DESC2*, + void>)(lpVtbl[18]) + )( + (ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), + DepthStencilState + ); + } + + [VtblIndex(18)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DepthStencilState2Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] + Ref DepthStencilState + ) + { + fixed (D3D12_DEPTH_STENCIL_DESC2* __dsl_DepthStencilState = DepthStencilState) + { + DepthStencilState2Cb(__dsl_DepthStencilState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DepthStencilStateCb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] + D3D12_DEPTH_STENCIL_DESC* DepthStencilState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_DEPTH_STENCIL_DESC*, + void>)(lpVtbl[16]) + )( + (ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), + DepthStencilState + ); + } + + [VtblIndex(16)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DepthStencilStateCb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] + Ref DepthStencilState + ) + { + fixed (D3D12_DEPTH_STENCIL_DESC* __dsl_DepthStencilState = DepthStencilState) + { + DepthStencilStateCb(__dsl_DepthStencilState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void Dispose() + { + ( + (delegate* unmanaged[MemberFunction])( + lpVtbl[31] + ) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void DSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* DS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[10]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), DS); + } + + [VtblIndex(10)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref DS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_DS = DS) + { + DSCb(__dsl_DS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void DSVFormatCb(DXGI_FORMAT DSVFormat) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + DXGI_FORMAT, + void>)(lpVtbl[19]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), DSVFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void ErrorBadInputParameter(uint ParameterIndex) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + uint, + void>)(lpVtbl[28]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), ParameterIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void ErrorDuplicateSubobject(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE DuplicateType) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE, + void>)(lpVtbl[29]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), DuplicateType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void ErrorUnknownSubobject(uint UnknownTypeValue) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + uint, + void>)(lpVtbl[30]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), UnknownTypeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void FlagsCb(D3D12_PIPELINE_STATE_FLAGS Flags) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_PIPELINE_STATE_FLAGS, + void>)(lpVtbl[0]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* GS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[7]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), GS); + } + + [VtblIndex(7)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref GS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_GS = GS) + { + GSCb(__dsl_GS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void HSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* HS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[9]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), HS); + } + + [VtblIndex(9)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void HSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref HS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_HS = HS) + { + HSCb(__dsl_HS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void IBStripCutValueCb(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE, + void>)(lpVtbl[4]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), IBStripCutValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void InputLayoutCb( + [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] D3D12_INPUT_LAYOUT_DESC* InputLayout + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_INPUT_LAYOUT_DESC*, + void>)(lpVtbl[3]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), InputLayout); + } + + [VtblIndex(3)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void InputLayoutCb( + [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] + Ref InputLayout + ) + { + fixed (D3D12_INPUT_LAYOUT_DESC* __dsl_InputLayout = InputLayout) + { + InputLayoutCb(__dsl_InputLayout); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void MSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* MS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[14]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), MS); + } + + [VtblIndex(14)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void MSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref MS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_MS = MS) + { + MSCb(__dsl_MS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public void NodeMaskCb(uint NodeMask) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + uint, + void>)(lpVtbl[1]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), NodeMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void PrimitiveTopologyTypeCb(D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_PRIMITIVE_TOPOLOGY_TYPE, + void>)(lpVtbl[5]) + )( + (ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), + PrimitiveTopologyType + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void PSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* PS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[11]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), PS); + } + + [VtblIndex(11)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void PSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref PS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_PS = PS) + { + PSCb(__dsl_PS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RasterizerState1Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] + D3D12_RASTERIZER_DESC1* RasterizerState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_RASTERIZER_DESC1*, + void>)(lpVtbl[21]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), RasterizerState); + } + + [VtblIndex(21)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RasterizerState1Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] + Ref RasterizerState + ) + { + fixed (D3D12_RASTERIZER_DESC1* __dsl_RasterizerState = RasterizerState) + { + RasterizerState1Cb(__dsl_RasterizerState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RasterizerState2Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC2 &")] + D3D12_RASTERIZER_DESC2* RasterizerState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_RASTERIZER_DESC2*, + void>)(lpVtbl[22]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), RasterizerState); + } + + [VtblIndex(22)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RasterizerState2Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC2 &")] + Ref RasterizerState + ) + { + fixed (D3D12_RASTERIZER_DESC2* __dsl_RasterizerState = RasterizerState) + { + RasterizerState2Cb(__dsl_RasterizerState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void RasterizerStateCb( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] D3D12_RASTERIZER_DESC* RasterizerState + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_RASTERIZER_DESC*, + void>)(lpVtbl[20]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), RasterizerState); + } + + [VtblIndex(20)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RasterizerStateCb( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] + Ref RasterizerState + ) + { + fixed (D3D12_RASTERIZER_DESC* __dsl_RasterizerState = RasterizerState) + { + RasterizerStateCb(__dsl_RasterizerState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public void RootSignatureCb(ID3D12RootSignature pRootSignature) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + ID3D12RootSignature.Native*, + void>)(lpVtbl[2]) + )( + (ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), + pRootSignature.lpVtbl + ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void RTVFormatsCb( + [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] D3D12_RT_FORMAT_ARRAY* RTVFormats + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_RT_FORMAT_ARRAY*, + void>)(lpVtbl[23]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), RTVFormats); + } + + [VtblIndex(23)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void RTVFormatsCb( + [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] Ref RTVFormats + ) + { + fixed (D3D12_RT_FORMAT_ARRAY* __dsl_RTVFormats = RTVFormats) + { + RTVFormatsCb(__dsl_RTVFormats); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void SampleDescCb( + [NativeTypeName("const DXGI_SAMPLE_DESC &")] DXGI_SAMPLE_DESC* SampleDesc + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + DXGI_SAMPLE_DESC*, + void>)(lpVtbl[24]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), SampleDesc); + } + + [VtblIndex(24)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SampleDescCb( + [NativeTypeName("const DXGI_SAMPLE_DESC &")] Ref SampleDesc + ) + { + fixed (DXGI_SAMPLE_DESC* __dsl_SampleDesc = SampleDesc) + { + SampleDescCb(__dsl_SampleDesc); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SampleMaskCb(uint SampleMask) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + uint, + void>)(lpVtbl[25]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), SampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void StreamOutputCb( + [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] + D3D12_STREAM_OUTPUT_DESC* StreamOutput + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_STREAM_OUTPUT_DESC*, + void>)(lpVtbl[8]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), StreamOutput); + } + + [VtblIndex(8)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void StreamOutputCb( + [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] + Ref StreamOutput + ) + { + fixed (D3D12_STREAM_OUTPUT_DESC* __dsl_StreamOutput = StreamOutput) + { + StreamOutputCb(__dsl_StreamOutput); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ViewInstancingCb( + [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] + D3D12_VIEW_INSTANCING_DESC* ViewInstancingDesc + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_VIEW_INSTANCING_DESC*, + void>)(lpVtbl[26]) + )( + (ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), + ViewInstancingDesc + ); + } + + [VtblIndex(26)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ViewInstancingCb( + [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] + Ref ViewInstancingDesc + ) + { + fixed (D3D12_VIEW_INSTANCING_DESC* __dsl_ViewInstancingDesc = ViewInstancingDesc) + { + ViewInstancingCb(__dsl_ViewInstancingDesc); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void VSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* VS + ) + { + ( + (delegate* unmanaged[MemberFunction]< + ID3DX12PipelineParserCallbacks.Native*, + D3D12_SHADER_BYTECODE*, + void>)(lpVtbl[6]) + )((ID3DX12PipelineParserCallbacks.Native*)Unsafe.AsPointer(ref this), VS); + } + + [VtblIndex(6)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void VSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref VS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_VS = VS) + { + VSCb(__dsl_VS); + } + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public ID3DX12PipelineParserCallbacks(Ptr3D vtbl) => + lpVtbl = (ID3DX12PipelineParserCallbacks.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public ID3DX12PipelineParserCallbacks(Ptr vtbl) => + lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator ID3DX12PipelineParserCallbacks( + ID3DX12PipelineParserCallbacks.Native* value + ) => new ID3DX12PipelineParserCallbacks((Ptr)value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator ID3DX12PipelineParserCallbacks.Native*( + ID3DX12PipelineParserCallbacks value + ) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DX12PipelineParserCallbacks(Ptr3D value) => + new ID3DX12PipelineParserCallbacks(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr3D(ID3DX12PipelineParserCallbacks value) => + (Ptr3D)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DX12PipelineParserCallbacks( + Ptr value + ) => new ID3DX12PipelineParserCallbacks(value); + + /// casts to . + /// The instance to be converted + public static implicit operator Ptr( + ID3DX12PipelineParserCallbacks value + ) => (Ptr)value.lpVtbl; + + /// casts void*** to . + /// The void*** instance to be converted + public static explicit operator ID3DX12PipelineParserCallbacks(void*** value) => + new ID3DX12PipelineParserCallbacks((Ptr)value); + + /// casts to void*** pointer. + /// The instance to be converted + public static implicit operator void***(ID3DX12PipelineParserCallbacks value) => + (void***)value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator ID3DX12PipelineParserCallbacks(nuint value) => + new ID3DX12PipelineParserCallbacks((Ptr)value.ToPointer()); + + /// casts to . + /// The instance to be converted + public static implicit operator nuint(ID3DX12PipelineParserCallbacks value) => + (nuint)value.lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ASCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* AS) => + lpVtbl->ASCb(AS); + + [VtblIndex(13)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void ASCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref AS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_AS = AS) + { + ASCb(__dsl_AS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void BlendStateCb( + [NativeTypeName("const D3D12_BLEND_DESC &")] D3D12_BLEND_DESC* BlendState + ) => lpVtbl->BlendStateCb(BlendState); + + [VtblIndex(15)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void BlendStateCb( + [NativeTypeName("const D3D12_BLEND_DESC &")] Ref BlendState + ) + { + fixed (D3D12_BLEND_DESC* __dsl_BlendState = BlendState) + { + BlendStateCb(__dsl_BlendState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void CachedPSOCb( + [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] + D3D12_CACHED_PIPELINE_STATE* CachedPSO + ) => lpVtbl->CachedPSOCb(CachedPSO); + + [VtblIndex(27)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void CachedPSOCb( + [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] + Ref CachedPSO + ) + { + fixed (D3D12_CACHED_PIPELINE_STATE* __dsl_CachedPSO = CachedPSO) + { + CachedPSOCb(__dsl_CachedPSO); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void CSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* CS) => + lpVtbl->CSCb(CS); + + [VtblIndex(12)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void CSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref CS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_CS = CS) + { + CSCb(__dsl_CS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void DepthStencilState1Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] + D3D12_DEPTH_STENCIL_DESC1* DepthStencilState + ) => lpVtbl->DepthStencilState1Cb(DepthStencilState); + + [VtblIndex(17)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void DepthStencilState1Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] + Ref DepthStencilState + ) + { + fixed (D3D12_DEPTH_STENCIL_DESC1* __dsl_DepthStencilState = DepthStencilState) + { + DepthStencilState1Cb(__dsl_DepthStencilState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DepthStencilState2Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] + D3D12_DEPTH_STENCIL_DESC2* DepthStencilState + ) => lpVtbl->DepthStencilState2Cb(DepthStencilState); + + [VtblIndex(18)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void DepthStencilState2Cb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] + Ref DepthStencilState + ) + { + fixed (D3D12_DEPTH_STENCIL_DESC2* __dsl_DepthStencilState = DepthStencilState) + { + DepthStencilState2Cb(__dsl_DepthStencilState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DepthStencilStateCb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] + D3D12_DEPTH_STENCIL_DESC* DepthStencilState + ) => lpVtbl->DepthStencilStateCb(DepthStencilState); + + [VtblIndex(16)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void DepthStencilStateCb( + [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] + Ref DepthStencilState + ) + { + fixed (D3D12_DEPTH_STENCIL_DESC* __dsl_DepthStencilState = DepthStencilState) + { + DepthStencilStateCb(__dsl_DepthStencilState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void Dispose() => lpVtbl->Dispose(); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void DSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* DS) => + lpVtbl->DSCb(DS); + + [VtblIndex(10)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void DSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref DS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_DS = DS) + { + DSCb(__dsl_DS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void DSVFormatCb(DXGI_FORMAT DSVFormat) => lpVtbl->DSVFormatCb(DSVFormat); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void ErrorBadInputParameter(uint ParameterIndex) => + lpVtbl->ErrorBadInputParameter(ParameterIndex); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void ErrorDuplicateSubobject(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE DuplicateType) => + lpVtbl->ErrorDuplicateSubobject(DuplicateType); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void ErrorUnknownSubobject(uint UnknownTypeValue) => + lpVtbl->ErrorUnknownSubobject(UnknownTypeValue); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void FlagsCb(D3D12_PIPELINE_STATE_FLAGS Flags) => lpVtbl->FlagsCb(Flags); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* GS) => + lpVtbl->GSCb(GS); + + [VtblIndex(7)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void GSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref GS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_GS = GS) + { + GSCb(__dsl_GS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void HSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* HS) => + lpVtbl->HSCb(HS); + + [VtblIndex(9)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void HSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref HS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_HS = HS) + { + HSCb(__dsl_HS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void IBStripCutValueCb(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue) => + lpVtbl->IBStripCutValueCb(IBStripCutValue); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void InputLayoutCb( + [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] D3D12_INPUT_LAYOUT_DESC* InputLayout + ) => lpVtbl->InputLayoutCb(InputLayout); + + [VtblIndex(3)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void InputLayoutCb( + [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] Ref InputLayout + ) + { + fixed (D3D12_INPUT_LAYOUT_DESC* __dsl_InputLayout = InputLayout) + { + InputLayoutCb(__dsl_InputLayout); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void MSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* MS) => + lpVtbl->MSCb(MS); + + [VtblIndex(14)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void MSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref MS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_MS = MS) + { + MSCb(__dsl_MS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public void NodeMaskCb(uint NodeMask) => lpVtbl->NodeMaskCb(NodeMask); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void PrimitiveTopologyTypeCb(D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType) => + lpVtbl->PrimitiveTopologyTypeCb(PrimitiveTopologyType); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void PSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* PS) => + lpVtbl->PSCb(PS); + + [VtblIndex(11)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void PSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref PS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_PS = PS) + { + PSCb(__dsl_PS); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RasterizerState1Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] D3D12_RASTERIZER_DESC1* RasterizerState + ) => lpVtbl->RasterizerState1Cb(RasterizerState); + + [VtblIndex(21)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void RasterizerState1Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC1 &")] + Ref RasterizerState + ) + { + fixed (D3D12_RASTERIZER_DESC1* __dsl_RasterizerState = RasterizerState) + { + RasterizerState1Cb(__dsl_RasterizerState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RasterizerState2Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC2 &")] D3D12_RASTERIZER_DESC2* RasterizerState + ) => lpVtbl->RasterizerState2Cb(RasterizerState); + + [VtblIndex(22)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void RasterizerState2Cb( + [NativeTypeName("const D3D12_RASTERIZER_DESC2 &")] + Ref RasterizerState + ) + { + fixed (D3D12_RASTERIZER_DESC2* __dsl_RasterizerState = RasterizerState) + { + RasterizerState2Cb(__dsl_RasterizerState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void RasterizerStateCb( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] D3D12_RASTERIZER_DESC* RasterizerState + ) => lpVtbl->RasterizerStateCb(RasterizerState); + + [VtblIndex(20)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void RasterizerStateCb( + [NativeTypeName("const D3D12_RASTERIZER_DESC &")] Ref RasterizerState + ) + { + fixed (D3D12_RASTERIZER_DESC* __dsl_RasterizerState = RasterizerState) + { + RasterizerStateCb(__dsl_RasterizerState); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public void RootSignatureCb(ID3D12RootSignature pRootSignature) => + lpVtbl->RootSignatureCb(pRootSignature); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void RTVFormatsCb( + [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] D3D12_RT_FORMAT_ARRAY* RTVFormats + ) => lpVtbl->RTVFormatsCb(RTVFormats); + + [VtblIndex(23)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void RTVFormatsCb( + [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] Ref RTVFormats + ) + { + fixed (D3D12_RT_FORMAT_ARRAY* __dsl_RTVFormats = RTVFormats) + { + RTVFormatsCb(__dsl_RTVFormats); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void SampleDescCb( + [NativeTypeName("const DXGI_SAMPLE_DESC &")] DXGI_SAMPLE_DESC* SampleDesc + ) => lpVtbl->SampleDescCb(SampleDesc); + + [VtblIndex(24)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void SampleDescCb( + [NativeTypeName("const DXGI_SAMPLE_DESC &")] Ref SampleDesc + ) + { + fixed (DXGI_SAMPLE_DESC* __dsl_SampleDesc = SampleDesc) + { + SampleDescCb(__dsl_SampleDesc); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SampleMaskCb(uint SampleMask) => lpVtbl->SampleMaskCb(SampleMask); + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void StreamOutputCb( + [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] D3D12_STREAM_OUTPUT_DESC* StreamOutput + ) => lpVtbl->StreamOutputCb(StreamOutput); + + [VtblIndex(8)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void StreamOutputCb( + [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] + Ref StreamOutput + ) + { + fixed (D3D12_STREAM_OUTPUT_DESC* __dsl_StreamOutput = StreamOutput) + { + StreamOutputCb(__dsl_StreamOutput); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ViewInstancingCb( + [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] + D3D12_VIEW_INSTANCING_DESC* ViewInstancingDesc + ) => lpVtbl->ViewInstancingCb(ViewInstancingDesc); + + [VtblIndex(26)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void ViewInstancingCb( + [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] + Ref ViewInstancingDesc + ) + { + fixed (D3D12_VIEW_INSTANCING_DESC* __dsl_ViewInstancingDesc = ViewInstancingDesc) + { + ViewInstancingCb(__dsl_ViewInstancingDesc); + } + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void VSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* VS) => + lpVtbl->VSCb(VS); + + [VtblIndex(6)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void VSCb( + [NativeTypeName("const D3D12_SHADER_BYTECODE &")] Ref VS + ) + { + fixed (D3D12_SHADER_BYTECODE* __dsl_VS = VS) + { + VSCb(__dsl_VS); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_property_format_table/D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_property_format_table/D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.Manual.cs new file mode 100644 index 0000000000..b468f316a1 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_property_format_table/D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.Manual.cs @@ -0,0 +1,7036 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_property_format_table.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D_FEATURE_LEVEL; +using static Silk.NET.DirectX.D3D_FORMAT_COMPONENT_INTERPRETATION; +using static Silk.NET.DirectX.D3D_FORMAT_COMPONENT_NAME; +using static Silk.NET.DirectX.D3D_FORMAT_LAYOUT; +using static Silk.NET.DirectX.D3D_FORMAT_TYPE_LEVEL; +using static Silk.NET.DirectX.D3D10_SB_4_COMPONENT_NAME; +using static Silk.NET.DirectX.D3D12; +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +using static Silk.NET.DirectX.DirectX; +using static Silk.NET.DirectX.DXGI_FORMAT; +using static Silk.NET.Win32.E; +using static Silk.NET.Win32.S; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_PROPERTY_LAYOUT_FORMAT_TABLE +{ + private const int INTSAFE_E_ARITHMETIC_OVERFLOW = unchecked((int)(0x80070216)); + private const D3D_FORMAT_COMPONENT_NAME R = D3DFCN_R; + private const D3D_FORMAT_COMPONENT_NAME G = D3DFCN_G; + private const D3D_FORMAT_COMPONENT_NAME B = D3DFCN_B; + private const D3D_FORMAT_COMPONENT_NAME A = D3DFCN_A; + private const D3D_FORMAT_COMPONENT_NAME D = D3DFCN_D; + private const D3D_FORMAT_COMPONENT_NAME S = D3DFCN_S; + private const D3D_FORMAT_COMPONENT_NAME X = D3DFCN_X; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _TYPELESS = D3DFCI_TYPELESS; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _FLOAT = D3DFCI_FLOAT; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _SNORM = D3DFCI_SNORM; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _UNORM = D3DFCI_UNORM; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _SINT = D3DFCI_SINT; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _UINT = D3DFCI_UINT; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _UNORM_SRGB = D3DFCI_UNORM_SRGB; + private const D3D_FORMAT_COMPONENT_INTERPRETATION _FIXED_2_8 = D3DFCI_BIASED_FIXED_2_8; + + public partial struct FORMAT_DETAIL + { + public FORMAT_DETAIL( + DXGI_FORMAT DXGIFormat, + DXGI_FORMAT ParentFormat, + ReadOnlySpan DefaultFormatCastSet, + ReadOnlySpan BitsPerComponent, + byte BitsPerUnit, + bool SRGBFormat, + uint WidthAlignment, + uint HeightAlignment, + uint DepthAlignment, + D3D_FORMAT_LAYOUT Layout, + D3D_FORMAT_TYPE_LEVEL TypeLevel, + ReadOnlySpan ComponentNames, + ReadOnlySpan ComponentInterpretations, + bool bDX9VertexOrIndexFormat, + bool bDX9TextureFormat, + bool bFloatNormFormat, + bool bPlanar, + bool bYUV, + bool bDependentFormatCastSet, + bool bInternal + ) + { + Debug.Assert(BitsPerComponent.Length == 4); + Debug.Assert(ComponentNames.Length == 4); + Debug.Assert(ComponentInterpretations.Length == 4); + this.DXGIFormat = DXGIFormat; + this.ParentFormat = ParentFormat; + pDefaultFormatCastSet = (DXGI_FORMAT*)( + Unsafe.AsPointer(ref MemoryMarshal.GetReference(DefaultFormatCastSet)) + ); + this.BitsPerComponent[0] = BitsPerComponent[0]; + this.BitsPerComponent[1] = BitsPerComponent[1]; + this.BitsPerComponent[2] = BitsPerComponent[2]; + this.BitsPerComponent[3] = BitsPerComponent[3]; + this.BitsPerUnit = BitsPerUnit; + this.SRGBFormat = SRGBFormat; + this.WidthAlignment = WidthAlignment; + this.HeightAlignment = HeightAlignment; + this.DepthAlignment = DepthAlignment; + this.Layout = Layout; + this.TypeLevel = TypeLevel; + ComponentName0 = ComponentNames[0]; + ComponentName1 = ComponentNames[1]; + ComponentName2 = ComponentNames[2]; + ComponentName3 = ComponentNames[3]; + ComponentInterpretation0 = ComponentInterpretations[0]; + ComponentInterpretation1 = ComponentInterpretations[1]; + ComponentInterpretation2 = ComponentInterpretations[2]; + ComponentInterpretation3 = ComponentInterpretations[3]; + this.bDX9VertexOrIndexFormat = bDX9VertexOrIndexFormat; + this.bDX9TextureFormat = bDX9TextureFormat; + this.bFloatNormFormat = bFloatNormFormat; + this.bPlanar = bPlanar; + this.bYUV = bYUV; + this.bDependentFormatCastSet = bDependentFormatCastSet; + this.bInternal = bInternal; + } + + public DXGI_FORMAT DXGIFormat; + public DXGI_FORMAT ParentFormat; + + [NativeTypeName("const DXGI_FORMAT *")] + public DXGI_FORMAT* pDefaultFormatCastSet; + + [NativeTypeName("UINT8[4]")] + public _BitsPerComponent_e__FixedBuffer BitsPerComponent; + + [NativeTypeName("UINT8")] + public byte BitsPerUnit; + public byte _bitfield1; + + [NativeTypeName("byte : 1")] + public bool SRGBFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield1 & 0x1u) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (byte)((_bitfield1 & ~0x1u) | (value ? 1u : 0u)); } + } + public uint _bitfield2; + + [NativeTypeName("uint : 4")] + public uint WidthAlignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield2 & 0xFu; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~0xFu) | (value & 0xFu); } + } + + [NativeTypeName("uint : 4")] + public uint HeightAlignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield2 >> 4) & 0xFu; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0xFu << 4)) | ((value & 0xFu) << 4); } + } + + [NativeTypeName("uint : 1")] + public uint DepthAlignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield2 >> 8) & 0x1u; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x1u << 8)) | ((value & 0x1u) << 8); } + } + + [NativeTypeName("D3D_FORMAT_LAYOUT : 1")] + public D3D_FORMAT_LAYOUT Layout + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_LAYOUT)((_bitfield2 << 22) >> 31); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x1u << 9)) | (((uint)(value) & 0x1) << 9); } + } + + [NativeTypeName("D3D_FORMAT_TYPE_LEVEL : 2")] + public D3D_FORMAT_TYPE_LEVEL TypeLevel + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_TYPE_LEVEL)((_bitfield2 << 20) >> 30); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x3u << 10)) | (((uint)(value) & 0x3) << 10); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_NAME : 3")] + public D3D_FORMAT_COMPONENT_NAME ComponentName0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_NAME)((_bitfield2 << 17) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x7u << 12)) | (((uint)(value) & 0x7) << 12); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_NAME : 3")] + public D3D_FORMAT_COMPONENT_NAME ComponentName1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_NAME)((_bitfield2 << 14) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x7u << 15)) | (((uint)(value) & 0x7) << 15); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_NAME : 3")] + public D3D_FORMAT_COMPONENT_NAME ComponentName2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_NAME)((_bitfield2 << 11) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x7u << 18)) | (((uint)(value) & 0x7) << 18); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_NAME : 3")] + public D3D_FORMAT_COMPONENT_NAME ComponentName3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_NAME)((_bitfield2 << 8) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x7u << 21)) | (((uint)(value) & 0x7) << 21); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_INTERPRETATION : 3")] + public D3D_FORMAT_COMPONENT_INTERPRETATION ComponentInterpretation0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_INTERPRETATION)((_bitfield2 << 5) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x7u << 24)) | (((uint)(value) & 0x7) << 24); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_INTERPRETATION : 3")] + public D3D_FORMAT_COMPONENT_INTERPRETATION ComponentInterpretation1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_INTERPRETATION)((_bitfield2 << 2) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0x7u << 27)) | (((uint)(value) & 0x7) << 27); } + } + public int _bitfield3; + + [NativeTypeName("D3D_FORMAT_COMPONENT_INTERPRETATION : 3")] + public D3D_FORMAT_COMPONENT_INTERPRETATION ComponentInterpretation2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_INTERPRETATION)((_bitfield3 << 29) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield3 = (_bitfield3 & ~0x7) | ((int)(value) & 0x7); } + } + + [NativeTypeName("D3D_FORMAT_COMPONENT_INTERPRETATION : 3")] + public D3D_FORMAT_COMPONENT_INTERPRETATION ComponentInterpretation3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (D3D_FORMAT_COMPONENT_INTERPRETATION)((_bitfield3 << 26) >> 29); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield3 = (_bitfield3 & ~(0x7 << 3)) | (((int)(value) & 0x7) << 3); } + } + public byte _bitfield4; + + [NativeTypeName("bool : 1")] + public bool bDX9VertexOrIndexFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield4 & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~0x1) | (value ? 1 : 0)); } + } + + [NativeTypeName("bool : 1")] + public bool bDX9TextureFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return ((_bitfield4 >> 1) & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~(0x1 << 1)) | ((value ? 1 : 0) << 1)); } + } + + [NativeTypeName("bool : 1")] + public bool bFloatNormFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return ((_bitfield4 >> 2) & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~(0x1 << 2)) | ((value ? 1 : 0) << 2)); } + } + + [NativeTypeName("bool : 1")] + public bool bPlanar + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return ((_bitfield4 >> 3) & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~(0x1 << 3)) | ((value ? 1 : 0) << 3)); } + } + + [NativeTypeName("bool : 1")] + public bool bYUV + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return ((_bitfield4 >> 4) & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~(0x1 << 4)) | ((value ? 1 : 0) << 4)); } + } + + [NativeTypeName("bool : 1")] + public bool bDependentFormatCastSet + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return ((_bitfield4 >> 5) & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~(0x1 << 5)) | ((value ? 1 : 0) << 5)); } + } + + [NativeTypeName("bool : 1")] + public bool bInternal + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return ((_bitfield4 >> 6) & 0x1) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield4 = (byte)((_bitfield4 & ~(0x1 << 6)) | ((value ? 1 : 0) << 6)); } + } + + [InlineArray(4)] + public partial struct _BitsPerComponent_e__FixedBuffer + { + public byte e0; + } + } + + private static ReadOnlySpan D3DFCS_UNKNOWN => + [ + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R32G32B32A32 => + [ + DXGI_FORMAT_R32G32B32A32_TYPELESS, + DXGI_FORMAT_R32G32B32A32_FLOAT, + DXGI_FORMAT_R32G32B32A32_UINT, + DXGI_FORMAT_R32G32B32A32_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R32G32B32 => + [ + DXGI_FORMAT_R32G32B32_TYPELESS, + DXGI_FORMAT_R32G32B32_FLOAT, + DXGI_FORMAT_R32G32B32_UINT, + DXGI_FORMAT_R32G32B32_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R16G16B16A16 => + [ + DXGI_FORMAT_R16G16B16A16_TYPELESS, + DXGI_FORMAT_R16G16B16A16_FLOAT, + DXGI_FORMAT_R16G16B16A16_UNORM, + DXGI_FORMAT_R16G16B16A16_UINT, + DXGI_FORMAT_R16G16B16A16_SNORM, + DXGI_FORMAT_R16G16B16A16_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R32G32 => + [ + DXGI_FORMAT_R32G32_TYPELESS, + DXGI_FORMAT_R32G32_FLOAT, + DXGI_FORMAT_R32G32_UINT, + DXGI_FORMAT_R32G32_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R32G8X24 => + [ + DXGI_FORMAT_R32G8X24_TYPELESS, + DXGI_FORMAT_D32_FLOAT_S8X24_UINT, + DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS, + DXGI_FORMAT_X32_TYPELESS_G8X24_UINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R11G11B10 => + [ + DXGI_FORMAT_R11G11B10_FLOAT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R8G8B8A8 => + [ + DXGI_FORMAT_R8G8B8A8_TYPELESS, + DXGI_FORMAT_R8G8B8A8_UNORM, + DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, + DXGI_FORMAT_R8G8B8A8_UINT, + DXGI_FORMAT_R8G8B8A8_SNORM, + DXGI_FORMAT_R8G8B8A8_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R16G16 => + [ + DXGI_FORMAT_R16G16_TYPELESS, + DXGI_FORMAT_R16G16_FLOAT, + DXGI_FORMAT_R16G16_UNORM, + DXGI_FORMAT_R16G16_UINT, + DXGI_FORMAT_R16G16_SNORM, + DXGI_FORMAT_R16G16_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R32 => + [ + DXGI_FORMAT_R32_TYPELESS, + DXGI_FORMAT_D32_FLOAT, + DXGI_FORMAT_R32_FLOAT, + DXGI_FORMAT_R32_UINT, + DXGI_FORMAT_R32_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R24G8 => + [ + DXGI_FORMAT_R24G8_TYPELESS, + DXGI_FORMAT_D24_UNORM_S8_UINT, + DXGI_FORMAT_R24_UNORM_X8_TYPELESS, + DXGI_FORMAT_X24_TYPELESS_G8_UINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R8G8 => + [ + DXGI_FORMAT_R8G8_TYPELESS, + DXGI_FORMAT_R8G8_UNORM, + DXGI_FORMAT_R8G8_UINT, + DXGI_FORMAT_R8G8_SNORM, + DXGI_FORMAT_R8G8_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R16 => + [ + DXGI_FORMAT_R16_TYPELESS, + DXGI_FORMAT_R16_FLOAT, + DXGI_FORMAT_D16_UNORM, + DXGI_FORMAT_R16_UNORM, + DXGI_FORMAT_R16_UINT, + DXGI_FORMAT_R16_SNORM, + DXGI_FORMAT_R16_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R8 => + [ + DXGI_FORMAT_R8_TYPELESS, + DXGI_FORMAT_R8_UNORM, + DXGI_FORMAT_R8_UINT, + DXGI_FORMAT_R8_SNORM, + DXGI_FORMAT_R8_SINT, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_A8 => + [ + DXGI_FORMAT_A8_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R1 => + [ + DXGI_FORMAT_R1_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R9G9B9E5 => + [ + DXGI_FORMAT_R9G9B9E5_SHAREDEXP, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R8G8_B8G8 => + [ + DXGI_FORMAT_R8G8_B8G8_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_G8R8_G8B8 => + [ + DXGI_FORMAT_G8R8_G8B8_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC1 => + [ + DXGI_FORMAT_BC1_TYPELESS, + DXGI_FORMAT_BC1_UNORM, + DXGI_FORMAT_BC1_UNORM_SRGB, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC2 => + [ + DXGI_FORMAT_BC2_TYPELESS, + DXGI_FORMAT_BC2_UNORM, + DXGI_FORMAT_BC2_UNORM_SRGB, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC3 => + [ + DXGI_FORMAT_BC3_TYPELESS, + DXGI_FORMAT_BC3_UNORM, + DXGI_FORMAT_BC3_UNORM_SRGB, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC4 => + [ + DXGI_FORMAT_BC4_TYPELESS, + DXGI_FORMAT_BC4_UNORM, + DXGI_FORMAT_BC4_SNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC5 => + [ + DXGI_FORMAT_BC5_TYPELESS, + DXGI_FORMAT_BC5_UNORM, + DXGI_FORMAT_BC5_SNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_B5G6R5 => + [ + DXGI_FORMAT_B5G6R5_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_B5G5R5A1 => + [ + DXGI_FORMAT_B5G5R5A1_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_B8G8R8A8 => + [ + DXGI_FORMAT_B8G8R8A8_TYPELESS, + DXGI_FORMAT_B8G8R8A8_UNORM, + DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_B8G8R8X8 => + [ + DXGI_FORMAT_B8G8R8X8_TYPELESS, + DXGI_FORMAT_B8G8R8X8_UNORM, + DXGI_FORMAT_B8G8R8X8_UNORM_SRGB, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_R10G10B10A2 => + [ + DXGI_FORMAT_R10G10B10A2_TYPELESS, + DXGI_FORMAT_R10G10B10A2_UNORM, + DXGI_FORMAT_R10G10B10A2_UINT, + DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC6H => + [ + DXGI_FORMAT_BC6H_TYPELESS, + DXGI_FORMAT_BC6H_UF16, + DXGI_FORMAT_BC6H_SF16, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_BC7 => + [ + DXGI_FORMAT_BC7_TYPELESS, + DXGI_FORMAT_BC7_UNORM, + DXGI_FORMAT_BC7_UNORM_SRGB, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_AYUV => + [ + DXGI_FORMAT_AYUV, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_NV12 => + [ + DXGI_FORMAT_NV12, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_YUY2 => + [ + DXGI_FORMAT_YUY2, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_P010 => + [ + DXGI_FORMAT_P010, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_P016 => + [ + DXGI_FORMAT_P016, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_NV11 => + [ + DXGI_FORMAT_NV11, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_420_OPAQUE => + [ + DXGI_FORMAT_420_OPAQUE, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_Y410 => + [ + DXGI_FORMAT_Y410, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_Y416 => + [ + DXGI_FORMAT_Y416, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_Y210 => + [ + DXGI_FORMAT_Y210, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_Y216 => + [ + DXGI_FORMAT_Y216, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_AI44 => + [ + DXGI_FORMAT_AI44, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_IA44 => + [ + DXGI_FORMAT_IA44, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_P8 => + [ + DXGI_FORMAT_P8, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_A8P8 => + [ + DXGI_FORMAT_A8P8, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_B4G4R4A4 => + [ + DXGI_FORMAT_B4G4R4A4_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_P208 => + [ + DXGI_FORMAT_P208, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_V208 => + [ + DXGI_FORMAT_V208, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_V408 => + [ + DXGI_FORMAT_V408, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static ReadOnlySpan D3DFCS_A4B4G4R4 => + [ + DXGI_FORMAT_A4B4G4R4_UNORM, + DXGI_FORMAT_UNKNOWN, // not part of cast set, just the "null terminator" + ]; + private static readonly FORMAT_DETAIL[] s_FormatDetail = + [ + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_UNKNOWN, + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32A32_TYPELESS, + ParentFormat: DXGI_FORMAT_R32G32B32A32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32A32, + BitsPerComponent: [32, 32, 32, 32], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32A32_FLOAT, + ParentFormat: DXGI_FORMAT_R32G32B32A32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32A32, + BitsPerComponent: [32, 32, 32, 32], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _FLOAT], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32A32_UINT, + ParentFormat: DXGI_FORMAT_R32G32B32A32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32A32, + BitsPerComponent: [32, 32, 32, 32], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UINT, _UINT, _UINT, _UINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32A32_SINT, + ParentFormat: DXGI_FORMAT_R32G32B32A32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32A32, + BitsPerComponent: [32, 32, 32, 32], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_SINT, _SINT, _SINT, _SINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32_TYPELESS, + ParentFormat: DXGI_FORMAT_R32G32B32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32, + BitsPerComponent: [32, 32, 32, 0], + BitsPerUnit: 96, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32_FLOAT, + ParentFormat: DXGI_FORMAT_R32G32B32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32, + BitsPerComponent: [32, 32, 32, 0], + BitsPerUnit: 96, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32_UINT, + ParentFormat: DXGI_FORMAT_R32G32B32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32, + BitsPerComponent: [32, 32, 32, 0], + BitsPerUnit: 96, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_UINT, _UINT, _UINT, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32B32_SINT, + ParentFormat: DXGI_FORMAT_R32G32B32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32B32, + BitsPerComponent: [32, 32, 32, 0], + BitsPerUnit: 96, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_SINT, _SINT, _SINT, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + ParentFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16B16A16, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16B16A16_FLOAT, + ParentFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16B16A16, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _FLOAT], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16B16A16_UNORM, + ParentFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16B16A16, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16B16A16_UINT, + ParentFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16B16A16, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UINT, _UINT, _UINT, _UINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16B16A16_SNORM, + ParentFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16B16A16, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_SNORM, _SNORM, _SNORM, _SNORM], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16B16A16_SINT, + ParentFormat: DXGI_FORMAT_R16G16B16A16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16B16A16, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_SINT, _SINT, _SINT, _SINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32_TYPELESS, + ParentFormat: DXGI_FORMAT_R32G32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32, + BitsPerComponent: [32, 32, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32_FLOAT, + ParentFormat: DXGI_FORMAT_R32G32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32, + BitsPerComponent: [32, 32, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32_UINT, + ParentFormat: DXGI_FORMAT_R32G32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32, + BitsPerComponent: [32, 32, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_UINT, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G32_SINT, + ParentFormat: DXGI_FORMAT_R32G32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G32, + BitsPerComponent: [32, 32, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_SINT, _SINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32G8X24_TYPELESS, + ParentFormat: DXGI_FORMAT_R32G8X24_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G8X24, + BitsPerComponent: [32, 8, 24, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_D32_FLOAT_S8X24_UINT, + ParentFormat: DXGI_FORMAT_R32G8X24_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G8X24, + BitsPerComponent: [32, 8, 24, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [D, S, X, X], + ComponentInterpretations: [_FLOAT, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS, + ParentFormat: DXGI_FORMAT_R32G8X24_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G8X24, + BitsPerComponent: [32, 8, 24, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_FLOAT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_X32_TYPELESS_G8X24_UINT, + ParentFormat: DXGI_FORMAT_R32G8X24_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32G8X24, + BitsPerComponent: [32, 8, 24, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [X, G, X, X], + ComponentInterpretations: [_TYPELESS, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R10G10B10A2_TYPELESS, + ParentFormat: DXGI_FORMAT_R10G10B10A2_TYPELESS, + DefaultFormatCastSet: D3DFCS_R10G10B10A2, + BitsPerComponent: [10, 10, 10, 2], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: true, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R10G10B10A2_UNORM, + ParentFormat: DXGI_FORMAT_R10G10B10A2_TYPELESS, + DefaultFormatCastSet: D3DFCS_R10G10B10A2, + BitsPerComponent: [10, 10, 10, 2], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: true, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R10G10B10A2_UINT, + ParentFormat: DXGI_FORMAT_R10G10B10A2_TYPELESS, + DefaultFormatCastSet: D3DFCS_R10G10B10A2, + BitsPerComponent: [10, 10, 10, 2], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UINT, _UINT, _UINT, _UINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: true, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R11G11B10_FLOAT, + ParentFormat: DXGI_FORMAT_R11G11B10_FLOAT, + DefaultFormatCastSet: D3DFCS_R11G11B10, + BitsPerComponent: [11, 11, 10, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + ParentFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8B8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8B8A8_UNORM, + ParentFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8B8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8B8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: true, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8B8A8_UINT, + ParentFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8B8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UINT, _UINT, _UINT, _UINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8B8A8_SNORM, + ParentFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8B8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_SNORM, _SNORM, _SNORM, _SNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8B8A8_SINT, + ParentFormat: DXGI_FORMAT_R8G8B8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8B8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_SINT, _SINT, _SINT, _SINT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16_TYPELESS, + ParentFormat: DXGI_FORMAT_R16G16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16, + BitsPerComponent: [16, 16, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16_FLOAT, + ParentFormat: DXGI_FORMAT_R16G16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16, + BitsPerComponent: [16, 16, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16_UNORM, + ParentFormat: DXGI_FORMAT_R16G16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16, + BitsPerComponent: [16, 16, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_UNORM, _UNORM, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16_UINT, + ParentFormat: DXGI_FORMAT_R16G16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16, + BitsPerComponent: [16, 16, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_UINT, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16_SNORM, + ParentFormat: DXGI_FORMAT_R16G16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16, + BitsPerComponent: [16, 16, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_SNORM, _SNORM, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16G16_SINT, + ParentFormat: DXGI_FORMAT_R16G16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16G16, + BitsPerComponent: [16, 16, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_SINT, _SINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32_TYPELESS, + ParentFormat: DXGI_FORMAT_R32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32, + BitsPerComponent: [32, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_D32_FLOAT, + ParentFormat: DXGI_FORMAT_R32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32, + BitsPerComponent: [32, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [D, X, X, X], + ComponentInterpretations: [_FLOAT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32_FLOAT, + ParentFormat: DXGI_FORMAT_R32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32, + BitsPerComponent: [32, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_FLOAT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: true, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32_UINT, + ParentFormat: DXGI_FORMAT_R32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32, + BitsPerComponent: [32, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UINT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R32_SINT, + ParentFormat: DXGI_FORMAT_R32_TYPELESS, + DefaultFormatCastSet: D3DFCS_R32, + BitsPerComponent: [32, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_SINT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R24G8_TYPELESS, + ParentFormat: DXGI_FORMAT_R24G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R24G8, + BitsPerComponent: [24, 8, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_D24_UNORM_S8_UINT, + ParentFormat: DXGI_FORMAT_R24G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R24G8, + BitsPerComponent: [24, 8, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [D, S, X, X], + ComponentInterpretations: [_UNORM, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R24_UNORM_X8_TYPELESS, + ParentFormat: DXGI_FORMAT_R24G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R24G8, + BitsPerComponent: [24, 8, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_X24_TYPELESS_G8_UINT, + ParentFormat: DXGI_FORMAT_R24G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R24G8, + BitsPerComponent: [24, 8, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [X, G, X, X], + ComponentInterpretations: [_TYPELESS, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8_TYPELESS, + ParentFormat: DXGI_FORMAT_R8G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8, + BitsPerComponent: [8, 8, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8_UNORM, + ParentFormat: DXGI_FORMAT_R8G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8, + BitsPerComponent: [8, 8, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_UNORM, _UNORM, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8_UINT, + ParentFormat: DXGI_FORMAT_R8G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8, + BitsPerComponent: [8, 8, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_UINT, _UINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8_SNORM, + ParentFormat: DXGI_FORMAT_R8G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8, + BitsPerComponent: [8, 8, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_SNORM, _SNORM, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8_SINT, + ParentFormat: DXGI_FORMAT_R8G8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8G8, + BitsPerComponent: [8, 8, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_SINT, _SINT, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16_TYPELESS, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16_FLOAT, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_FLOAT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_D16_UNORM, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [D, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16_UNORM, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16_UINT, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UINT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16_SNORM, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_SNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R16_SINT, + ParentFormat: DXGI_FORMAT_R16_TYPELESS, + DefaultFormatCastSet: D3DFCS_R16, + BitsPerComponent: [16, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_SINT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8_TYPELESS, + ParentFormat: DXGI_FORMAT_R8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8, + BitsPerComponent: [8, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8_UNORM, + ParentFormat: DXGI_FORMAT_R8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8, + BitsPerComponent: [8, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8_UINT, + ParentFormat: DXGI_FORMAT_R8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8, + BitsPerComponent: [8, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UINT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8_SNORM, + ParentFormat: DXGI_FORMAT_R8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8, + BitsPerComponent: [8, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_SNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8_SINT, + ParentFormat: DXGI_FORMAT_R8_TYPELESS, + DefaultFormatCastSet: D3DFCS_R8, + BitsPerComponent: [8, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_SINT, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_A8_UNORM, + ParentFormat: DXGI_FORMAT_A8_UNORM, + DefaultFormatCastSet: D3DFCS_A8, + BitsPerComponent: [0, 0, 0, 8], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [X, X, X, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R1_UNORM, + ParentFormat: DXGI_FORMAT_R1_UNORM, + DefaultFormatCastSet: D3DFCS_R1, + BitsPerComponent: [1, 0, 0, 0], + BitsPerUnit: 1, + SRGBFormat: false, + WidthAlignment: 8, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R9G9B9E5_SHAREDEXP, + ParentFormat: DXGI_FORMAT_R9G9B9E5_SHAREDEXP, + DefaultFormatCastSet: D3DFCS_R9G9B9E5, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _FLOAT], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R8G8_B8G8_UNORM, + ParentFormat: DXGI_FORMAT_R8G8_B8G8_UNORM, + DefaultFormatCastSet: D3DFCS_R8G8_B8G8, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_G8R8_G8B8_UNORM, + ParentFormat: DXGI_FORMAT_G8R8_G8B8_UNORM, + DefaultFormatCastSet: D3DFCS_G8R8_G8B8, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC1_TYPELESS, + ParentFormat: DXGI_FORMAT_BC1_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC1, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC1_UNORM, + ParentFormat: DXGI_FORMAT_BC1_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC1, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC1_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_BC1_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC1, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 64, + SRGBFormat: true, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC2_TYPELESS, + ParentFormat: DXGI_FORMAT_BC2_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC2, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC2_UNORM, + ParentFormat: DXGI_FORMAT_BC2_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC2, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC2_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_BC2_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC2, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: true, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC3_TYPELESS, + ParentFormat: DXGI_FORMAT_BC3_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC3, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC3_UNORM, + ParentFormat: DXGI_FORMAT_BC3_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC3, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC3_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_BC3_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC3, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: true, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC4_TYPELESS, + ParentFormat: DXGI_FORMAT_BC4_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC4, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC4_UNORM, + ParentFormat: DXGI_FORMAT_BC4_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC4, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC4_SNORM, + ParentFormat: DXGI_FORMAT_BC4_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC4, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_SNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC5_TYPELESS, + ParentFormat: DXGI_FORMAT_BC5_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC5, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC5_UNORM, + ParentFormat: DXGI_FORMAT_BC5_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC5, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_UNORM, _UNORM, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC5_SNORM, + ParentFormat: DXGI_FORMAT_BC5_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC5, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, X, X], + ComponentInterpretations: [_SNORM, _SNORM, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B5G6R5_UNORM, + ParentFormat: DXGI_FORMAT_B5G6R5_UNORM, + DefaultFormatCastSet: D3DFCS_B5G6R5, + BitsPerComponent: [5, 6, 5, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B5G5R5A1_UNORM, + ParentFormat: DXGI_FORMAT_B5G5R5A1_UNORM, + DefaultFormatCastSet: D3DFCS_B5G5R5A1, + BitsPerComponent: [5, 5, 5, 1], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B8G8R8A8_UNORM, + ParentFormat: DXGI_FORMAT_B8G8R8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_B8G8R8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B8G8R8X8_UNORM, + ParentFormat: DXGI_FORMAT_B8G8R8X8_TYPELESS, + DefaultFormatCastSet: D3DFCS_B8G8R8X8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM, + ParentFormat: DXGI_FORMAT_R10G10B10A2_TYPELESS, + DefaultFormatCastSet: D3DFCS_R10G10B10A2, + BitsPerComponent: [10, 10, 10, 2], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_FIXED_2_8, _FIXED_2_8, _FIXED_2_8, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B8G8R8A8_TYPELESS, + ParentFormat: DXGI_FORMAT_B8G8R8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_B8G8R8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_B8G8R8A8_TYPELESS, + DefaultFormatCastSet: D3DFCS_B8G8R8A8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: true, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B8G8R8X8_TYPELESS, + ParentFormat: DXGI_FORMAT_B8G8R8X8_TYPELESS, + DefaultFormatCastSet: D3DFCS_B8G8R8X8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [B, G, R, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B8G8R8X8_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_B8G8R8X8_TYPELESS, + DefaultFormatCastSet: D3DFCS_B8G8R8X8, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: true, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, X], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC6H_TYPELESS, + ParentFormat: DXGI_FORMAT_BC6H_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC6H, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC6H_SF16, + ParentFormat: DXGI_FORMAT_BC6H_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC6H, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC6H_UF16, + ParentFormat: DXGI_FORMAT_BC6H_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC6H, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_FLOAT, _FLOAT, _FLOAT, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC7_TYPELESS, + ParentFormat: DXGI_FORMAT_BC7_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC7, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_PARTIAL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC7_UNORM, + ParentFormat: DXGI_FORMAT_BC7_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC7, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_BC7_UNORM_SRGB, + ParentFormat: DXGI_FORMAT_BC7_TYPELESS, + DefaultFormatCastSet: D3DFCS_BC7, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 128, + SRGBFormat: true, + WidthAlignment: 4, + HeightAlignment: 4, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, A], + ComponentInterpretations: [_UNORM_SRGB, _UNORM_SRGB, _UNORM_SRGB, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + // YUV 4:4:4 formats + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_AYUV, + ParentFormat: DXGI_FORMAT_AYUV, + DefaultFormatCastSet: D3DFCS_AYUV, + BitsPerComponent: [8, 8, 8, 8], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_Y410, + ParentFormat: DXGI_FORMAT_Y410, + DefaultFormatCastSet: D3DFCS_Y410, + BitsPerComponent: [10, 10, 10, 2], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_Y416, + ParentFormat: DXGI_FORMAT_Y416, + DefaultFormatCastSet: D3DFCS_Y416, + BitsPerComponent: [16, 16, 16, 16], + BitsPerUnit: 64, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + // YUV 4:2:0 formats + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_NV12, + ParentFormat: DXGI_FORMAT_NV12, + DefaultFormatCastSet: D3DFCS_NV12, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 2, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_P010, + ParentFormat: DXGI_FORMAT_P010, + DefaultFormatCastSet: D3DFCS_P010, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 2, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_P016, + ParentFormat: DXGI_FORMAT_P016, + DefaultFormatCastSet: D3DFCS_P016, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 2, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_420_OPAQUE, + ParentFormat: DXGI_FORMAT_420_OPAQUE, + DefaultFormatCastSet: D3DFCS_420_OPAQUE, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 2, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + // YUV 4:2:2 formats + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_YUY2, + ParentFormat: DXGI_FORMAT_YUY2, + DefaultFormatCastSet: D3DFCS_YUY2, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_Y210, + ParentFormat: DXGI_FORMAT_Y210, + DefaultFormatCastSet: D3DFCS_Y210, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_Y216, + ParentFormat: DXGI_FORMAT_Y216, + DefaultFormatCastSet: D3DFCS_Y216, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 32, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, G, B, X], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + // YUV 4:1:1 formats + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_NV11, + ParentFormat: DXGI_FORMAT_NV11, + DefaultFormatCastSet: D3DFCS_NV11, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 4, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + // Legacy substream formats + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_AI44, + ParentFormat: DXGI_FORMAT_AI44, + DefaultFormatCastSet: D3DFCS_AI44, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_IA44, + ParentFormat: DXGI_FORMAT_IA44, + DefaultFormatCastSet: D3DFCS_IA44, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_P8, + ParentFormat: DXGI_FORMAT_P8, + DefaultFormatCastSet: D3DFCS_P8, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_A8P8, + ParentFormat: DXGI_FORMAT_A8P8, + DefaultFormatCastSet: D3DFCS_A8P8, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: false, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_B4G4R4A4_UNORM, + ParentFormat: DXGI_FORMAT_B4G4R4A4_UNORM, + DefaultFormatCastSet: D3DFCS_B4G4R4A4, + BitsPerComponent: [4, 4, 4, 4], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [B, G, R, A], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: true, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(116), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(117), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(118), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(119), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(120), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(121), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(122), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(123), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(124), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(125), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(126), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(127), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(128), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(129), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_P208, + ParentFormat: DXGI_FORMAT_P208, + DefaultFormatCastSet: D3DFCS_P208, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 2, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_V208, + ParentFormat: DXGI_FORMAT_V208, + DefaultFormatCastSet: D3DFCS_V208, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 2, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_V408, + ParentFormat: DXGI_FORMAT_V408, + DefaultFormatCastSet: D3DFCS_V408, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: true, + bFloatNormFormat: false, + bPlanar: true, + bYUV: true, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(133), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(134), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(135), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(136), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(137), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(138), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(139), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(140), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(141), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(142), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(143), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(144), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(145), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(146), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(147), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(148), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(149), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(150), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(151), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(152), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(153), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(154), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(155), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(156), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(157), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(158), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(159), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(160), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(161), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(162), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(163), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(164), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(165), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(166), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(167), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(168), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(169), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(170), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(171), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(172), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(173), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(174), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(175), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(176), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(177), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(178), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(179), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(180), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(181), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(182), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(183), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(184), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(185), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(186), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(187), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: (DXGI_FORMAT)(188), + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 0, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_NO_TYPE, + ComponentNames: [X, X, X, X], + ComponentInterpretations: [_TYPELESS, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: true + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE, + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE, + ParentFormat: DXGI_FORMAT_UNKNOWN, + DefaultFormatCastSet: D3DFCS_UNKNOWN, + BitsPerComponent: [0, 0, 0, 0], + BitsPerUnit: 8, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_CUSTOM, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [R, X, X, X], + ComponentInterpretations: [_UNORM, _TYPELESS, _TYPELESS, _TYPELESS], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + new FORMAT_DETAIL( + DXGIFormat: DXGI_FORMAT_A4B4G4R4_UNORM, + ParentFormat: DXGI_FORMAT_A4B4G4R4_UNORM, + DefaultFormatCastSet: D3DFCS_A4B4G4R4, + BitsPerComponent: [4, 4, 4, 4], + BitsPerUnit: 16, + SRGBFormat: false, + WidthAlignment: 1, + HeightAlignment: 1, + DepthAlignment: 1, + Layout: D3DFL_STANDARD, + TypeLevel: D3DFTL_FULL_TYPE, + ComponentNames: [A, B, G, R], + ComponentInterpretations: [_UNORM, _UNORM, _UNORM, _UNORM], + bDX9VertexOrIndexFormat: false, + bDX9TextureFormat: false, + bFloatNormFormat: false, + bPlanar: false, + bYUV: false, + bDependentFormatCastSet: false, + bInternal: false + ), + ]; + private static uint s_NumFormats => (uint)(s_FormatDetail.Length); + + [NativeTypeName("LPCSTR")] + private static readonly string[] s_FormatNames = + [ + "UNKNOWN", + "R32G32B32A32_TYPELESS", + "R32G32B32A32_FLOAT", + "R32G32B32A32_UINT", + "R32G32B32A32_SINT", + "R32G32B32_TYPELESS", + "R32G32B32_FLOAT", + "R32G32B32_UINT", + "R32G32B32_SINT", + "R16G16B16A16_TYPELESS", + "R16G16B16A16_FLOAT", + "R16G16B16A16_UNORM", + "R16G16B16A16_UINT", + "R16G16B16A16_SNORM", + "R16G16B16A16_SINT", + "R32G32_TYPELESS", + "R32G32_FLOAT", + "R32G32_UINT", + "R32G32_SINT", + "R32G8X24_TYPELESS", + "D32_FLOAT_S8X24_UINT", + "R32_FLOAT_X8X24_TYPELESS", + "X32_TYPELESS_G8X24_UINT", + "R10G10B10A2_TYPELESS", + "R10G10B10A2_UNORM", + "R10G10B10A2_UINT", + "R11G11B10_FLOAT", + "R8G8B8A8_TYPELESS", + "R8G8B8A8_UNORM", + "R8G8B8A8_UNORM_SRGB", + "R8G8B8A8_UINT", + "R8G8B8A8_SNORM", + "R8G8B8A8_SINT", + "R16G16_TYPELESS", + "R16G16_FLOAT", + "R16G16_UNORM", + "R16G16_UINT", + "R16G16_SNORM", + "R16G16_SINT", + "R32_TYPELESS", + "D32_FLOAT", + "R32_FLOAT", + "R32_UINT", + "R32_SINT", + "R24G8_TYPELESS", + "D24_UNORM_S8_UINT", + "R24_UNORM_X8_TYPELESS", + "X24_TYPELESS_G8_UINT", + "R8G8_TYPELESS", + "R8G8_UNORM", + "R8G8_UINT", + "R8G8_SNORM", + "R8G8_SINT", + "R16_TYPELESS", + "R16_FLOAT", + "D16_UNORM", + "R16_UNORM", + "R16_UINT", + "R16_SNORM", + "R16_SINT", + "R8_TYPELESS", + "R8_UNORM", + "R8_UINT", + "R8_SNORM", + "R8_SINT", + "A8_UNORM", + "R1_UNORM", + "R9G9B9E5_SHAREDEXP", + "R8G8_B8G8_UNORM", + "G8R8_G8B8_UNORM", + "BC1_TYPELESS", + "BC1_UNORM", + "BC1_UNORM_SRGB", + "BC2_TYPELESS", + "BC2_UNORM", + "BC2_UNORM_SRGB", + "BC3_TYPELESS", + "BC3_UNORM", + "BC3_UNORM_SRGB", + "BC4_TYPELESS", + "BC4_UNORM", + "BC4_SNORM", + "BC5_TYPELESS", + "BC5_UNORM", + "BC5_SNORM", + "B5G6R5_UNORM", + "B5G5R5A1_UNORM", + "B8G8R8A8_UNORM", + "B8G8R8X8_UNORM", + "R10G10B10_XR_BIAS_A2_UNORM", + "B8G8R8A8_TYPELESS", + "B8G8R8A8_UNORM_SRGB", + "B8G8R8X8_TYPELESS", + "B8G8R8X8_UNORM_SRGB", + "BC6H_TYPELESS", + "BC6H_UF16", + "BC6H_SF16", + "BC7_TYPELESS", + "BC7_UNORM", + "BC7_UNORM_SRGB", + "AYUV", + "Y410", + "Y416", + "NV12", + "P010", + "P016", + "420_OPAQUE", + "YUY2", + "Y210", + "Y216", + "NV11", + "AI44", + "IA44", + "P8", + "A8P8", + ]; + + public static HRESULT CalculateExtraPlanarRows( + DXGI_FORMAT format, + uint plane0Height, + [NativeTypeName("UINT &")] out uint totalHeight + ) + { + Unsafe.SkipInit(out totalHeight); + if (!PlanarRaw(format)) + { + totalHeight = plane0Height; + return S_OK; + } + // blockWidth, blockHeight, and blockSize only reflect the size of plane 0. Each planar format has additional planes that must + // be counted. Each format increases size by another 0.5x, 1x, or 2x. Grab the number of "half allocation" increments so integer + // math can be used to calculate the extra size. + uint extraHalfHeight; + uint round; + switch (GetParentFormat(format)) + { + case DXGI_FORMAT_NV12: + case DXGI_FORMAT_P010: + case DXGI_FORMAT_P016: + case DXGI_FORMAT_420_OPAQUE: + { + extraHalfHeight = 1; + round = 1; + break; + } + case DXGI_FORMAT_NV11: + case DXGI_FORMAT_P208: + { + extraHalfHeight = 2; + round = 0; + break; + } + case DXGI_FORMAT_V208: + { + extraHalfHeight = 2; + round = 1; + break; + } + case DXGI_FORMAT_V408: + { + extraHalfHeight = 4; + round = 0; + break; + } + case DXGI_FORMAT_R24G8_TYPELESS: + case DXGI_FORMAT_R32G8X24_TYPELESS: + { + totalHeight = plane0Height; + return S_OK; + } + default: + { + Debug.Assert(false); + return S_OK; + } + } + if ( + FAILED(Safe_UIntMult(plane0Height, extraHalfHeight, out uint extraPlaneHeight)) + || FAILED(Safe_UIntAdd(extraPlaneHeight, round, out extraPlaneHeight)) + || FAILED(Safe_UIntAdd(plane0Height, (extraPlaneHeight >> 1), out totalHeight)) + ) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + return S_OK; + } + + // This helper function calculates the Row Pitch for a given format. For Planar formats this function returns + // the row major RowPitch of the resource. The RowPitch is the same for all the planes. For Planar + // also use the CalculateExtraPlanarRows function to calculate the corresponding height or use the CalculateMinimumRowMajorSlicePitch + // function. For Block Compressed Formats, this function returns the RowPitch of a row of blocks. For packed subsampled formats and other formats, + // this function returns the row pitch of one single row of pixels. + public static HRESULT CalculateMinimumRowMajorRowPitch( + DXGI_FORMAT Format, + uint Width, + [NativeTypeName("UINT &")] out uint RowPitch + ) + { + Unsafe.SkipInit(out RowPitch); + // Early out for DXGI_FORMAT_UNKNOWN special case. + if (Format == DXGI_FORMAT_UNKNOWN) + { + RowPitch = Width; + return S_OK; + } + uint WidthAlignment = GetWidthAlignment(Format); + uint NumUnits; + if (IsBlockCompressFormat(Format)) + { + // This function calculates the minimum stride needed for a block row when the format + // is block compressed.The GetBitsPerUnit value stored in the format table indicates + // the size of a compressed block for block compressed formats. + Debug.Assert(WidthAlignment != 0); + if (FAILED(DivideAndRoundUp(Width, WidthAlignment, out NumUnits))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + } + else + { + // All other formats must have strides aligned to their width alignment requirements. + // The Width may not be aligned to the WidthAlignment. This is not an error for this + // function as we expect to allow formats like NV12 to have odd dimensions in the future. + // The following alignement code expects only pow2 alignment requirements. Only block + // compressed formats currently have non-pow2 alignment requriements. + Debug.Assert(IsPow2(WidthAlignment)); + uint Mask = WidthAlignment - 1; + if (FAILED(Safe_UIntAdd(Width, Mask, out NumUnits))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + NumUnits &= ~Mask; + } + if (FAILED(Safe_UIntMult(NumUnits, GetBitsPerUnit(Format), out RowPitch))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + // This must to always be Byte aligned. + Debug.Assert((RowPitch & 7) == 0); + RowPitch >>= 3; + return S_OK; + } + + // This helper function calculates the SlicePitch for a given format. For Planar formats the slice pitch includes the extra planes. + public static HRESULT CalculateMinimumRowMajorSlicePitch( + DXGI_FORMAT Format, + uint ContextBasedRowPitch, + uint Height, + [NativeTypeName("UINT &")] out uint SlicePitch + ) + { + Unsafe.SkipInit(out SlicePitch); + if (PlanarRaw(Format)) + { + if (FAILED(CalculateExtraPlanarRows(Format, Height, out uint PlanarHeight))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + return Safe_UIntMult(ContextBasedRowPitch, PlanarHeight, out SlicePitch); + } + else if (Format == DXGI_FORMAT_UNKNOWN) + { + return Safe_UIntMult(ContextBasedRowPitch, Height, out SlicePitch); + } + uint HeightAlignment = GetHeightAlignment(Format); + // Caution assert to make sure that no new format breaks this assumption that all HeightAlignment formats are BC or Planar. + // This is to make sure that Height handled correctly for this calculation. + Debug.Assert(HeightAlignment == 1 || IsBlockCompressFormat(Format)); + if (FAILED(DivideAndRoundUp(Height, HeightAlignment, out uint HeightOfPacked))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + if (FAILED(Safe_UIntMult(HeightOfPacked, ContextBasedRowPitch, out SlicePitch))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + return S_OK; + } + + public static HRESULT CalculateResourceSize( + uint width, + uint height, + uint depth, + DXGI_FORMAT format, + uint mipLevels, + uint subresources, + [NativeTypeName("SIZE_T &")] out nuint totalByteSize, + D3D12_MEMCPY_DEST* pDst = null + ) + { + Unsafe.SkipInit(out totalByteSize); + uint tableIndex = GetDetailTableIndexNoThrow(format); + ref readonly FORMAT_DETAIL formatDetail = ref s_FormatDetail[tableIndex]; + bool fIsBlockCompressedFormat = IsBlockCompressFormat(format); + // No format currently requires depth alignment. + Debug.Assert(formatDetail.DepthAlignment == 1); + uint subWidth = width; + uint subHeight = height; + uint subDepth = depth; + for (uint s = 0, iM = 0; s < subresources; ++s) + { + if ( + FAILED(DivideAndRoundUp(subWidth, formatDetail.WidthAlignment, out uint blockWidth)) + ) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + uint blockSize, + blockHeight; + if (fIsBlockCompressedFormat) + { + if ( + FAILED( + DivideAndRoundUp(subHeight, formatDetail.HeightAlignment, out blockHeight) + ) + ) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + // Block Compressed formats use BitsPerUnit as block size. + blockSize = formatDetail.BitsPerUnit; + } + else + { + // The height must *not* be aligned to HeightAlign. As there is no plane pitch/stride, the expectation is that the 2nd plane + // begins immediately after the first. The only formats with HeightAlignment other than 1 are planar or block compressed, and + // block compressed is handled above. + Debug.Assert(formatDetail.bPlanar || (formatDetail.HeightAlignment == 1)); + blockHeight = subHeight; + // Combined with the division os subWidth by the width alignment above, this helps achieve rounding the stride up to an even multiple of + // block width. This is especially important for formats like NV12 and P208 whose chroma plane is wider than the luma. + blockSize = formatDetail.BitsPerUnit * formatDetail.WidthAlignment; + } + if (DXGI_FORMAT_UNKNOWN == formatDetail.DXGIFormat) + { + blockSize = 8; + } + // Convert block width size to bytes. + Debug.Assert((blockSize & 0x7) == 0); + blockSize >>= 3; + if (formatDetail.bPlanar) + { + if (FAILED(CalculateExtraPlanarRows(format, blockHeight, out blockHeight))) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + } + // Calculate rowPitch, depthPitch, and total subresource size. + if ( + FAILED(Safe_UIntMult(blockWidth, blockSize, out uint rowPitch)) + || FAILED(Safe_UIntMult(blockHeight, rowPitch, out uint depthPitch)) + ) + { + return INTSAFE_E_ARITHMETIC_OVERFLOW; + } + nuint subresourceByteSize = subDepth * depthPitch; + if (pDst != null) + { + ref D3D12_MEMCPY_DEST dst = ref pDst[s]; + // This data will be returned straight from the API to satisfy Map. So, strides/ alignment must be API-correct. + dst.pData = (void*)(totalByteSize); + Debug.Assert((s != 0) || (dst.pData == null)); + dst.RowPitch = rowPitch; + dst.SlicePitch = depthPitch; + } + // Align the subresource size. + Debug.Assert( + (MAP_ALIGN_REQUIREMENT & (MAP_ALIGN_REQUIREMENT - 1)) == 0, + "This code expects MAP_ALIGN_REQUIREMENT to be a power of 2." + ); + nuint subresourceByteSizeAligned = subresourceByteSize + MAP_ALIGN_REQUIREMENT - 1; + subresourceByteSizeAligned &= ~(MAP_ALIGN_REQUIREMENT - 1u); + totalByteSize += subresourceByteSizeAligned; + // Iterate over mip levels and array elements + if (++iM >= mipLevels) + { + iM = 0; + subWidth = width; + subHeight = height; + subDepth = depth; + } + else + { + subWidth /= ((1 == subWidth) ? 1u : 2u); + subHeight /= ((1 == subHeight) ? 1u : 2u); + subDepth /= ((1 == subDepth) ? 1u : 2u); + } + } + return S_OK; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT CalculateResourceSize( + uint width, + uint height, + uint depth, + DXGI_FORMAT format, + uint mipLevels, + uint subresources, + [NativeTypeName("SIZE_T &")] out nuint totalByteSize, + Ref pDst = default + ) + { + fixed (D3D12_MEMCPY_DEST* __dsl_pDst = pDst) + { + return (HRESULT)CalculateResourceSize( + width, + height, + depth, + format, + mipLevels, + subresources, + out totalByteSize, + __dsl_pDst + ); + } + } + + public static bool CanBeCastEvenFullyTyped(DXGI_FORMAT Format, D3D_FEATURE_LEVEL fl) + { + //SRGB can be cast away/back, and XR_BIAS can be cast to/from UNORM + switch (fl) + { + case D3D_FEATURE_LEVEL_1_0_GENERIC: + case D3D_FEATURE_LEVEL_1_0_CORE: + { + return false; + } + default: + { + break; + } + } + switch (Format) + { + case DXGI_FORMAT_R8G8B8A8_UNORM: + case DXGI_FORMAT_R8G8B8A8_UNORM_SRGB: + case DXGI_FORMAT_B8G8R8A8_UNORM: + case DXGI_FORMAT_B8G8R8A8_UNORM_SRGB: + { + return true; + } + case DXGI_FORMAT_R10G10B10A2_UNORM: + case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM: + { + return fl >= D3D_FEATURE_LEVEL_10_0; + } + default: + { + return false; + } + } + } + + public static bool DecodeHistogramAllowedForOutputFormatSupport(DXGI_FORMAT Format) + { + return (Format == DXGI_FORMAT_NV12) || (Format == DXGI_FORMAT_P010); + } + + public static bool DepthOnlyFormat(DXGI_FORMAT Format) + { + switch (Format) + { + case DXGI_FORMAT_D32_FLOAT: + case DXGI_FORMAT_D16_UNORM: + { + return true; + } + default: + { + return false; + } + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static HRESULT DivideAndRoundUp( + uint dividend, + uint divisor, + [NativeTypeName("UINT &")] out uint result + ) + { + HRESULT hr = Safe_UIntAdd(dividend, (divisor - 1), out uint adjustedDividend); + result = SUCCEEDED(hr) ? (adjustedDividend / divisor) : 0; + return hr; + } + + [Transformed] + public static MaybeBool DX9TextureFormat(DXGI_FORMAT Format) => + (MaybeBool)(BOOL)DX9TextureFormatRaw(Format); + + public static BOOL DX9TextureFormatRaw(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).bDX9TextureFormat; + } + + [Transformed] + public static MaybeBool DX9VertexOrIndexFormat(DXGI_FORMAT Format) => + (MaybeBool)(BOOL)DX9VertexOrIndexFormatRaw(Format); + + public static BOOL DX9VertexOrIndexFormatRaw(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).bDX9VertexOrIndexFormat; + } + + public static bool FamilySupportsStencil(DXGI_FORMAT Format) + { + switch (GetParentFormat(Format)) + { + case DXGI_FORMAT_R32G8X24_TYPELESS: + case DXGI_FORMAT_R24G8_TYPELESS: + { + return true; + } + default: + { + return false; + } + } + } + + public static bool FloatAndNotFloatFormats(DXGI_FORMAT FormatA, DXGI_FORMAT FormatB) + { + uint NumComponents = uint.Min( + GetNumComponentsInFormat(FormatA), + GetNumComponentsInFormat(FormatB) + ); + for (uint c = 0; c < NumComponents; c++) + { + D3D_FORMAT_COMPONENT_INTERPRETATION fciA = GetFormatComponentInterpretation(FormatA, c); + D3D_FORMAT_COMPONENT_INTERPRETATION fciB = GetFormatComponentInterpretation(FormatB, c); + if ((fciA != fciB) && ((fciA == D3DFCI_FLOAT) || (fciB == D3DFCI_FLOAT))) + { + return true; + } + } + return false; + } + + [Transformed] + public static MaybeBool FloatNormTextureFormat(DXGI_FORMAT Format) => + (MaybeBool)(BOOL)FloatNormTextureFormatRaw(Format); + + public static BOOL FloatNormTextureFormatRaw(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).bFloatNormFormat; + } + + public static bool FormatExists(DXGI_FORMAT Format) + { + return GetFormat((nuint)(Format)) != (DXGI_FORMAT)(-1); + } + + public static bool FormatExistsInHeader(DXGI_FORMAT Format, bool bExternalHeader = true) + { + uint Index = GetDetailTableIndex(Format); + if ( + (unchecked((uint)(-1)) == Index) + || (bExternalHeader && GetFormatDetail(Format).bInternal) + ) + { + return false; + } + else + { + return true; + } + } + + public static void Get4KTileShape( + D3D12_TILE_SHAPE* pTileShape, + DXGI_FORMAT Format, + D3D12_RESOURCE_DIMENSION Dimension, + uint SampleCount + ) + { + uint BPU = GetBitsPerUnit(Format); + switch (Dimension) + { + case D3D12_RESOURCE_DIMENSION_UNKNOWN: + case D3D12_RESOURCE_DIMENSION_BUFFER: + case D3D12_RESOURCE_DIMENSION_TEXTURE1D: + { + Debug.Assert(!IsBlockCompressFormat(Format)); + pTileShape->WidthInTexels = (BPU == 0) ? 4096 : 4096 * 8 / BPU; + pTileShape->HeightInTexels = 1; + pTileShape->DepthInTexels = 1; + break; + } + case D3D12_RESOURCE_DIMENSION_TEXTURE2D: + { + pTileShape->DepthInTexels = 1; + if (IsBlockCompressFormat(Format)) + { + // Currently only supported block sizes are 64 and 128. + // These equations calculate the size in texels for a tile. It relies on the fact that 16*16*16 blocks fit in a tile if the block size is 128 bits. + Debug.Assert(BPU == 64 || BPU == 128); + pTileShape->WidthInTexels = 16 * GetWidthAlignment(Format); + pTileShape->HeightInTexels = 16 * GetHeightAlignment(Format); + if (BPU == 64) + { + // If bits per block are 64 we double width so it takes up the full tile size. + // This is only true for BC1 and BC4 + Debug.Assert( + ( + Format >= DXGI_FORMAT_BC1_TYPELESS + && Format <= DXGI_FORMAT_BC1_UNORM_SRGB + ) + || ( + Format >= DXGI_FORMAT_BC4_TYPELESS + && Format <= DXGI_FORMAT_BC4_SNORM + ) + ); + pTileShape->WidthInTexels *= 2; + } + } + else + { + if (BPU <= 8) + { + pTileShape->WidthInTexels = 64; + pTileShape->HeightInTexels = 64; + } + else if (BPU <= 16) + { + pTileShape->WidthInTexels = 64; + pTileShape->HeightInTexels = 32; + } + else if (BPU <= 32) + { + pTileShape->WidthInTexels = 32; + pTileShape->HeightInTexels = 32; + } + else if (BPU <= 64) + { + pTileShape->WidthInTexels = 32; + pTileShape->HeightInTexels = 16; + } + else if (BPU <= 128) + { + pTileShape->WidthInTexels = 16; + pTileShape->HeightInTexels = 16; + } + else + { + Debug.Assert(false); + } + if (SampleCount <= 1) + { + // Do nothing + } + else if (SampleCount <= 2) + { + pTileShape->WidthInTexels /= 2; + pTileShape->HeightInTexels /= 1; + } + else if (SampleCount <= 4) + { + pTileShape->WidthInTexels /= 2; + pTileShape->HeightInTexels /= 2; + } + else if (SampleCount <= 8) + { + pTileShape->WidthInTexels /= 4; + pTileShape->HeightInTexels /= 2; + } + else if (SampleCount <= 16) + { + pTileShape->WidthInTexels /= 4; + pTileShape->HeightInTexels /= 4; + } + else + { + Debug.Assert(false); + } + Debug.Assert(GetWidthAlignment(Format) == 1); + Debug.Assert(GetHeightAlignment(Format) == 1); + Debug.Assert(GetDepthAlignment(Format) == 1); + } + break; + } + case D3D12_RESOURCE_DIMENSION_TEXTURE3D: + { + if (IsBlockCompressFormat(Format)) + { + // Currently only supported block sizes are 64 and 128. + // These equations calculate the size in texels for a tile. It relies on the fact that 16*16*16 blocks fit in a tile if the block size is 128 bits. + Debug.Assert(BPU == 64 || BPU == 128); + pTileShape->WidthInTexels = 8 * GetWidthAlignment(Format); + pTileShape->HeightInTexels = 8 * GetHeightAlignment(Format); + pTileShape->DepthInTexels = 4; + if (BPU == 64) + { + // If bits per block are 64 we double width so it takes up the full tile size. + // This is only true for BC1 and BC4 + Debug.Assert( + ( + Format >= DXGI_FORMAT_BC1_TYPELESS + && Format <= DXGI_FORMAT_BC1_UNORM_SRGB + ) + || ( + Format >= DXGI_FORMAT_BC4_TYPELESS + && Format <= DXGI_FORMAT_BC4_SNORM + ) + ); + pTileShape->DepthInTexels *= 2; + } + } + else + { + if (BPU <= 8) + { + pTileShape->WidthInTexels = 16; + pTileShape->HeightInTexels = 16; + pTileShape->DepthInTexels = 16; + } + else if (BPU <= 16) + { + pTileShape->WidthInTexels = 16; + pTileShape->HeightInTexels = 16; + pTileShape->DepthInTexels = 8; + } + else if (BPU <= 32) + { + pTileShape->WidthInTexels = 16; + pTileShape->HeightInTexels = 8; + pTileShape->DepthInTexels = 8; + } + else if (BPU <= 64) + { + pTileShape->WidthInTexels = 8; + pTileShape->HeightInTexels = 8; + pTileShape->DepthInTexels = 8; + } + else if (BPU <= 128) + { + pTileShape->WidthInTexels = 8; + pTileShape->HeightInTexels = 8; + pTileShape->DepthInTexels = 4; + } + else + { + Debug.Assert(false); + } + Debug.Assert(GetWidthAlignment(Format) == 1); + Debug.Assert(GetHeightAlignment(Format) == 1); + Debug.Assert(GetDepthAlignment(Format) == 1); + } + } + break; + } + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Get4KTileShape( + Ref pTileShape, + DXGI_FORMAT Format, + D3D12_RESOURCE_DIMENSION Dimension, + uint SampleCount + ) + { + fixed (D3D12_TILE_SHAPE* __dsl_pTileShape = pTileShape) + { + Get4KTileShape(__dsl_pTileShape, Format, Dimension, SampleCount); + } + } + + [return: NativeTypeName("UINT8")] + public static byte GetAddressingBitsPerAlignedSize(DXGI_FORMAT Format) + { + uint byteAlignment = GetByteAlignment(Format); + byte addressBitsPerElement; + switch (byteAlignment) + { + case 1: + { + addressBitsPerElement = 0; + break; + } + case 2: + { + addressBitsPerElement = 1; + break; + } + case 4: + { + addressBitsPerElement = 2; + break; + } + case 8: + { + addressBitsPerElement = 3; + break; + } + case 16: + { + addressBitsPerElement = 4; + break; + } + // The format is not supported + default: + { + return unchecked((byte)(-1)); + } + } + return addressBitsPerElement; + } + + public static uint GetBitsPerComponent(DXGI_FORMAT Format, uint AbsoluteComponentIndex) + { + if (AbsoluteComponentIndex > 3) + { + ThrowHR(E_FAIL); + } + return Unsafe.Add( + ref MemoryMarshal.GetReference( + (ReadOnlySpan)(GetFormatDetailRefThrow(Format).BitsPerComponent) + ), + AbsoluteComponentIndex + ); + } + + public static uint GetBitsPerStencil(DXGI_FORMAT Format) + { + uint Index = GetDetailTableIndexThrow(Format); + if ( + (GetFormatDetailRef(Index).TypeLevel != D3DFTL_PARTIAL_TYPE) + && (GetFormatDetailRef(Index).TypeLevel != D3DFTL_FULL_TYPE) + ) + { + return 0; + } + for (uint comp = 0; comp < 4; comp++) + { + D3D_FORMAT_COMPONENT_NAME name = D3DFCN_D; + switch (comp) + { + case 0: + { + name = GetFormatDetailRef(Index).ComponentName0; + break; + } + case 1: + { + name = GetFormatDetailRef(Index).ComponentName1; + break; + } + case 2: + { + name = GetFormatDetailRef(Index).ComponentName2; + break; + } + case 3: + { + name = GetFormatDetailRef(Index).ComponentName3; + break; + } + } + if (name == D3DFCN_S) + { + return Unsafe.Add( + ref MemoryMarshal.GetReference( + (ReadOnlySpan)(GetFormatDetailRef(Index).BitsPerComponent) + ), + comp + ); + } + } + return 0; + } + + // Returns bits per pixel unless format is a block compress format then it returns bits per block. + // Use IsBlockCompressFormat() to determine if block size is returned. + public static uint GetBitsPerUnit(DXGI_FORMAT Format) + { + return GetFormatDetailRefNoThrow(Format).BitsPerUnit; + } + + public static uint GetBitsPerUnitThrow(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).BitsPerUnit; + } + + public static uint GetByteAlignment(DXGI_FORMAT Format) + { + uint bits = GetBitsPerUnit(Format); + if (!IsBlockCompressFormat(Format)) + { + bits *= + GetWidthAlignment(Format) * GetHeightAlignment(Format) * GetDepthAlignment(Format); + } + Debug.Assert((bits & 0x7) == 0); // Unit must be byte-aligned + return bits >> 3; + } + + public static D3D_FORMAT_COMPONENT_NAME GetComponentName( + DXGI_FORMAT Format, + uint AbsoluteComponentIndex + ) + { + Unsafe.SkipInit(out D3D_FORMAT_COMPONENT_NAME name); + switch (AbsoluteComponentIndex) + { + case 0: + { + name = GetFormatDetailRefThrow(Format).ComponentName0; + break; + } + case 1: + { + name = GetFormatDetailRefThrow(Format).ComponentName1; + break; + } + case 2: + { + name = GetFormatDetailRefThrow(Format).ComponentName2; + break; + } + case 3: + { + name = GetFormatDetailRefThrow(Format).ComponentName3; + break; + } + default: + { + ThrowHR(E_FAIL); + break; + } + } + return name; + } + + public static uint GetDepthAlignment(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).DepthAlignment; + } + + public static uint GetDetailTableIndex(DXGI_FORMAT Format) + { + if ((uint)(Format) < s_FormatDetail.Length) + { + Debug.Assert(GetFormatDetailRef(Format).DXGIFormat == Format); + return (uint)(Format); + } + return unchecked((uint)(-1)); + } + + public static uint GetDetailTableIndexNoThrow(DXGI_FORMAT Format) + { + uint Index = GetDetailTableIndex(Format); + Debug.Assert(unchecked((uint)(-1)) != Index); // Needs to be validated externally. + return Index; + } + + public static uint GetDetailTableIndexThrow(DXGI_FORMAT Format) + { + uint Index = GetDetailTableIndex(Format); + if (unchecked((uint)(-1)) == Index) + { + ThrowHR(E_FAIL); + } + return Index; + } + + public static DXGI_FORMAT GetFormat([NativeTypeName("SIZE_T")] nuint Index) + { + if (Index < GetNumFormats()) + { + return GetFormatDetailRef(Index).DXGIFormat; + } + return (DXGI_FORMAT)(-1); + } + + [return: NativeTypeName("const DXGI_FORMAT *")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetFormatCastSet(DXGI_FORMAT Format) => + (DXGI_FORMAT*)GetFormatCastSetRaw(Format); + + [return: NativeTypeName("const DXGI_FORMAT *")] + public static DXGI_FORMAT* GetFormatCastSetRaw(DXGI_FORMAT Format) + { + return GetFormatDetailRef(Format).pDefaultFormatCastSet; + } + + public static D3D_FORMAT_COMPONENT_INTERPRETATION GetFormatComponentInterpretation( + DXGI_FORMAT Format, + uint AbsoluteComponentIndex + ) + { + D3D_FORMAT_COMPONENT_INTERPRETATION interp = new D3D_FORMAT_COMPONENT_INTERPRETATION(); + switch (AbsoluteComponentIndex) + { + case 0: + { + interp = GetFormatDetailRefThrow(Format).ComponentInterpretation0; + break; + } + case 1: + { + interp = GetFormatDetailRefThrow(Format).ComponentInterpretation1; + break; + } + case 2: + { + interp = GetFormatDetailRefThrow(Format).ComponentInterpretation2; + break; + } + case 3: + { + interp = GetFormatDetailRefThrow(Format).ComponentInterpretation3; + break; + } + default: + { + ThrowHR(E_FAIL); + break; + } + } + return interp; + } + + [return: NativeTypeName("const FORMAT_DETAILS *")] + private static ref readonly FORMAT_DETAIL GetFormatDetail(DXGI_FORMAT Format) + { + uint Index = GetDetailTableIndex(Format); + if (unchecked((uint)(-1)) == Index) + { + return ref Unsafe.NullRef(); + } + return ref GetFormatDetailRef(Index); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ref readonly FORMAT_DETAIL GetFormatDetailRef(nuint Index) + { + return ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(s_FormatDetail), Index); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ref readonly FORMAT_DETAIL GetFormatDetailRef(DXGI_FORMAT Format) + { + return ref Unsafe.Add( + ref MemoryMarshal.GetArrayDataReference(s_FormatDetail), + (uint)(Format) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ref readonly FORMAT_DETAIL GetFormatDetailRefNoThrow(DXGI_FORMAT Format) + { + return ref Unsafe.Add( + ref MemoryMarshal.GetArrayDataReference(s_FormatDetail), + GetDetailTableIndexNoThrow(Format) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ref readonly FORMAT_DETAIL GetFormatDetailRefThrow(DXGI_FORMAT Format) + { + return ref Unsafe.Add( + ref MemoryMarshal.GetArrayDataReference(s_FormatDetail), + GetDetailTableIndexThrow(Format) + ); + } + + public static void GetFormatReturnTypes( + DXGI_FORMAT Format, + D3D_FORMAT_COMPONENT_INTERPRETATION* pInterpretations + ) + { + uint Index = GetDetailTableIndexThrow(Format); + pInterpretations[(int)(D3D10_SB_4_COMPONENT_R)] = GetFormatDetailRef( + Index + ).ComponentInterpretation0; + pInterpretations[(int)(D3D10_SB_4_COMPONENT_G)] = GetFormatDetailRef( + Index + ).ComponentInterpretation1; + pInterpretations[(int)(D3D10_SB_4_COMPONENT_B)] = GetFormatDetailRef( + Index + ).ComponentInterpretation2; + pInterpretations[(int)(D3D10_SB_4_COMPONENT_A)] = GetFormatDetailRef( + Index + ).ComponentInterpretation3; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetFormatReturnTypes( + DXGI_FORMAT Format, + Ref pInterpretations + ) + { + fixed (D3D_FORMAT_COMPONENT_INTERPRETATION* __dsl_pInterpretations = pInterpretations) + { + GetFormatReturnTypes(Format, __dsl_pInterpretations); + } + } + + [return: NativeTypeName("const FORMAT_DETAIL *")] + public static ReadOnlySpan GetFormatTable() + { + return s_FormatDetail; + } + + public static uint GetHeightAlignment(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).HeightAlignment; + } + + public static D3D_FEATURE_LEVEL GetHighestDefinedFeatureLevel() + { + return D3D_FEATURE_LEVEL_12_2; + } + + public static D3D_FORMAT_LAYOUT GetLayout(DXGI_FORMAT Format) + { + return GetFormatDetailRefNoThrow(Format).Layout; + } + + public static void GetMipDimensions( + [NativeTypeName("UINT8")] byte mipSlice, + [NativeTypeName("UINT64")] ulong* pWidth, + [NativeTypeName("UINT64")] ulong* pHeight = null, + [NativeTypeName("UINT64")] ulong* pDepth = null + ) + { + uint denominator = (1u << mipSlice); // 2 ^ subresource + ulong mipWidth = *pWidth / denominator; + ulong mipHeight = (pHeight != null) ? *pHeight / denominator : 1; + ulong mipDepth = (pDepth != null) ? *pDepth / denominator : 1; + // Adjust dimensions for degenerate mips + if (mipHeight == 0) + { + mipHeight = 1; + } + if (mipWidth == 0) + { + mipWidth = 1; + } + if (mipDepth == 0) + { + mipDepth = 1; + } + *pWidth = mipWidth; + if (pHeight != null) + { + *pHeight = mipHeight; + } + if (pDepth != null) + { + *pDepth = mipDepth; + } + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetMipDimensions( + [NativeTypeName("UINT8")] byte mipSlice, + [NativeTypeName("UINT64")] Ref pWidth, + [NativeTypeName("UINT64")] Ref pHeight = default, + [NativeTypeName("UINT64")] Ref pDepth = default + ) + { + fixed (ulong* __dsl_pDepth = pDepth) + fixed (ulong* __dsl_pHeight = pHeight) + fixed (ulong* __dsl_pWidth = pWidth) + { + GetMipDimensions(mipSlice, __dsl_pWidth, __dsl_pHeight, __dsl_pDepth); + } + } + + [return: NativeTypeName("LPCSTR")] + public static string GetName(DXGI_FORMAT Format, bool bHideInternalFormats = true) + { + uint Index = GetDetailTableIndex(Format); + if ( + unchecked((uint)(-1)) == Index + || (bHideInternalFormats && GetFormatDetail(Format).bInternal) + ) + { + return "Unrecognized"; + } + else + { + return Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(s_FormatNames), Index); + } + } + + public static uint GetNumComponentsInFormat(DXGI_FORMAT Format) + { + uint n = 0; + uint Index = GetDetailTableIndexThrow(Format); + for (uint comp = 0; comp < 4; comp++) + { + D3D_FORMAT_COMPONENT_NAME name = D3DFCN_D; + switch (comp) + { + case 0: + { + name = GetFormatDetailRef(Index).ComponentName0; + break; + } + case 1: + { + name = GetFormatDetailRef(Index).ComponentName1; + break; + } + case 2: + { + name = GetFormatDetailRef(Index).ComponentName2; + break; + } + case 3: + { + name = GetFormatDetailRef(Index).ComponentName3; + break; + } + } + if (name != D3DFCN_X) + { + n++; + } + } + return n; + } + + public static uint GetNumFormats() + { + return s_NumFormats; + } + + public static DXGI_FORMAT GetParentFormat(DXGI_FORMAT Format) + { + return GetFormatDetailRef(Format).ParentFormat; + } + + [return: NativeTypeName("UINT8")] + public static byte GetPlaneCount(DXGI_FORMAT Format) + { + switch (GetParentFormat(Format)) + { + case DXGI_FORMAT_NV12: + case DXGI_FORMAT_NV11: + case DXGI_FORMAT_P208: + case DXGI_FORMAT_P016: + case DXGI_FORMAT_P010: + case DXGI_FORMAT_R24G8_TYPELESS: + case DXGI_FORMAT_R32G8X24_TYPELESS: + { + return 2; + } + case DXGI_FORMAT_V208: + case DXGI_FORMAT_V408: + { + return 3; + } + default: + { + return 1; + } + } + } + + // Maps resource format + view format to a plane index for resource formats where the plane index can be inferred from this information. + // For planar formats where the plane index is ambiguous given this information (examples: V208, V408), this function returns 0. + // This function returns 0 for non-planar formats. + [return: NativeTypeName("UINT8")] + public static byte GetPlaneSliceFromViewFormat( + DXGI_FORMAT ResourceFormat, + DXGI_FORMAT ViewFormat + ) + { + switch (GetParentFormat(ResourceFormat)) + { + case DXGI_FORMAT_R24G8_TYPELESS: + { + switch (ViewFormat) + { + case DXGI_FORMAT_R24_UNORM_X8_TYPELESS: + { + return 0; + } + case DXGI_FORMAT_X24_TYPELESS_G8_UINT: + { + return 1; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + case DXGI_FORMAT_R32G8X24_TYPELESS: + { + switch (ViewFormat) + { + case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS: + { + return 0; + } + case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT: + { + return 1; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + case DXGI_FORMAT_NV12: + case DXGI_FORMAT_NV11: + case DXGI_FORMAT_P208: + { + switch (ViewFormat) + { + case DXGI_FORMAT_R8_UNORM: + case DXGI_FORMAT_R8_UINT: + { + return 0; + } + case DXGI_FORMAT_R8G8_UNORM: + case DXGI_FORMAT_R8G8_UINT: + { + return 1; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + case DXGI_FORMAT_P016: + case DXGI_FORMAT_P010: + { + switch (ViewFormat) + { + case DXGI_FORMAT_R16_UNORM: + case DXGI_FORMAT_R16_UINT: + { + return 0; + } + case DXGI_FORMAT_R16G16_UNORM: + case DXGI_FORMAT_R16G16_UINT: + case DXGI_FORMAT_R32_UINT: + { + return 1; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + default: + { + break; + } + } + return 0; + } + + public static void GetPlaneSubsampledSizeAndFormatForCopyableLayout( + uint PlaneSlice, + DXGI_FORMAT Format, + uint Width, + uint Height, + [NativeTypeName("DXGI_FORMAT &")] out DXGI_FORMAT PlaneFormat, + [NativeTypeName("UINT &")] out uint MinPlanePitchWidth, + [NativeTypeName("UINT &")] out uint PlaneWidth, + [NativeTypeName("UINT &")] out uint PlaneHeight + ) + { + Unsafe.SkipInit(out PlaneFormat); + Unsafe.SkipInit(out MinPlanePitchWidth); + Unsafe.SkipInit(out PlaneWidth); + Unsafe.SkipInit(out PlaneHeight); + DXGI_FORMAT ParentFormat = GetParentFormat(Format); + if (PlanarRaw(ParentFormat)) + { + switch (ParentFormat) + { + // YCbCr 4:2:0 + case DXGI_FORMAT_NV12: + { + switch (PlaneSlice) + { + case 0: + { + PlaneFormat = DXGI_FORMAT_R8_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + break; + } + case 1: + { + PlaneFormat = DXGI_FORMAT_R8G8_TYPELESS; + PlaneWidth = (Width + 1) >> 1; + PlaneHeight = (Height + 1) >> 1; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + MinPlanePitchWidth = PlaneWidth; + break; + } + case DXGI_FORMAT_P010: + case DXGI_FORMAT_P016: + { + switch (PlaneSlice) + { + case 0: + { + PlaneFormat = DXGI_FORMAT_R16_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + break; + } + case 1: + { + PlaneFormat = DXGI_FORMAT_R16G16_TYPELESS; + PlaneWidth = (Width + 1) >> 1; + PlaneHeight = (Height + 1) >> 1; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + MinPlanePitchWidth = PlaneWidth; + break; + } + // YCbCr 4:2:2 + case DXGI_FORMAT_P208: + { + switch (PlaneSlice) + { + case 0: + { + PlaneFormat = DXGI_FORMAT_R8_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + break; + } + case 1: + { + PlaneFormat = DXGI_FORMAT_R8G8_TYPELESS; + PlaneWidth = (Width + 1) >> 1; + PlaneHeight = Height; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + MinPlanePitchWidth = PlaneWidth; + break; + } + // YCbCr 4:4:0 + case DXGI_FORMAT_V208: + { + PlaneFormat = DXGI_FORMAT_R8_TYPELESS; + switch (PlaneSlice) + { + case 0: + { + PlaneWidth = Width; + PlaneHeight = Height; + break; + } + case 1: + case 2: + { + PlaneWidth = Width; + PlaneHeight = (Height + 1) >> 1; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + MinPlanePitchWidth = PlaneWidth; + break; + } + // YCbCr 4:4:4 + case DXGI_FORMAT_V408: + { + switch (PlaneSlice) + { + case 0: + case 1: + case 2: + { + PlaneFormat = DXGI_FORMAT_R8_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + MinPlanePitchWidth = PlaneWidth; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + // YCbCr 4:1:1 + case DXGI_FORMAT_NV11: + { + switch (PlaneSlice) + { + case 0: + { + PlaneFormat = DXGI_FORMAT_R8_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + MinPlanePitchWidth = Width; + break; + } + case 1: + { + PlaneFormat = DXGI_FORMAT_R8G8_TYPELESS; + PlaneWidth = (Width + 3) >> 2; + PlaneHeight = Height; + // NV11 has unused padding to the right of the chroma plane in the RowMajor (linear) copyable layout. + MinPlanePitchWidth = (Width + 1) >> 1; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + case DXGI_FORMAT_R32G8X24_TYPELESS: + case DXGI_FORMAT_R24G8_TYPELESS: + { + switch (PlaneSlice) + { + case 0: + { + PlaneFormat = DXGI_FORMAT_R32_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + MinPlanePitchWidth = Width; + break; + } + case 1: + { + PlaneFormat = DXGI_FORMAT_R8_TYPELESS; + PlaneWidth = Width; + PlaneHeight = Height; + MinPlanePitchWidth = Width; + break; + } + default: + { + Debug.Assert(false); + break; + } + } + break; + } + default: + { + Debug.Assert(false); + break; + } + } + } + else + { + Debug.Assert(PlaneSlice == 0); + PlaneFormat = Format; + PlaneWidth = Width; + PlaneHeight = Height; + MinPlanePitchWidth = PlaneWidth; + } + } + + public static void GetTileShape( + D3D12_TILE_SHAPE* pTileShape, + DXGI_FORMAT Format, + D3D12_RESOURCE_DIMENSION Dimension, + uint SampleCount + ) + { + uint BPU = GetBitsPerUnit(Format); + switch (Dimension) + { + case D3D12_RESOURCE_DIMENSION_UNKNOWN: + case D3D12_RESOURCE_DIMENSION_BUFFER: + case D3D12_RESOURCE_DIMENSION_TEXTURE1D: + { + Debug.Assert(!IsBlockCompressFormat(Format)); + pTileShape->WidthInTexels = + (BPU == 0) + ? D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES + : D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES * 8 / BPU; + pTileShape->HeightInTexels = 1; + pTileShape->DepthInTexels = 1; + break; + } + case D3D12_RESOURCE_DIMENSION_TEXTURE2D: + { + if (IsBlockCompressFormat(Format)) + { + // Currently only supported block sizes are 64 and 128. + // These equations calculate the size in texels for a tile. It relies on the fact that 64 * 64 blocks fit in a tile if the block size is 128 bits. + Debug.Assert(BPU == 64 || BPU == 128); + pTileShape->WidthInTexels = 64 * GetWidthAlignment(Format); + pTileShape->HeightInTexels = 64 * GetHeightAlignment(Format); + pTileShape->DepthInTexels = 1; + if (BPU == 64) + { + // If bits per block are 64 we double width so it takes up the full tile size. + // This is only true for BC1 and BC4 + Debug.Assert( + ( + Format >= DXGI_FORMAT_BC1_TYPELESS + && Format <= DXGI_FORMAT_BC1_UNORM_SRGB + ) + || ( + Format >= DXGI_FORMAT_BC4_TYPELESS + && Format <= DXGI_FORMAT_BC4_SNORM + ) + ); + pTileShape->WidthInTexels *= 2; + } + } + else + { + pTileShape->DepthInTexels = 1; + if (BPU <= 8) + { + pTileShape->WidthInTexels = 256; + pTileShape->HeightInTexels = 256; + } + else if (BPU <= 16) + { + pTileShape->WidthInTexels = 256; + pTileShape->HeightInTexels = 128; + } + else if (BPU <= 32) + { + pTileShape->WidthInTexels = 128; + pTileShape->HeightInTexels = 128; + } + else if (BPU <= 64) + { + pTileShape->WidthInTexels = 128; + pTileShape->HeightInTexels = 64; + } + else if (BPU <= 128) + { + pTileShape->WidthInTexels = 64; + pTileShape->HeightInTexels = 64; + } + else + { + Debug.Assert(false); + } + if (SampleCount <= 1) + { + // Do nothing + } + else if (SampleCount <= 2) + { + pTileShape->WidthInTexels /= 2; + pTileShape->HeightInTexels /= 1; + } + else if (SampleCount <= 4) + { + pTileShape->WidthInTexels /= 2; + pTileShape->HeightInTexels /= 2; + } + else if (SampleCount <= 8) + { + pTileShape->WidthInTexels /= 4; + pTileShape->HeightInTexels /= 2; + } + else if (SampleCount <= 16) + { + pTileShape->WidthInTexels /= 4; + pTileShape->HeightInTexels /= 4; + } + else + { + Debug.Assert(false); + } + } + break; + } + case D3D12_RESOURCE_DIMENSION_TEXTURE3D: + { + if (IsBlockCompressFormat(Format)) + { + // Currently only supported block sizes are 64 and 128. + // These equations calculate the size in texels for a tile. It relies on the fact that 16*16*16 blocks fit in a tile if the block size is 128 bits. + Debug.Assert(BPU == 64 || BPU == 128); + pTileShape->WidthInTexels = 16 * GetWidthAlignment(Format); + pTileShape->HeightInTexels = 16 * GetHeightAlignment(Format); + pTileShape->DepthInTexels = 16 * GetDepthAlignment(Format); + if (BPU == 64) + { + // If bits per block are 64 we double width so it takes up the full tile size. + // This is only true for BC1 and BC4 + Debug.Assert( + ( + Format >= DXGI_FORMAT_BC1_TYPELESS + && Format <= DXGI_FORMAT_BC1_UNORM_SRGB + ) + || ( + Format >= DXGI_FORMAT_BC4_TYPELESS + && Format <= DXGI_FORMAT_BC4_SNORM + ) + ); + pTileShape->WidthInTexels *= 2; + } + } + else if ( + (Format == DXGI_FORMAT_R8G8_B8G8_UNORM) + || (Format == DXGI_FORMAT_G8R8_G8B8_UNORM) + ) + { + //RGBG and GRGB are treated as 2x1 block format + pTileShape->WidthInTexels = 64; + pTileShape->HeightInTexels = 32; + pTileShape->DepthInTexels = 16; + } + else + { + // Not a block format so BPU is bits per pixel. + Debug.Assert( + (GetWidthAlignment(Format) == 1) + && (GetHeightAlignment(Format) == 1) + && (GetDepthAlignment(Format) != 0) + ); + switch (BPU) + { + case 8: + { + pTileShape->WidthInTexels = 64; + pTileShape->HeightInTexels = 32; + pTileShape->DepthInTexels = 32; + break; + } + case 16: + { + pTileShape->WidthInTexels = 32; + pTileShape->HeightInTexels = 32; + pTileShape->DepthInTexels = 32; + break; + } + case 32: + { + pTileShape->WidthInTexels = 32; + pTileShape->HeightInTexels = 32; + pTileShape->DepthInTexels = 16; + break; + } + case 64: + { + pTileShape->WidthInTexels = 32; + pTileShape->HeightInTexels = 16; + pTileShape->DepthInTexels = 16; + break; + } + case 128: + { + pTileShape->WidthInTexels = 16; + pTileShape->HeightInTexels = 16; + pTileShape->DepthInTexels = 16; + break; + } + } + } + break; + } + } + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetTileShape( + Ref pTileShape, + DXGI_FORMAT Format, + D3D12_RESOURCE_DIMENSION Dimension, + uint SampleCount + ) + { + fixed (D3D12_TILE_SHAPE* __dsl_pTileShape = pTileShape) + { + GetTileShape(__dsl_pTileShape, Format, Dimension, SampleCount); + } + } + + public static D3D_FORMAT_TYPE_LEVEL GetTypeLevel(DXGI_FORMAT Format) + { + return GetFormatDetailRefNoThrow(Format).TypeLevel; + } + + public static uint GetWidthAlignment(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).WidthAlignment; + } + + public static void GetYCbCrChromaSubsampling( + DXGI_FORMAT Format, + [NativeTypeName("UINT &")] out uint HorizontalSubsampling, + [NativeTypeName("UINT &")] out uint VerticalSubsampling + ) + { + switch (Format) + { + // YCbCr 4:2:0 + case DXGI_FORMAT_NV12: + case DXGI_FORMAT_P010: + case DXGI_FORMAT_P016: + case DXGI_FORMAT_420_OPAQUE: + { + HorizontalSubsampling = 2; + VerticalSubsampling = 2; + break; + } + // YCbCr 4:2:2 + case DXGI_FORMAT_P208: + case DXGI_FORMAT_YUY2: + case DXGI_FORMAT_Y210: + { + HorizontalSubsampling = 2; + VerticalSubsampling = 1; + break; + } + // YCbCr 4:4:0 + case DXGI_FORMAT_V208: + { + HorizontalSubsampling = 1; + VerticalSubsampling = 2; + break; + } + // YCbCr 4:4:4 + case DXGI_FORMAT_AYUV: + case DXGI_FORMAT_V408: + case DXGI_FORMAT_Y410: + case DXGI_FORMAT_Y416: + { + // Fallthrough + goto case DXGI_FORMAT_AI44; + } + // YCbCr palletized 4:4:4: + case DXGI_FORMAT_AI44: + case DXGI_FORMAT_IA44: + case DXGI_FORMAT_P8: + case DXGI_FORMAT_A8P8: + { + HorizontalSubsampling = 1; + VerticalSubsampling = 1; + break; + } + // YCbCr 4:1:1 + case DXGI_FORMAT_NV11: + { + HorizontalSubsampling = 4; + VerticalSubsampling = 1; + break; + } + default: + { + // All YCbCr formats should be in this list. + Debug.Assert(!YUVRaw(Format)); + HorizontalSubsampling = 1; + VerticalSubsampling = 1; + break; + } + } + } + + // Returns true if format is block compressed. This function is a helper function for GetBitsPerUnit and + // if this function returns true then GetBitsPerUnit returns block size. + public static bool IsBlockCompressFormat(DXGI_FORMAT Format) + { + // Returns true if BC1, BC2, BC3, BC4, BC5, BC6, BC7, or ASTC + return (Format >= DXGI_FORMAT_BC1_TYPELESS && Format <= DXGI_FORMAT_BC5_SNORM) + || (Format >= DXGI_FORMAT_BC6H_TYPELESS && Format <= DXGI_FORMAT_BC7_UNORM_SRGB); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static bool IsPow2(uint Val) + { + return 0 == (Val & (Val - 1)); + } + + public static bool IsSRGBFormat(DXGI_FORMAT Format) + { + uint Index = GetDetailTableIndex(Format); + if (unchecked((uint)(-1)) == Index) + { + return false; + } + return GetFormatDetailRef(Index).SRGBFormat; + } + + public static bool IsSupportedTextureDisplayableFormat( + DXGI_FORMAT Format, + bool bMediaFormatOnly + ) + { + if (bMediaFormatOnly) + { + return (Format == DXGI_FORMAT_NV12) || (Format == DXGI_FORMAT_YUY2); + } + else + { + return (Format == DXGI_FORMAT_B8G8R8A8_UNORM) + || (Format == DXGI_FORMAT_R8G8B8A8_UNORM) + || (Format == DXGI_FORMAT_R16G16B16A16_FLOAT) + || (Format == DXGI_FORMAT_R10G10B10A2_UNORM) + || (Format == DXGI_FORMAT_NV12) + || (Format == DXGI_FORMAT_YUY2); + } + } + + public static bool MotionEstimatorAllowedInputFormat(DXGI_FORMAT Format) + { + return Format == DXGI_FORMAT_NV12; + } + + [Transformed] + public static MaybeBool NonOpaquePlanar(DXGI_FORMAT Format) => + (MaybeBool)(BOOL)NonOpaquePlanarRaw(Format); + + public static BOOL NonOpaquePlanarRaw(DXGI_FORMAT Format) + { + return PlanarRaw(Format) && !OpaqueRaw(Format); + } + + public static uint NonOpaquePlaneCount(DXGI_FORMAT Format) + { + if (!NonOpaquePlanarRaw(Format)) + { + return 1; + } + // V208 and V408 are the only 3-plane formats. + return ((Format == DXGI_FORMAT_V208) || (Format == DXGI_FORMAT_V408)) ? 3u : 2u; + } + + [Transformed] + public static MaybeBool Opaque(DXGI_FORMAT Format) => + (MaybeBool)(BOOL)OpaqueRaw(Format); + + public static BOOL OpaqueRaw(DXGI_FORMAT Format) + { + return Format == DXGI_FORMAT_420_OPAQUE; + } + + [Transformed] + public static MaybeBool Planar(DXGI_FORMAT Format) => + (MaybeBool)(BOOL)PlanarRaw(Format); + + public static BOOL PlanarRaw(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).bPlanar; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static HRESULT Safe_UIntAdd( + uint uAugend, + uint uAddend, + [NativeTypeName("UINT *")] out uint puResult + ) + { + if ((uAugend + uAddend) >= uAugend) + { + puResult = (uAugend + uAddend); + return S_OK; + } + puResult = uint.MaxValue; + return E_FAIL; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static HRESULT Safe_UIntMult( + uint uMultiplicand, + uint uMultiplier, + [NativeTypeName("UINT *")] out uint puResult + ) + { + ulong ull64Result = (ulong)(uMultiplicand) * (ulong)(uMultiplier); + if (ull64Result <= uint.MaxValue) + { + puResult = (uint)(ull64Result); + return S_OK; + } + puResult = uint.MaxValue; + return E_FAIL; + } + + public static uint Sequential2AbsoluteComponentIndex( + DXGI_FORMAT Format, + uint SequentialComponentIndex + ) + { + uint n = 0; + uint Index = GetDetailTableIndexThrow(Format); + for (uint comp = 0; comp < 4; comp++) + { + D3D_FORMAT_COMPONENT_NAME name = (D3D_FORMAT_COMPONENT_NAME)(0); + switch (comp) + { + case 0: + { + name = GetFormatDetailRef(Index).ComponentName0; + break; + } + case 1: + { + name = GetFormatDetailRef(Index).ComponentName1; + break; + } + case 2: + { + name = GetFormatDetailRef(Index).ComponentName2; + break; + } + case 3: + { + name = GetFormatDetailRef(Index).ComponentName3; + break; + } + } + if (name != D3DFCN_X) + { + if (SequentialComponentIndex == n) + { + return comp; + } + n++; + } + } + return unchecked((uint)(-1)); + } + + public static bool SNORMAndUNORMFormats(DXGI_FORMAT FormatA, DXGI_FORMAT FormatB) + { + uint NumComponents = uint.Min( + GetNumComponentsInFormat(FormatA), + GetNumComponentsInFormat(FormatB) + ); + for (uint c = 0; c < NumComponents; c++) + { + D3D_FORMAT_COMPONENT_INTERPRETATION fciA = GetFormatComponentInterpretation(FormatA, c); + D3D_FORMAT_COMPONENT_INTERPRETATION fciB = GetFormatComponentInterpretation(FormatB, c); + if ( + ((fciA == D3DFCI_SNORM) && (fciB == D3DFCI_UNORM)) + || ((fciB == D3DFCI_SNORM) && (fciA == D3DFCI_UNORM)) + ) + { + return true; + } + } + return false; + } + + public static bool SupportsSamplerFeedback(DXGI_FORMAT Format) + { + switch (Format) + { + case DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE: + case DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE: + { + return true; + } + default: + { + return false; + } + } + } + + [DoesNotReturn] + private static void ThrowHR(HRESULT hr) + { + throw new ExternalException(null, hr); + } + + // D3D11 has a limitation on typed UAVs (e.g. Texture1D/2D/3D) whereby the only format that can be read is R32_*. Lots of formats + // can be written though, with type conversion (e.g. R8G8B8A8_*). If an API user wants to do image processing in-place, in either + // the Compute Shader or the Pixel Shader, the only format available is R32_* (since it can be read and written at the same time). + // + // We were able to allow resources (Texture1D/2D/3D), created with a format from a small set of families that have 32 bits per element + // (such as R8G8B8A8_TYPELESS), to be cast to R32_* when creating a UAV. This means the Compute Shader or Pixel Shader can + // do simultaneous read+write on the resource when bound as an R32_* UAV, with the caveat that the shader code has to do manual + // type conversion manually, but later on the resource can be used as an SRV or RT as the desired type (e.g. R8G8B8A8_UNORM), and + // thus have access to filtering/blending where the hardware knows what the format is. + // + // If we didn't have this ability to cast some formats to R32_* UAVs, applications would have to keep an extra allocation around + // and do a rendering pass that copies from the R32_* UAV to whatever typed resource they really wanted. For formats not included + // in this list, such as any format that doesn't have 32-bits per component, as well as some 32-bit per component formats like + // R24G8 or R11G11B10_FLOAT there is no alternative for an application but to do the extra copy as mentioned, or avoid in-place + // image editing in favor of ping-ponging between buffers with multiple passes. + public static bool ValidCastToR32UAV(DXGI_FORMAT from, DXGI_FORMAT to) + { + // Allow casting of 32 bit formats to R32_* + if ( + ( + (to == DXGI_FORMAT_R32_UINT) + || (to == DXGI_FORMAT_R32_SINT) + || (to == DXGI_FORMAT_R32_FLOAT) + ) + ) + { + if ( + (from == DXGI_FORMAT_R10G10B10A2_TYPELESS) + || (from == DXGI_FORMAT_R8G8B8A8_TYPELESS) + || (from == DXGI_FORMAT_B8G8R8A8_TYPELESS) + || (from == DXGI_FORMAT_B8G8R8X8_TYPELESS) + || (from == DXGI_FORMAT_R16G16_TYPELESS) + || (from == DXGI_FORMAT_R32_TYPELESS) + ) + { + return true; + } + } + return false; + } + + [Transformed] + public static MaybeBool YUV(DXGI_FORMAT Format) => (MaybeBool)(BOOL)YUVRaw(Format); + + public static BOOL YUVRaw(DXGI_FORMAT Format) + { + return GetFormatDetailRefThrow(Format).bYUV; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS.Manual.cs new file mode 100644 index 0000000000..d44d766153 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS.Manual.cs @@ -0,0 +1,81 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using static Silk.NET.DirectX.D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_BEGINNING_ACCESS + : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS a, + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS b + ) + { + if (a.Type != b.Type) + { + return false; + } + switch (a.Type) + { + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR: + { + if (a.Anonymous.Clear != b.Anonymous.Clear) + { + return false; + } + break; + } + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER: + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV: + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV: + { + if (a.Anonymous.PreserveLocal != b.Anonymous.PreserveLocal) + { + return false; + } + break; + } + } + return true; + } + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS a, + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_BEGINNING_ACCESS other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_BEGINNING_ACCESS other) => this == other; + + public override readonly int GetHashCode() + { + var hashCode = new HashCode(); + hashCode.Add(Type); + switch (Type) + { + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR: + { + hashCode.Add(Anonymous.Clear); + break; + } + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER: + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV: + case D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV: + { + hashCode.Add(Anonymous.PreserveLocal); + break; + } + } + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS.Manual.cs new file mode 100644 index 0000000000..b58f545587 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS.Manual.cs @@ -0,0 +1,33 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS + : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS b + ) => a.ClearValue == b.ClearValue; + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS other) => + this == other; + + public override readonly int GetHashCode() => ClearValue.GetHashCode(); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS.Manual.cs new file mode 100644 index 0000000000..9f39f0e72f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS.Manual.cs @@ -0,0 +1,66 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS + : IEquatable, + IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS b + ) => (a.AdditionalWidth == b.AdditionalWidth) && (a.AdditionalHeight == b.AdditionalHeight); + + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS b + ) => (a.AdditionalWidth == b.AdditionalWidth) && (a.AdditionalHeight == b.AdditionalHeight); + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS b + ) => !(a == b); + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) + { + if (obj is D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS other1) + { + return Equals(other1); + } + else if (obj is D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS other2) + { + return Equals(other2); + } + else + { + return false; + } + } + + public readonly bool Equals( + D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS other + ) => this == other; + + public readonly bool Equals(D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS other) => + this == other; + + public override readonly int GetHashCode() => + HashCode.Combine(AdditionalWidth, AdditionalHeight); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_DEPTH_STENCIL_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_DEPTH_STENCIL_DESC.Manual.cs new file mode 100644 index 0000000000..49ab3a04dc --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_DEPTH_STENCIL_DESC.Manual.cs @@ -0,0 +1,62 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC + : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC &")] + in D3D12_RENDER_PASS_DEPTH_STENCIL_DESC a, + [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC &")] + in D3D12_RENDER_PASS_DEPTH_STENCIL_DESC b + ) + { + if (a.cpuDescriptor.ptr != b.cpuDescriptor.ptr) + { + return false; + } + if (a.DepthBeginningAccess != b.DepthBeginningAccess) + { + return false; + } + if (a.StencilBeginningAccess != b.StencilBeginningAccess) + { + return false; + } + if (a.DepthEndingAccess != b.DepthEndingAccess) + { + return false; + } + if (a.StencilEndingAccess != b.StencilEndingAccess) + { + return false; + } + return true; + } + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC &")] + in D3D12_RENDER_PASS_DEPTH_STENCIL_DESC a, + [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC &")] + in D3D12_RENDER_PASS_DEPTH_STENCIL_DESC b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_DEPTH_STENCIL_DESC other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_DEPTH_STENCIL_DESC other) => this == other; + + public override readonly int GetHashCode() => + HashCode.Combine( + cpuDescriptor.ptr, + DepthBeginningAccess, + StencilBeginningAccess, + DepthEndingAccess, + StencilEndingAccess + ); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS.Manual.cs new file mode 100644 index 0000000000..4a2bbb6a08 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS.Manual.cs @@ -0,0 +1,80 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +using static Silk.NET.DirectX.D3D12_RENDER_PASS_ENDING_ACCESS_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_ENDING_ACCESS : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS b + ) + { + if (a.Type != b.Type) + { + return false; + } + switch (a.Type) + { + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE: + { + if (a.Anonymous.Resolve != b.Anonymous.Resolve) + { + return false; + } + break; + } + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER: + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV: + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV: + { + if (a.Anonymous.PreserveLocal != b.Anonymous.PreserveLocal) + { + return false; + } + break; + } + } + return true; + } + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_ENDING_ACCESS other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_ENDING_ACCESS other) => this == other; + + public override readonly int GetHashCode() + { + var hashCode = new HashCode(); + hashCode.Add(Type); + switch (Type) + { + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE: + { + hashCode.Add(Anonymous.Resolve); + break; + } + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER: + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV: + case D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV: + { + hashCode.Add(Anonymous.PreserveLocal); + break; + } + } + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS.Manual.cs new file mode 100644 index 0000000000..20b2c3a880 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS.Manual.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS + : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS b + ) => (a.AdditionalWidth == b.AdditionalWidth) && (a.AdditionalHeight == b.AdditionalHeight); + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS other) => + this == other; + + public override readonly int GetHashCode() => + HashCode.Combine(AdditionalWidth, AdditionalHeight); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS.Manual.cs new file mode 100644 index 0000000000..5133db9dc8 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS.Manual.cs @@ -0,0 +1,68 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS + : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS b + ) + { + if (a.pSrcResource != b.pSrcResource) + { + return false; + } + if (a.pDstResource != b.pDstResource) + { + return false; + } + if (a.SubresourceCount != b.SubresourceCount) + { + return false; + } + if (a.Format != b.Format) + { + return false; + } + if (a.ResolveMode != b.ResolveMode) + { + return false; + } + if (a.PreserveResolveSource != b.PreserveResolveSource) + { + return false; + } + return true; + } + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS a, + [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS &")] + in D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS other) => + this == other; + + public override readonly int GetHashCode() => + HashCode.Combine( + (nuint)(pSrcResource), + (nuint)(pDstResource), + SubresourceCount, + Format, + ResolveMode, + PreserveResolveSource + ); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_RENDER_TARGET_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_RENDER_TARGET_DESC.Manual.cs new file mode 100644 index 0000000000..819d8e769d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_render_pass/D3D12_RENDER_PASS_RENDER_TARGET_DESC.Manual.cs @@ -0,0 +1,48 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D12_RENDER_PASS_RENDER_TARGET_DESC + : IEquatable +{ + public static bool operator ==( + [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC &")] + in D3D12_RENDER_PASS_RENDER_TARGET_DESC a, + [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC &")] + in D3D12_RENDER_PASS_RENDER_TARGET_DESC b + ) + { + if (a.cpuDescriptor.ptr != b.cpuDescriptor.ptr) + { + return false; + } + if (a.BeginningAccess != b.BeginningAccess) + { + return false; + } + if (a.EndingAccess != b.EndingAccess) + { + return false; + } + return true; + } + + public static bool operator !=( + [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC &")] + in D3D12_RENDER_PASS_RENDER_TARGET_DESC a, + [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC &")] + in D3D12_RENDER_PASS_RENDER_TARGET_DESC b + ) => !(a == b); + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_RENDER_PASS_RENDER_TARGET_DESC other) && Equals(other); + + public readonly bool Equals(D3D12_RENDER_PASS_RENDER_TARGET_DESC other) => this == other; + + public override readonly int GetHashCode() => + HashCode.Combine(cpuDescriptor.ptr, BeginningAccess, EndingAccess); +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_resource_helpers/DirectX.2.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_resource_helpers/DirectX.2.Manual.cs new file mode 100644 index 0000000000..a69bf282a5 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_resource_helpers/DirectX.2.Manual.cs @@ -0,0 +1,43 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_TEXTURE_LAYOUT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + /// + + public static D3D12_RESOURCE_DESC1 D3DX12ResourceDesc0ToDesc1( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] D3D12_RESOURCE_DESC* desc0 + ) + { + D3D12_RESOURCE_DESC1 desc1 = new D3D12_RESOURCE_DESC1() + { + Dimension = desc0->Dimension, + Alignment = desc0->Alignment, + Width = desc0->Width, + Height = desc0->Height, + DepthOrArraySize = desc0->DepthOrArraySize, + MipLevels = desc0->MipLevels, + Format = desc0->Format, + SampleDesc = new DXGI_SAMPLE_DESC + { + Count = desc0->SampleDesc.Count, + Quality = desc0->SampleDesc.Quality, + }, + Layout = desc0->Layout, + Flags = desc0->Flags, + SamplerFeedbackMipRegion = new D3D12_MIP_REGION + { + Width = 0, + Height = 0, + Depth = 0, + }, + }; + return desc1; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_resource_helpers/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_resource_helpers/DirectX.Manual.cs new file mode 100644 index 0000000000..fe626f057e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_resource_helpers/DirectX.Manual.cs @@ -0,0 +1,807 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_resource_helpers.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D12; +using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static void D3D12DecomposeSubresource( + [NativeTypeName("UINT")] uint Subresource, + [NativeTypeName("UINT")] uint MipLevels, + [NativeTypeName("UINT")] uint ArraySize, + [NativeTypeName("T &")] out T MipSlice, + [NativeTypeName("T &")] out U ArraySlice, + [NativeTypeName("T &")] out V PlaneSlice + ) + where T : IBinaryInteger + where U : IBinaryInteger + where V : IBinaryInteger + { + MipSlice = T.CreateTruncating(Subresource % MipLevels); + ArraySlice = U.CreateTruncating((Subresource / MipLevels) % ArraySize); + PlaneSlice = V.CreateTruncating(Subresource / (MipLevels * ArraySize)); + } + + /// + + public static T D3DX12Align(T uValue, T uAlign) + where T : IBinaryInteger + { + Debug.Assert(T.Zero == (uAlign & (uAlign - T.One))); + T uMask = uAlign - T.One; + T uResult = (uValue + uMask) & ~uMask; + Debug.Assert(uResult >= uValue); + Debug.Assert(T.Zero == (uResult % uAlign)); + return uResult; + } + + /// + + public static T D3DX12AlignAtLeast(T uValue, T uAlign) + where T : IBinaryInteger + { + T aligned = D3DX12Align(uValue, uAlign); + return (aligned > uAlign) ? aligned : uAlign; + } + + /// + + public static bool D3DX12GetCopyableFootprints( + [NativeTypeName("const D3D12_RESOURCE_DESC1 &")] in D3D12_RESOURCE_DESC1 ResourceDesc, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong BaseOffset, + D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, + uint* pNumRows, + [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, + [NativeTypeName("UINT64 *")] ulong* pTotalBytes + ) + { + const ulong uint64_max = ~0ul; + ulong TotalBytes = uint64_max; + uint uSubRes = 0; + bool bResourceOverflow = false; + TotalBytes = 0; + DXGI_FORMAT Format = ResourceDesc.Format; + Unsafe.SkipInit(out D3D12_RESOURCE_DESC1 LresourceDesc); + ref readonly D3D12_RESOURCE_DESC1 resourceDesc = ref D3DX12ConditionallyExpandAPIDesc( + ref LresourceDesc, + in ResourceDesc + ); + // Check if its a valid format + Debug.Assert(D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.FormatExists(Format)); + uint WidthAlignment = D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.GetWidthAlignment(Format); + uint HeightAlignment = D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.GetHeightAlignment(Format); + ushort DepthAlignment = (ushort)( + D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.GetDepthAlignment(Format) + ); + for (; uSubRes < NumSubresources; ++uSubRes) + { + bool bOverflow = false; + uint Subresource = FirstSubresource + uSubRes; + Debug.Assert(resourceDesc.MipLevels != 0); + uint subresourceCount = + (uint)(resourceDesc.MipLevels) + * resourceDesc.ArraySize() + * D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.GetPlaneCount(resourceDesc.Format); + if (Subresource > subresourceCount) + { + break; + } + TotalBytes = D3DX12Align(TotalBytes, D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT); + D3D12DecomposeSubresource( + Subresource, + resourceDesc.MipLevels, + resourceDesc.ArraySize(), + out uint MipLevel, + out uint ArraySlice, + out uint PlaneSlice + ); + ulong Width = D3DX12AlignAtLeast( + resourceDesc.Width >> (int)(MipLevel), + WidthAlignment + ); + uint Height = D3DX12AlignAtLeast( + resourceDesc.Height >> (int)(MipLevel), + HeightAlignment + ); + ushort Depth = D3DX12AlignAtLeast( + (ushort)(resourceDesc.Depth() >> (int)(MipLevel)), + DepthAlignment + ); + D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.GetPlaneSubsampledSizeAndFormatForCopyableLayout( + PlaneSlice, + Format, + (uint)(Width), + Height, + out DXGI_FORMAT PlaneFormat, + out uint MinPlanePitchWidth, + out uint PlaneWidth, + out uint PlaneHeight + ); + D3D12_SUBRESOURCE_FOOTPRINT LocalPlacement; + D3D12_SUBRESOURCE_FOOTPRINT* Placement = + (pLayouts != null) ? &pLayouts[uSubRes].Footprint : &LocalPlacement; + Placement->Format = PlaneFormat; + Placement->Width = PlaneWidth; + Placement->Height = PlaneHeight; + Placement->Depth = Depth; + _ = D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.CalculateMinimumRowMajorRowPitch( + PlaneFormat, + MinPlanePitchWidth, + out uint MinPlaneRowPitch + ); + Debug.Assert( + (D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT >= D3D12_TEXTURE_DATA_PITCH_ALIGNMENT) + && ( + ( + D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT + % D3D12_TEXTURE_DATA_PITCH_ALIGNMENT + ) == 0 + ), + "D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT must be >= and evenly divisible by D3D12_TEXTURE_DATA_PITCH_ALIGNMENT." + ); + Placement->RowPitch = D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.PlanarRaw(Format) + ? D3DX12Align(MinPlaneRowPitch, D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT) + : D3DX12Align(MinPlaneRowPitch, D3D12_TEXTURE_DATA_PITCH_ALIGNMENT); + if (pRowSizeInBytes != null) + { + _ = D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.CalculateMinimumRowMajorRowPitch( + PlaneFormat, + PlaneWidth, + out uint PlaneRowSize + ); + pRowSizeInBytes[uSubRes] = PlaneRowSize; + } + uint NumRows = 0; + if (D3D12_PROPERTY_LAYOUT_FORMAT_TABLE.PlanarRaw(Format)) + { + NumRows = PlaneHeight; + } + else + { + Debug.Assert((Height % HeightAlignment) == 0); + NumRows = Height / HeightAlignment; + } + if (pNumRows != null) + { + pNumRows[uSubRes] = NumRows; + } + if (pLayouts != null) + { + pLayouts[uSubRes].Offset = (bOverflow ? uint64_max : TotalBytes + BaseOffset); + } + ushort NumSlices = Depth; + ulong SubresourceSize = + (NumRows * NumSlices - 1) * Placement->RowPitch + MinPlaneRowPitch; + TotalBytes += SubresourceSize; + if (TotalBytes < SubresourceSize) + { + TotalBytes = uint64_max; + } + bResourceOverflow = bResourceOverflow || bOverflow; + } + // Overflow error + if (bResourceOverflow) + { + TotalBytes = uint64_max; + } + if (pLayouts != null) + { + NativeMemory.Fill( + pLayouts + uSubRes, + (nuint)(sizeof(D3D12_PLACED_SUBRESOURCE_FOOTPRINT)) * (NumSubresources - uSubRes), + byte.MaxValue + ); + } + if (pNumRows != null) + { + NativeMemory.Fill( + pNumRows + uSubRes, + (nuint)(sizeof(uint)) * (NumSubresources - uSubRes), + byte.MaxValue + ); + } + if (pRowSizeInBytes != null) + { + NativeMemory.Fill( + pRowSizeInBytes + uSubRes, + (nuint)(sizeof(ulong)) * (NumSubresources - uSubRes), + byte.MaxValue + ); + } + if (pTotalBytes != null) + { + *pTotalBytes = TotalBytes; + } + if (TotalBytes == uint64_max) + { + return false; + } + return true; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static bool D3DX12GetCopyableFootprints( + [NativeTypeName("const D3D12_RESOURCE_DESC1 &")] in D3D12_RESOURCE_DESC1 ResourceDesc, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong BaseOffset, + Ref pLayouts, + Ref pNumRows, + [NativeTypeName("UINT64 *")] Ref pRowSizeInBytes, + [NativeTypeName("UINT64 *")] Ref pTotalBytes + ) + { + fixed (ulong* __dsl_pTotalBytes = pTotalBytes) + fixed (ulong* __dsl_pRowSizeInBytes = pRowSizeInBytes) + fixed (uint* __dsl_pNumRows = pNumRows) + fixed (D3D12_PLACED_SUBRESOURCE_FOOTPRINT* __dsl_pLayouts = pLayouts) + { + return (bool)D3DX12GetCopyableFootprints( + in ResourceDesc, + FirstSubresource, + NumSubresources, + BaseOffset, + __dsl_pLayouts, + __dsl_pNumRows, + __dsl_pRowSizeInBytes, + __dsl_pTotalBytes + ); + } + } + + /// + + public static bool D3DX12GetCopyableFootprints( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC pResourceDesc, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong BaseOffset, + D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, + uint* pNumRows, + [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, + [NativeTypeName("UINT64 *")] ulong* pTotalBytes + ) + { + D3D12_RESOURCE_DESC1 desc = D3DX12ResourceDesc0ToDesc1(pResourceDesc); + return D3DX12GetCopyableFootprints( + in desc, + FirstSubresource, + NumSubresources, + BaseOffset, + pLayouts, + pNumRows, + pRowSizeInBytes, + pTotalBytes + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static bool D3DX12GetCopyableFootprints( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC pResourceDesc, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong BaseOffset, + Ref pLayouts, + Ref pNumRows, + [NativeTypeName("UINT64 *")] Ref pRowSizeInBytes, + [NativeTypeName("UINT64 *")] Ref pTotalBytes + ) + { + fixed (ulong* __dsl_pTotalBytes = pTotalBytes) + fixed (ulong* __dsl_pRowSizeInBytes = pRowSizeInBytes) + fixed (uint* __dsl_pNumRows = pNumRows) + fixed (D3D12_PLACED_SUBRESOURCE_FOOTPRINT* __dsl_pLayouts = pLayouts) + { + return (bool)D3DX12GetCopyableFootprints( + in pResourceDesc, + FirstSubresource, + NumSubresources, + BaseOffset, + __dsl_pLayouts, + __dsl_pNumRows, + __dsl_pRowSizeInBytes, + __dsl_pTotalBytes + ); + } + } + + /// + + public static D3D12_RESOURCE_DESC1 D3DX12ResourceDesc0ToDesc1( + [NativeTypeName("const D3D12_RESOURCE_DESC &")] in D3D12_RESOURCE_DESC desc0 + ) + { + D3D12_RESOURCE_DESC1 desc1 = new D3D12_RESOURCE_DESC1() + { + Dimension = desc0.Dimension, + Alignment = desc0.Alignment, + Width = desc0.Width, + Height = desc0.Height, + DepthOrArraySize = desc0.DepthOrArraySize, + MipLevels = desc0.MipLevels, + Format = desc0.Format, + SampleDesc = new DXGI_SAMPLE_DESC + { + Count = desc0.SampleDesc.Count, + Quality = desc0.SampleDesc.Quality, + }, + Layout = desc0.Layout, + Flags = desc0.Flags, + SamplerFeedbackMipRegion = new D3D12_MIP_REGION + { + Width = 0, + Height = 0, + Depth = 0, + }, + }; + return desc1; + } + + /// + + [return: NativeTypeName("UINT64")] + public static ulong GetRequiredIntermediateSize( + ID3D12Resource pDestinationResource, + uint FirstSubresource, + uint NumSubresources + ) + { + D3D12_RESOURCE_DESC Desc = pDestinationResource.GetDesc(); + ulong RequiredSize = 0; + ID3D12Device pDevice = default; + _ = pDestinationResource.GetDevice(__uuidof(), (void**)(&pDevice)); + pDevice.GetCopyableFootprints( + &Desc, + FirstSubresource, + NumSubresources, + 0, + null, + null, + null, + &RequiredSize + ); + _ = pDevice.Release(); + return RequiredSize; + } + + /// + + [return: NativeTypeName("UINT64")] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong RequiredSize, + [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT *")] + D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, + [NativeTypeName("const UINT *")] uint* pNumRows, + [NativeTypeName("const UINT64 *")] ulong* pRowSizesInBytes, + [NativeTypeName("const D3D12_SUBRESOURCE_DATA *")] D3D12_SUBRESOURCE_DATA* pSrcData + ) + { + D3D12_RESOURCE_DESC IntermediateDesc = pIntermediate.GetDesc(); + D3D12_RESOURCE_DESC DestinationDesc = pDestinationResource.GetDesc(); + if ( + (IntermediateDesc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER) + || (IntermediateDesc.Width < (RequiredSize + pLayouts[0].Offset)) + || (RequiredSize > nuint.MaxValue) + || ( + (DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) + && ((FirstSubresource != 0) || (NumSubresources != 1)) + ) + ) + { + return 0; + } + byte* pData; + HRESULT hr = pIntermediate.Map(0, null, (void**)(&pData)); + if (FAILED(hr)) + { + return 0; + } + for (uint i = 0; i < NumSubresources; ++i) + { + if (pRowSizesInBytes[i] > nuint.MaxValue) + { + return 0; + } + D3D12_MEMCPY_DEST DestData = new D3D12_MEMCPY_DEST + { + pData = pData + pLayouts[i].Offset, + RowPitch = pLayouts[i].Footprint.RowPitch, + SlicePitch = unchecked( + (nuint)(pLayouts[i].Footprint.RowPitch) * (nuint)(pNumRows[i]) + ), + }; + MemcpySubresource( + &DestData, + &pSrcData[i], + unchecked((nuint)(pRowSizesInBytes[i])), + pNumRows[i], + pLayouts[i].Footprint.Depth + ); + } + pIntermediate.Unmap(0, null); + if (DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) + { + pCmdList.CopyBufferRegion( + pDestinationResource, + 0, + pIntermediate, + pLayouts[0].Offset, + pLayouts[0].Footprint.Width + ); + } + else + { + for (uint i = 0; i < NumSubresources; ++i) + { + D3D12_TEXTURE_COPY_LOCATION Dst = new D3D12_TEXTURE_COPY_LOCATION( + pDestinationResource, + i + FirstSubresource + ); + D3D12_TEXTURE_COPY_LOCATION Src = new D3D12_TEXTURE_COPY_LOCATION( + pIntermediate, + &pLayouts[i] + ); + pCmdList.CopyTextureRegion(&Dst, 0, 0, 0, &Src, null); + } + } + return RequiredSize; + } + + [return: NativeTypeName("UINT64")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong RequiredSize, + [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT *")] + Ref pLayouts, + [NativeTypeName("const UINT *")] Ref pNumRows, + [NativeTypeName("const UINT64 *")] Ref pRowSizesInBytes, + [NativeTypeName("const D3D12_SUBRESOURCE_DATA *")] Ref pSrcData + ) + { + fixed (D3D12_SUBRESOURCE_DATA* __dsl_pSrcData = pSrcData) + fixed (ulong* __dsl_pRowSizesInBytes = pRowSizesInBytes) + fixed (uint* __dsl_pNumRows = pNumRows) + fixed (D3D12_PLACED_SUBRESOURCE_FOOTPRINT* __dsl_pLayouts = pLayouts) + { + return (ulong)UpdateSubresources( + pCmdList, + pDestinationResource, + pIntermediate, + FirstSubresource, + NumSubresources, + RequiredSize, + __dsl_pLayouts, + __dsl_pNumRows, + __dsl_pRowSizesInBytes, + __dsl_pSrcData + ); + } + } + + /// + + [return: NativeTypeName("UINT64")] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong RequiredSize, + [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT *")] + D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, + [NativeTypeName("const UINT *")] uint* pNumRows, + [NativeTypeName("const UINT64 *")] ulong* pRowSizesInBytes, + [NativeTypeName("const void *")] void* pResourceData, + [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] D3D12_SUBRESOURCE_INFO* pSrcData + ) + { + D3D12_RESOURCE_DESC IntermediateDesc = pIntermediate.GetDesc(); + D3D12_RESOURCE_DESC DestinationDesc = pDestinationResource.GetDesc(); + if ( + (IntermediateDesc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER) + || (IntermediateDesc.Width < (RequiredSize + pLayouts[0].Offset)) + || (RequiredSize > nuint.MaxValue) + || ( + (DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) + && ((FirstSubresource != 0) || (NumSubresources != 1)) + ) + ) + { + return 0; + } + byte* pData; + HRESULT hr = pIntermediate.Map(0, null, (void**)(&pData)); + if (FAILED(hr)) + { + return 0; + } + for (uint i = 0; i < NumSubresources; ++i) + { + if (pRowSizesInBytes[i] > nuint.MaxValue) + { + return 0; + } + D3D12_MEMCPY_DEST DestData = new D3D12_MEMCPY_DEST + { + pData = pData + pLayouts[i].Offset, + RowPitch = pLayouts[i].Footprint.RowPitch, + SlicePitch = unchecked( + (nuint)(pLayouts[i].Footprint.RowPitch) * (nuint)(pNumRows[i]) + ), + }; + MemcpySubresource( + &DestData, + pResourceData, + &pSrcData[i], + unchecked((nuint)(pRowSizesInBytes[i])), + pNumRows[i], + pLayouts[i].Footprint.Depth + ); + } + pIntermediate.Unmap(0, null); + if (DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) + { + pCmdList.CopyBufferRegion( + pDestinationResource, + 0, + pIntermediate, + pLayouts[0].Offset, + pLayouts[0].Footprint.Width + ); + } + else + { + for (uint i = 0; i < NumSubresources; ++i) + { + D3D12_TEXTURE_COPY_LOCATION Dst = new D3D12_TEXTURE_COPY_LOCATION( + pDestinationResource, + i + FirstSubresource + ); + D3D12_TEXTURE_COPY_LOCATION Src = new D3D12_TEXTURE_COPY_LOCATION( + pIntermediate, + &pLayouts[i] + ); + pCmdList.CopyTextureRegion(&Dst, 0, 0, 0, &Src, null); + } + } + return RequiredSize; + } + + [return: NativeTypeName("UINT64")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("UINT64")] ulong RequiredSize, + [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT *")] + Ref pLayouts, + [NativeTypeName("const UINT *")] Ref pNumRows, + [NativeTypeName("const UINT64 *")] Ref pRowSizesInBytes, + [NativeTypeName("const void *")] Ref pResourceData, + [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] Ref pSrcData + ) + { + fixed (D3D12_SUBRESOURCE_INFO* __dsl_pSrcData = pSrcData) + fixed (void* __dsl_pResourceData = pResourceData) + fixed (ulong* __dsl_pRowSizesInBytes = pRowSizesInBytes) + fixed (uint* __dsl_pNumRows = pNumRows) + fixed (D3D12_PLACED_SUBRESOURCE_FOOTPRINT* __dsl_pLayouts = pLayouts) + { + return (ulong)UpdateSubresources( + pCmdList, + pDestinationResource, + pIntermediate, + FirstSubresource, + NumSubresources, + RequiredSize, + __dsl_pLayouts, + __dsl_pNumRows, + __dsl_pRowSizesInBytes, + __dsl_pResourceData, + __dsl_pSrcData + ); + } + } + + /// + + [return: NativeTypeName("UINT64")] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + [NativeTypeName("UINT64")] ulong IntermediateOffset, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("const D3D12_SUBRESOURCE_DATA *")] D3D12_SUBRESOURCE_DATA* pSrcData + ) + { + ulong RequiredSize = 0; + ulong MemToAlloc = (ulong)(32 + 4 + 8) * NumSubresources; + if (MemToAlloc > 0xffffffffffffffffUL) + { + return 0; + } + void* pMem = HeapAllocRaw(GetProcessHeap(), 0, (nuint)(MemToAlloc)); + if (pMem == null) + { + return 0; + } + D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts = (D3D12_PLACED_SUBRESOURCE_FOOTPRINT*)(pMem); + ulong* pRowSizesInBytes = (ulong*)(pLayouts + NumSubresources); + uint* pNumRows = (uint*)(pRowSizesInBytes + NumSubresources); + D3D12_RESOURCE_DESC Desc = pDestinationResource.GetDesc(); + ID3D12Device pDevice = default; + _ = pDestinationResource.GetDevice(__uuidof(), (void**)(&pDevice)); + pDevice.GetCopyableFootprints( + &Desc, + FirstSubresource, + NumSubresources, + IntermediateOffset, + pLayouts, + pNumRows, + pRowSizesInBytes, + &RequiredSize + ); + _ = pDevice.Release(); + ulong Result = UpdateSubresources( + pCmdList, + pDestinationResource, + pIntermediate, + FirstSubresource, + NumSubresources, + RequiredSize, + pLayouts, + pNumRows, + pRowSizesInBytes, + pSrcData + ); + _ = HeapFree(GetProcessHeap(), 0, pMem); + return Result; + } + + [return: NativeTypeName("UINT64")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + [NativeTypeName("UINT64")] ulong IntermediateOffset, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("const D3D12_SUBRESOURCE_DATA *")] Ref pSrcData + ) + { + fixed (D3D12_SUBRESOURCE_DATA* __dsl_pSrcData = pSrcData) + { + return (ulong)UpdateSubresources( + pCmdList, + pDestinationResource, + pIntermediate, + IntermediateOffset, + FirstSubresource, + NumSubresources, + __dsl_pSrcData + ); + } + } + + /// + + [return: NativeTypeName("UINT64")] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + [NativeTypeName("UINT64")] ulong IntermediateOffset, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("const void *")] void* pResourceData, + [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] D3D12_SUBRESOURCE_INFO* pSrcData + ) + { + ulong RequiredSize = 0; + ulong MemToAlloc = (ulong)(32 + 4 + 8) * NumSubresources; + if (MemToAlloc > 0xffffffffffffffffUL) + { + return 0; + } + void* pMem = HeapAllocRaw(GetProcessHeap(), 0, (nuint)(MemToAlloc)); + if (pMem == null) + { + return 0; + } + D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts = (D3D12_PLACED_SUBRESOURCE_FOOTPRINT*)(pMem); + ulong* pRowSizesInBytes = (ulong*)(pLayouts + NumSubresources); + uint* pNumRows = (uint*)(pRowSizesInBytes + NumSubresources); + D3D12_RESOURCE_DESC Desc = pDestinationResource.GetDesc(); + ID3D12Device pDevice = default; + _ = pDestinationResource.GetDevice(__uuidof(), (void**)(&pDevice)); + pDevice.GetCopyableFootprints( + &Desc, + FirstSubresource, + NumSubresources, + IntermediateOffset, + pLayouts, + pNumRows, + pRowSizesInBytes, + &RequiredSize + ); + _ = pDevice.Release(); + ulong Result = UpdateSubresources( + pCmdList, + pDestinationResource, + pIntermediate, + FirstSubresource, + NumSubresources, + RequiredSize, + pLayouts, + pNumRows, + pRowSizesInBytes, + pResourceData, + pSrcData + ); + _ = HeapFree(GetProcessHeap(), 0, pMem); + return Result; + } + + [return: NativeTypeName("UINT64")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong UpdateSubresources( + ID3D12GraphicsCommandList pCmdList, + ID3D12Resource pDestinationResource, + ID3D12Resource pIntermediate, + [NativeTypeName("UINT64")] ulong IntermediateOffset, + uint FirstSubresource, + uint NumSubresources, + [NativeTypeName("const void *")] Ref pResourceData, + [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] Ref pSrcData + ) + { + fixed (D3D12_SUBRESOURCE_INFO* __dsl_pSrcData = pSrcData) + fixed (void* __dsl_pResourceData = pResourceData) + { + return (ulong)UpdateSubresources( + pCmdList, + pDestinationResource, + pIntermediate, + IntermediateOffset, + FirstSubresource, + NumSubresources, + __dsl_pResourceData, + __dsl_pSrcData + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_CPU_DESCRIPTOR_HANDLE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_CPU_DESCRIPTOR_HANDLE.Manual.cs new file mode 100644 index 0000000000..abfd45f96f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_CPU_DESCRIPTOR_HANDLE.Manual.cs @@ -0,0 +1,113 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_CPU_DESCRIPTOR_HANDLE : IEquatable +{ + public static D3D12_CPU_DESCRIPTOR_HANDLE DEFAULT => default; + + public D3D12_CPU_DESCRIPTOR_HANDLE( + [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE &")] + in D3D12_CPU_DESCRIPTOR_HANDLE other, + int offsetScaledByIncrementSize + ) + { + InitOffsetted(in other, offsetScaledByIncrementSize); + } + + public D3D12_CPU_DESCRIPTOR_HANDLE( + [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE &")] + in D3D12_CPU_DESCRIPTOR_HANDLE other, + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + InitOffsetted(in other, offsetInDescriptors, descriptorIncrementSize); + } + + public static bool operator ==( + D3D12_CPU_DESCRIPTOR_HANDLE left, + D3D12_CPU_DESCRIPTOR_HANDLE right + ) => left.ptr == right.ptr; + + public static bool operator !=( + D3D12_CPU_DESCRIPTOR_HANDLE left, + D3D12_CPU_DESCRIPTOR_HANDLE right + ) => left.ptr != right.ptr; + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_CPU_DESCRIPTOR_HANDLE other) && Equals(other); + + public readonly bool Equals(D3D12_CPU_DESCRIPTOR_HANDLE other) => this == other; + + public override readonly int GetHashCode() => ptr.GetHashCode(); + + public void InitOffsetted( + [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE &")] + in D3D12_CPU_DESCRIPTOR_HANDLE @base, + int offsetScaledByIncrementSize + ) + { + InitOffsetted(ref this, @base, offsetScaledByIncrementSize); + } + + public void InitOffsetted( + [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE &")] + in D3D12_CPU_DESCRIPTOR_HANDLE @base, + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + InitOffsetted(ref this, @base, offsetInDescriptors, descriptorIncrementSize); + } + + public static void InitOffsetted( + [NativeTypeName("D3D12_CPU_DESCRIPTOR_HANDLE &")] ref D3D12_CPU_DESCRIPTOR_HANDLE handle, + [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE &")] + in D3D12_CPU_DESCRIPTOR_HANDLE @base, + int offsetScaledByIncrementSize + ) + { + handle.ptr = unchecked((nuint)((long)(@base.ptr) + (long)(offsetScaledByIncrementSize))); + } + + public static void InitOffsetted( + [NativeTypeName("D3D12_CPU_DESCRIPTOR_HANDLE &")] ref D3D12_CPU_DESCRIPTOR_HANDLE handle, + [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE &")] + in D3D12_CPU_DESCRIPTOR_HANDLE @base, + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + handle.ptr = unchecked( + (nuint)( + (long)(@base.ptr) + (long)(offsetInDescriptors) * (long)(descriptorIncrementSize) + ) + ); + } + + [UnscopedRef] + [return: NativeTypeName("CD3DX12_CPU_DESCRIPTOR_HANDLE &")] + public ref D3D12_CPU_DESCRIPTOR_HANDLE Offset( + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + ptr = unchecked( + (nuint)((long)(ptr) + (long)(offsetInDescriptors) * (long)(descriptorIncrementSize)) + ); + return ref this; + } + + [UnscopedRef] + [return: NativeTypeName("CD3DX12_CPU_DESCRIPTOR_HANDLE &")] + public ref D3D12_CPU_DESCRIPTOR_HANDLE Offset(int offsetScaledByIncrementSize) + { + ptr = unchecked((nuint)((long)(ptr) + (long)(offsetScaledByIncrementSize))); + return ref this; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_DESCRIPTOR_RANGE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_DESCRIPTOR_RANGE.Manual.cs new file mode 100644 index 0000000000..496e68806a --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_DESCRIPTOR_RANGE.Manual.cs @@ -0,0 +1,59 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_DESCRIPTOR_RANGE +{ + public D3D12_DESCRIPTOR_RANGE( + D3D12_DESCRIPTOR_RANGE_TYPE rangeType, + uint numDescriptors, + uint baseShaderRegister, + uint registerSpace = 0, + uint offsetInDescriptorsFromTableStart = (0xffffffff) + ) + { + Init( + rangeType, + numDescriptors, + baseShaderRegister, + registerSpace, + offsetInDescriptorsFromTableStart + ); + } + + public void Init( + D3D12_DESCRIPTOR_RANGE_TYPE rangeType, + uint numDescriptors, + uint baseShaderRegister, + uint registerSpace = 0, + uint offsetInDescriptorsFromTableStart = (0xffffffff) + ) + { + Init( + ref this, + rangeType, + numDescriptors, + baseShaderRegister, + registerSpace, + offsetInDescriptorsFromTableStart + ); + } + + public static void Init( + [NativeTypeName("D3D12_DESCRIPTOR_RANGE &")] ref D3D12_DESCRIPTOR_RANGE range, + D3D12_DESCRIPTOR_RANGE_TYPE rangeType, + uint numDescriptors, + uint baseShaderRegister, + uint registerSpace = 0, + uint offsetInDescriptorsFromTableStart = (0xffffffff) + ) + { + range.RangeType = rangeType; + range.NumDescriptors = numDescriptors; + range.BaseShaderRegister = baseShaderRegister; + range.RegisterSpace = registerSpace; + range.OffsetInDescriptorsFromTableStart = offsetInDescriptorsFromTableStart; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_DESCRIPTOR_RANGE1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_DESCRIPTOR_RANGE1.Manual.cs new file mode 100644 index 0000000000..e188bc81f8 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_DESCRIPTOR_RANGE1.Manual.cs @@ -0,0 +1,66 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D12_DESCRIPTOR_RANGE_FLAGS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_DESCRIPTOR_RANGE1 +{ + public D3D12_DESCRIPTOR_RANGE1( + D3D12_DESCRIPTOR_RANGE_TYPE rangeType, + uint numDescriptors, + uint baseShaderRegister, + uint registerSpace = 0, + D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, + uint offsetInDescriptorsFromTableStart = (0xffffffff) + ) + { + Init( + rangeType, + numDescriptors, + baseShaderRegister, + registerSpace, + flags, + offsetInDescriptorsFromTableStart + ); + } + + public void Init( + D3D12_DESCRIPTOR_RANGE_TYPE rangeType, + uint numDescriptors, + uint baseShaderRegister, + uint registerSpace = 0, + D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, + uint offsetInDescriptorsFromTableStart = (0xffffffff) + ) + { + Init( + ref this, + rangeType, + numDescriptors, + baseShaderRegister, + registerSpace, + flags, + offsetInDescriptorsFromTableStart + ); + } + + public static void Init( + [NativeTypeName("D3D12_DESCRIPTOR_RANGE1 &")] ref D3D12_DESCRIPTOR_RANGE1 range, + D3D12_DESCRIPTOR_RANGE_TYPE rangeType, + uint numDescriptors, + uint baseShaderRegister, + uint registerSpace = 0, + D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, + uint offsetInDescriptorsFromTableStart = (0xffffffff) + ) + { + range.RangeType = rangeType; + range.NumDescriptors = numDescriptors; + range.BaseShaderRegister = baseShaderRegister; + range.RegisterSpace = registerSpace; + range.Flags = flags; + range.OffsetInDescriptorsFromTableStart = offsetInDescriptorsFromTableStart; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_GPU_DESCRIPTOR_HANDLE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_GPU_DESCRIPTOR_HANDLE.Manual.cs new file mode 100644 index 0000000000..ff64af491a --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_GPU_DESCRIPTOR_HANDLE.Manual.cs @@ -0,0 +1,116 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +[NativeTypeName("struct CD3DX12_GPU_DESCRIPTOR_HANDLE : D3D12_GPU_DESCRIPTOR_HANDLE")] +[NativeInheritance("D3D12_GPU_DESCRIPTOR_HANDLE")] +public unsafe partial struct D3D12_GPU_DESCRIPTOR_HANDLE : IEquatable +{ + public static D3D12_GPU_DESCRIPTOR_HANDLE DEFAULT => default; + + public D3D12_GPU_DESCRIPTOR_HANDLE( + [NativeTypeName("const D3D12_GPU_DESCRIPTOR_HANDLE &")] + in D3D12_GPU_DESCRIPTOR_HANDLE other, + int offsetScaledByIncrementSize + ) + { + InitOffsetted(in other, offsetScaledByIncrementSize); + } + + public D3D12_GPU_DESCRIPTOR_HANDLE( + [NativeTypeName("const D3D12_GPU_DESCRIPTOR_HANDLE &")] + in D3D12_GPU_DESCRIPTOR_HANDLE other, + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + InitOffsetted(in other, offsetInDescriptors, descriptorIncrementSize); + } + + public static bool operator ==( + D3D12_GPU_DESCRIPTOR_HANDLE left, + D3D12_GPU_DESCRIPTOR_HANDLE right + ) => left.ptr == right.ptr; + + public static bool operator !=( + D3D12_GPU_DESCRIPTOR_HANDLE left, + D3D12_GPU_DESCRIPTOR_HANDLE right + ) => left.ptr != right.ptr; + + public override readonly bool Equals([NotNullWhen(true)] object? obj) => + (obj is D3D12_GPU_DESCRIPTOR_HANDLE other) && Equals(other); + + public readonly bool Equals(D3D12_GPU_DESCRIPTOR_HANDLE other) => this == other; + + public override readonly int GetHashCode() => ptr.GetHashCode(); + + public void InitOffsetted( + [NativeTypeName("const D3D12_GPU_DESCRIPTOR_HANDLE &")] + in D3D12_GPU_DESCRIPTOR_HANDLE @base, + int offsetScaledByIncrementSize + ) + { + InitOffsetted(ref this, @base, offsetScaledByIncrementSize); + } + + public void InitOffsetted( + [NativeTypeName("const D3D12_GPU_DESCRIPTOR_HANDLE &")] + in D3D12_GPU_DESCRIPTOR_HANDLE @base, + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + InitOffsetted(ref this, @base, offsetInDescriptors, descriptorIncrementSize); + } + + public static void InitOffsetted( + [NativeTypeName("D3D12_GPU_DESCRIPTOR_HANDLE &")] ref D3D12_GPU_DESCRIPTOR_HANDLE handle, + [NativeTypeName("const D3D12_GPU_DESCRIPTOR_HANDLE &")] + in D3D12_GPU_DESCRIPTOR_HANDLE @base, + int offsetScaledByIncrementSize + ) + { + handle.ptr = unchecked((ulong)((long)(@base.ptr) + (long)(offsetScaledByIncrementSize))); + } + + public static void InitOffsetted( + [NativeTypeName("D3D12_GPU_DESCRIPTOR_HANDLE &")] ref D3D12_GPU_DESCRIPTOR_HANDLE handle, + [NativeTypeName("const D3D12_GPU_DESCRIPTOR_HANDLE &")] + in D3D12_GPU_DESCRIPTOR_HANDLE @base, + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + handle.ptr = unchecked( + (ulong)( + (long)(@base.ptr) + (long)(offsetInDescriptors) * (long)(descriptorIncrementSize) + ) + ); + } + + [UnscopedRef] + [return: NativeTypeName("CD3DX12_GPU_DESCRIPTOR_HANDLE &")] + public ref D3D12_GPU_DESCRIPTOR_HANDLE Offset( + int offsetInDescriptors, + uint descriptorIncrementSize + ) + { + ptr = unchecked( + (ulong)((long)(ptr) + (long)(offsetInDescriptors) * (long)(descriptorIncrementSize)) + ); + return ref this; + } + + [UnscopedRef] + [return: NativeTypeName("CD3DX12_GPU_DESCRIPTOR_HANDLE &")] + public ref D3D12_GPU_DESCRIPTOR_HANDLE Offset(int offsetScaledByIncrementSize) + { + ptr = unchecked((ulong)((long)(ptr) + (long)(offsetScaledByIncrementSize))); + return ref this; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_CONSTANTS.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_CONSTANTS.Manual.cs new file mode 100644 index 0000000000..2092048a4e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_CONSTANTS.Manual.cs @@ -0,0 +1,30 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_CONSTANTS +{ + public D3D12_ROOT_CONSTANTS(uint num32BitValues, uint shaderRegister, uint registerSpace = 0) + { + Init(num32BitValues, shaderRegister, registerSpace); + } + + public void Init(uint num32BitValues, uint shaderRegister, uint registerSpace = 0) + { + Init(ref this, num32BitValues, shaderRegister, registerSpace); + } + + public static void Init( + [NativeTypeName("D3D12_ROOT_CONSTANTS &")] ref D3D12_ROOT_CONSTANTS rootConstants, + uint num32BitValues, + uint shaderRegister, + uint registerSpace = 0 + ) + { + rootConstants.Num32BitValues = num32BitValues; + rootConstants.ShaderRegister = shaderRegister; + rootConstants.RegisterSpace = registerSpace; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR.Manual.cs new file mode 100644 index 0000000000..9fecf4bd4d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR.Manual.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_DESCRIPTOR +{ + public D3D12_ROOT_DESCRIPTOR(uint shaderRegister, uint registerSpace = 0) + { + Init(shaderRegister, registerSpace); + } + + public void Init(uint shaderRegister, uint registerSpace = 0) + { + Init(ref this, shaderRegister, registerSpace); + } + + public static void Init( + [NativeTypeName("D3D12_ROOT_DESCRIPTOR &")] ref D3D12_ROOT_DESCRIPTOR table, + uint shaderRegister, + uint registerSpace = 0 + ) + { + table.ShaderRegister = shaderRegister; + table.RegisterSpace = registerSpace; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR1.Manual.cs new file mode 100644 index 0000000000..016c5c643e --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR1.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D12_ROOT_DESCRIPTOR_FLAGS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_DESCRIPTOR1 +{ + public D3D12_ROOT_DESCRIPTOR1( + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE + ) + { + Init(shaderRegister, registerSpace, flags); + } + + public void Init( + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE + ) + { + Init(ref this, shaderRegister, registerSpace, flags); + } + + public static void Init( + [NativeTypeName("D3D12_ROOT_DESCRIPTOR1 &")] ref D3D12_ROOT_DESCRIPTOR1 table, + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE + ) + { + table.ShaderRegister = shaderRegister; + table.RegisterSpace = registerSpace; + table.Flags = flags; + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR_TABLE.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR_TABLE.Manual.cs new file mode 100644 index 0000000000..77eee33d28 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR_TABLE.Manual.cs @@ -0,0 +1,70 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_DESCRIPTOR_TABLE +{ + public D3D12_ROOT_DESCRIPTOR_TABLE( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + D3D12_DESCRIPTOR_RANGE* _pDescriptorRanges + ) + { + Init(numDescriptorRanges, _pDescriptorRanges); + } + + public void Init( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + D3D12_DESCRIPTOR_RANGE* _pDescriptorRanges + ) + { + Init(ref this, numDescriptorRanges, _pDescriptorRanges); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void Init( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + Ref _pDescriptorRanges + ) + { + fixed (D3D12_DESCRIPTOR_RANGE* __dsl__pDescriptorRanges = _pDescriptorRanges) + { + Init(numDescriptorRanges, __dsl__pDescriptorRanges); + } + } + + public static void Init( + [NativeTypeName("D3D12_ROOT_DESCRIPTOR_TABLE &")] + ref D3D12_ROOT_DESCRIPTOR_TABLE rootDescriptorTable, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + D3D12_DESCRIPTOR_RANGE* _pDescriptorRanges + ) + { + rootDescriptorTable.NumDescriptorRanges = numDescriptorRanges; + rootDescriptorTable.pDescriptorRanges = _pDescriptorRanges; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Init( + [NativeTypeName("D3D12_ROOT_DESCRIPTOR_TABLE &")] + ref D3D12_ROOT_DESCRIPTOR_TABLE rootDescriptorTable, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + Ref _pDescriptorRanges + ) + { + fixed (D3D12_DESCRIPTOR_RANGE* __dsl__pDescriptorRanges = _pDescriptorRanges) + { + Init(ref rootDescriptorTable, numDescriptorRanges, __dsl__pDescriptorRanges); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR_TABLE1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR_TABLE1.Manual.cs new file mode 100644 index 0000000000..04ac712a0d --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_DESCRIPTOR_TABLE1.Manual.cs @@ -0,0 +1,70 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_DESCRIPTOR_TABLE1 +{ + public D3D12_ROOT_DESCRIPTOR_TABLE1( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + D3D12_DESCRIPTOR_RANGE1* _pDescriptorRanges + ) + { + Init(numDescriptorRanges, _pDescriptorRanges); + } + + public void Init( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + D3D12_DESCRIPTOR_RANGE1* _pDescriptorRanges + ) + { + Init(ref this, numDescriptorRanges, _pDescriptorRanges); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void Init( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + Ref _pDescriptorRanges + ) + { + fixed (D3D12_DESCRIPTOR_RANGE1* __dsl__pDescriptorRanges = _pDescriptorRanges) + { + Init(numDescriptorRanges, __dsl__pDescriptorRanges); + } + } + + public static void Init( + [NativeTypeName("D3D12_ROOT_DESCRIPTOR_TABLE1 &")] + ref D3D12_ROOT_DESCRIPTOR_TABLE1 rootDescriptorTable, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + D3D12_DESCRIPTOR_RANGE1* _pDescriptorRanges + ) + { + rootDescriptorTable.NumDescriptorRanges = numDescriptorRanges; + rootDescriptorTable.pDescriptorRanges = _pDescriptorRanges; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Init( + [NativeTypeName("D3D12_ROOT_DESCRIPTOR_TABLE1 &")] + ref D3D12_ROOT_DESCRIPTOR_TABLE1 rootDescriptorTable, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + Ref _pDescriptorRanges + ) + { + fixed (D3D12_DESCRIPTOR_RANGE1* __dsl__pDescriptorRanges = _pDescriptorRanges) + { + Init(ref rootDescriptorTable, numDescriptorRanges, __dsl__pDescriptorRanges); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_PARAMETER.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_PARAMETER.Manual.cs new file mode 100644 index 0000000000..d8566811b3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_PARAMETER.Manual.cs @@ -0,0 +1,177 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.CompilerServices; +using static Silk.NET.DirectX.D3D12_ROOT_PARAMETER_TYPE; +using static Silk.NET.DirectX.D3D12_SHADER_VISIBILITY; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_PARAMETER +{ + public static void InitAsConstantBufferView( + [NativeTypeName("D3D12_ROOT_PARAMETER &")] ref D3D12_ROOT_PARAMETER rootParam, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_CBV; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR.Init( + ref rootParam.Anonymous.Descriptor, + shaderRegister, + registerSpace + ); + } + + public void InitAsConstantBufferView( + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsConstantBufferView(ref this, shaderRegister, registerSpace, visibility); + } + + public static void InitAsConstants( + [NativeTypeName("D3D12_ROOT_PARAMETER &")] ref D3D12_ROOT_PARAMETER rootParam, + uint num32BitValues, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_CONSTANTS.Init( + ref rootParam.Anonymous.Constants, + num32BitValues, + shaderRegister, + registerSpace + ); + } + + public void InitAsConstants( + uint num32BitValues, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsConstants(ref this, num32BitValues, shaderRegister, registerSpace, visibility); + } + + public static void InitAsDescriptorTable( + [NativeTypeName("D3D12_ROOT_PARAMETER &")] ref D3D12_ROOT_PARAMETER rootParam, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR_TABLE.Init( + ref rootParam.Anonymous.DescriptorTable, + numDescriptorRanges, + pDescriptorRanges + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void InitAsDescriptorTable( + [NativeTypeName("D3D12_ROOT_PARAMETER &")] ref D3D12_ROOT_PARAMETER rootParam, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + Ref pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + fixed (D3D12_DESCRIPTOR_RANGE* __dsl_pDescriptorRanges = pDescriptorRanges) + { + InitAsDescriptorTable( + ref rootParam, + numDescriptorRanges, + __dsl_pDescriptorRanges, + visibility + ); + } + } + + public void InitAsDescriptorTable( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsDescriptorTable(ref this, numDescriptorRanges, pDescriptorRanges, visibility); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void InitAsDescriptorTable( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] + Ref pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + fixed (D3D12_DESCRIPTOR_RANGE* __dsl_pDescriptorRanges = pDescriptorRanges) + { + InitAsDescriptorTable(numDescriptorRanges, __dsl_pDescriptorRanges, visibility); + } + } + + public static void InitAsShaderResourceView( + [NativeTypeName("D3D12_ROOT_PARAMETER &")] ref D3D12_ROOT_PARAMETER rootParam, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_SRV; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR.Init( + ref rootParam.Anonymous.Descriptor, + shaderRegister, + registerSpace + ); + } + + public void InitAsShaderResourceView( + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsShaderResourceView(ref this, shaderRegister, registerSpace, visibility); + } + + public static void InitAsUnorderedAccessView( + [NativeTypeName("D3D12_ROOT_PARAMETER &")] ref D3D12_ROOT_PARAMETER rootParam, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_UAV; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR.Init( + ref rootParam.Anonymous.Descriptor, + shaderRegister, + registerSpace + ); + } + + public void InitAsUnorderedAccessView( + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsUnorderedAccessView(ref this, shaderRegister, registerSpace, visibility); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_PARAMETER1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_PARAMETER1.Manual.cs new file mode 100644 index 0000000000..602ef6c229 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_PARAMETER1.Manual.cs @@ -0,0 +1,187 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.CompilerServices; +using static Silk.NET.DirectX.D3D12_ROOT_DESCRIPTOR_FLAGS; +using static Silk.NET.DirectX.D3D12_ROOT_PARAMETER_TYPE; +using static Silk.NET.DirectX.D3D12_SHADER_VISIBILITY; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_PARAMETER1 +{ + public static void InitAsConstantBufferView( + [NativeTypeName("D3D12_ROOT_PARAMETER1 &")] ref D3D12_ROOT_PARAMETER1 rootParam, + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_CBV; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR1.Init( + ref rootParam.Anonymous.Descriptor, + shaderRegister, + registerSpace, + flags + ); + } + + public void InitAsConstantBufferView( + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsConstantBufferView(ref this, shaderRegister, registerSpace, flags, visibility); + } + + public static void InitAsConstants( + [NativeTypeName("D3D12_ROOT_PARAMETER1 &")] ref D3D12_ROOT_PARAMETER1 rootParam, + uint num32BitValues, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_CONSTANTS.Init( + ref rootParam.Anonymous.Constants, + num32BitValues, + shaderRegister, + registerSpace + ); + } + + public void InitAsConstants( + uint num32BitValues, + uint shaderRegister, + uint registerSpace = 0, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsConstants(ref this, num32BitValues, shaderRegister, registerSpace, visibility); + } + + public static void InitAsDescriptorTable( + [NativeTypeName("D3D12_ROOT_PARAMETER1 &")] ref D3D12_ROOT_PARAMETER1 rootParam, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR_TABLE1.Init( + ref rootParam.Anonymous.DescriptorTable, + numDescriptorRanges, + pDescriptorRanges + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void InitAsDescriptorTable( + [NativeTypeName("D3D12_ROOT_PARAMETER1 &")] ref D3D12_ROOT_PARAMETER1 rootParam, + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + Ref pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + fixed (D3D12_DESCRIPTOR_RANGE1* __dsl_pDescriptorRanges = pDescriptorRanges) + { + InitAsDescriptorTable( + ref rootParam, + numDescriptorRanges, + __dsl_pDescriptorRanges, + visibility + ); + } + } + + public void InitAsDescriptorTable( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsDescriptorTable(ref this, numDescriptorRanges, pDescriptorRanges, visibility); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void InitAsDescriptorTable( + uint numDescriptorRanges, + [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] + Ref pDescriptorRanges, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + fixed (D3D12_DESCRIPTOR_RANGE1* __dsl_pDescriptorRanges = pDescriptorRanges) + { + InitAsDescriptorTable(numDescriptorRanges, __dsl_pDescriptorRanges, visibility); + } + } + + public static void InitAsShaderResourceView( + [NativeTypeName("D3D12_ROOT_PARAMETER1 &")] ref D3D12_ROOT_PARAMETER1 rootParam, + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_SRV; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR1.Init( + ref rootParam.Anonymous.Descriptor, + shaderRegister, + registerSpace, + flags + ); + } + + public void InitAsShaderResourceView( + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsShaderResourceView(ref this, shaderRegister, registerSpace, flags, visibility); + } + + public static void InitAsUnorderedAccessView( + [NativeTypeName("D3D12_ROOT_PARAMETER1 &")] ref D3D12_ROOT_PARAMETER1 rootParam, + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + rootParam.ParameterType = D3D12_ROOT_PARAMETER_TYPE_UAV; + rootParam.ShaderVisibility = visibility; + D3D12_ROOT_DESCRIPTOR1.Init( + ref rootParam.Anonymous.Descriptor, + shaderRegister, + registerSpace, + flags + ); + } + + public void InitAsUnorderedAccessView( + uint shaderRegister, + uint registerSpace = 0, + D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, + D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL + ) + { + InitAsUnorderedAccessView(ref this, shaderRegister, registerSpace, flags, visibility); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_SIGNATURE_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_SIGNATURE_DESC.Manual.cs new file mode 100644 index 0000000000..18d2eb630f --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_ROOT_SIGNATURE_DESC.Manual.cs @@ -0,0 +1,188 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D12_ROOT_SIGNATURE_FLAGS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_ROOT_SIGNATURE_DESC +{ + public static ref readonly D3D12_ROOT_SIGNATURE_DESC DEFAULT + { + get + { + ReadOnlySpan data; + if (Environment.Is64BitProcess) + { + data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + else + { + data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D12_ROOT_SIGNATURE_DESC( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] D3D12_ROOT_PARAMETER* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + Init(numParameters, _pParameters, numStaticSamplers, _pStaticSamplers, flags); + } + + public void Init( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] D3D12_ROOT_PARAMETER* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + Init(ref this, numParameters, _pParameters, numStaticSamplers, _pStaticSamplers, flags); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void Init( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER* __dsl__pParameters = _pParameters) + { + Init( + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } + + public static void Init( + [NativeTypeName("D3D12_ROOT_SIGNATURE_DESC &")] ref D3D12_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] D3D12_ROOT_PARAMETER* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + desc.NumParameters = numParameters; + desc.pParameters = _pParameters; + desc.NumStaticSamplers = numStaticSamplers; + desc.pStaticSamplers = _pStaticSamplers; + desc.Flags = flags; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Init( + [NativeTypeName("D3D12_ROOT_SIGNATURE_DESC &")] ref D3D12_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER* __dsl__pParameters = _pParameters) + { + Init( + ref desc, + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_STATIC_SAMPLER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_STATIC_SAMPLER_DESC.Manual.cs new file mode 100644 index 0000000000..ea3add36fd --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_STATIC_SAMPLER_DESC.Manual.cs @@ -0,0 +1,112 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using static Silk.NET.DirectX.D3D12_COMPARISON_FUNC; +using static Silk.NET.DirectX.D3D12_FILTER; +using static Silk.NET.DirectX.D3D12_SHADER_VISIBILITY; +using static Silk.NET.DirectX.D3D12_STATIC_BORDER_COLOR; +using static Silk.NET.DirectX.D3D12_TEXTURE_ADDRESS_MODE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_STATIC_SAMPLER_DESC +{ + public D3D12_STATIC_SAMPLER_DESC( + uint shaderRegister, + D3D12_FILTER filter = D3D12_FILTER_ANISOTROPIC, + D3D12_TEXTURE_ADDRESS_MODE addressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + float mipLODBias = 0, + uint maxAnisotropy = 16, + D3D12_COMPARISON_FUNC comparisonFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL, + D3D12_STATIC_BORDER_COLOR borderColor = D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, + float minLOD = 0.0f, + float maxLOD = (3.402823466e+38f), + D3D12_SHADER_VISIBILITY shaderVisibility = D3D12_SHADER_VISIBILITY_ALL, + uint registerSpace = 0 + ) + { + Init( + shaderRegister, + filter, + addressU, + addressV, + addressW, + mipLODBias, + maxAnisotropy, + comparisonFunc, + borderColor, + minLOD, + maxLOD, + shaderVisibility, + registerSpace + ); + } + + public static void Init( + [NativeTypeName("D3D12_STATIC_SAMPLER_DESC &")] ref D3D12_STATIC_SAMPLER_DESC samplerDesc, + uint shaderRegister, + D3D12_FILTER filter = D3D12_FILTER_ANISOTROPIC, + D3D12_TEXTURE_ADDRESS_MODE addressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + float mipLODBias = 0, + uint maxAnisotropy = 16, + D3D12_COMPARISON_FUNC comparisonFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL, + D3D12_STATIC_BORDER_COLOR borderColor = D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, + float minLOD = 0.0f, + float maxLOD = (3.402823466e+38f), + D3D12_SHADER_VISIBILITY shaderVisibility = D3D12_SHADER_VISIBILITY_ALL, + uint registerSpace = 0 + ) + { + samplerDesc.ShaderRegister = shaderRegister; + samplerDesc.Filter = filter; + samplerDesc.AddressU = addressU; + samplerDesc.AddressV = addressV; + samplerDesc.AddressW = addressW; + samplerDesc.MipLODBias = mipLODBias; + samplerDesc.MaxAnisotropy = maxAnisotropy; + samplerDesc.ComparisonFunc = comparisonFunc; + samplerDesc.BorderColor = borderColor; + samplerDesc.MinLOD = minLOD; + samplerDesc.MaxLOD = maxLOD; + samplerDesc.ShaderVisibility = shaderVisibility; + samplerDesc.RegisterSpace = registerSpace; + } + + public void Init( + uint shaderRegister, + D3D12_FILTER filter = D3D12_FILTER_ANISOTROPIC, + D3D12_TEXTURE_ADDRESS_MODE addressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + float mipLODBias = 0, + uint maxAnisotropy = 16, + D3D12_COMPARISON_FUNC comparisonFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL, + D3D12_STATIC_BORDER_COLOR borderColor = D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, + float minLOD = 0.0f, + float maxLOD = (3.402823466e+38f), + D3D12_SHADER_VISIBILITY shaderVisibility = D3D12_SHADER_VISIBILITY_ALL, + uint registerSpace = 0 + ) + { + Init( + ref this, + shaderRegister, + filter, + addressU, + addressV, + addressW, + mipLODBias, + maxAnisotropy, + comparisonFunc, + borderColor, + minLOD, + maxLOD, + shaderVisibility, + registerSpace + ); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_STATIC_SAMPLER_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_STATIC_SAMPLER_DESC1.Manual.cs new file mode 100644 index 0000000000..ac09913ce9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_STATIC_SAMPLER_DESC1.Manual.cs @@ -0,0 +1,128 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Runtime.CompilerServices; +using static Silk.NET.DirectX.D3D12_COMPARISON_FUNC; +using static Silk.NET.DirectX.D3D12_FILTER; +using static Silk.NET.DirectX.D3D12_SAMPLER_FLAGS; +using static Silk.NET.DirectX.D3D12_SHADER_VISIBILITY; +using static Silk.NET.DirectX.D3D12_STATIC_BORDER_COLOR; +using static Silk.NET.DirectX.D3D12_TEXTURE_ADDRESS_MODE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D12_STATIC_SAMPLER_DESC1 +{ + public D3D12_STATIC_SAMPLER_DESC1( + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC &")] in D3D12_STATIC_SAMPLER_DESC o + ) + { + Unsafe.As(ref this) = o; + Flags = D3D12_SAMPLER_FLAG_NONE; + } + + public D3D12_STATIC_SAMPLER_DESC1( + uint shaderRegister, + D3D12_FILTER filter = D3D12_FILTER_ANISOTROPIC, + D3D12_TEXTURE_ADDRESS_MODE addressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + float mipLODBias = 0, + uint maxAnisotropy = 16, + D3D12_COMPARISON_FUNC comparisonFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL, + D3D12_STATIC_BORDER_COLOR borderColor = D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, + float minLOD = 0.0f, + float maxLOD = (3.402823466e+38f), + D3D12_SHADER_VISIBILITY shaderVisibility = D3D12_SHADER_VISIBILITY_ALL, + uint registerSpace = 0, + D3D12_SAMPLER_FLAGS flags = D3D12_SAMPLER_FLAG_NONE + ) + { + Init( + shaderRegister, + filter, + addressU, + addressV, + addressW, + mipLODBias, + maxAnisotropy, + comparisonFunc, + borderColor, + minLOD, + maxLOD, + shaderVisibility, + registerSpace, + flags + ); + } + + public static void Init( + [NativeTypeName("D3D12_STATIC_SAMPLER_DESC1 &")] ref D3D12_STATIC_SAMPLER_DESC1 samplerDesc, + uint shaderRegister, + D3D12_FILTER filter = D3D12_FILTER_ANISOTROPIC, + D3D12_TEXTURE_ADDRESS_MODE addressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + float mipLODBias = 0, + uint maxAnisotropy = 16, + D3D12_COMPARISON_FUNC comparisonFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL, + D3D12_STATIC_BORDER_COLOR borderColor = D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, + float minLOD = 0.0f, + float maxLOD = (3.402823466e+38f), + D3D12_SHADER_VISIBILITY shaderVisibility = D3D12_SHADER_VISIBILITY_ALL, + uint registerSpace = 0, + D3D12_SAMPLER_FLAGS flags = D3D12_SAMPLER_FLAG_NONE + ) + { + samplerDesc.ShaderRegister = shaderRegister; + samplerDesc.Filter = filter; + samplerDesc.AddressU = addressU; + samplerDesc.AddressV = addressV; + samplerDesc.AddressW = addressW; + samplerDesc.MipLODBias = mipLODBias; + samplerDesc.MaxAnisotropy = maxAnisotropy; + samplerDesc.ComparisonFunc = comparisonFunc; + samplerDesc.BorderColor = borderColor; + samplerDesc.MinLOD = minLOD; + samplerDesc.MaxLOD = maxLOD; + samplerDesc.ShaderVisibility = shaderVisibility; + samplerDesc.RegisterSpace = registerSpace; + samplerDesc.Flags = flags; + } + + public void Init( + uint shaderRegister, + D3D12_FILTER filter = D3D12_FILTER_ANISOTROPIC, + D3D12_TEXTURE_ADDRESS_MODE addressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + D3D12_TEXTURE_ADDRESS_MODE addressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP, + float mipLODBias = 0, + uint maxAnisotropy = 16, + D3D12_COMPARISON_FUNC comparisonFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL, + D3D12_STATIC_BORDER_COLOR borderColor = D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, + float minLOD = 0.0f, + float maxLOD = (3.402823466e+38f), + D3D12_SHADER_VISIBILITY shaderVisibility = D3D12_SHADER_VISIBILITY_ALL, + uint registerSpace = 0, + D3D12_SAMPLER_FLAGS flags = D3D12_SAMPLER_FLAG_NONE + ) + { + Init( + ref this, + shaderRegister, + filter, + addressU, + addressV, + addressW, + mipLODBias, + maxAnisotropy, + comparisonFunc, + borderColor, + minLOD, + maxLOD, + shaderVisibility, + registerSpace, + flags + ); + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.Manual.cs new file mode 100644 index 0000000000..dcb38abf1b --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.Manual.cs @@ -0,0 +1,373 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D3D_ROOT_SIGNATURE_VERSION; +using static Silk.NET.DirectX.D3D12_ROOT_SIGNATURE_FLAGS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +/// +[NativeTypeName( + "struct CD3DX12_VERSIONED_ROOT_SIGNATURE_DESC : D3D12_VERSIONED_ROOT_SIGNATURE_DESC" +)] +[NativeInheritance("D3D12_VERSIONED_ROOT_SIGNATURE_DESC")] +public unsafe partial struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC +{ + public static ref readonly D3D12_VERSIONED_ROOT_SIGNATURE_DESC DEFAULT + { + get + { + ReadOnlySpan data; + if (Environment.Is64BitProcess) + { + data = + [ + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + else + { + data = + [ + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D12_VERSIONED_ROOT_SIGNATURE_DESC( + [NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC &")] in D3D12_ROOT_SIGNATURE_DESC o + ) + { + Version = D3D_ROOT_SIGNATURE_VERSION_1_0; + Anonymous.Desc_1_0 = o; + } + + public D3D12_VERSIONED_ROOT_SIGNATURE_DESC( + [NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC1 &")] in D3D12_ROOT_SIGNATURE_DESC1 o + ) + { + Version = D3D_ROOT_SIGNATURE_VERSION_1_1; + Anonymous.Desc_1_1 = o; + } + + public D3D12_VERSIONED_ROOT_SIGNATURE_DESC( + [NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC2 &")] in D3D12_ROOT_SIGNATURE_DESC2 o + ) + { + Version = D3D_ROOT_SIGNATURE_VERSION_1_2; + Anonymous.Desc_1_2 = o; + } + + public D3D12_VERSIONED_ROOT_SIGNATURE_DESC( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] D3D12_ROOT_PARAMETER* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + Init_1_0(numParameters, _pParameters, numStaticSamplers, _pStaticSamplers, flags); + } + + public D3D12_VERSIONED_ROOT_SIGNATURE_DESC( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] D3D12_ROOT_PARAMETER1* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + Init_1_1(numParameters, _pParameters, numStaticSamplers, _pStaticSamplers, flags); + } + + public void Init_1_0( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] D3D12_ROOT_PARAMETER* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + Init_1_0(ref this, numParameters, _pParameters, numStaticSamplers, _pStaticSamplers, flags); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void Init_1_0( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER* __dsl__pParameters = _pParameters) + { + Init_1_0( + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } + + public static void Init_1_0( + [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC &")] + ref D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] D3D12_ROOT_PARAMETER* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_0; + desc.Anonymous.Desc_1_0.NumParameters = numParameters; + desc.Anonymous.Desc_1_0.pParameters = _pParameters; + desc.Anonymous.Desc_1_0.NumStaticSamplers = numStaticSamplers; + desc.Anonymous.Desc_1_0.pStaticSamplers = _pStaticSamplers; + desc.Anonymous.Desc_1_0.Flags = flags; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Init_1_0( + [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC &")] + ref D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER* __dsl__pParameters = _pParameters) + { + Init_1_0( + ref desc, + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } + + public void Init_1_1( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] D3D12_ROOT_PARAMETER1* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + Init_1_1(ref this, numParameters, _pParameters, numStaticSamplers, _pStaticSamplers, flags); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public void Init_1_1( + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER1* __dsl__pParameters = _pParameters) + { + Init_1_1( + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } + + public static void Init_1_1( + [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC &")] + ref D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] D3D12_ROOT_PARAMETER1* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_1; + desc.Anonymous.Desc_1_1.NumParameters = numParameters; + desc.Anonymous.Desc_1_1.pParameters = _pParameters; + desc.Anonymous.Desc_1_1.NumStaticSamplers = numStaticSamplers; + desc.Anonymous.Desc_1_1.pStaticSamplers = _pStaticSamplers; + desc.Anonymous.Desc_1_1.Flags = flags; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Init_1_1( + [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC &")] + ref D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER1* __dsl__pParameters = _pParameters) + { + Init_1_1( + ref desc, + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } + + public static void Init_1_2( + [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC &")] + ref D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] D3D12_ROOT_PARAMETER1* _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC1 *")] + D3D12_STATIC_SAMPLER_DESC1* _pStaticSamplers = null, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_2; + desc.Anonymous.Desc_1_2.NumParameters = numParameters; + desc.Anonymous.Desc_1_2.pParameters = _pParameters; + desc.Anonymous.Desc_1_2.NumStaticSamplers = numStaticSamplers; + desc.Anonymous.Desc_1_2.pStaticSamplers = _pStaticSamplers; + desc.Anonymous.Desc_1_2.Flags = flags; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Init_1_2( + [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC &")] + ref D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc, + uint numParameters, + [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] Ref _pParameters, + uint numStaticSamplers = 0, + [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC1 *")] + Ref _pStaticSamplers = default, + D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE + ) + { + fixed (D3D12_STATIC_SAMPLER_DESC1* __dsl__pStaticSamplers = _pStaticSamplers) + fixed (D3D12_ROOT_PARAMETER1* __dsl__pParameters = _pParameters) + { + Init_1_2( + ref desc, + numParameters, + __dsl__pParameters, + numStaticSamplers, + __dsl__pStaticSamplers, + flags + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/DirectX.Manual.cs new file mode 100644 index 0000000000..fb6b6e8c5a --- /dev/null +++ b/sources/Win32/Win32/DirectX/d3dx12/d3dx12_root_signature/DirectX.Manual.cs @@ -0,0 +1,398 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dx12_root_signature.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D_ROOT_SIGNATURE_VERSION; +using static Silk.NET.DirectX.D3D12_ROOT_PARAMETER_TYPE; +using static Silk.NET.DirectX.D3D12_SAMPLER_FLAGS; +using static Silk.NET.Win32.E; +using static Silk.NET.Win32.S; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + /// + + public static HRESULT D3DX12SerializeVersionedRootSignature( + [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] + D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignatureDesc, + D3D_ROOT_SIGNATURE_VERSION MaxVersion, + ID3DBlob* ppBlob, + ID3DBlob* ppErrorBlob + ) + { + if (ppErrorBlob != null) + { + *ppErrorBlob = default; + } + switch (MaxVersion) + { + case D3D_ROOT_SIGNATURE_VERSION_1_0: + { + switch (pRootSignatureDesc->Version) + { + case D3D_ROOT_SIGNATURE_VERSION_1_0: + { + return D3D12SerializeRootSignature( + &pRootSignatureDesc->Anonymous.Desc_1_0, + D3D_ROOT_SIGNATURE_VERSION_1, + ppBlob, + ppErrorBlob + ); + } + case D3D_ROOT_SIGNATURE_VERSION_1_1: + case D3D_ROOT_SIGNATURE_VERSION_1_2: + { + HRESULT hr = S_OK; + D3D12_ROOT_SIGNATURE_DESC1* desc_1_1 = &pRootSignatureDesc + ->Anonymous + .Desc_1_1; + nuint ParametersSize = + (uint)sizeof(D3D12_ROOT_PARAMETER) * (nuint)desc_1_1->NumParameters; + void* pParameters = + (ParametersSize > 0) + ? HeapAllocRaw(GetProcessHeap(), 0, ParametersSize) + : null; + if ((ParametersSize > 0) && (pParameters == null)) + { + hr = E_OUTOFMEMORY; + } + D3D12_ROOT_PARAMETER* pParameters_1_0 = (D3D12_ROOT_PARAMETER*)( + pParameters + ); + if (SUCCEEDED(hr)) + { + for (uint n = 0; n < desc_1_1->NumParameters; n++) + { + Debug.Assert( + ParametersSize + == (uint)sizeof(D3D12_ROOT_PARAMETER) + * (nuint)desc_1_1->NumParameters + ); + pParameters_1_0[n].ParameterType = desc_1_1 + ->pParameters[n] + .ParameterType; + pParameters_1_0[n].ShaderVisibility = desc_1_1 + ->pParameters[n] + .ShaderVisibility; + switch (desc_1_1->pParameters[n].ParameterType) + { + case D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS: + { + pParameters_1_0[n].Anonymous.Constants.Num32BitValues = + desc_1_1 + ->pParameters[n] + .Anonymous + .Constants + .Num32BitValues; + pParameters_1_0[n].Anonymous.Constants.RegisterSpace = + desc_1_1 + ->pParameters[n] + .Anonymous + .Constants + .RegisterSpace; + pParameters_1_0[n].Anonymous.Constants.ShaderRegister = + desc_1_1 + ->pParameters[n] + .Anonymous + .Constants + .ShaderRegister; + break; + } + case D3D12_ROOT_PARAMETER_TYPE_CBV: + case D3D12_ROOT_PARAMETER_TYPE_SRV: + case D3D12_ROOT_PARAMETER_TYPE_UAV: + { + pParameters_1_0[n].Anonymous.Descriptor.RegisterSpace = + desc_1_1 + ->pParameters[n] + .Anonymous + .Descriptor + .RegisterSpace; + pParameters_1_0[n].Anonymous.Descriptor.ShaderRegister = + desc_1_1 + ->pParameters[n] + .Anonymous + .Descriptor + .ShaderRegister; + break; + } + case D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE: + { + D3D12_ROOT_DESCRIPTOR_TABLE1* table_1_1 = &desc_1_1 + ->pParameters[n] + .Anonymous + .DescriptorTable; + nuint DescriptorRangesSize = + 20 * table_1_1->NumDescriptorRanges; + void* pDescriptorRanges = + ((DescriptorRangesSize > 0) && SUCCEEDED(hr)) + ? HeapAllocRaw( + GetProcessHeap(), + 0, + DescriptorRangesSize + ) + : null; + if ( + unchecked(DescriptorRangesSize > 0) + && pDescriptorRanges == null + ) + { + hr = E_OUTOFMEMORY; + } + D3D12_DESCRIPTOR_RANGE* pDescriptorRanges_1_0 = + (D3D12_DESCRIPTOR_RANGE*)(pDescriptorRanges); + if (SUCCEEDED(hr)) + { + for ( + uint x = 0; + x < table_1_1->NumDescriptorRanges; + x++ + ) + { + Debug.Assert( + DescriptorRangesSize + == ( + (uint)sizeof(D3D12_DESCRIPTOR_RANGE) + * (nuint)table_1_1->NumDescriptorRanges + ) + ); + pDescriptorRanges_1_0[x].BaseShaderRegister = + table_1_1 + ->pDescriptorRanges[x] + .BaseShaderRegister; + pDescriptorRanges_1_0[x].NumDescriptors = table_1_1 + ->pDescriptorRanges[x] + .NumDescriptors; + pDescriptorRanges_1_0[ + x + ].OffsetInDescriptorsFromTableStart = table_1_1 + ->pDescriptorRanges[x] + .OffsetInDescriptorsFromTableStart; + pDescriptorRanges_1_0[x].RangeType = table_1_1 + ->pDescriptorRanges[x] + .RangeType; + pDescriptorRanges_1_0[x].RegisterSpace = table_1_1 + ->pDescriptorRanges[x] + .RegisterSpace; + } + } + D3D12_ROOT_DESCRIPTOR_TABLE* table_1_0 = &pParameters_1_0[n] + .Anonymous + .DescriptorTable; + table_1_0->NumDescriptorRanges = + table_1_1->NumDescriptorRanges; + table_1_0->pDescriptorRanges = pDescriptorRanges_1_0; + break; + } + } + } + } + D3D12_STATIC_SAMPLER_DESC* pStaticSamplers = null; + if ( + (desc_1_1->NumStaticSamplers > 0) + && (pRootSignatureDesc->Version == D3D_ROOT_SIGNATURE_VERSION_1_2) + ) + { + nuint SamplersSize = 52 * desc_1_1->NumStaticSamplers; + pStaticSamplers = (D3D12_STATIC_SAMPLER_DESC*)( + HeapAllocRaw(GetProcessHeap(), 0, SamplersSize) + ); + if (pStaticSamplers == null) + { + hr = E_OUTOFMEMORY; + } + else + { + D3D12_ROOT_SIGNATURE_DESC2* desc_1_2 = &pRootSignatureDesc + ->Anonymous + .Desc_1_2; + for (uint n = 0; n < desc_1_1->NumStaticSamplers; ++n) + { + if ( + ( + desc_1_2->pStaticSamplers[n].Flags + & ~D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR + ) != 0 + ) + { + hr = E_INVALIDARG; + break; + } + NativeMemory.Copy( + desc_1_2->pStaticSamplers + n, + pStaticSamplers + n, + (uint)(sizeof(D3D12_STATIC_SAMPLER_DESC)) + ); + } + } + } + if (SUCCEEDED(hr)) + { + D3D12_ROOT_SIGNATURE_DESC desc_1_0 = new D3D12_ROOT_SIGNATURE_DESC( + desc_1_1->NumParameters, + pParameters_1_0, + desc_1_1->NumStaticSamplers, + (pStaticSamplers == null) + ? desc_1_1->pStaticSamplers + : pStaticSamplers, + desc_1_1->Flags + ); + hr = D3D12SerializeRootSignature( + &desc_1_0, + D3D_ROOT_SIGNATURE_VERSION_1, + ppBlob, + ppErrorBlob + ); + } + if (pParameters != null) + { + for (uint n = 0; n < desc_1_1->NumParameters; n++) + { + if ( + desc_1_1->pParameters[n].ParameterType + == D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE + ) + { + D3D12_DESCRIPTOR_RANGE* pDescriptorRanges_1_0 = pParameters_1_0[ + n + ] + .Anonymous + .DescriptorTable + .pDescriptorRanges; + _ = HeapFree( + GetProcessHeap(), + 0, + (void*)(pDescriptorRanges_1_0) + ); + } + } + _ = HeapFree(GetProcessHeap(), 0, pParameters); + } + if ((pStaticSamplers) != null) + { + _ = HeapFree(GetProcessHeap(), 0, pStaticSamplers); + } + return hr; + } + } + break; + } + case D3D_ROOT_SIGNATURE_VERSION_1_1: + { + switch (pRootSignatureDesc->Version) + { + case D3D_ROOT_SIGNATURE_VERSION_1_0: + case D3D_ROOT_SIGNATURE_VERSION_1_1: + { + return D3D12SerializeVersionedRootSignature( + pRootSignatureDesc, + ppBlob, + ppErrorBlob + ); + } + case D3D_ROOT_SIGNATURE_VERSION_1_2: + { + HRESULT hr = S_OK; + D3D12_ROOT_SIGNATURE_DESC1* desc_1_1 = &pRootSignatureDesc + ->Anonymous + .Desc_1_1; + D3D12_STATIC_SAMPLER_DESC* pStaticSamplers = null; + if (desc_1_1->NumStaticSamplers > 0) + { + nuint SamplersSize = 52 * desc_1_1->NumStaticSamplers; + pStaticSamplers = (D3D12_STATIC_SAMPLER_DESC*)( + HeapAllocRaw(GetProcessHeap(), 0, SamplersSize) + ); + if (pStaticSamplers == null) + { + hr = E_OUTOFMEMORY; + } + else + { + D3D12_ROOT_SIGNATURE_DESC2* desc_1_2 = &pRootSignatureDesc + ->Anonymous + .Desc_1_2; + for (uint n = 0; n < desc_1_1->NumStaticSamplers; ++n) + { + if ( + ( + desc_1_2->pStaticSamplers[n].Flags + & ~D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR + ) != 0 + ) + { + hr = E_INVALIDARG; + break; + } + NativeMemory.Copy( + desc_1_2->pStaticSamplers + n, + pStaticSamplers + n, + (uint)(sizeof(D3D12_STATIC_SAMPLER_DESC)) + ); + } + } + } + if (SUCCEEDED(hr)) + { + D3D12_VERSIONED_ROOT_SIGNATURE_DESC desc = + new D3D12_VERSIONED_ROOT_SIGNATURE_DESC( + desc_1_1->NumParameters, + desc_1_1->pParameters, + desc_1_1->NumStaticSamplers, + pStaticSamplers == null + ? desc_1_1->pStaticSamplers + : pStaticSamplers, + desc_1_1->Flags + ); + hr = D3D12SerializeVersionedRootSignature(&desc, ppBlob, ppErrorBlob); + } + if ((pStaticSamplers) != null) + { + _ = HeapFree(GetProcessHeap(), 0, pStaticSamplers); + } + return hr; + } + } + break; + } + case D3D_ROOT_SIGNATURE_VERSION_1_2: + { + return D3D12SerializeVersionedRootSignature( + pRootSignatureDesc, + ppBlob, + ppErrorBlob + ); + } + } + return E_INVALIDARG; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3DX12SerializeVersionedRootSignature( + [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] + Ref pRootSignatureDesc, + D3D_ROOT_SIGNATURE_VERSION MaxVersion, + Ref ppBlob, + Ref ppErrorBlob + ) + { + fixed (ID3DBlob* __dsl_ppErrorBlob = ppErrorBlob) + fixed (ID3DBlob* __dsl_ppBlob = ppBlob) + fixed (D3D12_VERSIONED_ROOT_SIGNATURE_DESC* __dsl_pRootSignatureDesc = pRootSignatureDesc) + { + return (HRESULT)D3DX12SerializeVersionedRootSignature( + __dsl_pRootSignatureDesc, + MaxVersion, + __dsl_ppBlob, + __dsl_ppErrorBlob + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/CLSID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/CLSID.gen.cs deleted file mode 100644 index 625055276c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/CLSID.gen.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class CLSID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid CLSID_D3D12Debug - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xEB, 0x2A, 0x35, 0xF2, 0x84, 0xDD, 0xFE, 0x49, 0xB9, 0x7B, 0xA9, 0xDC, 0xFD, 0xCC, 0x1B, 0x4F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid CLSID_D3D12Tools - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xB1, 0x16, 0x82, 0xE3, 0x8C, 0x3C, 0x33, 0x48, 0xAA, 0x09, 0x0A, 0x06, 0xB6, 0x5D, 0x96, 0xC8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid CLSID_D3D12DeviceRemovedExtendedData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xC4, 0xBB, 0x75, 0x4A, 0xF4, 0x9F, 0xD8, 0x4A, 0x9F, 0x18, 0xAB, 0xAE, 0x84, 0xDC, 0x5F, 0xF2]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid CLSID_D3D12SDKConfiguration - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xCA, 0x6A, 0xDA, 0x7C, 0x3E, 0xA0, 0xC8, 0x49, 0x94, 0x58, 0x03, 0x34, 0xD2, 0x0E, 0x07, 0xCE]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid CLSID_D3D12DeviceFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xBF, 0x63, 0x48, 0x11, 0x86, 0xC3, 0xEE, 0x4A, 0xB3, 0x9D, 0x8F, 0x0B, 0xBB, 0x06, 0x29, 0x55]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12.gen.cs deleted file mode 100644 index b96c53ca68..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12.gen.cs +++ /dev/null @@ -1,892 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class D3D12 -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x4E, 0x08, 0xB0, 0x62, 0x0E, 0xC7, 0xAA, 0x4D, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("#define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] - public const int D3D12_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); - [NativeTypeName("#define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] - public const uint D3D12_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); - [NativeTypeName("#define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] - public const int D3D12_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); - [NativeTypeName("#define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] - public const uint D3D12_APPEND_ALIGNED_ELEMENT = (0xffffffff); - [NativeTypeName("#define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] - public const int D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); - [NativeTypeName("#define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] - public const int D3D12_CLIP_OR_CULL_DISTANCE_COUNT = (8); - [NativeTypeName("#define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] - public const int D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = (16); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] - public const int D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] - public const int D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); - [NativeTypeName("#define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] - public const int D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); - [NativeTypeName("#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] - public const int D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); - [NativeTypeName("#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] - public const int D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); - [NativeTypeName("#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] - public const int D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); - [NativeTypeName("#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] - public const int D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); - [NativeTypeName("#define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 )")] - public const int D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT = (256); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )")] - public const int D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (256); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )")] - public const int D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = (64); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )")] - public const int D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (240); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )")] - public const int D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = (68); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )")] - public const int D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (224); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )")] - public const int D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = (72); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )")] - public const int D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (208); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )")] - public const int D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = (76); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )")] - public const int D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (192); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )")] - public const int D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = (84); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )")] - public const int D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (176); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )")] - public const int D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = (92); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )")] - public const int D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (160); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )")] - public const int D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = (100); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )")] - public const int D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (144); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )")] - public const int D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = (112); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )")] - public const int D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (128); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )")] - public const int D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = (128); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )")] - public const int D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (112); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )")] - public const int D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = (144); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )")] - public const int D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (96); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )")] - public const int D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = (168); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )")] - public const int D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (80); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )")] - public const int D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = (204); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )")] - public const int D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (64); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )")] - public const int D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = (256); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )")] - public const int D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (48); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )")] - public const int D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = (340); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )")] - public const int D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (32); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )")] - public const int D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = (512); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )")] - public const int D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (16); - [NativeTypeName("#define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )")] - public const int D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = (768); - [NativeTypeName("#define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )")] - public const int D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = (1); - [NativeTypeName("#define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )")] - public const int D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = (256); - [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )")] - public const int D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = (768); - [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 )")] - public const int D3D12_CS_4_X_THREAD_GROUP_MAX_X = (768); - [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )")] - public const int D3D12_CS_4_X_THREAD_GROUP_MAX_Y = (768); - [NativeTypeName("#define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_4_X_UAV_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )")] - public const int D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = (65535); - [NativeTypeName("#define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 )")] - public const int D3D12_CS_TGSM_REGISTER_COUNT = (8192); - [NativeTypeName("#define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_CS_TGSM_REGISTER_READS_PER_INST = (1); - [NativeTypeName("#define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS = (3); - [NativeTypeName("#define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADGROUPID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS = (3); - [NativeTypeName("#define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADIDINGROUP_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_CS_THREADID_REGISTER_COMPONENTS = (3); - [NativeTypeName("#define D3D12_CS_THREADID_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = (1024); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_X = (1024); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_Y = (1024); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_Z = (64); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_X ( 1 )")] - public const int D3D12_CS_THREAD_GROUP_MIN_X = (1); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 )")] - public const int D3D12_CS_THREAD_GROUP_MIN_Y = (1); - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 )")] - public const int D3D12_CS_THREAD_GROUP_MIN_Z = (1); - [NativeTypeName("#define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )")] - public const int D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = (16384); - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_RED = (1.0f); - [NativeTypeName("#define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D12_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); - [NativeTypeName("#define D3D12_DEFAULT_DEPTH_BIAS ( 0 )")] - public const int D3D12_DEFAULT_DEPTH_BIAS = (0); - [NativeTypeName("#define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] - public const float D3D12_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); - [NativeTypeName("#define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 )")] - public const int D3D12_DEFAULT_MAX_ANISOTROPY = (16); - [NativeTypeName("#define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] - public const float D3D12_DEFAULT_MIP_LOD_BIAS = (0.0f); - [NativeTypeName("#define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 )")] - public const int D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = (4194304); - [NativeTypeName("#define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] - public const int D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); - [NativeTypeName("#define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )")] - public const int D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT = (65536); - [NativeTypeName("#define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] - public const uint D3D12_DEFAULT_SAMPLE_MASK = (0xffffffff); - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_ENDX ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_ENDX = (0); - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_ENDY ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_ENDY = (0); - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_STARTX ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_STARTX = (0); - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_STARTY ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_STARTY = (0); - [NativeTypeName("#define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] - public const float D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); - [NativeTypeName("#define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff )")] - public const int D3D12_DEFAULT_STENCIL_READ_MASK = (0xff); - [NativeTypeName("#define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 )")] - public const int D3D12_DEFAULT_STENCIL_REFERENCE = (0); - [NativeTypeName("#define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] - public const int D3D12_DEFAULT_STENCIL_WRITE_MASK = (0xff); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_HEIGHT = (0); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] - public const float D3D12_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] - public const float D3D12_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_TOPLEFTX = (0); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_TOPLEFTY = (0); - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_WIDTH = (0); - [NativeTypeName("#define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff )")] - public const uint D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND = (0xffffffff); - [NativeTypeName("#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 )")] - public const uint D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END = (0xfffffff7); - [NativeTypeName("#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )")] - public const uint D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff0); - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] - public const int D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = (3); - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_DS_OUTPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_DS_OUTPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] - public const double D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); - [NativeTypeName("#define D3D12_FLOAT32_MAX ( 3.402823466e+38f )")] - public const float D3D12_FLOAT32_MAX = (3.402823466e+38f); - [NativeTypeName("#define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] - public const float D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] - public const float D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] - public const float D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] - public const float D3D12_FLOAT_TO_SRGB_OFFSET = (0.055f); - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] - public const float D3D12_FLOAT_TO_SRGB_SCALE_1 = (12.92f); - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] - public const float D3D12_FLOAT_TO_SRGB_SCALE_2 = (1.055f); - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] - public const float D3D12_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); - [NativeTypeName("#define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] - public const float D3D12_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); - [NativeTypeName("#define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] - public const float D3D12_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); - [NativeTypeName("#define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] - public const float D3D12_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); - [NativeTypeName("#define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] - public const float D3D12_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS = (1); - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_GS_INPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_GS_INPUT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_GS_INPUT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 )")] - public const int D3D12_GS_INPUT_REGISTER_VERTICES = (32); - [NativeTypeName("#define D3D12_GS_MAX_INSTANCE_COUNT ( 32 )")] - public const int D3D12_GS_MAX_INSTANCE_COUNT = (32); - [NativeTypeName("#define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )")] - public const int D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = (1024); - [NativeTypeName("#define D3D12_GS_OUTPUT_ELEMENTS ( 32 )")] - public const int D3D12_GS_OUTPUT_ELEMENTS = (32); - [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_GS_OUTPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_GS_OUTPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] - public const uint D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] - public const uint D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); - [NativeTypeName("#define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )")] - public const float D3D12_HS_MAXTESSFACTOR_LOWER_BOUND = (1.0f); - [NativeTypeName("#define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )")] - public const float D3D12_HS_MAXTESSFACTOR_UPPER_BOUND = (64.0f); - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = (128); - [NativeTypeName("#define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); - [NativeTypeName("#define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] - public const int D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); - [NativeTypeName("#define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); - [NativeTypeName("#define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] - public const int D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); - [NativeTypeName("#define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] - public const int D3D12_IA_INSTANCE_ID_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] - public const int D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )")] - public const int D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT = (32); - [NativeTypeName("#define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] - public const int D3D12_IA_PRIMITIVE_ID_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 )")] - public const int D3D12_IA_VERTEX_ID_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] - public const int D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); - [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] - public const int D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); - [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] - public const int D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); - [NativeTypeName("#define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] - public const uint D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); - [NativeTypeName("#define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] - public const uint D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); - [NativeTypeName("#define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )")] - public const uint D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = (0xffffffff); - [NativeTypeName("#define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )")] - public const uint D3D12_KEEP_UNORDERED_ACCESS_VIEWS = (0xffffffff); - [NativeTypeName("#define D3D12_LINEAR_GAMMA ( 1.0f )")] - public const float D3D12_LINEAR_GAMMA = (1.0f); - [NativeTypeName("#define D3D12_MAJOR_VERSION ( 12 )")] - public const int D3D12_MAJOR_VERSION = (12); - [NativeTypeName("#define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] - public const float D3D12_MAX_BORDER_COLOR_COMPONENT = (1.0f); - [NativeTypeName("#define D3D12_MAX_DEPTH ( 1.0f )")] - public const float D3D12_MAX_DEPTH = (1.0f); - [NativeTypeName("#define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 )")] - public const int D3D12_MAX_LIVE_STATIC_SAMPLERS = (2032); - [NativeTypeName("#define D3D12_MAX_MAXANISOTROPY ( 16 )")] - public const int D3D12_MAX_MAXANISOTROPY = (16); - [NativeTypeName("#define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] - public const int D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); - [NativeTypeName("#define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )")] - public const float D3D12_MAX_POSITION_VALUE = (3.402823466e+34f); - [NativeTypeName("#define D3D12_MAX_ROOT_COST ( 64 )")] - public const int D3D12_MAX_ROOT_COST = (64); - [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 )")] - public const int D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 = (1000000); - [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 )")] - public const int D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 = (1000000); - [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 )")] - public const int D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE = (2048); - [NativeTypeName("#define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] - public const int D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); - [NativeTypeName("#define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 )")] - public const int D3D12_MAX_VIEW_INSTANCE_COUNT = (4); - [NativeTypeName("#define D3D12_MINOR_VERSION ( 0 )")] - public const int D3D12_MINOR_VERSION = (0); - [NativeTypeName("#define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D12_MIN_BORDER_COLOR_COMPONENT = (0.0f); - [NativeTypeName("#define D3D12_MIN_DEPTH ( 0.0f )")] - public const float D3D12_MIN_DEPTH = (0.0f); - [NativeTypeName("#define D3D12_MIN_MAXANISOTROPY ( 0 )")] - public const int D3D12_MIN_MAXANISOTROPY = (0); - [NativeTypeName("#define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )")] - public const float D3D12_MIP_LOD_BIAS_MAX = (15.99f); - [NativeTypeName("#define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )")] - public const float D3D12_MIP_LOD_BIAS_MIN = (-16.0f); - [NativeTypeName("#define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT = (8); - [NativeTypeName("#define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] - public const int D3D12_MIP_LOD_RANGE_BIT_COUNT = (8); - [NativeTypeName("#define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] - public const float D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); - [NativeTypeName("#define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] - public const int D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); - [NativeTypeName("#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )")] - public const uint D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END = (0xffffffff); - [NativeTypeName("#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 )")] - public const uint D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff8); - [NativeTypeName("#define D3D12_PACKED_TILE ( 0xffffffff )")] - public const uint D3D12_PACKED_TILE = (0xffffffff); - [NativeTypeName("#define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] - public const int D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); - [NativeTypeName("#define D3D12_PREVIEW_SDK_VERSION ( 706 )")] - public const int D3D12_PREVIEW_SDK_VERSION = (706); - [NativeTypeName("#define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] - public const int D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (16); - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_PS_CS_UAV_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 )")] - public const int D3D12_PS_CS_UAV_REGISTER_COUNT = (8); - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_PS_CS_UAV_REGISTER_READS_PER_INST = (1); - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_PS_CS_UAV_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] - public const uint D3D12_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); - [NativeTypeName("#define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 )")] - public const int D3D12_PS_FRONTFACING_FALSE_VALUE = (0); - [NativeTypeName("#define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] - public const uint D3D12_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_PS_INPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_PS_INPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_PS_INPUT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_PS_INPUT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] - public const float D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); - [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] - public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); - [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] - public const int D3D12_PS_OUTPUT_MASK_REGISTER_COUNT = (1); - [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_PS_OUTPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 )")] - public const int D3D12_PS_OUTPUT_REGISTER_COUNT = (8); - [NativeTypeName("#define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] - public const float D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); - [NativeTypeName("#define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT = (16); - [NativeTypeName("#define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 )")] - public const int D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT = (8); - [NativeTypeName("#define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 )")] - public const int D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT = (256); - [NativeTypeName("#define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT = (16); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 )")] - public const int D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES = (32); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 )")] - public const int D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH = (31); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )")] - public const int D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = (16777216); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )")] - public const int D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE = (16777216); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 )")] - public const int D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = (536870912); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 )")] - public const int D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS = (1073741824); - [NativeTypeName("#define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 )")] - public const int D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE = (4096); - [NativeTypeName("#define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 )")] - public const int D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT = (32); - [NativeTypeName("#define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 )")] - public const int D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT = (64); - [NativeTypeName("#define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT = (16); - [NativeTypeName("#define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = (4096); - [NativeTypeName("#define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] - public const int D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); - [NativeTypeName("#define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - [NativeTypeName("#define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = (4096); - [NativeTypeName("#define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); - [NativeTypeName("#define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); - [NativeTypeName("#define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )")] - public const int D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (16384); - [NativeTypeName("#define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] - public const int D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); - [NativeTypeName("#define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - [NativeTypeName("#define D3D12_REQ_MAXANISOTROPY ( 16 )")] - public const int D3D12_REQ_MAXANISOTROPY = (16); - [NativeTypeName("#define D3D12_REQ_MIP_LEVELS ( 15 )")] - public const int D3D12_REQ_MIP_LEVELS = (15); - [NativeTypeName("#define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] - public const int D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); - [NativeTypeName("#define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = (4096); - [NativeTypeName("#define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )")] - public const int D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (16384); - [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )")] - public const int D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = (128); - [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )")] - public const float D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM = (0.25f); - [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )")] - public const int D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = (2048); - [NativeTypeName("#define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )")] - public const int D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = (20); - [NativeTypeName("#define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = (4096); - [NativeTypeName("#define D3D12_REQ_SUBRESOURCES ( 30720 )")] - public const int D3D12_REQ_SUBRESOURCES = (30720); - [NativeTypeName("#define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )")] - public const int D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (2048); - [NativeTypeName("#define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 )")] - public const int D3D12_REQ_TEXTURE1D_U_DIMENSION = (16384); - [NativeTypeName("#define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )")] - public const int D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (2048); - [NativeTypeName("#define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )")] - public const int D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION = (16384); - [NativeTypeName("#define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] - public const int D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); - [NativeTypeName("#define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 )")] - public const int D3D12_REQ_TEXTURECUBE_DIMENSION = (16384); - [NativeTypeName("#define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] - public const int D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); - [NativeTypeName("#define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff )")] - public const uint D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES = (0xffffffff); - [NativeTypeName("#define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 )")] - public const int D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT = (2); - [NativeTypeName("#define D3D12_SDK_VERSION ( 606 )")] - public const int D3D12_SDK_VERSION = (606); - [NativeTypeName("#define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 )")] - public const int D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES = (32); - [NativeTypeName("#define D3D12_SHADER_MAJOR_VERSION ( 5 )")] - public const int D3D12_SHADER_MAJOR_VERSION = (5); - [NativeTypeName("#define D3D12_SHADER_MAX_INSTANCES ( 65535 )")] - public const int D3D12_SHADER_MAX_INSTANCES = (65535); - [NativeTypeName("#define D3D12_SHADER_MAX_INTERFACES ( 253 )")] - public const int D3D12_SHADER_MAX_INTERFACES = (253); - [NativeTypeName("#define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )")] - public const int D3D12_SHADER_MAX_INTERFACE_CALL_SITES = (4096); - [NativeTypeName("#define D3D12_SHADER_MAX_TYPES ( 65535 )")] - public const int D3D12_SHADER_MAX_TYPES = (65535); - [NativeTypeName("#define D3D12_SHADER_MINOR_VERSION ( 1 )")] - public const int D3D12_SHADER_MINOR_VERSION = (1); - [NativeTypeName("#define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] - public const int D3D12_SHIFT_INSTRUCTION_PAD_VALUE = (0); - [NativeTypeName("#define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] - public const int D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); - [NativeTypeName("#define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] - public const int D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); - [NativeTypeName("#define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )")] - public const int D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = (65536); - [NativeTypeName("#define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 )")] - public const int D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT = (4096); - [NativeTypeName("#define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] - public const int D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); - [NativeTypeName("#define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )")] - public const int D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (512); - [NativeTypeName("#define D3D12_SO_BUFFER_SLOT_COUNT ( 4 )")] - public const int D3D12_SO_BUFFER_SLOT_COUNT = (4); - [NativeTypeName("#define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] - public const uint D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); - [NativeTypeName("#define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff )")] - public const uint D3D12_SO_NO_RASTERIZED_STREAM = (0xffffffff); - [NativeTypeName("#define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 )")] - public const int D3D12_SO_OUTPUT_COMPONENT_COUNT = (128); - [NativeTypeName("#define D3D12_SO_STREAM_COUNT ( 4 )")] - public const int D3D12_SO_STREAM_COUNT = (4); - [NativeTypeName("#define D3D12_SPEC_DATE_DAY ( 14 )")] - public const int D3D12_SPEC_DATE_DAY = (14); - [NativeTypeName("#define D3D12_SPEC_DATE_MONTH ( 11 )")] - public const int D3D12_SPEC_DATE_MONTH = (11); - [NativeTypeName("#define D3D12_SPEC_DATE_YEAR ( 2014 )")] - public const int D3D12_SPEC_DATE_YEAR = (2014); - [NativeTypeName("#define D3D12_SPEC_VERSION ( 1.16 )")] - public const double D3D12_SPEC_VERSION = (1.16); - [NativeTypeName("#define D3D12_SRGB_GAMMA ( 2.2f )")] - public const float D3D12_SRGB_GAMMA = (2.2f); - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] - public const float D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] - public const float D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] - public const float D3D12_SRGB_TO_FLOAT_EXPONENT = (2.4f); - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] - public const float D3D12_SRGB_TO_FLOAT_OFFSET = (0.055f); - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] - public const float D3D12_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] - public const float D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); - [NativeTypeName("#define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_STANDARD_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] - public const int D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); - [NativeTypeName("#define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] - public const int D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); - [NativeTypeName("#define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] - public const int D3D12_STANDARD_PIXEL_COMPONENT_COUNT = (128); - [NativeTypeName("#define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] - public const int D3D12_STANDARD_PIXEL_ELEMENT_COUNT = (32); - [NativeTypeName("#define D3D12_STANDARD_VECTOR_SIZE ( 4 )")] - public const int D3D12_STANDARD_VECTOR_SIZE = (4); - [NativeTypeName("#define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] - public const int D3D12_STANDARD_VERTEX_ELEMENT_COUNT = (32); - [NativeTypeName("#define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] - public const int D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); - [NativeTypeName("#define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); - [NativeTypeName("#define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT = (8); - [NativeTypeName("#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )")] - public const uint D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END = (0xffffffff); - [NativeTypeName("#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )")] - public const uint D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff0); - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )")] - public const int D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = (64); - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )")] - public const int D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = (64); - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )")] - public const int D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = (63); - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )")] - public const int D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR = (64); - [NativeTypeName("#define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )")] - public const int D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = (2); - [NativeTypeName("#define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )")] - public const int D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = (1); - [NativeTypeName("#define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )")] - public const int D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = (1); - [NativeTypeName("#define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] - public const int D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT = (16); - [NativeTypeName("#define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 )")] - public const int D3D12_TEXTURE_DATA_PITCH_ALIGNMENT = (256); - [NativeTypeName("#define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 )")] - public const int D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT = (512); - [NativeTypeName("#define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )")] - public const int D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES = (65536); - [NativeTypeName("#define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 )")] - public const int D3D12_TRACKED_WORKLOAD_MAX_INSTANCES = (32); - [NativeTypeName("#define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 )")] - public const int D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT = (4096); - [NativeTypeName("#define D3D12_UAV_SLOT_COUNT ( 64 )")] - public const int D3D12_UAV_SLOT_COUNT = (64); - [NativeTypeName("#define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] - public const int D3D12_UNBOUND_MEMORY_ACCESS_RESULT = (0); - [NativeTypeName("#define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 )")] - public const int D3D12_VIDEO_DECODE_MAX_ARGUMENTS = (10); - [NativeTypeName("#define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 )")] - public const int D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS = (4); - [NativeTypeName("#define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 )")] - public const int D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT = (256); - [NativeTypeName("#define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )")] - public const int D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT = (256); - [NativeTypeName("#define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff )")] - public const uint D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN = (0xffffffff); - [NativeTypeName("#define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 )")] - public const int D3D12_VIDEO_PROCESS_MAX_FILTERS = (32); - [NativeTypeName("#define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 )")] - public const int D3D12_VIDEO_PROCESS_STEREO_VIEWS = (2); - [NativeTypeName("#define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] - public const int D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); - [NativeTypeName("#define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] - public const int D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); - [NativeTypeName("#define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 )")] - public const int D3D12_VIEWPORT_BOUNDS_MAX = (32767); - [NativeTypeName("#define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 )")] - public const int D3D12_VIEWPORT_BOUNDS_MIN = (-32768); - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_VS_INPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_VS_INPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_VS_INPUT_REGISTER_READS_PER_INST = (2); - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_VS_INPUT_REGISTER_READ_PORTS = (1); - [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_VS_OUTPUT_REGISTER_COMPONENTS = (4); - [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_VS_OUTPUT_REGISTER_COUNT = (32); - [NativeTypeName("#define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] - public const int D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); - [NativeTypeName("#define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); - [NativeTypeName("#define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); - [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7")] - public const int D3D12_SHADER_COMPONENT_MAPPING_MASK = 0x7; - [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3")] - public const int D3D12_SHADER_COMPONENT_MAPPING_SHIFT = 3; - [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4))")] - public const int D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES = (1 << (3 * 4)); - [NativeTypeName("#define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3)")] - public const int D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING = ((((0) & 0x7) | (((1) & 0x7) << 3) | (((2) & 0x7) << (3 * 2)) | (((3) & 0x7) << (3 * 3)) | (1 << (3 * 4)))); - [NativeTypeName("#define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 )")] - public const int D3D12_FILTER_REDUCTION_TYPE_MASK = (0x3); - [NativeTypeName("#define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 )")] - public const int D3D12_FILTER_REDUCTION_TYPE_SHIFT = (7); - [NativeTypeName("#define D3D12_FILTER_TYPE_MASK ( 0x3 )")] - public const int D3D12_FILTER_TYPE_MASK = (0x3); - [NativeTypeName("#define D3D12_MIN_FILTER_SHIFT ( 4 )")] - public const int D3D12_MIN_FILTER_SHIFT = (4); - [NativeTypeName("#define D3D12_MAG_FILTER_SHIFT ( 2 )")] - public const int D3D12_MAG_FILTER_SHIFT = (2); - [NativeTypeName("#define D3D12_MIP_FILTER_SHIFT ( 0 )")] - public const int D3D12_MIP_FILTER_SHIFT = (0); - [NativeTypeName("#define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] - public const int D3D12_ANISOTROPIC_FILTERING_BIT = (0x40); - [NativeTypeName("#define D3D12_SHADING_RATE_X_AXIS_SHIFT 2")] - public const int D3D12_SHADING_RATE_X_AXIS_SHIFT = 2; - [NativeTypeName("#define D3D12_SHADING_RATE_VALID_MASK 3")] - public const int D3D12_SHADING_RATE_VALID_MASK = 3; -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE.gen.cs deleted file mode 100644 index f2a2f0b456..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE.gen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_AUTO_BREADCRUMB_NODE -{ - /// - - [NativeTypeName("const char *")] - public sbyte* pCommandListDebugNameA; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* pCommandListDebugNameW; - - /// - - [NativeTypeName("const char *")] - public sbyte* pCommandQueueDebugNameA; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* pCommandQueueDebugNameW; - - /// - - public ID3D12GraphicsCommandList* pCommandList; - - /// - - public ID3D12CommandQueue* pCommandQueue; - - /// - - [NativeTypeName("UINT32")] - public uint BreadcrumbCount; - - /// - - [NativeTypeName("const UINT32 *")] - public uint* pLastBreadcrumbValue; - - /// - - [NativeTypeName("const D3D12_AUTO_BREADCRUMB_OP *")] - public D3D12_AUTO_BREADCRUMB_OP* pCommandHistory; - - /// - - [NativeTypeName("const struct D3D12_AUTO_BREADCRUMB_NODE *")] - public D3D12_AUTO_BREADCRUMB_NODE* pNext; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.gen.cs deleted file mode 100644 index 2daf53e468..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.gen.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_AUTO_BREADCRUMB_NODE1 -{ - /// - - [NativeTypeName("const char *")] - public sbyte* pCommandListDebugNameA; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* pCommandListDebugNameW; - - /// - - [NativeTypeName("const char *")] - public sbyte* pCommandQueueDebugNameA; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* pCommandQueueDebugNameW; - - /// - - public ID3D12GraphicsCommandList* pCommandList; - - /// - - public ID3D12CommandQueue* pCommandQueue; - - /// - - public uint BreadcrumbCount; - - /// - - [NativeTypeName("const UINT *")] - public uint* pLastBreadcrumbValue; - - /// - - [NativeTypeName("const D3D12_AUTO_BREADCRUMB_OP *")] - public D3D12_AUTO_BREADCRUMB_OP* pCommandHistory; - - /// - - [NativeTypeName("const struct D3D12_AUTO_BREADCRUMB_NODE1 *")] - public D3D12_AUTO_BREADCRUMB_NODE1* pNext; - - /// - - public uint BreadcrumbContextsCount; - - /// - - public D3D12_DRED_BREADCRUMB_CONTEXT* pBreadcrumbContexts; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_OP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_OP.gen.cs deleted file mode 100644 index 74faff8f9c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_OP.gen.cs +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_AUTO_BREADCRUMB_OP -{ - /// - - D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0, - - /// - - D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1, - - /// - - D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4, - - /// - - D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6, - - /// - - D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7, - - /// - - D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8, - - /// - - D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9, - - /// - - D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10, - - /// - - D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11, - - /// - - D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12, - - /// - - D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13, - - /// - - D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14, - - /// - - D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15, - - /// - - D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16, - - /// - - D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17, - - /// - - D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18, - - /// - - D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19, - - /// - - D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21, - - /// - - D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22, - - /// - - D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23, - - /// - - D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24, - - /// - - D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25, - - /// - - D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27, - - /// - - D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29, - - /// - - D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30, - - /// - - D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31, - - /// - - D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32, - - /// - - D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34, - - /// - - D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35, - - /// - - D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36, - - /// - - D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37, - - /// - - D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38, - - /// - - D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39, - - /// - - D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40, - - /// - - D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41, - - /// - - D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42, - - /// - - D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43, - - /// - - D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AXIS_SHADING_RATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AXIS_SHADING_RATE.gen.cs deleted file mode 100644 index 0b49192cd5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_AXIS_SHADING_RATE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_AXIS_SHADING_RATE -{ - /// - - D3D12_AXIS_SHADING_RATE_1X = 0, - - /// - - D3D12_AXIS_SHADING_RATE_2X = 0x1, - - /// - - D3D12_AXIS_SHADING_RATE_4X = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BACKGROUND_PROCESSING_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BACKGROUND_PROCESSING_MODE.gen.cs deleted file mode 100644 index 39c2c151dd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BACKGROUND_PROCESSING_MODE.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BACKGROUND_PROCESSING_MODE -{ - /// - - D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED = 0, - - /// - - D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS = - (D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED + 1), - - /// - - D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK = - (D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS + 1), - - /// - - D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_PROFILING_BY_SYSTEM = - (D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_ACCESS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_ACCESS.gen.cs deleted file mode 100644 index a1871aa01e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_ACCESS.gen.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BARRIER_ACCESS -{ - /// - - D3D12_BARRIER_ACCESS_COMMON = 0, - - /// - - D3D12_BARRIER_ACCESS_VERTEX_BUFFER = 0x1, - - /// - - D3D12_BARRIER_ACCESS_CONSTANT_BUFFER = 0x2, - - /// - - D3D12_BARRIER_ACCESS_INDEX_BUFFER = 0x4, - - /// - - D3D12_BARRIER_ACCESS_RENDER_TARGET = 0x8, - - /// - - D3D12_BARRIER_ACCESS_UNORDERED_ACCESS = 0x10, - - /// - - D3D12_BARRIER_ACCESS_DEPTH_STENCIL_WRITE = 0x20, - - /// - - D3D12_BARRIER_ACCESS_DEPTH_STENCIL_READ = 0x40, - - /// - - D3D12_BARRIER_ACCESS_SHADER_RESOURCE = 0x80, - - /// - - D3D12_BARRIER_ACCESS_STREAM_OUTPUT = 0x100, - - /// - - D3D12_BARRIER_ACCESS_INDIRECT_ARGUMENT = 0x200, - - /// - - D3D12_BARRIER_ACCESS_PREDICATION = 0x200, - - /// - - D3D12_BARRIER_ACCESS_COPY_DEST = 0x400, - - /// - - D3D12_BARRIER_ACCESS_COPY_SOURCE = 0x800, - - /// - - D3D12_BARRIER_ACCESS_RESOLVE_DEST = 0x1000, - - /// - - D3D12_BARRIER_ACCESS_RESOLVE_SOURCE = 0x2000, - - /// - - D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_READ = 0x4000, - - /// - - D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_WRITE = 0x8000, - - /// - - D3D12_BARRIER_ACCESS_SHADING_RATE_SOURCE = 0x10000, - - /// - - D3D12_BARRIER_ACCESS_VIDEO_DECODE_READ = 0x20000, - - /// - - D3D12_BARRIER_ACCESS_VIDEO_DECODE_WRITE = 0x40000, - - /// - - D3D12_BARRIER_ACCESS_VIDEO_PROCESS_READ = 0x80000, - - /// - - D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000, - - /// - - D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000, - - /// - - D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000, - - /// - - D3D12_BARRIER_ACCESS_NO_ACCESS = unchecked((int)(0x80000000)), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_GROUP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_GROUP.gen.cs deleted file mode 100644 index 894905ae1b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_GROUP.gen.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_BARRIER_GROUP -{ - /// - - public D3D12_BARRIER_TYPE Type; - - /// - - [NativeTypeName("UINT32")] - public uint NumBarriers; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L21089_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_GLOBAL_BARRIER* pGlobalBarriers - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pGlobalBarriers; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEXTURE_BARRIER* pTextureBarriers - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pTextureBarriers; } - } - - /// - - [UnscopedRef] - public ref D3D12_BUFFER_BARRIER* pBufferBarriers - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pBufferBarriers; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_GLOBAL_BARRIER *")] - public D3D12_GLOBAL_BARRIER* pGlobalBarriers; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_TEXTURE_BARRIER *")] - public D3D12_TEXTURE_BARRIER* pTextureBarriers; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_BUFFER_BARRIER *")] - public D3D12_BUFFER_BARRIER* pBufferBarriers; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_LAYOUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_LAYOUT.gen.cs deleted file mode 100644 index d2a8a42b53..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_LAYOUT.gen.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BARRIER_LAYOUT -{ - /// - - D3D12_BARRIER_LAYOUT_UNDEFINED = unchecked((int)(0xffffffff)), - - /// - - D3D12_BARRIER_LAYOUT_COMMON = 0, - - /// - - D3D12_BARRIER_LAYOUT_PRESENT = 0, - - /// - - D3D12_BARRIER_LAYOUT_GENERIC_READ = (D3D12_BARRIER_LAYOUT_PRESENT + 1), - - /// - - D3D12_BARRIER_LAYOUT_RENDER_TARGET = (D3D12_BARRIER_LAYOUT_GENERIC_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS = (D3D12_BARRIER_LAYOUT_RENDER_TARGET + 1), - - /// - - D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE = (D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS + 1), - - /// - - D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ = (D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE + 1), - - /// - - D3D12_BARRIER_LAYOUT_SHADER_RESOURCE = (D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_COPY_SOURCE = (D3D12_BARRIER_LAYOUT_SHADER_RESOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_COPY_DEST = (D3D12_BARRIER_LAYOUT_COPY_SOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE = (D3D12_BARRIER_LAYOUT_COPY_DEST + 1), - - /// - - D3D12_BARRIER_LAYOUT_RESOLVE_DEST = (D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE = (D3D12_BARRIER_LAYOUT_RESOLVE_DEST + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ = (D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE = (D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ = (D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE = (D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ = (D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE = (D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON = (D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE + 1), - - /// - - D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ = (D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON + 1), - - /// - - D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS = - (D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE = - (D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS + 1), - - /// - - D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE = - (D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST = - (D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON = (D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST + 1), - - /// - - D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ = - (D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON + 1), - - /// - - D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS = - (D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ + 1), - - /// - - D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE = - (D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS + 1), - - /// - - D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE = - (D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST = - (D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE + 1), - - /// - - D3D12_BARRIER_LAYOUT_VIDEO_QUEUE_COMMON = (D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SUBRESOURCE_RANGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SUBRESOURCE_RANGE.gen.cs deleted file mode 100644 index b4a14ab3e5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SUBRESOURCE_RANGE.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BARRIER_SUBRESOURCE_RANGE -{ - /// - - public uint IndexOrFirstMipLevel; - - /// - - public uint NumMipLevels; - - /// - - public uint FirstArraySlice; - - /// - - public uint NumArraySlices; - - /// - - public uint FirstPlane; - - /// - - public uint NumPlanes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SYNC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SYNC.gen.cs deleted file mode 100644 index 79208eea82..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SYNC.gen.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BARRIER_SYNC -{ - /// - - D3D12_BARRIER_SYNC_NONE = 0, - - /// - - D3D12_BARRIER_SYNC_ALL = 0x1, - - /// - - D3D12_BARRIER_SYNC_DRAW = 0x2, - - /// - - D3D12_BARRIER_SYNC_INPUT_ASSEMBLER = 0x4, - - /// - - D3D12_BARRIER_SYNC_VERTEX_SHADING = 0x8, - - /// - - D3D12_BARRIER_SYNC_PIXEL_SHADING = 0x10, - - /// - - D3D12_BARRIER_SYNC_DEPTH_STENCIL = 0x20, - - /// - - D3D12_BARRIER_SYNC_RENDER_TARGET = 0x40, - - /// - - D3D12_BARRIER_SYNC_COMPUTE_SHADING = 0x80, - - /// - - D3D12_BARRIER_SYNC_RAYTRACING = 0x100, - - /// - - D3D12_BARRIER_SYNC_COPY = 0x200, - - /// - - D3D12_BARRIER_SYNC_RESOLVE = 0x400, - - /// - - D3D12_BARRIER_SYNC_EXECUTE_INDIRECT = 0x800, - - /// - - D3D12_BARRIER_SYNC_PREDICATION = 0x800, - - /// - - D3D12_BARRIER_SYNC_ALL_SHADING = 0x1000, - - /// - - D3D12_BARRIER_SYNC_NON_PIXEL_SHADING = 0x2000, - - /// - - D3D12_BARRIER_SYNC_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO = 0x4000, - - /// - - D3D12_BARRIER_SYNC_CLEAR_UNORDERED_ACCESS_VIEW = 0x8000, - - /// - - D3D12_BARRIER_SYNC_VIDEO_DECODE = 0x100000, - - /// - - D3D12_BARRIER_SYNC_VIDEO_PROCESS = 0x200000, - - /// - - D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000, - - /// - - D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000, - - /// - - D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000, - - /// - - D3D12_BARRIER_SYNC_SPLIT = unchecked((int)(0x80000000)), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_TYPE.gen.cs deleted file mode 100644 index f728902e50..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_TYPE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BARRIER_TYPE -{ - /// - - D3D12_BARRIER_TYPE_GLOBAL = 0, - - /// - - D3D12_BARRIER_TYPE_TEXTURE = (D3D12_BARRIER_TYPE_GLOBAL + 1), - - /// - - D3D12_BARRIER_TYPE_BUFFER = (D3D12_BARRIER_TYPE_TEXTURE + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND.gen.cs deleted file mode 100644 index ce2e7147b7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND.gen.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BLEND -{ - /// - - D3D12_BLEND_ZERO = 1, - - /// - - D3D12_BLEND_ONE = 2, - - /// - - D3D12_BLEND_SRC_COLOR = 3, - - /// - - D3D12_BLEND_INV_SRC_COLOR = 4, - - /// - - D3D12_BLEND_SRC_ALPHA = 5, - - /// - - D3D12_BLEND_INV_SRC_ALPHA = 6, - - /// - - D3D12_BLEND_DEST_ALPHA = 7, - - /// - - D3D12_BLEND_INV_DEST_ALPHA = 8, - - /// - - D3D12_BLEND_DEST_COLOR = 9, - - /// - - D3D12_BLEND_INV_DEST_COLOR = 10, - - /// - - D3D12_BLEND_SRC_ALPHA_SAT = 11, - - /// - - D3D12_BLEND_BLEND_FACTOR = 14, - - /// - - D3D12_BLEND_INV_BLEND_FACTOR = 15, - - /// - - D3D12_BLEND_SRC1_COLOR = 16, - - /// - - D3D12_BLEND_INV_SRC1_COLOR = 17, - - /// - - D3D12_BLEND_SRC1_ALPHA = 18, - - /// - - D3D12_BLEND_INV_SRC1_ALPHA = 19, - - /// - - D3D12_BLEND_ALPHA_FACTOR = 20, - - /// - - D3D12_BLEND_INV_ALPHA_FACTOR = 21, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_DESC.gen.cs deleted file mode 100644 index 0cfb4fa1b8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_DESC.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BLEND_DESC -{ - /// - - public BOOL AlphaToCoverageEnable; - - /// - - public BOOL IndependentBlendEnable; - - /// - - [NativeTypeName("D3D12_RENDER_TARGET_BLEND_DESC[8]")] - public _RenderTarget_e__FixedBuffer RenderTarget; - - /// - - [InlineArray(8)] - public partial struct _RenderTarget_e__FixedBuffer - { - public D3D12_RENDER_TARGET_BLEND_DESC e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_OP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_OP.gen.cs deleted file mode 100644 index 25b88cbb6b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_OP.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BLEND_OP -{ - /// - - D3D12_BLEND_OP_ADD = 1, - - /// - - D3D12_BLEND_OP_SUBTRACT = 2, - - /// - - D3D12_BLEND_OP_REV_SUBTRACT = 3, - - /// - - D3D12_BLEND_OP_MIN = 4, - - /// - - D3D12_BLEND_OP_MAX = 5, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BOX.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BOX.gen.cs deleted file mode 100644 index 52187de326..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BOX.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BOX -{ - /// - - public uint left; - - /// - - public uint top; - - /// - - public uint front; - - /// - - public uint right; - - /// - - public uint bottom; - - /// - - public uint back; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_BARRIER.gen.cs deleted file mode 100644 index fc9c99d9de..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_BARRIER.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_BUFFER_BARRIER -{ - /// - - public D3D12_BARRIER_SYNC SyncBefore; - - /// - - public D3D12_BARRIER_SYNC SyncAfter; - - /// - - public D3D12_BARRIER_ACCESS AccessBefore; - - /// - - public D3D12_BARRIER_ACCESS AccessAfter; - - /// - - public ID3D12Resource* pResource; - - /// - - [NativeTypeName("UINT64")] - public ulong Offset; - - /// - - [NativeTypeName("UINT64")] - public ulong Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_RTV.gen.cs deleted file mode 100644 index 287bb0a54c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_RTV.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BUFFER_RTV -{ - /// - - [NativeTypeName("UINT64")] - public ulong FirstElement; - - /// - - public uint NumElements; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRV.gen.cs deleted file mode 100644 index a2b29b496b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRV.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BUFFER_SRV -{ - /// - - [NativeTypeName("UINT64")] - public ulong FirstElement; - - /// - - public uint NumElements; - - /// - - public uint StructureByteStride; - - /// - - public D3D12_BUFFER_SRV_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRV_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRV_FLAGS.gen.cs deleted file mode 100644 index 7000a16180..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRV_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_BUFFER_SRV_FLAGS -{ - /// - - D3D12_BUFFER_SRV_FLAG_NONE = 0, - - /// - - D3D12_BUFFER_SRV_FLAG_RAW = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAV.gen.cs deleted file mode 100644 index 3c260917b6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAV.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BUFFER_UAV -{ - /// - - [NativeTypeName("UINT64")] - public ulong FirstElement; - - /// - - public uint NumElements; - - /// - - public uint StructureByteStride; - - /// - - [NativeTypeName("UINT64")] - public ulong CounterOffsetInBytes; - - /// - - public D3D12_BUFFER_UAV_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAV_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAV_FLAGS.gen.cs deleted file mode 100644 index a141a849ff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAV_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_BUFFER_UAV_FLAGS -{ - /// - - D3D12_BUFFER_UAV_FLAG_NONE = 0, - - /// - - D3D12_BUFFER_UAV_FLAG_RAW = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC.gen.cs deleted file mode 100644 index 58e098cb79..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong DestAccelerationStructureData; - - /// - - public D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS Inputs; - - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong SourceAccelerationStructureData; - - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong ScratchAccelerationStructureData; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.gen.cs deleted file mode 100644 index f47b3d4a12..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS.gen.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS -{ - /// - - public D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type; - - /// - - public D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS Flags; - - /// - - public uint NumDescs; - - /// - - public D3D12_ELEMENTS_LAYOUT DescsLayout; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L13833_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref ulong InstanceDescs - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.InstanceDescs; } - } - - /// - - [UnscopedRef] - public ref D3D12_RAYTRACING_GEOMETRY_DESC* pGeometryDescs - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pGeometryDescs; } - } - - /// - - [UnscopedRef] - public ref D3D12_RAYTRACING_GEOMETRY_DESC** ppGeometryDescs - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.ppGeometryDescs; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong InstanceDescs; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_RAYTRACING_GEOMETRY_DESC *")] - public D3D12_RAYTRACING_GEOMETRY_DESC* pGeometryDescs; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_RAYTRACING_GEOMETRY_DESC *const *")] - public D3D12_RAYTRACING_GEOMETRY_DESC** ppGeometryDescs; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER.gen.cs deleted file mode 100644 index 75b851c52e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER -{ - /// - - public D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type; - - /// - - public uint NumDescs; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CACHED_PIPELINE_STATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CACHED_PIPELINE_STATE.gen.cs deleted file mode 100644 index 6dcd54c708..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CACHED_PIPELINE_STATE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_CACHED_PIPELINE_STATE -{ - /// - - [NativeTypeName("const void *")] - public void* pCachedBlob; - - /// - - [NativeTypeName("SIZE_T")] - public nuint CachedBlobSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_FLAGS.gen.cs deleted file mode 100644 index 77d05c4244..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_CLEAR_FLAGS -{ - /// - - D3D12_CLEAR_FLAG_DEPTH = 0x1, - - /// - - D3D12_CLEAR_FLAG_STENCIL = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_VALUE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_VALUE.gen.cs deleted file mode 100644 index d38d3e2ba8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_VALUE.gen.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_CLEAR_VALUE -{ - /// - - public DXGI_FORMAT Format; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L2829_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public Span Color - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return Anonymous.Color; } - } - - /// - - [UnscopedRef] - public ref D3D12_DEPTH_STENCIL_VALUE DepthStencil - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.DepthStencil; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName("FLOAT[4]")] - public _Color_e__FixedBuffer Color; - - /// - - [FieldOffset(0)] - public D3D12_DEPTH_STENCIL_VALUE DepthStencil; - - /// - - [InlineArray(4)] - public partial struct _Color_e__FixedBuffer - { - public float e0; - } - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COLOR_WRITE_ENABLE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COLOR_WRITE_ENABLE.gen.cs deleted file mode 100644 index a84153930d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COLOR_WRITE_ENABLE.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_COLOR_WRITE_ENABLE -{ - /// - - D3D12_COLOR_WRITE_ENABLE_RED = 1, - - /// - - D3D12_COLOR_WRITE_ENABLE_GREEN = 2, - - /// - - D3D12_COLOR_WRITE_ENABLE_BLUE = 4, - - /// - - D3D12_COLOR_WRITE_ENABLE_ALPHA = 8, - - /// - - D3D12_COLOR_WRITE_ENABLE_ALL = - ( - ( - (D3D12_COLOR_WRITE_ENABLE_RED | D3D12_COLOR_WRITE_ENABLE_GREEN) - | D3D12_COLOR_WRITE_ENABLE_BLUE - ) | D3D12_COLOR_WRITE_ENABLE_ALPHA - ), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_FLAGS.gen.cs deleted file mode 100644 index 5f131c6db9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_FLAGS.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_COMMAND_LIST_FLAGS -{ - /// - - D3D12_COMMAND_LIST_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 780dacc8c8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using static Silk.NET.DirectX.D3D12_COMMAND_LIST_TYPE; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_COMMAND_LIST_SUPPORT_FLAGS -{ - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = (1 << D3D12_COMMAND_LIST_TYPE_DIRECT), - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = (1 << D3D12_COMMAND_LIST_TYPE_BUNDLE), - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = (1 << D3D12_COMMAND_LIST_TYPE_COMPUTE), - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = (1 << D3D12_COMMAND_LIST_TYPE_COPY), - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = (1 << D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE), - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = (1 << D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS), - - /// - - D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = (1 << D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_TYPE.gen.cs deleted file mode 100644 index 8a86d8f4d7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_LIST_TYPE.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_COMMAND_LIST_TYPE -{ - /// - - D3D12_COMMAND_LIST_TYPE_DIRECT = 0, - - /// - - D3D12_COMMAND_LIST_TYPE_BUNDLE = 1, - - /// - - D3D12_COMMAND_LIST_TYPE_COMPUTE = 2, - - /// - - D3D12_COMMAND_LIST_TYPE_COPY = 3, - - /// - - D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE = 4, - - /// - - D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS = 5, - - /// - - D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE = 6, - - /// - - D3D12_COMMAND_LIST_TYPE_NONE = -1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_POOL_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_POOL_FLAGS.gen.cs deleted file mode 100644 index 16eae26fa5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_POOL_FLAGS.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_COMMAND_POOL_FLAGS -{ - /// - - D3D12_COMMAND_POOL_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_DESC.gen.cs deleted file mode 100644 index 4f86edc626..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_DESC.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_COMMAND_QUEUE_DESC -{ - /// - - public D3D12_COMMAND_LIST_TYPE Type; - - /// - - public int Priority; - - /// - - public D3D12_COMMAND_QUEUE_FLAGS Flags; - - /// - - public uint NodeMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_FLAGS.gen.cs deleted file mode 100644 index 35d6b446a2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_COMMAND_QUEUE_FLAGS -{ - /// - - D3D12_COMMAND_QUEUE_FLAG_NONE = 0, - - /// - - D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_PRIORITY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_PRIORITY.gen.cs deleted file mode 100644 index 1a0f653af4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_PRIORITY.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_COMMAND_QUEUE_PRIORITY -{ - /// - - D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0, - - /// - - D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100, - - /// - - D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_RECORDER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_RECORDER_FLAGS.gen.cs deleted file mode 100644 index 9c6a4a1412..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_RECORDER_FLAGS.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_COMMAND_RECORDER_FLAGS -{ - /// - - D3D12_COMMAND_RECORDER_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_SIGNATURE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_SIGNATURE_DESC.gen.cs deleted file mode 100644 index 0c28e6ba58..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_SIGNATURE_DESC.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_COMMAND_SIGNATURE_DESC -{ - /// - - public uint ByteStride; - - /// - - public uint NumArgumentDescs; - - /// - - [NativeTypeName("const D3D12_INDIRECT_ARGUMENT_DESC *")] - public D3D12_INDIRECT_ARGUMENT_DESC* pArgumentDescs; - - /// - - public uint NodeMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPARISON_FUNC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPARISON_FUNC.gen.cs deleted file mode 100644 index 0150fbb799..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPARISON_FUNC.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_COMPARISON_FUNC -{ - /// - - D3D12_COMPARISON_FUNC_NONE = 0, - - /// - - D3D12_COMPARISON_FUNC_NEVER = 1, - - /// - - D3D12_COMPARISON_FUNC_LESS = 2, - - /// - - D3D12_COMPARISON_FUNC_EQUAL = 3, - - /// - - D3D12_COMPARISON_FUNC_LESS_EQUAL = 4, - - /// - - D3D12_COMPARISON_FUNC_GREATER = 5, - - /// - - D3D12_COMPARISON_FUNC_NOT_EQUAL = 6, - - /// - - D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7, - - /// - - D3D12_COMPARISON_FUNC_ALWAYS = 8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.gen.cs deleted file mode 100644 index 91e2eae8a6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_COMPUTE_PIPELINE_STATE_DESC -{ - /// - - public ID3D12RootSignature* pRootSignature; - - /// - - public D3D12_SHADER_BYTECODE CS; - - /// - - public uint NodeMask; - - /// - - public D3D12_CACHED_PIPELINE_STATE CachedPSO; - - /// - - public D3D12_PIPELINE_STATE_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSERVATIVE_RASTERIZATION_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSERVATIVE_RASTERIZATION_MODE.gen.cs deleted file mode 100644 index 2b9edae92f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSERVATIVE_RASTERIZATION_MODE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_CONSERVATIVE_RASTERIZATION_MODE -{ - /// - - D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0, - - /// - - D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSERVATIVE_RASTERIZATION_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSERVATIVE_RASTERIZATION_TIER.gen.cs deleted file mode 100644 index 80b8c3c980..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSERVATIVE_RASTERIZATION_TIER.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_CONSERVATIVE_RASTERIZATION_TIER -{ - /// - - D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1, - - /// - - D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2, - - /// - - D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSTANT_BUFFER_VIEW_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSTANT_BUFFER_VIEW_DESC.gen.cs deleted file mode 100644 index 874bdb70fb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSTANT_BUFFER_VIEW_DESC.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_CONSTANT_BUFFER_VIEW_DESC -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong BufferLocation; - - /// - - public uint SizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_DESCRIPTOR_HANDLE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_DESCRIPTOR_HANDLE.gen.cs deleted file mode 100644 index c22f66dedf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_DESCRIPTOR_HANDLE.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_CPU_DESCRIPTOR_HANDLE -{ - /// - - [NativeTypeName("SIZE_T")] - public nuint ptr; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_PAGE_PROPERTY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_PAGE_PROPERTY.gen.cs deleted file mode 100644 index ac55f38d0b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_PAGE_PROPERTY.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_CPU_PAGE_PROPERTY -{ - /// - - D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0, - - /// - - D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1, - - /// - - D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2, - - /// - - D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CROSS_NODE_SHARING_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CROSS_NODE_SHARING_TIER.gen.cs deleted file mode 100644 index ade5b0f352..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CROSS_NODE_SHARING_TIER.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_CROSS_NODE_SHARING_TIER -{ - /// - - D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1, - - /// - - D3D12_CROSS_NODE_SHARING_TIER_1 = 2, - - /// - - D3D12_CROSS_NODE_SHARING_TIER_2 = 3, - - /// - - D3D12_CROSS_NODE_SHARING_TIER_3 = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CULL_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CULL_MODE.gen.cs deleted file mode 100644 index 6467aff600..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_CULL_MODE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_CULL_MODE -{ - /// - - D3D12_CULL_MODE_NONE = 1, - - /// - - D3D12_CULL_MODE_FRONT = 2, - - /// - - D3D12_CULL_MODE_BACK = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC.gen.cs deleted file mode 100644 index 5f580a1c23..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCILOP_DESC -{ - /// - - public D3D12_STENCIL_OP StencilFailOp; - - /// - - public D3D12_STENCIL_OP StencilDepthFailOp; - - /// - - public D3D12_STENCIL_OP StencilPassOp; - - /// - - public D3D12_COMPARISON_FUNC StencilFunc; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC1.gen.cs deleted file mode 100644 index 96a3ecf1e3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC1.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCILOP_DESC1 -{ - /// - - public D3D12_STENCIL_OP StencilFailOp; - - /// - - public D3D12_STENCIL_OP StencilDepthFailOp; - - /// - - public D3D12_STENCIL_OP StencilPassOp; - - /// - - public D3D12_COMPARISON_FUNC StencilFunc; - - /// - - [NativeTypeName("UINT8")] - public byte StencilReadMask; - - /// - - [NativeTypeName("UINT8")] - public byte StencilWriteMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC.gen.cs deleted file mode 100644 index 612261911a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCIL_DESC -{ - /// - - public BOOL DepthEnable; - - /// - - public D3D12_DEPTH_WRITE_MASK DepthWriteMask; - - /// - - public D3D12_COMPARISON_FUNC DepthFunc; - - /// - - public BOOL StencilEnable; - - /// - - [NativeTypeName("UINT8")] - public byte StencilReadMask; - - /// - - [NativeTypeName("UINT8")] - public byte StencilWriteMask; - - /// - - public D3D12_DEPTH_STENCILOP_DESC FrontFace; - - /// - - public D3D12_DEPTH_STENCILOP_DESC BackFace; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC1.gen.cs deleted file mode 100644 index d3a5084c25..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC1.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCIL_DESC1 -{ - /// - - public BOOL DepthEnable; - - /// - - public D3D12_DEPTH_WRITE_MASK DepthWriteMask; - - /// - - public D3D12_COMPARISON_FUNC DepthFunc; - - /// - - public BOOL StencilEnable; - - /// - - [NativeTypeName("UINT8")] - public byte StencilReadMask; - - /// - - [NativeTypeName("UINT8")] - public byte StencilWriteMask; - - /// - - public D3D12_DEPTH_STENCILOP_DESC FrontFace; - - /// - - public D3D12_DEPTH_STENCILOP_DESC BackFace; - - /// - - public BOOL DepthBoundsTestEnable; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC2.gen.cs deleted file mode 100644 index 3472bf85ab..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC2.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCIL_DESC2 -{ - /// - - public BOOL DepthEnable; - - /// - - public D3D12_DEPTH_WRITE_MASK DepthWriteMask; - - /// - - public D3D12_COMPARISON_FUNC DepthFunc; - - /// - - public BOOL StencilEnable; - - /// - - public D3D12_DEPTH_STENCILOP_DESC1 FrontFace; - - /// - - public D3D12_DEPTH_STENCILOP_DESC1 BackFace; - - /// - - public BOOL DepthBoundsTestEnable; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VALUE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VALUE.gen.cs deleted file mode 100644 index d17256f4b0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VALUE.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCIL_VALUE -{ - /// - - public float Depth; - - /// - - [NativeTypeName("UINT8")] - public byte Stencil; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.gen.cs deleted file mode 100644 index 422895d7f7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESC.gen.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEPTH_STENCIL_VIEW_DESC -{ - /// - - public DXGI_FORMAT Format; - - /// - - public D3D12_DSV_DIMENSION ViewDimension; - - /// - - public D3D12_DSV_FLAGS Flags; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3623_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_DSV Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_ARRAY_DSV Texture1DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_DSV Texture2D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_ARRAY_DSV Texture2DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_DSV Texture2DMS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMS; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMSArray; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_TEX1D_DSV Texture1D; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_ARRAY_DSV Texture1DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_DSV Texture2D; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_ARRAY_DSV Texture2DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_DSV Texture2DMS; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_WRITE_MASK.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_WRITE_MASK.gen.cs deleted file mode 100644 index 3c36485602..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_WRITE_MASK.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DEPTH_WRITE_MASK -{ - /// - - D3D12_DEPTH_WRITE_MASK_ZERO = 0, - - /// - - D3D12_DEPTH_WRITE_MASK_ALL = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_DESC.gen.cs deleted file mode 100644 index b6aae63b24..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_DESC.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DESCRIPTOR_HEAP_DESC -{ - /// - - public D3D12_DESCRIPTOR_HEAP_TYPE Type; - - /// - - public uint NumDescriptors; - - /// - - public D3D12_DESCRIPTOR_HEAP_FLAGS Flags; - - /// - - public uint NodeMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_FLAGS.gen.cs deleted file mode 100644 index b321a64494..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DESCRIPTOR_HEAP_FLAGS -{ - /// - - D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0, - - /// - - D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_TYPE.gen.cs deleted file mode 100644 index b0c6f411cd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_TYPE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DESCRIPTOR_HEAP_TYPE -{ - /// - - D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV = 0, - - /// - - D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER = (D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV + 1), - - /// - - D3D12_DESCRIPTOR_HEAP_TYPE_RTV = (D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER + 1), - - /// - - D3D12_DESCRIPTOR_HEAP_TYPE_DSV = (D3D12_DESCRIPTOR_HEAP_TYPE_RTV + 1), - - /// - - D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES = (D3D12_DESCRIPTOR_HEAP_TYPE_DSV + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE.gen.cs deleted file mode 100644 index afb3199bfe..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DESCRIPTOR_RANGE -{ - /// - - public D3D12_DESCRIPTOR_RANGE_TYPE RangeType; - - /// - - public uint NumDescriptors; - - /// - - public uint BaseShaderRegister; - - /// - - public uint RegisterSpace; - - /// - - public uint OffsetInDescriptorsFromTableStart; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE1.gen.cs deleted file mode 100644 index eb7e9835b2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE1.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DESCRIPTOR_RANGE1 -{ - /// - - public D3D12_DESCRIPTOR_RANGE_TYPE RangeType; - - /// - - public uint NumDescriptors; - - /// - - public uint BaseShaderRegister; - - /// - - public uint RegisterSpace; - - /// - - public D3D12_DESCRIPTOR_RANGE_FLAGS Flags; - - /// - - public uint OffsetInDescriptorsFromTableStart; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE_FLAGS.gen.cs deleted file mode 100644 index 8dd291085b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE_FLAGS.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DESCRIPTOR_RANGE_FLAGS -{ - /// - - D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0, - - /// - - D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1, - - /// - - D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2, - - /// - - D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4, - - /// - - D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8, - - /// - - D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS = 0x10000, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE_TYPE.gen.cs deleted file mode 100644 index 2119474256..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE_TYPE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DESCRIPTOR_RANGE_TYPE -{ - /// - - D3D12_DESCRIPTOR_RANGE_TYPE_SRV = 0, - - /// - - D3D12_DESCRIPTOR_RANGE_TYPE_UAV = (D3D12_DESCRIPTOR_RANGE_TYPE_SRV + 1), - - /// - - D3D12_DESCRIPTOR_RANGE_TYPE_CBV = (D3D12_DESCRIPTOR_RANGE_TYPE_UAV + 1), - - /// - - D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER = (D3D12_DESCRIPTOR_RANGE_TYPE_CBV + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_CONFIGURATION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_CONFIGURATION_DESC.gen.cs deleted file mode 100644 index 11cb1fd6c1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_CONFIGURATION_DESC.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEVICE_CONFIGURATION_DESC -{ - /// - - public D3D12_DEVICE_FLAGS Flags; - - /// - - public uint GpuBasedValidationFlags; - - /// - - public uint SDKVersion; - - /// - - public uint NumEnabledExperimentalFeatures; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_FACTORY_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_FACTORY_FLAGS.gen.cs deleted file mode 100644 index f1ea953adf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_FACTORY_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DEVICE_FACTORY_FLAGS -{ - /// - - D3D12_DEVICE_FACTORY_FLAG_NONE = 0, - - /// - - D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE = 0x1, - - /// - - D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE = 0x2, - - /// - - D3D12_DEVICE_FACTORY_FLAG_DISALLOW_STORING_NEW_DEVICE_AS_SINGLETON = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_FLAGS.gen.cs deleted file mode 100644 index 20481716c0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_FLAGS.gen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DEVICE_FLAGS -{ - /// - - D3D12_DEVICE_FLAG_NONE = 0, - - /// - - D3D12_DEVICE_FLAG_DEBUG_LAYER_ENABLED = 0x1, - - /// - - D3D12_DEVICE_FLAG_GPU_BASED_VALIDATION_ENABLED = 0x2, - - /// - - D3D12_DEVICE_FLAG_SYNCHRONIZED_COMMAND_QUEUE_VALIDATION_DISABLED = 0x4, - - /// - - D3D12_DEVICE_FLAG_DRED_AUTO_BREADCRUMBS_ENABLED = 0x8, - - /// - - D3D12_DEVICE_FLAG_DRED_PAGE_FAULT_REPORTING_ENABLED = 0x10, - - /// - - D3D12_DEVICE_FLAG_DRED_WATSON_REPORTING_ENABLED = 0x20, - - /// - - D3D12_DEVICE_FLAG_DRED_BREADCRUMB_CONTEXT_ENABLED = 0x40, - - /// - - D3D12_DEVICE_FLAG_DRED_USE_MARKERS_ONLY_BREADCRUMBS = 0x80, - - /// - - D3D12_DEVICE_FLAG_SHADER_INSTRUMENTATION_ENABLED = 0x100, - - /// - - D3D12_DEVICE_FLAG_AUTO_DEBUG_NAME_ENABLED = 0x200, - - /// - - D3D12_DEVICE_FLAG_FORCE_LEGACY_STATE_VALIDATION = 0x400, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA.gen.cs deleted file mode 100644 index 167737001e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DEVICE_REMOVED_EXTENDED_DATA -{ - /// - - public D3D12_DRED_FLAGS Flags; - - /// - - public D3D12_AUTO_BREADCRUMB_NODE* pHeadAutoBreadcrumbNode; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA1.gen.cs deleted file mode 100644 index 4cffbbb65e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA1.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEVICE_REMOVED_EXTENDED_DATA1 -{ - /// - - public HRESULT DeviceRemovedReason; - - /// - - public D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT AutoBreadcrumbsOutput; - - /// - - public D3D12_DRED_PAGE_FAULT_OUTPUT PageFaultOutput; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA2.gen.cs deleted file mode 100644 index 993f8e268a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA2.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEVICE_REMOVED_EXTENDED_DATA2 -{ - /// - - public HRESULT DeviceRemovedReason; - - /// - - public D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput; - - /// - - public D3D12_DRED_PAGE_FAULT_OUTPUT1 PageFaultOutput; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA3.gen.cs deleted file mode 100644 index e05589770c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA3.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEVICE_REMOVED_EXTENDED_DATA3 -{ - /// - - public HRESULT DeviceRemovedReason; - - /// - - public D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput; - - /// - - public D3D12_DRED_PAGE_FAULT_OUTPUT2 PageFaultOutput; - - /// - - public D3D12_DRED_DEVICE_STATE DeviceState; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISCARD_REGION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISCARD_REGION.gen.cs deleted file mode 100644 index 8a8851ee99..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISCARD_REGION.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DISCARD_REGION -{ - /// - - public uint NumRects; - - /// - - [NativeTypeName("const D3D12_RECT *")] - public RECT* pRects; - - /// - - public uint FirstSubresource; - - /// - - public uint NumSubresources; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_ARGUMENTS.gen.cs deleted file mode 100644 index 6433abfd70..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_ARGUMENTS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DISPATCH_ARGUMENTS -{ - /// - - public uint ThreadGroupCountX; - - /// - - public uint ThreadGroupCountY; - - /// - - public uint ThreadGroupCountZ; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_MESH_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_MESH_ARGUMENTS.gen.cs deleted file mode 100644 index f05cc68022..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_MESH_ARGUMENTS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DISPATCH_MESH_ARGUMENTS -{ - /// - - public uint ThreadGroupCountX; - - /// - - public uint ThreadGroupCountY; - - /// - - public uint ThreadGroupCountZ; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_RAYS_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_RAYS_DESC.gen.cs deleted file mode 100644 index 0d7771b57a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_RAYS_DESC.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DISPATCH_RAYS_DESC -{ - /// - - public D3D12_GPU_VIRTUAL_ADDRESS_RANGE RayGenerationShaderRecord; - - /// - - public D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE MissShaderTable; - - /// - - public D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE HitGroupTable; - - /// - - public D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE CallableShaderTable; - - /// - - public uint Width; - - /// - - public uint Height; - - /// - - public uint Depth; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_ARGUMENTS.gen.cs deleted file mode 100644 index a4b26461f9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_ARGUMENTS.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DRAW_ARGUMENTS -{ - /// - - public uint VertexCountPerInstance; - - /// - - public uint InstanceCount; - - /// - - public uint StartVertexLocation; - - /// - - public uint StartInstanceLocation; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_INDEXED_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_INDEXED_ARGUMENTS.gen.cs deleted file mode 100644 index 4092212a7d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_INDEXED_ARGUMENTS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DRAW_INDEXED_ARGUMENTS -{ - /// - - public uint IndexCountPerInstance; - - /// - - public uint InstanceCount; - - /// - - public uint StartIndexLocation; - - /// - - public int BaseVertexLocation; - - /// - - public uint StartInstanceLocation; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE.gen.cs deleted file mode 100644 index 9a43fe3d47..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_ALLOCATION_NODE -{ - /// - - [NativeTypeName("const char *")] - public sbyte* ObjectNameA; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* ObjectNameW; - - /// - - public D3D12_DRED_ALLOCATION_TYPE AllocationType; - - /// - - [NativeTypeName("const struct D3D12_DRED_ALLOCATION_NODE *")] - public D3D12_DRED_ALLOCATION_NODE* pNext; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE1.gen.cs deleted file mode 100644 index b7209d8f5f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE1.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_ALLOCATION_NODE1 -{ - /// - - [NativeTypeName("const char *")] - public sbyte* ObjectNameA; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* ObjectNameW; - - /// - - public D3D12_DRED_ALLOCATION_TYPE AllocationType; - - /// - - [NativeTypeName("const struct D3D12_DRED_ALLOCATION_NODE1 *")] - public D3D12_DRED_ALLOCATION_NODE1* pNext; - - /// - - [NativeTypeName("const IUnknown *")] - public IUnknown* pObject; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_TYPE.gen.cs deleted file mode 100644 index ab1b4750d1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_TYPE.gen.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DRED_ALLOCATION_TYPE -{ - /// - - D3D12_DRED_ALLOCATION_TYPE_COMMAND_QUEUE = 19, - - /// - - D3D12_DRED_ALLOCATION_TYPE_COMMAND_ALLOCATOR = 20, - - /// - - D3D12_DRED_ALLOCATION_TYPE_PIPELINE_STATE = 21, - - /// - - D3D12_DRED_ALLOCATION_TYPE_COMMAND_LIST = 22, - - /// - - D3D12_DRED_ALLOCATION_TYPE_FENCE = 23, - - /// - - D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP = 24, - - /// - - D3D12_DRED_ALLOCATION_TYPE_HEAP = 25, - - /// - - D3D12_DRED_ALLOCATION_TYPE_QUERY_HEAP = 27, - - /// - - D3D12_DRED_ALLOCATION_TYPE_COMMAND_SIGNATURE = 28, - - /// - - D3D12_DRED_ALLOCATION_TYPE_PIPELINE_LIBRARY = 29, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER = 30, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_PROCESSOR = 32, - - /// - - D3D12_DRED_ALLOCATION_TYPE_RESOURCE = 34, - - /// - - D3D12_DRED_ALLOCATION_TYPE_PASS = 35, - - /// - - D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSION = 36, - - /// - - D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSIONPOLICY = 37, - - /// - - D3D12_DRED_ALLOCATION_TYPE_PROTECTEDRESOURCESESSION = 38, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER_HEAP = 39, - - /// - - D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL = 40, - - /// - - D3D12_DRED_ALLOCATION_TYPE_COMMAND_RECORDER = 41, - - /// - - D3D12_DRED_ALLOCATION_TYPE_STATE_OBJECT = 42, - - /// - - D3D12_DRED_ALLOCATION_TYPE_METACOMMAND = 43, - - /// - - D3D12_DRED_ALLOCATION_TYPE_SCHEDULINGGROUP = 44, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_ESTIMATOR = 45, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_VECTOR_HEAP = 46, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_EXTENSION_COMMAND = 47, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER = 48, - - /// - - D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER_HEAP = 49, - - /// - - D3D12_DRED_ALLOCATION_TYPE_INVALID = unchecked((int)(0xffffffff)), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT.gen.cs deleted file mode 100644 index 4d7acc18a5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT -{ - /// - - [NativeTypeName("const D3D12_AUTO_BREADCRUMB_NODE *")] - public D3D12_AUTO_BREADCRUMB_NODE* pHeadAutoBreadcrumbNode; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1.gen.cs deleted file mode 100644 index fab8169f0f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 -{ - /// - - [NativeTypeName("const D3D12_AUTO_BREADCRUMB_NODE1 *")] - public D3D12_AUTO_BREADCRUMB_NODE1* pHeadAutoBreadcrumbNode; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.gen.cs deleted file mode 100644 index 547b4df446..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_BREADCRUMB_CONTEXT -{ - /// - - public uint BreadcrumbIndex; - - /// - - [NativeTypeName("const wchar_t *")] - public ushort* pContextString; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_DEVICE_STATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_DEVICE_STATE.gen.cs deleted file mode 100644 index b521ca3a53..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_DEVICE_STATE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DRED_DEVICE_STATE -{ - /// - - D3D12_DRED_DEVICE_STATE_UNKNOWN = 0, - - /// - - D3D12_DRED_DEVICE_STATE_HUNG = 3, - - /// - - D3D12_DRED_DEVICE_STATE_FAULT = 6, - - /// - - D3D12_DRED_DEVICE_STATE_PAGEFAULT = 7, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ENABLEMENT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ENABLEMENT.gen.cs deleted file mode 100644 index 11b5a0929f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ENABLEMENT.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DRED_ENABLEMENT -{ - /// - - D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0, - - /// - - D3D12_DRED_ENABLEMENT_FORCED_OFF = 1, - - /// - - D3D12_DRED_ENABLEMENT_FORCED_ON = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_FLAGS.gen.cs deleted file mode 100644 index 2536459a9d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DRED_FLAGS -{ - /// - - D3D12_DRED_FLAG_NONE = 0, - - /// - - D3D12_DRED_FLAG_FORCE_ENABLE = 1, - - /// - - D3D12_DRED_FLAG_DISABLE_AUTOBREADCRUMBS = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_FLAGS.gen.cs deleted file mode 100644 index 1f372493b3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_FLAGS.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DRED_PAGE_FAULT_FLAGS -{ - /// - - D3D12_DRED_PAGE_FAULT_FLAGS_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT.gen.cs deleted file mode 100644 index 5b5c484190..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_PAGE_FAULT_OUTPUT -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong PageFaultVA; - - /// - - [NativeTypeName("const D3D12_DRED_ALLOCATION_NODE *")] - public D3D12_DRED_ALLOCATION_NODE* pHeadExistingAllocationNode; - - /// - - [NativeTypeName("const D3D12_DRED_ALLOCATION_NODE *")] - public D3D12_DRED_ALLOCATION_NODE* pHeadRecentFreedAllocationNode; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT1.gen.cs deleted file mode 100644 index d8adf4a05e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT1.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_PAGE_FAULT_OUTPUT1 -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong PageFaultVA; - - /// - - [NativeTypeName("const D3D12_DRED_ALLOCATION_NODE1 *")] - public D3D12_DRED_ALLOCATION_NODE1* pHeadExistingAllocationNode; - - /// - - [NativeTypeName("const D3D12_DRED_ALLOCATION_NODE1 *")] - public D3D12_DRED_ALLOCATION_NODE1* pHeadRecentFreedAllocationNode; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT2.gen.cs deleted file mode 100644 index ae0e57ab40..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT2.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DRED_PAGE_FAULT_OUTPUT2 -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong PageFaultVA; - - /// - - [NativeTypeName("const D3D12_DRED_ALLOCATION_NODE1 *")] - public D3D12_DRED_ALLOCATION_NODE1* pHeadExistingAllocationNode; - - /// - - [NativeTypeName("const D3D12_DRED_ALLOCATION_NODE1 *")] - public D3D12_DRED_ALLOCATION_NODE1* pHeadRecentFreedAllocationNode; - - /// - - public D3D12_DRED_PAGE_FAULT_FLAGS PageFaultFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_VERSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_VERSION.gen.cs deleted file mode 100644 index ef268d9fb0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_VERSION.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DRED_VERSION -{ - /// - - D3D12_DRED_VERSION_1_0 = 0x1, - - /// - - D3D12_DRED_VERSION_1_1 = 0x2, - - /// - - D3D12_DRED_VERSION_1_2 = 0x3, - - /// - - D3D12_DRED_VERSION_1_3 = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS.gen.cs deleted file mode 100644 index 08bcb5bdaa..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS -{ - /// - - D3D12_DRIVER_MATCHING_IDENTIFIER_COMPATIBLE_WITH_DEVICE = 0, - - /// - - D3D12_DRIVER_MATCHING_IDENTIFIER_UNSUPPORTED_TYPE = 0x1, - - /// - - D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED = 0x2, - - /// - - D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_VERSION = 0x3, - - /// - - D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_TYPE = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DSV_DIMENSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DSV_DIMENSION.gen.cs deleted file mode 100644 index 5296f5123a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DSV_DIMENSION.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DSV_DIMENSION -{ - /// - - D3D12_DSV_DIMENSION_UNKNOWN = 0, - - /// - - D3D12_DSV_DIMENSION_TEXTURE1D = 1, - - /// - - D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2, - - /// - - D3D12_DSV_DIMENSION_TEXTURE2D = 3, - - /// - - D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4, - - /// - - D3D12_DSV_DIMENSION_TEXTURE2DMS = 5, - - /// - - D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DSV_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DSV_FLAGS.gen.cs deleted file mode 100644 index 943e80d1df..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DSV_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DSV_FLAGS -{ - /// - - D3D12_DSV_FLAG_NONE = 0, - - /// - - D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1, - - /// - - D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_LIBRARY_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_LIBRARY_DESC.gen.cs deleted file mode 100644 index 7159758104..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_LIBRARY_DESC.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DXIL_LIBRARY_DESC -{ - /// - - public D3D12_SHADER_BYTECODE DXILLibrary; - - /// - - public uint NumExports; - - /// - - public D3D12_EXPORT_DESC* pExports; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION.gen.cs deleted file mode 100644 index 0317f45e91..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION -{ - /// - - [NativeTypeName("LPCWSTR")] - public ushort* SubobjectToAssociate; - - /// - - public uint NumExports; - - /// - - [NativeTypeName("LPCWSTR *")] - public ushort** pExports; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ELEMENTS_LAYOUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ELEMENTS_LAYOUT.gen.cs deleted file mode 100644 index b5650563e1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ELEMENTS_LAYOUT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_ELEMENTS_LAYOUT -{ - /// - - D3D12_ELEMENTS_LAYOUT_ARRAY = 0, - - /// - - D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXISTING_COLLECTION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXISTING_COLLECTION_DESC.gen.cs deleted file mode 100644 index eccab375a9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXISTING_COLLECTION_DESC.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_EXISTING_COLLECTION_DESC -{ - /// - - public ID3D12StateObject* pExistingCollection; - - /// - - public uint NumExports; - - /// - - public D3D12_EXPORT_DESC* pExports; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_DESC.gen.cs deleted file mode 100644 index 9a758e7ff4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_DESC.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_EXPORT_DESC -{ - /// - - [NativeTypeName("LPCWSTR")] - public ushort* Name; - - /// - - [NativeTypeName("LPCWSTR")] - public ushort* ExportToRename; - - /// - - public D3D12_EXPORT_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_FLAGS.gen.cs deleted file mode 100644 index f763c7d824..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_FLAGS.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_EXPORT_FLAGS -{ - /// - - D3D12_EXPORT_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE.gen.cs deleted file mode 100644 index fe9a506089..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE.gen.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_FEATURE -{ - /// - - D3D12_FEATURE_D3D12_OPTIONS = 0, - - /// - - D3D12_FEATURE_ARCHITECTURE = 1, - - /// - - D3D12_FEATURE_FEATURE_LEVELS = 2, - - /// - - D3D12_FEATURE_FORMAT_SUPPORT = 3, - - /// - - D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4, - - /// - - D3D12_FEATURE_FORMAT_INFO = 5, - - /// - - D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6, - - /// - - D3D12_FEATURE_SHADER_MODEL = 7, - - /// - - D3D12_FEATURE_D3D12_OPTIONS1 = 8, - - /// - - D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10, - - /// - - D3D12_FEATURE_ROOT_SIGNATURE = 12, - - /// - - D3D12_FEATURE_ARCHITECTURE1 = 16, - - /// - - D3D12_FEATURE_D3D12_OPTIONS2 = 18, - - /// - - D3D12_FEATURE_SHADER_CACHE = 19, - - /// - - D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20, - - /// - - D3D12_FEATURE_D3D12_OPTIONS3 = 21, - - /// - - D3D12_FEATURE_EXISTING_HEAPS = 22, - - /// - - D3D12_FEATURE_D3D12_OPTIONS4 = 23, - - /// - - D3D12_FEATURE_SERIALIZATION = 24, - - /// - - D3D12_FEATURE_CROSS_NODE = 25, - - /// - - D3D12_FEATURE_D3D12_OPTIONS5 = 27, - - /// - - D3D12_FEATURE_DISPLAYABLE = 28, - - /// - - D3D12_FEATURE_D3D12_OPTIONS6 = 30, - - /// - - D3D12_FEATURE_QUERY_META_COMMAND = 31, - - /// - - D3D12_FEATURE_D3D12_OPTIONS7 = 32, - - /// - - D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33, - - /// - - D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34, - - /// - - D3D12_FEATURE_D3D12_OPTIONS8 = 36, - - /// - - D3D12_FEATURE_D3D12_OPTIONS9 = 37, - - /// - - D3D12_FEATURE_D3D12_OPTIONS10 = 39, - - /// - - D3D12_FEATURE_D3D12_OPTIONS11 = 40, - - /// - - D3D12_FEATURE_D3D12_OPTIONS12 = 41, - - /// - - D3D12_FEATURE_D3D12_OPTIONS13 = 42, - - /// - - D3D12_FEATURE_D3D12_OPTIONS14 = 43, - - /// - - D3D12_FEATURE_D3D12_OPTIONS15 = 44, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE.gen.cs deleted file mode 100644 index 3fcd46c86b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_ARCHITECTURE -{ - /// - - public uint NodeIndex; - - /// - - public BOOL TileBasedRenderer; - - /// - - public BOOL UMA; - - /// - - public BOOL CacheCoherentUMA; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE1.gen.cs deleted file mode 100644 index 498fccc73f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE1.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_ARCHITECTURE1 -{ - /// - - public uint NodeIndex; - - /// - - public BOOL TileBasedRenderer; - - /// - - public BOOL UMA; - - /// - - public BOOL CacheCoherentUMA; - - /// - - public BOOL IsolatedMMU; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY.gen.cs deleted file mode 100644 index 0c8f3fe6e2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY -{ - /// - - public D3D12_COMMAND_LIST_TYPE CommandListType; - - /// - - public uint Priority; - - /// - - public BOOL PriorityForTypeIsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_CROSS_NODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_CROSS_NODE.gen.cs deleted file mode 100644 index 55df9ec9cc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_CROSS_NODE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_CROSS_NODE -{ - /// - - public D3D12_CROSS_NODE_SHARING_TIER SharingTier; - - /// - - public BOOL AtomicShaderInstructions; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS.gen.cs deleted file mode 100644 index 65f2e7160a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS.gen.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS -{ - /// - - public BOOL DoublePrecisionFloatShaderOps; - - /// - - public BOOL OutputMergerLogicOp; - - /// - - public D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport; - - /// - - public D3D12_TILED_RESOURCES_TIER TiledResourcesTier; - - /// - - public D3D12_RESOURCE_BINDING_TIER ResourceBindingTier; - - /// - - public BOOL PSSpecifiedStencilRefSupported; - - /// - - public BOOL TypedUAVLoadAdditionalFormats; - - /// - - public BOOL ROVsSupported; - - /// - - public D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier; - - /// - - public uint MaxGPUVirtualAddressBitsPerResource; - - /// - - public BOOL StandardSwizzle64KBSupported; - - /// - - public D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier; - - /// - - public BOOL CrossAdapterRowMajorTextureSupported; - - /// - - public BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation; - - /// - - public D3D12_RESOURCE_HEAP_TIER ResourceHeapTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS1.gen.cs deleted file mode 100644 index bf012d659c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS1.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS1 -{ - /// - - public BOOL WaveOps; - - /// - - public uint WaveLaneCountMin; - - /// - - public uint WaveLaneCountMax; - - /// - - public uint TotalLaneCount; - - /// - - public BOOL ExpandedComputeResourceStates; - - /// - - public BOOL Int64ShaderOps; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS10.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS10.gen.cs deleted file mode 100644 index 1b2b13eb30..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS10.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS10 -{ - /// - - public BOOL VariableRateShadingSumCombinerSupported; - - /// - - public BOOL MeshShaderPerPrimitiveShadingRateSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS11.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS11.gen.cs deleted file mode 100644 index 5253fb7010..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS11.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS11 -{ - /// - - public BOOL AtomicInt64OnDescriptorHeapResourceSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS12.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS12.gen.cs deleted file mode 100644 index 8709525db1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS12.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS12 -{ - /// - - public D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives; - - /// - - public BOOL EnhancedBarriersSupported; - - /// - - public BOOL RelaxedFormatCastingSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS13.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS13.gen.cs deleted file mode 100644 index 7eee9eedcd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS13.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS13 -{ - /// - - public BOOL UnrestrictedBufferTextureCopyPitchSupported; - - /// - - public BOOL UnrestrictedVertexElementAlignmentSupported; - - /// - - public BOOL InvertedViewportHeightFlipsYSupported; - - /// - - public BOOL InvertedViewportDepthFlipsZSupported; - - /// - - public BOOL TextureCopyBetweenDimensionsSupported; - - /// - - public BOOL AlphaBlendFactorSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS14.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS14.gen.cs deleted file mode 100644 index 34865329f3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS14.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS14 -{ - /// - - public BOOL AdvancedTextureOpsSupported; - - /// - - public BOOL WriteableMSAATexturesSupported; - - /// - - public BOOL IndependentFrontAndBackStencilRefMaskSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS15.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS15.gen.cs deleted file mode 100644 index 76beb9b840..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS15.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS15 -{ - /// - - public BOOL TriangleFanSupported; - - /// - - public BOOL DynamicIndexBufferStripCutSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS2.gen.cs deleted file mode 100644 index a18daa8099..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS2.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS2 -{ - /// - - public BOOL DepthBoundsTestSupported; - - /// - - public D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS3.gen.cs deleted file mode 100644 index c626ea0dea..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS3.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS3 -{ - /// - - public BOOL CopyQueueTimestampQueriesSupported; - - /// - - public BOOL CastingFullyTypedFormatSupported; - - /// - - public D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags; - - /// - - public D3D12_VIEW_INSTANCING_TIER ViewInstancingTier; - - /// - - public BOOL BarycentricsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS4.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS4.gen.cs deleted file mode 100644 index 8de839e4fb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS4.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS4 -{ - /// - - public BOOL MSAA64KBAlignedTextureSupported; - - /// - - public D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier; - - /// - - public BOOL Native16BitShaderOpsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS5.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS5.gen.cs deleted file mode 100644 index 3decc615c1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS5.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS5 -{ - /// - - public BOOL SRVOnlyTiledResourceTier3; - - /// - - public D3D12_RENDER_PASS_TIER RenderPassesTier; - - /// - - public D3D12_RAYTRACING_TIER RaytracingTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS6.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS6.gen.cs deleted file mode 100644 index bc95d8a9dc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS6.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS6 -{ - /// - - public BOOL AdditionalShadingRatesSupported; - - /// - - public BOOL PerPrimitiveShadingRateSupportedWithViewportIndexing; - - /// - - public D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier; - - /// - - public uint ShadingRateImageTileSize; - - /// - - public BOOL BackgroundProcessingSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS7.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS7.gen.cs deleted file mode 100644 index 39fff30b2b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS7.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS7 -{ - /// - - public D3D12_MESH_SHADER_TIER MeshShaderTier; - - /// - - public D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS8.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS8.gen.cs deleted file mode 100644 index 6c27018d74..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS8.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS8 -{ - /// - - public BOOL UnalignedBlockTexturesSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS9.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS9.gen.cs deleted file mode 100644 index 2499b4720b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS9.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_D3D12_OPTIONS9 -{ - /// - - public BOOL MeshShaderPipelineStatsSupported; - - /// - - public BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex; - - /// - - public BOOL AtomicInt64OnTypedResourceSupported; - - /// - - public BOOL AtomicInt64OnGroupSharedSupported; - - /// - - public BOOL DerivativesInMeshAndAmplificationShadersSupported; - - /// - - public D3D12_WAVE_MMA_TIER WaveMMATier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_DISPLAYABLE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_DISPLAYABLE.gen.cs deleted file mode 100644 index 1fc86d5638..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_DISPLAYABLE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_DISPLAYABLE -{ - /// - - public BOOL DisplayableTexture; - - /// - - public D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_EXISTING_HEAPS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_EXISTING_HEAPS.gen.cs deleted file mode 100644 index d454102425..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_EXISTING_HEAPS.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_EXISTING_HEAPS -{ - /// - - public BOOL Supported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FEATURE_LEVELS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FEATURE_LEVELS.gen.cs deleted file mode 100644 index 31c269b783..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FEATURE_LEVELS.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_FEATURE_LEVELS -{ - /// - - public uint NumFeatureLevels; - - /// - - [NativeTypeName("const D3D_FEATURE_LEVEL *")] - public D3D_FEATURE_LEVEL* pFeatureLevelsRequested; - - /// - - public D3D_FEATURE_LEVEL MaxSupportedFeatureLevel; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_INFO.gen.cs deleted file mode 100644 index a172c89805..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_INFO.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_FORMAT_INFO -{ - /// - - public DXGI_FORMAT Format; - - /// - - [NativeTypeName("UINT8")] - public byte PlaneCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_SUPPORT.gen.cs deleted file mode 100644 index fa2f6d8455..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_SUPPORT.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_FORMAT_SUPPORT -{ - /// - - public DXGI_FORMAT Format; - - /// - - public D3D12_FORMAT_SUPPORT1 Support1; - - /// - - public D3D12_FORMAT_SUPPORT2 Support2; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT.gen.cs deleted file mode 100644 index e7789c342d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT -{ - /// - - public uint MaxGPUVirtualAddressBitsPerResource; - - /// - - public uint MaxGPUVirtualAddressBitsPerProcess; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS.gen.cs deleted file mode 100644 index 7efd012770..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS -{ - /// - - public DXGI_FORMAT Format; - - /// - - public uint SampleCount; - - /// - - public D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags; - - /// - - public uint NumQualityLevels; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT.gen.cs deleted file mode 100644 index 4b4a5c7ffe..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS Support; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES.gen.cs deleted file mode 100644 index 1941a961ed..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES -{ - /// - - public uint NodeIndex; - - /// - - public uint Count; - - /// - - public Guid* pTypes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT.gen.cs deleted file mode 100644 index 9153b713e0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT -{ - /// - - public uint NodeIndex; - - /// - - public uint Count; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_QUERY_META_COMMAND.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_QUERY_META_COMMAND.gen.cs deleted file mode 100644 index 2b80f2c13d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_QUERY_META_COMMAND.gen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_QUERY_META_COMMAND -{ - /// - - public Guid CommandId; - - /// - - public uint NodeMask; - - /// - - [NativeTypeName("const void *")] - public void* pQueryInputData; - - /// - - [NativeTypeName("SIZE_T")] - public nuint QueryInputDataSizeInBytes; - - /// - - public void* pQueryOutputData; - - /// - - [NativeTypeName("SIZE_T")] - public nuint QueryOutputDataSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ROOT_SIGNATURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ROOT_SIGNATURE.gen.cs deleted file mode 100644 index 16b22f7c07..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ROOT_SIGNATURE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_ROOT_SIGNATURE -{ - /// - - public D3D_ROOT_SIGNATURE_VERSION HighestVersion; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SERIALIZATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SERIALIZATION.gen.cs deleted file mode 100644 index 2e15ddaabe..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SERIALIZATION.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_SERIALIZATION -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_CACHE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_CACHE.gen.cs deleted file mode 100644 index 5edb256e39..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_CACHE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_SHADER_CACHE -{ - /// - - public D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_MODEL.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_MODEL.gen.cs deleted file mode 100644 index 0c1133fa14..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_MODEL.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_SHADER_MODEL -{ - /// - - public D3D_SHADER_MODEL HighestShaderModel; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FENCE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FENCE_FLAGS.gen.cs deleted file mode 100644 index 7a624d8f9b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FENCE_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_FENCE_FLAGS -{ - /// - - D3D12_FENCE_FLAG_NONE = 0, - - /// - - D3D12_FENCE_FLAG_SHARED = 0x1, - - /// - - D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2, - - /// - - D3D12_FENCE_FLAG_NON_MONITORED = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILL_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILL_MODE.gen.cs deleted file mode 100644 index befc1f94a5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILL_MODE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_FILL_MODE -{ - /// - - D3D12_FILL_MODE_WIREFRAME = 2, - - /// - - D3D12_FILL_MODE_SOLID = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER.gen.cs deleted file mode 100644 index 6992027fff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER.gen.cs +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_FILTER -{ - /// - - D3D12_FILTER_MIN_MAG_MIP_POINT = 0, - - /// - - D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1, - - /// - - D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4, - - /// - - D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5, - - /// - - D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10, - - /// - - D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, - - /// - - D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14, - - /// - - D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x15, - - /// - - D3D12_FILTER_ANISOTROPIC = 0x55, - - /// - - D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80, - - /// - - D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81, - - /// - - D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84, - - /// - - D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85, - - /// - - D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90, - - /// - - D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91, - - /// - - D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94, - - /// - - D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95, - - /// - - D3D12_FILTER_COMPARISON_ANISOTROPIC = 0xd5, - - /// - - D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100, - - /// - - D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101, - - /// - - D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104, - - /// - - D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105, - - /// - - D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110, - - /// - - D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111, - - /// - - D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114, - - /// - - D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115, - - /// - - D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x155, - - /// - - D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180, - - /// - - D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181, - - /// - - D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184, - - /// - - D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185, - - /// - - D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190, - - /// - - D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191, - - /// - - D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194, - - /// - - D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195, - - /// - - D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER_REDUCTION_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER_REDUCTION_TYPE.gen.cs deleted file mode 100644 index 7b42834e51..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER_REDUCTION_TYPE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_FILTER_REDUCTION_TYPE -{ - /// - - D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0, - - /// - - D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1, - - /// - - D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2, - - /// - - D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER_TYPE.gen.cs deleted file mode 100644 index 060b83cb8d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FILTER_TYPE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_FILTER_TYPE -{ - /// - - D3D12_FILTER_TYPE_POINT = 0, - - /// - - D3D12_FILTER_TYPE_LINEAR = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FORMAT_SUPPORT1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FORMAT_SUPPORT1.gen.cs deleted file mode 100644 index 75642323a2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FORMAT_SUPPORT1.gen.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_FORMAT_SUPPORT1 -{ - /// - - D3D12_FORMAT_SUPPORT1_NONE = 0, - - /// - - D3D12_FORMAT_SUPPORT1_BUFFER = 0x1, - - /// - - D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x2, - - /// - - D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x4, - - /// - - D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x8, - - /// - - D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x10, - - /// - - D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x20, - - /// - - D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x40, - - /// - - D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x80, - - /// - - D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x100, - - /// - - D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x200, - - /// - - D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x400, - - /// - - D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x800, - - /// - - D3D12_FORMAT_SUPPORT1_MIP = 0x1000, - - /// - - D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x4000, - - /// - - D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x8000, - - /// - - D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x10000, - - /// - - D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x40000, - - /// - - D3D12_FORMAT_SUPPORT1_DISPLAY = 0x80000, - - /// - - D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x100000, - - /// - - D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x200000, - - /// - - D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x400000, - - /// - - D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x800000, - - /// - - D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x1000000, - - /// - - D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000, - - /// - - D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x4000000, - - /// - - D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x8000000, - - /// - - D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000, - - /// - - D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000, - - /// - - D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FORMAT_SUPPORT2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FORMAT_SUPPORT2.gen.cs deleted file mode 100644 index 0b21d6c202..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_FORMAT_SUPPORT2.gen.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_FORMAT_SUPPORT2 -{ - /// - - D3D12_FORMAT_SUPPORT2_NONE = 0, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40, - - /// - - D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80, - - /// - - D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100, - - /// - - D3D12_FORMAT_SUPPORT2_TILED = 0x200, - - /// - - D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000, - - /// - - D3D12_FORMAT_SUPPORT2_SAMPLER_FEEDBACK = 0x8000, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_BARRIER.gen.cs deleted file mode 100644 index ca9432d1fd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_BARRIER.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_GLOBAL_BARRIER -{ - /// - - public D3D12_BARRIER_SYNC SyncBefore; - - /// - - public D3D12_BARRIER_SYNC SyncAfter; - - /// - - public D3D12_BARRIER_ACCESS AccessBefore; - - /// - - public D3D12_BARRIER_ACCESS AccessAfter; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_ROOT_SIGNATURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_ROOT_SIGNATURE.gen.cs deleted file mode 100644 index a87f1034aa..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_ROOT_SIGNATURE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_GLOBAL_ROOT_SIGNATURE -{ - /// - - public ID3D12RootSignature* pGlobalRootSignature; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_DESCRIPTOR_HANDLE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_DESCRIPTOR_HANDLE.gen.cs deleted file mode 100644 index fc4453d032..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_DESCRIPTOR_HANDLE.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_GPU_DESCRIPTOR_HANDLE -{ - /// - - [NativeTypeName("UINT64")] - public ulong ptr; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE.gen.cs deleted file mode 100644 index d58c145644..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong StartAddress; - - /// - - [NativeTypeName("UINT64")] - public ulong StrideInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE.gen.cs deleted file mode 100644 index 2d0c8a2e49..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong StartAddress; - - /// - - [NativeTypeName("UINT64")] - public ulong SizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE.gen.cs deleted file mode 100644 index 5e7ac740bd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong StartAddress; - - /// - - [NativeTypeName("UINT64")] - public ulong SizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong StrideInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.gen.cs deleted file mode 100644 index f5c39851a3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.gen.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_GRAPHICS_PIPELINE_STATE_DESC -{ - /// - - public ID3D12RootSignature* pRootSignature; - - /// - - public D3D12_SHADER_BYTECODE VS; - - /// - - public D3D12_SHADER_BYTECODE PS; - - /// - - public D3D12_SHADER_BYTECODE DS; - - /// - - public D3D12_SHADER_BYTECODE HS; - - /// - - public D3D12_SHADER_BYTECODE GS; - - /// - - public D3D12_STREAM_OUTPUT_DESC StreamOutput; - - /// - - public D3D12_BLEND_DESC BlendState; - - /// - - public uint SampleMask; - - /// - - public D3D12_RASTERIZER_DESC RasterizerState; - - /// - - public D3D12_DEPTH_STENCIL_DESC DepthStencilState; - - /// - - public D3D12_INPUT_LAYOUT_DESC InputLayout; - - /// - - public D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue; - - /// - - public D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType; - - /// - - public uint NumRenderTargets; - - /// - - [NativeTypeName("DXGI_FORMAT[8]")] - public _RTVFormats_e__FixedBuffer RTVFormats; - - /// - - public DXGI_FORMAT DSVFormat; - - /// - - public DXGI_SAMPLE_DESC SampleDesc; - - /// - - public uint NodeMask; - - /// - - public D3D12_CACHED_PIPELINE_STATE CachedPSO; - - /// - - public D3D12_PIPELINE_STATE_FLAGS Flags; - - /// - - [InlineArray(8)] - public partial struct _RTVFormats_e__FixedBuffer - { - public DXGI_FORMAT e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_STATES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_STATES.gen.cs deleted file mode 100644 index 8d9f8913f2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_STATES.gen.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_GRAPHICS_STATES -{ - /// - - D3D12_GRAPHICS_STATE_NONE = 0, - - /// - - D3D12_GRAPHICS_STATE_IA_VERTEX_BUFFERS = (1 << 0), - - /// - - D3D12_GRAPHICS_STATE_IA_INDEX_BUFFER = (1 << 1), - - /// - - D3D12_GRAPHICS_STATE_IA_PRIMITIVE_TOPOLOGY = (1 << 2), - - /// - - D3D12_GRAPHICS_STATE_DESCRIPTOR_HEAP = (1 << 3), - - /// - - D3D12_GRAPHICS_STATE_GRAPHICS_ROOT_SIGNATURE = (1 << 4), - - /// - - D3D12_GRAPHICS_STATE_COMPUTE_ROOT_SIGNATURE = (1 << 5), - - /// - - D3D12_GRAPHICS_STATE_RS_VIEWPORTS = (1 << 6), - - /// - - D3D12_GRAPHICS_STATE_RS_SCISSOR_RECTS = (1 << 7), - - /// - - D3D12_GRAPHICS_STATE_PREDICATION = (1 << 8), - - /// - - D3D12_GRAPHICS_STATE_OM_RENDER_TARGETS = (1 << 9), - - /// - - D3D12_GRAPHICS_STATE_OM_STENCIL_REF = (1 << 10), - - /// - - D3D12_GRAPHICS_STATE_OM_BLEND_FACTOR = (1 << 11), - - /// - - D3D12_GRAPHICS_STATE_PIPELINE_STATE = (1 << 12), - - /// - - D3D12_GRAPHICS_STATE_SO_TARGETS = (1 << 13), - - /// - - D3D12_GRAPHICS_STATE_OM_DEPTH_BOUNDS = (1 << 14), - - /// - - D3D12_GRAPHICS_STATE_SAMPLE_POSITIONS = (1 << 15), - - /// - - D3D12_GRAPHICS_STATE_VIEW_INSTANCE_MASK = (1 << 16), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_DESC.gen.cs deleted file mode 100644 index 024b5ad3c8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_DESC.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_HEAP_DESC -{ - /// - - [NativeTypeName("UINT64")] - public ulong SizeInBytes; - - /// - - public D3D12_HEAP_PROPERTIES Properties; - - /// - - [NativeTypeName("UINT64")] - public ulong Alignment; - - /// - - public D3D12_HEAP_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_FLAGS.gen.cs deleted file mode 100644 index 6905831437..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_FLAGS.gen.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_HEAP_FLAGS -{ - /// - - D3D12_HEAP_FLAG_NONE = 0, - - /// - - D3D12_HEAP_FLAG_SHARED = 0x1, - - /// - - D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4, - - /// - - D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8, - - /// - - D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20, - - /// - - D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40, - - /// - - D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80, - - /// - - D3D12_HEAP_FLAG_HARDWARE_PROTECTED = 0x100, - - /// - - D3D12_HEAP_FLAG_ALLOW_WRITE_WATCH = 0x200, - - /// - - D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS = 0x400, - - /// - - D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT = 0x800, - - /// - - D3D12_HEAP_FLAG_CREATE_NOT_ZEROED = 0x1000, - - /// - - D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0, - - /// - - D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xc0, - - /// - - D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44, - - /// - - D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_PROPERTIES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_PROPERTIES.gen.cs deleted file mode 100644 index 5bc5e0a54a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_PROPERTIES.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_HEAP_PROPERTIES -{ - /// - - public D3D12_HEAP_TYPE Type; - - /// - - public D3D12_CPU_PAGE_PROPERTY CPUPageProperty; - - /// - - public D3D12_MEMORY_POOL MemoryPoolPreference; - - /// - - public uint CreationNodeMask; - - /// - - public uint VisibleNodeMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_SERIALIZATION_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_SERIALIZATION_TIER.gen.cs deleted file mode 100644 index 6c52781e78..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_SERIALIZATION_TIER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_HEAP_SERIALIZATION_TIER -{ - /// - - D3D12_HEAP_SERIALIZATION_TIER_0 = 0, - - /// - - D3D12_HEAP_SERIALIZATION_TIER_10 = 10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_TYPE.gen.cs deleted file mode 100644 index 628e5c20ff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_TYPE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_HEAP_TYPE -{ - /// - - D3D12_HEAP_TYPE_DEFAULT = 1, - - /// - - D3D12_HEAP_TYPE_UPLOAD = 2, - - /// - - D3D12_HEAP_TYPE_READBACK = 3, - - /// - - D3D12_HEAP_TYPE_CUSTOM = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_DESC.gen.cs deleted file mode 100644 index 23621b4a72..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_DESC.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_HIT_GROUP_DESC -{ - /// - - [NativeTypeName("LPCWSTR")] - public ushort* HitGroupExport; - - /// - - public D3D12_HIT_GROUP_TYPE Type; - - /// - - [NativeTypeName("LPCWSTR")] - public ushort* AnyHitShaderImport; - - /// - - [NativeTypeName("LPCWSTR")] - public ushort* ClosestHitShaderImport; - - /// - - [NativeTypeName("LPCWSTR")] - public ushort* IntersectionShaderImport; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_TYPE.gen.cs deleted file mode 100644 index 267914d20f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_TYPE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_HIT_GROUP_TYPE -{ - /// - - D3D12_HIT_GROUP_TYPE_TRIANGLES = 0, - - /// - - D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_KIND.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_KIND.gen.cs deleted file mode 100644 index 3bef46b006..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_KIND.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_HIT_KIND -{ - /// - - D3D12_HIT_KIND_TRIANGLE_FRONT_FACE = 0xfe, - - /// - - D3D12_HIT_KIND_TRIANGLE_BACK_FACE = 0xff, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_STRIP_CUT_VALUE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_STRIP_CUT_VALUE.gen.cs deleted file mode 100644 index a612caee5a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_STRIP_CUT_VALUE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE -{ - /// - - D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0, - - /// - - D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1, - - /// - - D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_VIEW.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_VIEW.gen.cs deleted file mode 100644 index 769836555f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_VIEW.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_INDEX_BUFFER_VIEW -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong BufferLocation; - - /// - - public uint SizeInBytes; - - /// - - public DXGI_FORMAT Format; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.gen.cs deleted file mode 100644 index eb93d76045..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_DESC.gen.cs +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_INDIRECT_ARGUMENT_DESC -{ - /// - - public D3D12_INDIRECT_ARGUMENT_TYPE Type; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L4274_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref _Anonymous_e__Union._VertexBuffer_e__Struct VertexBuffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.VertexBuffer; } - } - - /// - - [UnscopedRef] - public ref _Anonymous_e__Union._Constant_e__Struct Constant - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Constant; } - } - - /// - - [UnscopedRef] - public ref _Anonymous_e__Union._ConstantBufferView_e__Struct ConstantBufferView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.ConstantBufferView; } - } - - /// - - [UnscopedRef] - public ref _Anonymous_e__Union._ShaderResourceView_e__Struct ShaderResourceView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.ShaderResourceView; } - } - - /// - - [UnscopedRef] - public ref _Anonymous_e__Union._UnorderedAccessView_e__Struct UnorderedAccessView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.UnorderedAccessView; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_d3d12_L4276_C9")] - public _VertexBuffer_e__Struct VertexBuffer; - - /// - - [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_d3d12_L4280_C9")] - public _Constant_e__Struct Constant; - - /// - - [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_d3d12_L4286_C9")] - public _ConstantBufferView_e__Struct ConstantBufferView; - - /// - - [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_d3d12_L4290_C9")] - public _ShaderResourceView_e__Struct ShaderResourceView; - - /// - - [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_d3d12_L4294_C9")] - public _UnorderedAccessView_e__Struct UnorderedAccessView; - - /// - - public partial struct _VertexBuffer_e__Struct - { - /// - - public uint Slot; - } - - /// - - public partial struct _Constant_e__Struct - { - /// - - public uint RootParameterIndex; - - /// - - public uint DestOffsetIn32BitValues; - - /// - - public uint Num32BitValuesToSet; - } - - /// - - public partial struct _ConstantBufferView_e__Struct - { - /// - - public uint RootParameterIndex; - } - - /// - - public partial struct _ShaderResourceView_e__Struct - { - /// - - public uint RootParameterIndex; - } - - /// - - public partial struct _UnorderedAccessView_e__Struct - { - /// - - public uint RootParameterIndex; - } - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_TYPE.gen.cs deleted file mode 100644 index 434dbbe023..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_TYPE.gen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_INDIRECT_ARGUMENT_TYPE -{ - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_DRAW = 0, - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED = (D3D12_INDIRECT_ARGUMENT_TYPE_DRAW + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH = (D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW = (D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW = - (D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT = (D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW = (D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW = - (D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW = - (D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS = - (D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1), - - /// - - D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH = (D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_CLASSIFICATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_CLASSIFICATION.gen.cs deleted file mode 100644 index 5caf4ba58f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_CLASSIFICATION.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_INPUT_CLASSIFICATION -{ - /// - - D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0, - - /// - - D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_ELEMENT_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_ELEMENT_DESC.gen.cs deleted file mode 100644 index 73a76e28f3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_ELEMENT_DESC.gen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_INPUT_ELEMENT_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* SemanticName; - - /// - - public uint SemanticIndex; - - /// - - public DXGI_FORMAT Format; - - /// - - public uint InputSlot; - - /// - - public uint AlignedByteOffset; - - /// - - public D3D12_INPUT_CLASSIFICATION InputSlotClass; - - /// - - public uint InstanceDataStepRate; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_LAYOUT_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_LAYOUT_DESC.gen.cs deleted file mode 100644 index ad76e471d1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_LAYOUT_DESC.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_INPUT_LAYOUT_DESC -{ - /// - - [NativeTypeName("const D3D12_INPUT_ELEMENT_DESC *")] - public D3D12_INPUT_ELEMENT_DESC* pInputElementDescs; - - /// - - public uint NumElements; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LIFETIME_STATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LIFETIME_STATE.gen.cs deleted file mode 100644 index a7f08ca008..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LIFETIME_STATE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_LIFETIME_STATE -{ - /// - - D3D12_LIFETIME_STATE_IN_USE = 0, - - /// - - D3D12_LIFETIME_STATE_NOT_IN_USE = (D3D12_LIFETIME_STATE_IN_USE + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LOCAL_ROOT_SIGNATURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LOCAL_ROOT_SIGNATURE.gen.cs deleted file mode 100644 index 80e7a04445..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LOCAL_ROOT_SIGNATURE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_LOCAL_ROOT_SIGNATURE -{ - /// - - public ID3D12RootSignature* pLocalRootSignature; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LOGIC_OP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LOGIC_OP.gen.cs deleted file mode 100644 index 002eaa5dac..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_LOGIC_OP.gen.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_LOGIC_OP -{ - /// - - D3D12_LOGIC_OP_CLEAR = 0, - - /// - - D3D12_LOGIC_OP_SET = (D3D12_LOGIC_OP_CLEAR + 1), - - /// - - D3D12_LOGIC_OP_COPY = (D3D12_LOGIC_OP_SET + 1), - - /// - - D3D12_LOGIC_OP_COPY_INVERTED = (D3D12_LOGIC_OP_COPY + 1), - - /// - - D3D12_LOGIC_OP_NOOP = (D3D12_LOGIC_OP_COPY_INVERTED + 1), - - /// - - D3D12_LOGIC_OP_INVERT = (D3D12_LOGIC_OP_NOOP + 1), - - /// - - D3D12_LOGIC_OP_AND = (D3D12_LOGIC_OP_INVERT + 1), - - /// - - D3D12_LOGIC_OP_NAND = (D3D12_LOGIC_OP_AND + 1), - - /// - - D3D12_LOGIC_OP_OR = (D3D12_LOGIC_OP_NAND + 1), - - /// - - D3D12_LOGIC_OP_NOR = (D3D12_LOGIC_OP_OR + 1), - - /// - - D3D12_LOGIC_OP_XOR = (D3D12_LOGIC_OP_NOR + 1), - - /// - - D3D12_LOGIC_OP_EQUIV = (D3D12_LOGIC_OP_XOR + 1), - - /// - - D3D12_LOGIC_OP_AND_REVERSE = (D3D12_LOGIC_OP_EQUIV + 1), - - /// - - D3D12_LOGIC_OP_AND_INVERTED = (D3D12_LOGIC_OP_AND_REVERSE + 1), - - /// - - D3D12_LOGIC_OP_OR_REVERSE = (D3D12_LOGIC_OP_AND_INVERTED + 1), - - /// - - D3D12_LOGIC_OP_OR_INVERTED = (D3D12_LOGIC_OP_OR_REVERSE + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEASUREMENTS_ACTION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEASUREMENTS_ACTION.gen.cs deleted file mode 100644 index 3cced660c2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEASUREMENTS_ACTION.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_MEASUREMENTS_ACTION -{ - /// - - D3D12_MEASUREMENTS_ACTION_KEEP_ALL = 0, - - /// - - D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS = (D3D12_MEASUREMENTS_ACTION_KEEP_ALL + 1), - - /// - - D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY = - (D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS + 1), - - /// - - D3D12_MEASUREMENTS_ACTION_DISCARD_PREVIOUS = - (D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMCPY_DEST.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMCPY_DEST.gen.cs deleted file mode 100644 index 4cd92c302b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMCPY_DEST.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_MEMCPY_DEST -{ - /// - - public void* pData; - - /// - - [NativeTypeName("SIZE_T")] - public nuint RowPitch; - - /// - - [NativeTypeName("SIZE_T")] - public nuint SlicePitch; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMORY_POOL.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMORY_POOL.gen.cs deleted file mode 100644 index 4f2a480b71..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMORY_POOL.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_MEMORY_POOL -{ - /// - - D3D12_MEMORY_POOL_UNKNOWN = 0, - - /// - - D3D12_MEMORY_POOL_L0 = 1, - - /// - - D3D12_MEMORY_POOL_L1 = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MESH_SHADER_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MESH_SHADER_TIER.gen.cs deleted file mode 100644 index 635be0cb58..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MESH_SHADER_TIER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_MESH_SHADER_TIER -{ - /// - - D3D12_MESH_SHADER_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_MESH_SHADER_TIER_1 = 10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_DESC.gen.cs deleted file mode 100644 index c15f244c78..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_DESC.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_META_COMMAND_DESC -{ - /// - - public Guid Id; - - /// - - [NativeTypeName("LPCWSTR")] - public ushort* Name; - - /// - - public D3D12_GRAPHICS_STATES InitializationDirtyState; - - /// - - public D3D12_GRAPHICS_STATES ExecutionDirtyState; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_DESC.gen.cs deleted file mode 100644 index 0e83e6809c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_DESC.gen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_META_COMMAND_PARAMETER_DESC -{ - /// - - [NativeTypeName("LPCWSTR")] - public ushort* Name; - - /// - - public D3D12_META_COMMAND_PARAMETER_TYPE Type; - - /// - - public D3D12_META_COMMAND_PARAMETER_FLAGS Flags; - - /// - - public D3D12_RESOURCE_STATES RequiredResourceState; - - /// - - public uint StructureOffset; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_FLAGS.gen.cs deleted file mode 100644 index fbcc768d52..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_META_COMMAND_PARAMETER_FLAGS -{ - /// - - D3D12_META_COMMAND_PARAMETER_FLAG_INPUT = 0x1, - - /// - - D3D12_META_COMMAND_PARAMETER_FLAG_OUTPUT = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_STAGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_STAGE.gen.cs deleted file mode 100644 index 607f24cba9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_STAGE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_META_COMMAND_PARAMETER_STAGE -{ - /// - - D3D12_META_COMMAND_PARAMETER_STAGE_CREATION = 0, - - /// - - D3D12_META_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1, - - /// - - D3D12_META_COMMAND_PARAMETER_STAGE_EXECUTION = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_TYPE.gen.cs deleted file mode 100644 index 477121cb48..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_TYPE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_META_COMMAND_PARAMETER_TYPE -{ - /// - - D3D12_META_COMMAND_PARAMETER_TYPE_FLOAT = 0, - - /// - - D3D12_META_COMMAND_PARAMETER_TYPE_UINT64 = 1, - - /// - - D3D12_META_COMMAND_PARAMETER_TYPE_GPU_VIRTUAL_ADDRESS = 2, - - /// - - D3D12_META_COMMAND_PARAMETER_TYPE_CPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 3, - - /// - - D3D12_META_COMMAND_PARAMETER_TYPE_GPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MIP_REGION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MIP_REGION.gen.cs deleted file mode 100644 index 38ab16461a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MIP_REGION.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_MIP_REGION -{ - /// - - public uint Width; - - /// - - public uint Height; - - /// - - public uint Depth; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MULTIPLE_FENCE_WAIT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MULTIPLE_FENCE_WAIT_FLAGS.gen.cs deleted file mode 100644 index 4cfff7667e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MULTIPLE_FENCE_WAIT_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS -{ - /// - - D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0, - - /// - - D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1, - - /// - - D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS.gen.cs deleted file mode 100644 index c264d895cb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS -{ - /// - - D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0, - - /// - - D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_NODE_MASK.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_NODE_MASK.gen.cs deleted file mode 100644 index e403817ac5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_NODE_MASK.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_NODE_MASK -{ - /// - - public uint NodeMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PACKED_MIP_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PACKED_MIP_INFO.gen.cs deleted file mode 100644 index 867312dcc9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PACKED_MIP_INFO.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_PACKED_MIP_INFO -{ - /// - - [NativeTypeName("UINT8")] - public byte NumStandardMips; - - /// - - [NativeTypeName("UINT8")] - public byte NumPackedMips; - - /// - - public uint NumTilesForPackedMips; - - /// - - public uint StartTileIndexInOverallResource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_FLAGS.gen.cs deleted file mode 100644 index a825e908ba..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_PIPELINE_STATE_FLAGS -{ - /// - - D3D12_PIPELINE_STATE_FLAG_NONE = 0, - - /// - - D3D12_PIPELINE_STATE_FLAG_TOOL_DEBUG = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_STREAM_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_STREAM_DESC.gen.cs deleted file mode 100644 index ce483157dc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_STREAM_DESC.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_PIPELINE_STATE_STREAM_DESC -{ - /// - - [NativeTypeName("SIZE_T")] - public nuint SizeInBytes; - - /// - - public void* pPipelineStateSubobjectStream; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_SUBOBJECT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_SUBOBJECT_TYPE.gen.cs deleted file mode 100644 index 90f774d430..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_SUBOBJECT_TYPE.gen.cs +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE -{ - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE = 0, - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS = (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS = (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS = (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS = (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS = (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 + 1), - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS = 24, - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS = 25, - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 26, - - /// - - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID = - (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PLACED_SUBRESOURCE_FOOTPRINT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PLACED_SUBRESOURCE_FOOTPRINT.gen.cs deleted file mode 100644 index 47273f2c53..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PLACED_SUBRESOURCE_FOOTPRINT.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT -{ - /// - - [NativeTypeName("UINT64")] - public ulong Offset; - - /// - - public D3D12_SUBRESOURCE_FOOTPRINT Footprint; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PREDICATION_OP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PREDICATION_OP.gen.cs deleted file mode 100644 index f6245ac6a8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PREDICATION_OP.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_PREDICATION_OP -{ - /// - - D3D12_PREDICATION_OP_EQUAL_ZERO = 0, - - /// - - D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PRIMITIVE_TOPOLOGY_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PRIMITIVE_TOPOLOGY_TYPE.gen.cs deleted file mode 100644 index 8a58e33848..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PRIMITIVE_TOPOLOGY_TYPE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_PRIMITIVE_TOPOLOGY_TYPE -{ - /// - - D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0, - - /// - - D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1, - - /// - - D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2, - - /// - - D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3, - - /// - - D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER.gen.cs deleted file mode 100644 index 3578bdfa9b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER -{ - /// - - D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 1, - - /// - - D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC.gen.cs deleted file mode 100644 index bb61473cc6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_PROTECTED_RESOURCE_SESSION_DESC -{ - /// - - public uint NodeMask; - - /// - - public D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC1.gen.cs deleted file mode 100644 index 3e84fa8147..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC1.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_PROTECTED_RESOURCE_SESSION_DESC1 -{ - /// - - public uint NodeMask; - - /// - - public D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags; - - /// - - public Guid ProtectionType; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_FLAGS.gen.cs deleted file mode 100644 index bc9ef78d0d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_FLAGS.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_PROTECTED_RESOURCE_SESSION_FLAGS -{ - /// - - D3D12_PROTECTED_RESOURCE_SESSION_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 53d3b9908b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS -{ - /// - - D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_SUPPORTED = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_SESSION_STATUS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_SESSION_STATUS.gen.cs deleted file mode 100644 index 38e406132c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_SESSION_STATUS.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_PROTECTED_SESSION_STATUS -{ - /// - - D3D12_PROTECTED_SESSION_STATUS_OK = 0, - - /// - - D3D12_PROTECTED_SESSION_STATUS_INVALID = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS.gen.cs deleted file mode 100644 index 1e479f1d7f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS.gen.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_QUERY_DATA_PIPELINE_STATISTICS -{ - /// - - [NativeTypeName("UINT64")] - public ulong IAVertices; - - /// - - [NativeTypeName("UINT64")] - public ulong IAPrimitives; - - /// - - [NativeTypeName("UINT64")] - public ulong VSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong GSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong GSPrimitives; - - /// - - [NativeTypeName("UINT64")] - public ulong CInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong CPrimitives; - - /// - - [NativeTypeName("UINT64")] - public ulong PSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong HSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong DSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong CSInvocations; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS1.gen.cs deleted file mode 100644 index feb301bb09..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS1.gen.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_QUERY_DATA_PIPELINE_STATISTICS1 -{ - /// - - [NativeTypeName("UINT64")] - public ulong IAVertices; - - /// - - [NativeTypeName("UINT64")] - public ulong IAPrimitives; - - /// - - [NativeTypeName("UINT64")] - public ulong VSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong GSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong GSPrimitives; - - /// - - [NativeTypeName("UINT64")] - public ulong CInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong CPrimitives; - - /// - - [NativeTypeName("UINT64")] - public ulong PSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong HSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong DSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong CSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong ASInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong MSInvocations; - - /// - - [NativeTypeName("UINT64")] - public ulong MSPrimitives; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_SO_STATISTICS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_SO_STATISTICS.gen.cs deleted file mode 100644 index dde3237917..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_SO_STATISTICS.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_QUERY_DATA_SO_STATISTICS -{ - /// - - [NativeTypeName("UINT64")] - public ulong NumPrimitivesWritten; - - /// - - [NativeTypeName("UINT64")] - public ulong PrimitivesStorageNeeded; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_DESC.gen.cs deleted file mode 100644 index 7b32774c48..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_DESC.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_QUERY_HEAP_DESC -{ - /// - - public D3D12_QUERY_HEAP_TYPE Type; - - /// - - public uint Count; - - /// - - public uint NodeMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_TYPE.gen.cs deleted file mode 100644 index 1d58f051a0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_TYPE.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_QUERY_HEAP_TYPE -{ - /// - - D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0, - - /// - - D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1, - - /// - - D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2, - - /// - - D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3, - - /// - - D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS = 4, - - /// - - D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP = 5, - - /// - - D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_TYPE.gen.cs deleted file mode 100644 index 2e5c784501..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_TYPE.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_QUERY_TYPE -{ - /// - - D3D12_QUERY_TYPE_OCCLUSION = 0, - - /// - - D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1, - - /// - - D3D12_QUERY_TYPE_TIMESTAMP = 2, - - /// - - D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3, - - /// - - D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4, - - /// - - D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5, - - /// - - D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6, - - /// - - D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7, - - /// - - D3D12_QUERY_TYPE_VIDEO_DECODE_STATISTICS = 8, - - /// - - D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 = 10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE.gen.cs deleted file mode 100644 index 2176f2b4df..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RANGE -{ - /// - - [NativeTypeName("SIZE_T")] - public nuint Begin; - - /// - - [NativeTypeName("SIZE_T")] - public nuint End; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE_UINT64.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE_UINT64.gen.cs deleted file mode 100644 index 19c5ee9dc6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE_UINT64.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RANGE_UINT64 -{ - /// - - [NativeTypeName("UINT64")] - public ulong Begin; - - /// - - [NativeTypeName("UINT64")] - public ulong End; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RASTERIZER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RASTERIZER_DESC.gen.cs deleted file mode 100644 index de94aded56..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RASTERIZER_DESC.gen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RASTERIZER_DESC -{ - /// - - public D3D12_FILL_MODE FillMode; - - /// - - public D3D12_CULL_MODE CullMode; - - /// - - public BOOL FrontCounterClockwise; - - /// - - public int DepthBias; - - /// - - public float DepthBiasClamp; - - /// - - public float SlopeScaledDepthBias; - - /// - - public BOOL DepthClipEnable; - - /// - - public BOOL MultisampleEnable; - - /// - - public BOOL AntialiasedLineEnable; - - /// - - public uint ForcedSampleCount; - - /// - - public D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_AABB.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_AABB.gen.cs deleted file mode 100644 index 755af1de44..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_AABB.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_AABB -{ - /// - - public float MinX; - - /// - - public float MinY; - - /// - - public float MinZ; - - /// - - public float MaxX; - - /// - - public float MaxY; - - /// - - public float MaxZ; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS.gen.cs deleted file mode 100644 index accc77d228..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS -{ - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_NONE = 0, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE = 0x1, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_COMPACTION = 0x2, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_TRACE = 0x4, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_BUILD = 0x8, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_MINIMIZE_MEMORY = 0x10, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PERFORM_UPDATE = 0x20, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE.gen.cs deleted file mode 100644 index 5d6a6b88e5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE -{ - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_CLONE = 0, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT = 0x1, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS = 0x2, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE = 0x3, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC.gen.cs deleted file mode 100644 index f1c2a55c48..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC -{ - /// - - [NativeTypeName("UINT64")] - public ulong CompactedSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC.gen.cs deleted file mode 100644 index 8e2c6de955..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC -{ - /// - - [NativeTypeName("UINT64")] - public ulong CurrentSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC.gen.cs deleted file mode 100644 index bcc7672b61..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong DestBuffer; - - /// - - public D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE InfoType; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC.gen.cs deleted file mode 100644 index 423afbb63b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC -{ - /// - - [NativeTypeName("UINT64")] - public ulong SerializedSizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong NumBottomLevelAccelerationStructurePointers; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC.gen.cs deleted file mode 100644 index 50cb35e84d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC -{ - /// - - [NativeTypeName("UINT64")] - public ulong DecodedSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE.gen.cs deleted file mode 100644 index e65d36ac95..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE -{ - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE = 0, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION = 0x2, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE = 0x3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO.gen.cs deleted file mode 100644 index b66739cb5a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO -{ - /// - - [NativeTypeName("UINT64")] - public ulong ResultDataMaxSizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong ScratchDataSizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong UpdateScratchDataSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV.gen.cs deleted file mode 100644 index 77b815c92f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong Location; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE.gen.cs deleted file mode 100644 index 749d4204e5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE -{ - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL = 0, - - /// - - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_AABBS_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_AABBS_DESC.gen.cs deleted file mode 100644 index 3dceb32439..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_AABBS_DESC.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_GEOMETRY_AABBS_DESC -{ - /// - - [NativeTypeName("UINT64")] - public ulong AABBCount; - - /// - - public D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE AABBs; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.gen.cs deleted file mode 100644 index 5291c50535..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_DESC.gen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_GEOMETRY_DESC -{ - /// - - public D3D12_RAYTRACING_GEOMETRY_TYPE Type; - - /// - - public D3D12_RAYTRACING_GEOMETRY_FLAGS Flags; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L13820_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Triangles; } - } - - /// - - [UnscopedRef] - public ref D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.AABBs; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles; - - /// - - [FieldOffset(0)] - public D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_FLAGS.gen.cs deleted file mode 100644 index 5b6956a3f1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RAYTRACING_GEOMETRY_FLAGS -{ - /// - - D3D12_RAYTRACING_GEOMETRY_FLAG_NONE = 0, - - /// - - D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE = 0x1, - - /// - - D3D12_RAYTRACING_GEOMETRY_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC.gen.cs deleted file mode 100644 index f97bd6c55e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong Transform3x4; - - /// - - public DXGI_FORMAT IndexFormat; - - /// - - public DXGI_FORMAT VertexFormat; - - /// - - public uint IndexCount; - - /// - - public uint VertexCount; - - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong IndexBuffer; - - /// - - public D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE VertexBuffer; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TYPE.gen.cs deleted file mode 100644 index 317ec883a9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TYPE.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RAYTRACING_GEOMETRY_TYPE -{ - /// - - D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES = 0, - - /// - - D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS = - (D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_DESC.gen.cs deleted file mode 100644 index 9daeaa06c4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_DESC.gen.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_INSTANCE_DESC -{ - /// - - [NativeTypeName("FLOAT[3][4]")] - public _Transform_e__FixedBuffer Transform; - public uint _bitfield1; - - /// - - [NativeTypeName("uint : 24")] - public uint InstanceID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - readonly get { return _bitfield1 & 0xFFFFFFu; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { _bitfield1 = (_bitfield1 & ~0xFFFFFFu) | (value & 0xFFFFFFu); } - } - - /// - - [NativeTypeName("uint : 8")] - public uint InstanceMask - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - readonly get { return (_bitfield1 >> 24) & 0xFFu; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { _bitfield1 = (_bitfield1 & ~(0xFFu << 24)) | ((value & 0xFFu) << 24); } - } - public uint _bitfield2; - - /// - - [NativeTypeName("uint : 24")] - public uint InstanceContributionToHitGroupIndex - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - readonly get { return _bitfield2 & 0xFFFFFFu; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { _bitfield2 = (_bitfield2 & ~0xFFFFFFu) | (value & 0xFFFFFFu); } - } - - /// - - [NativeTypeName("uint : 8")] - public uint Flags - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - readonly get { return (_bitfield2 >> 24) & 0xFFu; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { _bitfield2 = (_bitfield2 & ~(0xFFu << 24)) | ((value & 0xFFu) << 24); } - } - - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong AccelerationStructure; - - /// - - [InlineArray(3 * 4)] - public partial struct _Transform_e__FixedBuffer - { - public float e0_0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_FLAGS.gen.cs deleted file mode 100644 index 9198767f03..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_FLAGS.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RAYTRACING_INSTANCE_FLAGS -{ - /// - - D3D12_RAYTRACING_INSTANCE_FLAG_NONE = 0, - - /// - - D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE = 0x1, - - /// - - D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE = 0x2, - - /// - - D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OPAQUE = 0x4, - - /// - - D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE = 0x8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG.gen.cs deleted file mode 100644 index 5e5d8ea86d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_PIPELINE_CONFIG -{ - /// - - public uint MaxTraceRecursionDepth; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG1.gen.cs deleted file mode 100644 index 68ff8b14f6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG1.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_PIPELINE_CONFIG1 -{ - /// - - public uint MaxTraceRecursionDepth; - - /// - - public D3D12_RAYTRACING_PIPELINE_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_FLAGS.gen.cs deleted file mode 100644 index 737eb25cd7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_FLAGS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RAYTRACING_PIPELINE_FLAGS -{ - /// - - D3D12_RAYTRACING_PIPELINE_FLAG_NONE = 0, - - /// - - D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_TRIANGLES = 0x100, - - /// - - D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_SHADER_CONFIG.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_SHADER_CONFIG.gen.cs deleted file mode 100644 index 1c6f58e616..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_SHADER_CONFIG.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RAYTRACING_SHADER_CONFIG -{ - /// - - public uint MaxPayloadSizeInBytes; - - /// - - public uint MaxAttributeSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_TIER.gen.cs deleted file mode 100644 index baf9645402..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RAYTRACING_TIER -{ - /// - - D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_RAYTRACING_TIER_1_0 = 10, - - /// - - D3D12_RAYTRACING_TIER_1_1 = 11, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAY_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAY_FLAGS.gen.cs deleted file mode 100644 index 38aa4811cc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RAY_FLAGS.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RAY_FLAGS -{ - /// - - D3D12_RAY_FLAG_NONE = 0, - - /// - - D3D12_RAY_FLAG_FORCE_OPAQUE = 0x1, - - /// - - D3D12_RAY_FLAG_FORCE_NON_OPAQUE = 0x2, - - /// - - D3D12_RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH = 0x4, - - /// - - D3D12_RAY_FLAG_SKIP_CLOSEST_HIT_SHADER = 0x8, - - /// - - D3D12_RAY_FLAG_CULL_BACK_FACING_TRIANGLES = 0x10, - - /// - - D3D12_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES = 0x20, - - /// - - D3D12_RAY_FLAG_CULL_OPAQUE = 0x40, - - /// - - D3D12_RAY_FLAG_CULL_NON_OPAQUE = 0x80, - - /// - - D3D12_RAY_FLAG_SKIP_TRIANGLES = 0x100, - - /// - - D3D12_RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.gen.cs deleted file mode 100644 index 48c6e7d0c7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_PASS_BEGINNING_ACCESS -{ - /// - - public D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE Type; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L19822_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Clear; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS.gen.cs deleted file mode 100644 index 5f03967e3e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS -{ - /// - - public D3D12_CLEAR_VALUE ClearValue; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE.gen.cs deleted file mode 100644 index 11e95f7c48..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE -{ - /// - - D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD = 0, - - /// - - D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE = - (D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD + 1), - - /// - - D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR = - (D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE + 1), - - /// - - D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS = - (D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_DEPTH_STENCIL_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_DEPTH_STENCIL_DESC.gen.cs deleted file mode 100644 index 82d5cc616c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_DEPTH_STENCIL_DESC.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC -{ - /// - - public D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor; - - /// - - public D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess; - - /// - - public D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess; - - /// - - public D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess; - - /// - - public D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.gen.cs deleted file mode 100644 index 8812b2d7bd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_PASS_ENDING_ACCESS -{ - /// - - public D3D12_RENDER_PASS_ENDING_ACCESS_TYPE Type; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L19860_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Resolve; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS.gen.cs deleted file mode 100644 index 623cc5e843..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS -{ - /// - - public ID3D12Resource* pSrcResource; - - /// - - public ID3D12Resource* pDstResource; - - /// - - public uint SubresourceCount; - - /// - - [NativeTypeName("const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS *")] - public D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS* pSubresourceParameters; - - /// - - public DXGI_FORMAT Format; - - /// - - public D3D12_RESOLVE_MODE ResolveMode; - - /// - - public BOOL PreserveResolveSource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS.gen.cs deleted file mode 100644 index d81db61026..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS -{ - /// - - public uint SrcSubresource; - - /// - - public uint DstSubresource; - - /// - - public uint DstX; - - /// - - public uint DstY; - - /// - - [NativeTypeName("D3D12_RECT")] - public RECT SrcRect; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_TYPE.gen.cs deleted file mode 100644 index 9d4a087801..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_TYPE.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RENDER_PASS_ENDING_ACCESS_TYPE -{ - /// - - D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD = 0, - - /// - - D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE = - (D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD + 1), - - /// - - D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE = - (D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE + 1), - - /// - - D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS = - (D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_FLAGS.gen.cs deleted file mode 100644 index 928fcb6584..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RENDER_PASS_FLAGS -{ - /// - - D3D12_RENDER_PASS_FLAG_NONE = 0, - - /// - - D3D12_RENDER_PASS_FLAG_ALLOW_UAV_WRITES = 0x1, - - /// - - D3D12_RENDER_PASS_FLAG_SUSPENDING_PASS = 0x2, - - /// - - D3D12_RENDER_PASS_FLAG_RESUMING_PASS = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_RENDER_TARGET_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_RENDER_TARGET_DESC.gen.cs deleted file mode 100644 index f36cdf8f09..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_RENDER_TARGET_DESC.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_PASS_RENDER_TARGET_DESC -{ - /// - - public D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor; - - /// - - public D3D12_RENDER_PASS_BEGINNING_ACCESS BeginningAccess; - - /// - - public D3D12_RENDER_PASS_ENDING_ACCESS EndingAccess; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_TIER.gen.cs deleted file mode 100644 index 2bf04224a5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RENDER_PASS_TIER -{ - /// - - D3D12_RENDER_PASS_TIER_0 = 0, - - /// - - D3D12_RENDER_PASS_TIER_1 = 1, - - /// - - D3D12_RENDER_PASS_TIER_2 = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_BLEND_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_BLEND_DESC.gen.cs deleted file mode 100644 index 720886a88f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_BLEND_DESC.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_TARGET_BLEND_DESC -{ - /// - - public BOOL BlendEnable; - - /// - - public BOOL LogicOpEnable; - - /// - - public D3D12_BLEND SrcBlend; - - /// - - public D3D12_BLEND DestBlend; - - /// - - public D3D12_BLEND_OP BlendOp; - - /// - - public D3D12_BLEND SrcBlendAlpha; - - /// - - public D3D12_BLEND DestBlendAlpha; - - /// - - public D3D12_BLEND_OP BlendOpAlpha; - - /// - - public D3D12_LOGIC_OP LogicOp; - - /// - - [NativeTypeName("UINT8")] - public byte RenderTargetWriteMask; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.gen.cs deleted file mode 100644 index 0e213c1457..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_VIEW_DESC.gen.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RENDER_TARGET_VIEW_DESC -{ - /// - - public DXGI_FORMAT Format; - - /// - - public D3D12_RTV_DIMENSION ViewDimension; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3549_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_BUFFER_RTV Buffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Buffer; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_RTV Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_ARRAY_RTV Texture1DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_RTV Texture2D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_ARRAY_RTV Texture2DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_RTV Texture2DMS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMS; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMSArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX3D_RTV Texture3D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture3D; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_BUFFER_RTV Buffer; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_RTV Texture1D; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_ARRAY_RTV Texture1DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_RTV Texture2D; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_ARRAY_RTV Texture2DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_RTV Texture2DMS; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX3D_RTV Texture3D; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESIDENCY_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESIDENCY_FLAGS.gen.cs deleted file mode 100644 index 7db7217b1a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESIDENCY_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RESIDENCY_FLAGS -{ - /// - - D3D12_RESIDENCY_FLAG_NONE = 0, - - /// - - D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESIDENCY_PRIORITY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESIDENCY_PRIORITY.gen.cs deleted file mode 100644 index 466e3f9aaa..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESIDENCY_PRIORITY.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RESIDENCY_PRIORITY -{ - /// - - D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000, - - /// - - D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000, - - /// - - D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000, - - /// - - D3D12_RESIDENCY_PRIORITY_HIGH = unchecked((int)(0xa0010000)), - - /// - - D3D12_RESIDENCY_PRIORITY_MAXIMUM = unchecked((int)(0xc8000000)), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOLVE_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOLVE_MODE.gen.cs deleted file mode 100644 index bf4d43bbd8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOLVE_MODE.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RESOLVE_MODE -{ - /// - - D3D12_RESOLVE_MODE_DECOMPRESS = 0, - - /// - - D3D12_RESOLVE_MODE_MIN = 1, - - /// - - D3D12_RESOLVE_MODE_MAX = 2, - - /// - - D3D12_RESOLVE_MODE_AVERAGE = 3, - - /// - - D3D12_RESOLVE_MODE_ENCODE_SAMPLER_FEEDBACK = 4, - - /// - - D3D12_RESOLVE_MODE_DECODE_SAMPLER_FEEDBACK = 5, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALIASING_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALIASING_BARRIER.gen.cs deleted file mode 100644 index 4afafd9076..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALIASING_BARRIER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_RESOURCE_ALIASING_BARRIER -{ - /// - - public ID3D12Resource* pResourceBefore; - - /// - - public ID3D12Resource* pResourceAfter; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO.gen.cs deleted file mode 100644 index 472cf4e1fd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RESOURCE_ALLOCATION_INFO -{ - /// - - [NativeTypeName("UINT64")] - public ulong SizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong Alignment; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO1.gen.cs deleted file mode 100644 index 4cfe47ae06..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO1.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RESOURCE_ALLOCATION_INFO1 -{ - /// - - [NativeTypeName("UINT64")] - public ulong Offset; - - /// - - [NativeTypeName("UINT64")] - public ulong Alignment; - - /// - - [NativeTypeName("UINT64")] - public ulong SizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER.gen.cs deleted file mode 100644 index 697d738b5c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RESOURCE_BARRIER -{ - /// - - public D3D12_RESOURCE_BARRIER_TYPE Type; - - /// - - public D3D12_RESOURCE_BARRIER_FLAGS Flags; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3002_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_RESOURCE_TRANSITION_BARRIER Transition - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Transition; } - } - - /// - - [UnscopedRef] - public ref D3D12_RESOURCE_ALIASING_BARRIER Aliasing - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Aliasing; } - } - - /// - - [UnscopedRef] - public ref D3D12_RESOURCE_UAV_BARRIER UAV - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.UAV; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_RESOURCE_TRANSITION_BARRIER Transition; - - /// - - [FieldOffset(0)] - public D3D12_RESOURCE_ALIASING_BARRIER Aliasing; - - /// - - [FieldOffset(0)] - public D3D12_RESOURCE_UAV_BARRIER UAV; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER_FLAGS.gen.cs deleted file mode 100644 index 3a62707fcd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RESOURCE_BARRIER_FLAGS -{ - /// - - D3D12_RESOURCE_BARRIER_FLAG_NONE = 0, - - /// - - D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1, - - /// - - D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER_TYPE.gen.cs deleted file mode 100644 index e984984bc0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIER_TYPE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RESOURCE_BARRIER_TYPE -{ - /// - - D3D12_RESOURCE_BARRIER_TYPE_TRANSITION = 0, - - /// - - D3D12_RESOURCE_BARRIER_TYPE_ALIASING = (D3D12_RESOURCE_BARRIER_TYPE_TRANSITION + 1), - - /// - - D3D12_RESOURCE_BARRIER_TYPE_UAV = (D3D12_RESOURCE_BARRIER_TYPE_ALIASING + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BINDING_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BINDING_TIER.gen.cs deleted file mode 100644 index 96e0fe5377..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BINDING_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RESOURCE_BINDING_TIER -{ - /// - - D3D12_RESOURCE_BINDING_TIER_1 = 1, - - /// - - D3D12_RESOURCE_BINDING_TIER_2 = 2, - - /// - - D3D12_RESOURCE_BINDING_TIER_3 = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC.gen.cs deleted file mode 100644 index 5045e7dd6b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RESOURCE_DESC -{ - /// - - public D3D12_RESOURCE_DIMENSION Dimension; - - /// - - [NativeTypeName("UINT64")] - public ulong Alignment; - - /// - - [NativeTypeName("UINT64")] - public ulong Width; - - /// - - public uint Height; - - /// - - [NativeTypeName("UINT16")] - public ushort DepthOrArraySize; - - /// - - [NativeTypeName("UINT16")] - public ushort MipLevels; - - /// - - public DXGI_FORMAT Format; - - /// - - public DXGI_SAMPLE_DESC SampleDesc; - - /// - - public D3D12_TEXTURE_LAYOUT Layout; - - /// - - public D3D12_RESOURCE_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC1.gen.cs deleted file mode 100644 index 5521dd0a6e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC1.gen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RESOURCE_DESC1 -{ - /// - - public D3D12_RESOURCE_DIMENSION Dimension; - - /// - - [NativeTypeName("UINT64")] - public ulong Alignment; - - /// - - [NativeTypeName("UINT64")] - public ulong Width; - - /// - - public uint Height; - - /// - - [NativeTypeName("UINT16")] - public ushort DepthOrArraySize; - - /// - - [NativeTypeName("UINT16")] - public ushort MipLevels; - - /// - - public DXGI_FORMAT Format; - - /// - - public DXGI_SAMPLE_DESC SampleDesc; - - /// - - public D3D12_TEXTURE_LAYOUT Layout; - - /// - - public D3D12_RESOURCE_FLAGS Flags; - - /// - - public D3D12_MIP_REGION SamplerFeedbackMipRegion; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DIMENSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DIMENSION.gen.cs deleted file mode 100644 index ce98e2d52c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DIMENSION.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RESOURCE_DIMENSION -{ - /// - - D3D12_RESOURCE_DIMENSION_UNKNOWN = 0, - - /// - - D3D12_RESOURCE_DIMENSION_BUFFER = 1, - - /// - - D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2, - - /// - - D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3, - - /// - - D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_FLAGS.gen.cs deleted file mode 100644 index 2102083ee0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_FLAGS.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RESOURCE_FLAGS -{ - /// - - D3D12_RESOURCE_FLAG_NONE = 0, - - /// - - D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1, - - /// - - D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2, - - /// - - D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4, - - /// - - D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8, - - /// - - D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10, - - /// - - D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20, - - /// - - D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY = 0x40, - - /// - - D3D12_RESOURCE_FLAG_VIDEO_ENCODE_REFERENCE_ONLY = 0x80, - - /// - - D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE = 0x100, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_HEAP_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_HEAP_TIER.gen.cs deleted file mode 100644 index eca22867c5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_HEAP_TIER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RESOURCE_HEAP_TIER -{ - /// - - D3D12_RESOURCE_HEAP_TIER_1 = 1, - - /// - - D3D12_RESOURCE_HEAP_TIER_2 = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_STATES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_STATES.gen.cs deleted file mode 100644 index ae5b10a7c0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_STATES.gen.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RESOURCE_STATES -{ - /// - - D3D12_RESOURCE_STATE_COMMON = 0, - - /// - - D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x1, - - /// - - D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x2, - - /// - - D3D12_RESOURCE_STATE_RENDER_TARGET = 0x4, - - /// - - D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x8, - - /// - - D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x10, - - /// - - D3D12_RESOURCE_STATE_DEPTH_READ = 0x20, - - /// - - D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x40, - - /// - - D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x80, - - /// - - D3D12_RESOURCE_STATE_STREAM_OUT = 0x100, - - /// - - D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x200, - - /// - - D3D12_RESOURCE_STATE_COPY_DEST = 0x400, - - /// - - D3D12_RESOURCE_STATE_COPY_SOURCE = 0x800, - - /// - - D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x1000, - - /// - - D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x2000, - - /// - - D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE = 0x400000, - - /// - - D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = 0x1000000, - - /// - - D3D12_RESOURCE_STATE_GENERIC_READ = (((((0x1 | 0x2) | 0x40) | 0x80) | 0x200) | 0x800), - - /// - - D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE = (0x40 | 0x80), - - /// - - D3D12_RESOURCE_STATE_PRESENT = 0, - - /// - - D3D12_RESOURCE_STATE_PREDICATION = 0x200, - - /// - - D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x10000, - - /// - - D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x20000, - - /// - - D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x40000, - - /// - - D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x80000, - - /// - - D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x200000, - - /// - - D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x800000, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_TRANSITION_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_TRANSITION_BARRIER.gen.cs deleted file mode 100644 index 99a5721bd5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_TRANSITION_BARRIER.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_RESOURCE_TRANSITION_BARRIER -{ - /// - - public ID3D12Resource* pResource; - - /// - - public uint Subresource; - - /// - - public D3D12_RESOURCE_STATES StateBefore; - - /// - - public D3D12_RESOURCE_STATES StateAfter; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_UAV_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_UAV_BARRIER.gen.cs deleted file mode 100644 index a046e3bbea..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_UAV_BARRIER.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_RESOURCE_UAV_BARRIER -{ - /// - - public ID3D12Resource* pResource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_CONSTANTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_CONSTANTS.gen.cs deleted file mode 100644 index 1ba0642a43..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_CONSTANTS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_ROOT_CONSTANTS -{ - /// - - public uint ShaderRegister; - - /// - - public uint RegisterSpace; - - /// - - public uint Num32BitValues; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR.gen.cs deleted file mode 100644 index 9dd5d9786b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_ROOT_DESCRIPTOR -{ - /// - - public uint ShaderRegister; - - /// - - public uint RegisterSpace; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR1.gen.cs deleted file mode 100644 index 4f1ce5e392..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR1.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_ROOT_DESCRIPTOR1 -{ - /// - - public uint ShaderRegister; - - /// - - public uint RegisterSpace; - - /// - - public D3D12_ROOT_DESCRIPTOR_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_FLAGS.gen.cs deleted file mode 100644 index 4db4be3a56..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_ROOT_DESCRIPTOR_FLAGS -{ - /// - - D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0, - - /// - - D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2, - - /// - - D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4, - - /// - - D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE.gen.cs deleted file mode 100644 index fd09e8aed7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_ROOT_DESCRIPTOR_TABLE -{ - /// - - public uint NumDescriptorRanges; - - /// - - [NativeTypeName("const D3D12_DESCRIPTOR_RANGE *")] - public D3D12_DESCRIPTOR_RANGE* pDescriptorRanges; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE1.gen.cs deleted file mode 100644 index 87780eb961..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE1.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_ROOT_DESCRIPTOR_TABLE1 -{ - /// - - public uint NumDescriptorRanges; - - /// - - [NativeTypeName("const D3D12_DESCRIPTOR_RANGE1 *")] - public D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER.gen.cs deleted file mode 100644 index 8042d37de5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_ROOT_PARAMETER -{ - /// - - public D3D12_ROOT_PARAMETER_TYPE ParameterType; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3741_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - public D3D12_SHADER_VISIBILITY ShaderVisibility; - - /// - - [UnscopedRef] - public ref D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.DescriptorTable; } - } - - /// - - [UnscopedRef] - public ref D3D12_ROOT_CONSTANTS Constants - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Constants; } - } - - /// - - [UnscopedRef] - public ref D3D12_ROOT_DESCRIPTOR Descriptor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Descriptor; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable; - - /// - - [FieldOffset(0)] - public D3D12_ROOT_CONSTANTS Constants; - - /// - - [FieldOffset(0)] - public D3D12_ROOT_DESCRIPTOR Descriptor; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER1.gen.cs deleted file mode 100644 index 6a029740c9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER1.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_ROOT_PARAMETER1 -{ - /// - - public D3D12_ROOT_PARAMETER_TYPE ParameterType; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3853_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - public D3D12_SHADER_VISIBILITY ShaderVisibility; - - /// - - [UnscopedRef] - public ref D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.DescriptorTable; } - } - - /// - - [UnscopedRef] - public ref D3D12_ROOT_CONSTANTS Constants - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Constants; } - } - - /// - - [UnscopedRef] - public ref D3D12_ROOT_DESCRIPTOR1 Descriptor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Descriptor; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable; - - /// - - [FieldOffset(0)] - public D3D12_ROOT_CONSTANTS Constants; - - /// - - [FieldOffset(0)] - public D3D12_ROOT_DESCRIPTOR1 Descriptor; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER_TYPE.gen.cs deleted file mode 100644 index 8cf50fd285..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER_TYPE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_ROOT_PARAMETER_TYPE -{ - /// - - D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE = 0, - - /// - - D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS = (D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE + 1), - - /// - - D3D12_ROOT_PARAMETER_TYPE_CBV = (D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS + 1), - - /// - - D3D12_ROOT_PARAMETER_TYPE_SRV = (D3D12_ROOT_PARAMETER_TYPE_CBV + 1), - - /// - - D3D12_ROOT_PARAMETER_TYPE_UAV = (D3D12_ROOT_PARAMETER_TYPE_SRV + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC.gen.cs deleted file mode 100644 index e8511a4aac..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_ROOT_SIGNATURE_DESC -{ - /// - - public uint NumParameters; - - /// - - [NativeTypeName("const D3D12_ROOT_PARAMETER *")] - public D3D12_ROOT_PARAMETER* pParameters; - - /// - - public uint NumStaticSamplers; - - /// - - [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] - public D3D12_STATIC_SAMPLER_DESC* pStaticSamplers; - - /// - - public D3D12_ROOT_SIGNATURE_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC1.gen.cs deleted file mode 100644 index 18b9042deb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC1.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_ROOT_SIGNATURE_DESC1 -{ - /// - - public uint NumParameters; - - /// - - [NativeTypeName("const D3D12_ROOT_PARAMETER1 *")] - public D3D12_ROOT_PARAMETER1* pParameters; - - /// - - public uint NumStaticSamplers; - - /// - - [NativeTypeName("const D3D12_STATIC_SAMPLER_DESC *")] - public D3D12_STATIC_SAMPLER_DESC* pStaticSamplers; - - /// - - public D3D12_ROOT_SIGNATURE_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_FLAGS.gen.cs deleted file mode 100644 index 6fe12886be..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_FLAGS.gen.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_ROOT_SIGNATURE_FLAGS -{ - /// - - D3D12_ROOT_SIGNATURE_FLAG_NONE = 0, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_AMPLIFICATION_SHADER_ROOT_ACCESS = 0x100, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_DENY_MESH_SHADER_ROOT_ACCESS = 0x200, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED = 0x400, - - /// - - D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED = 0x800, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RTV_DIMENSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RTV_DIMENSION.gen.cs deleted file mode 100644 index a145f0c28f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RTV_DIMENSION.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_RTV_DIMENSION -{ - /// - - D3D12_RTV_DIMENSION_UNKNOWN = 0, - - /// - - D3D12_RTV_DIMENSION_BUFFER = 1, - - /// - - D3D12_RTV_DIMENSION_TEXTURE1D = 2, - - /// - - D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3, - - /// - - D3D12_RTV_DIMENSION_TEXTURE2D = 4, - - /// - - D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5, - - /// - - D3D12_RTV_DIMENSION_TEXTURE2DMS = 6, - - /// - - D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, - - /// - - D3D12_RTV_DIMENSION_TEXTURE3D = 8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RT_FORMAT_ARRAY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RT_FORMAT_ARRAY.gen.cs deleted file mode 100644 index e1d451ed04..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_RT_FORMAT_ARRAY.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_RT_FORMAT_ARRAY -{ - /// - - [NativeTypeName("DXGI_FORMAT[8]")] - public _RTFormats_e__FixedBuffer RTFormats; - - /// - - public uint NumRenderTargets; - - /// - - [InlineArray(8)] - public partial struct _RTFormats_e__FixedBuffer - { - public DXGI_FORMAT e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC.gen.cs deleted file mode 100644 index 1958bd157d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC.gen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SAMPLER_DESC -{ - /// - - public D3D12_FILTER Filter; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressU; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressV; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressW; - - /// - - public float MipLODBias; - - /// - - public uint MaxAnisotropy; - - /// - - public D3D12_COMPARISON_FUNC ComparisonFunc; - - /// - - [NativeTypeName("FLOAT[4]")] - public _BorderColor_e__FixedBuffer BorderColor; - - /// - - public float MinLOD; - - /// - - public float MaxLOD; - - /// - - [InlineArray(4)] - public partial struct _BorderColor_e__FixedBuffer - { - public float e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC2.gen.cs deleted file mode 100644 index 0c7797ab96..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC2.gen.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SAMPLER_DESC2 -{ - /// - - public D3D12_FILTER Filter; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressU; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressV; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressW; - - /// - - public float MipLODBias; - - /// - - public uint MaxAnisotropy; - - /// - - public D3D12_COMPARISON_FUNC ComparisonFunc; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3379_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - public float MinLOD; - - /// - - public float MaxLOD; - - /// - - public D3D12_SAMPLER_FLAGS Flags; - - /// - - [UnscopedRef] - public Span FloatBorderColor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return Anonymous.FloatBorderColor; } - } - - /// - - [UnscopedRef] - public Span UintBorderColor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return Anonymous.UintBorderColor; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName("FLOAT[4]")] - public _FloatBorderColor_e__FixedBuffer FloatBorderColor; - - /// - - [FieldOffset(0)] - [NativeTypeName("UINT[4]")] - public _UintBorderColor_e__FixedBuffer UintBorderColor; - - /// - - [InlineArray(4)] - public partial struct _FloatBorderColor_e__FixedBuffer - { - public float e0; - } - - /// - - [InlineArray(4)] - public partial struct _UintBorderColor_e__FixedBuffer - { - public uint e0; - } - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_FEEDBACK_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_FEEDBACK_TIER.gen.cs deleted file mode 100644 index 68aef41125..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_FEEDBACK_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SAMPLER_FEEDBACK_TIER -{ - /// - - D3D12_SAMPLER_FEEDBACK_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_SAMPLER_FEEDBACK_TIER_0_9 = 90, - - /// - - D3D12_SAMPLER_FEEDBACK_TIER_1_0 = 100, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_FLAGS.gen.cs deleted file mode 100644 index f4b0dc757f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_SAMPLER_FLAGS -{ - /// - - D3D12_SAMPLER_FLAG_NONE = 0, - - /// - - D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLE_POSITION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLE_POSITION.gen.cs deleted file mode 100644 index 45a253e81f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLE_POSITION.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SAMPLE_POSITION -{ - /// - - [NativeTypeName("INT8")] - public sbyte X; - - /// - - [NativeTypeName("INT8")] - public sbyte Y; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER.gen.cs deleted file mode 100644 index d34c566988..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER -{ - /// - - public Guid DriverOpaqueGUID; - - /// - - [NativeTypeName("BYTE[16]")] - public _DriverOpaqueVersioningData_e__FixedBuffer DriverOpaqueVersioningData; - - /// - - [InlineArray(16)] - public partial struct _DriverOpaqueVersioningData_e__FixedBuffer - { - public byte e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_TYPE.gen.cs deleted file mode 100644 index 626fd384f3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_TYPE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SERIALIZED_DATA_TYPE -{ - /// - - D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER.gen.cs deleted file mode 100644 index d2f859739c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER -{ - /// - - public D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier; - - /// - - [NativeTypeName("UINT64")] - public ulong SerializedSizeInBytesIncludingHeader; - - /// - - [NativeTypeName("UINT64")] - public ulong DeserializedSizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong NumBottomLevelAccelerationStructurePointersAfterHeader; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_BYTECODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_BYTECODE.gen.cs deleted file mode 100644 index 841f6de5ea..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_BYTECODE.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SHADER_BYTECODE -{ - /// - - [NativeTypeName("const void *")] - public void* pShaderBytecode; - - /// - - [NativeTypeName("SIZE_T")] - public nuint BytecodeLength; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_CONTROL_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_CONTROL_FLAGS.gen.cs deleted file mode 100644 index 6ad913380a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_CONTROL_FLAGS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADER_CACHE_CONTROL_FLAGS -{ - /// - - D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1, - - /// - - D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2, - - /// - - D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_FLAGS.gen.cs deleted file mode 100644 index 18c31eb616..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_SHADER_CACHE_FLAGS -{ - /// - - D3D12_SHADER_CACHE_FLAG_NONE = 0, - - /// - - D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 0x1, - - /// - - D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_KIND_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_KIND_FLAGS.gen.cs deleted file mode 100644 index 7b02b0cd8b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_KIND_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_SHADER_CACHE_KIND_FLAGS -{ - /// - - D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER = 0x1, - - /// - - D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CONVERSIONS = 0x2, - - /// - - D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED = 0x4, - - /// - - D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED = 0x8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_MODE.gen.cs deleted file mode 100644 index 33b7fa9e0c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_MODE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADER_CACHE_MODE -{ - /// - - D3D12_SHADER_CACHE_MODE_MEMORY = 0, - - /// - - D3D12_SHADER_CACHE_MODE_DISK = (D3D12_SHADER_CACHE_MODE_MEMORY + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SESSION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SESSION_DESC.gen.cs deleted file mode 100644 index e1711e335a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SESSION_DESC.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SHADER_CACHE_SESSION_DESC -{ - /// - - public Guid Identifier; - - /// - - public D3D12_SHADER_CACHE_MODE Mode; - - /// - - public D3D12_SHADER_CACHE_FLAGS Flags; - - /// - - public uint MaximumInMemoryCacheSizeBytes; - - /// - - public uint MaximumInMemoryCacheEntries; - - /// - - public uint MaximumValueFileSizeBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong Version; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 57245f1ddd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_SHADER_CACHE_SUPPORT_FLAGS -{ - /// - - D3D12_SHADER_CACHE_SUPPORT_NONE = 0, - - /// - - D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1, - - /// - - D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2, - - /// - - D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4, - - /// - - D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8, - - /// - - D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE = 0x10, - - /// - - D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR = 0x20, - - /// - - D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE = 0x40, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_COMPONENT_MAPPING.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_COMPONENT_MAPPING.gen.cs deleted file mode 100644 index ee148f2f28..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_COMPONENT_MAPPING.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADER_COMPONENT_MAPPING -{ - /// - - D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0, - - /// - - D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1, - - /// - - D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2, - - /// - - D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3, - - /// - - D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4, - - /// - - D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_MIN_PRECISION_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_MIN_PRECISION_SUPPORT.gen.cs deleted file mode 100644 index 886106428a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_MIN_PRECISION_SUPPORT.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_SHADER_MIN_PRECISION_SUPPORT -{ - /// - - D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0, - - /// - - D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1, - - /// - - D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.gen.cs deleted file mode 100644 index 464bbc62fe..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.gen.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SHADER_RESOURCE_VIEW_DESC -{ - /// - - public DXGI_FORMAT Format; - - /// - - public D3D12_SRV_DIMENSION ViewDimension; - - /// - - public uint Shader4ComponentMapping; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3213_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_BUFFER_SRV Buffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Buffer; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_SRV Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_ARRAY_SRV Texture1DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_SRV Texture2D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_ARRAY_SRV Texture2DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_SRV Texture2DMS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMS; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMSArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX3D_SRV Texture3D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture3D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEXCUBE_SRV TextureCube - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.TextureCube; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.TextureCubeArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.RaytracingAccelerationStructure; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_BUFFER_SRV Buffer; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_SRV Texture1D; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_ARRAY_SRV Texture1DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_SRV Texture2D; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_ARRAY_SRV Texture2DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_SRV Texture2DMS; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX3D_SRV Texture3D; - - /// - - [FieldOffset(0)] - public D3D12_TEXCUBE_SRV TextureCube; - - /// - - [FieldOffset(0)] - public D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray; - - /// - - [FieldOffset(0)] - public D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_VISIBILITY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_VISIBILITY.gen.cs deleted file mode 100644 index bdac303e82..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_VISIBILITY.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADER_VISIBILITY -{ - /// - - D3D12_SHADER_VISIBILITY_ALL = 0, - - /// - - D3D12_SHADER_VISIBILITY_VERTEX = 1, - - /// - - D3D12_SHADER_VISIBILITY_HULL = 2, - - /// - - D3D12_SHADER_VISIBILITY_DOMAIN = 3, - - /// - - D3D12_SHADER_VISIBILITY_GEOMETRY = 4, - - /// - - D3D12_SHADER_VISIBILITY_PIXEL = 5, - - /// - - D3D12_SHADER_VISIBILITY_AMPLIFICATION = 6, - - /// - - D3D12_SHADER_VISIBILITY_MESH = 7, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADING_RATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADING_RATE.gen.cs deleted file mode 100644 index 692523a350..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADING_RATE.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADING_RATE -{ - /// - - D3D12_SHADING_RATE_1X1 = 0, - - /// - - D3D12_SHADING_RATE_1X2 = 0x1, - - /// - - D3D12_SHADING_RATE_2X1 = 0x4, - - /// - - D3D12_SHADING_RATE_2X2 = 0x5, - - /// - - D3D12_SHADING_RATE_2X4 = 0x6, - - /// - - D3D12_SHADING_RATE_4X2 = 0x9, - - /// - - D3D12_SHADING_RATE_4X4 = 0xa, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADING_RATE_COMBINER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADING_RATE_COMBINER.gen.cs deleted file mode 100644 index bc2d64775b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADING_RATE_COMBINER.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADING_RATE_COMBINER -{ - /// - - D3D12_SHADING_RATE_COMBINER_PASSTHROUGH = 0, - - /// - - D3D12_SHADING_RATE_COMBINER_OVERRIDE = 1, - - /// - - D3D12_SHADING_RATE_COMBINER_MIN = 2, - - /// - - D3D12_SHADING_RATE_COMBINER_MAX = 3, - - /// - - D3D12_SHADING_RATE_COMBINER_SUM = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER.gen.cs deleted file mode 100644 index b288aa06d3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER -{ - /// - - D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 = 0, - - /// - - D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 = (D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 + 1), - - /// - - D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_2 = (D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SO_DECLARATION_ENTRY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SO_DECLARATION_ENTRY.gen.cs deleted file mode 100644 index 38ed2c9729..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SO_DECLARATION_ENTRY.gen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SO_DECLARATION_ENTRY -{ - /// - - public uint Stream; - - /// - - [NativeTypeName("LPCSTR")] - public sbyte* SemanticName; - - /// - - public uint SemanticIndex; - - /// - - public byte StartComponent; - - /// - - public byte ComponentCount; - - /// - - public byte OutputSlot; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SRV_DIMENSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SRV_DIMENSION.gen.cs deleted file mode 100644 index 166d3032f9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SRV_DIMENSION.gen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SRV_DIMENSION -{ - /// - - D3D12_SRV_DIMENSION_UNKNOWN = 0, - - /// - - D3D12_SRV_DIMENSION_BUFFER = 1, - - /// - - D3D12_SRV_DIMENSION_TEXTURE1D = 2, - - /// - - D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3, - - /// - - D3D12_SRV_DIMENSION_TEXTURE2D = 4, - - /// - - D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5, - - /// - - D3D12_SRV_DIMENSION_TEXTURE2DMS = 6, - - /// - - D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7, - - /// - - D3D12_SRV_DIMENSION_TEXTURE3D = 8, - - /// - - D3D12_SRV_DIMENSION_TEXTURECUBE = 9, - - /// - - D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10, - - /// - - D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_CONFIG.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_CONFIG.gen.cs deleted file mode 100644 index 50b0d9a20d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_CONFIG.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_STATE_OBJECT_CONFIG -{ - /// - - public D3D12_STATE_OBJECT_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_DESC.gen.cs deleted file mode 100644 index 3d5ed3103a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_DESC.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_STATE_OBJECT_DESC -{ - /// - - public D3D12_STATE_OBJECT_TYPE Type; - - /// - - public uint NumSubobjects; - - /// - - [NativeTypeName("const D3D12_STATE_SUBOBJECT *")] - public D3D12_STATE_SUBOBJECT* pSubobjects; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_FLAGS.gen.cs deleted file mode 100644 index 3508437cc6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_STATE_OBJECT_FLAGS -{ - /// - - D3D12_STATE_OBJECT_FLAG_NONE = 0, - - /// - - D3D12_STATE_OBJECT_FLAG_ALLOW_LOCAL_DEPENDENCIES_ON_EXTERNAL_DEFINITIONS = 0x1, - - /// - - D3D12_STATE_OBJECT_FLAG_ALLOW_EXTERNAL_DEPENDENCIES_ON_LOCAL_DEFINITIONS = 0x2, - - /// - - D3D12_STATE_OBJECT_FLAG_ALLOW_STATE_OBJECT_ADDITIONS = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_TYPE.gen.cs deleted file mode 100644 index c4018a95ca..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_TYPE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_STATE_OBJECT_TYPE -{ - /// - - D3D12_STATE_OBJECT_TYPE_COLLECTION = 0, - - /// - - D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECT.gen.cs deleted file mode 100644 index 753ea9f137..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECT.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_STATE_SUBOBJECT -{ - /// - - public D3D12_STATE_SUBOBJECT_TYPE Type; - - /// - - [NativeTypeName("const void *")] - public void* pDesc; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECT_TYPE.gen.cs deleted file mode 100644 index 6071d1fa18..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECT_TYPE.gen.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_STATE_SUBOBJECT_TYPE -{ - /// - - D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_GLOBAL_ROOT_SIGNATURE = 1, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_LOCAL_ROOT_SIGNATURE = 2, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_NODE_MASK = 3, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 5, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 6, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 7, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 8, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 9, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 10, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 11, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 = 12, - - /// - - D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID = - (D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_BORDER_COLOR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_BORDER_COLOR.gen.cs deleted file mode 100644 index 6e9371434a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_BORDER_COLOR.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_STATIC_BORDER_COLOR -{ - /// - - D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK = 0, - - /// - - D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK = (D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK + 1), - - /// - - D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE = (D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK + 1), - - /// - - D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT = (D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE + 1), - - /// - - D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE_UINT = (D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_SAMPLER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_SAMPLER_DESC.gen.cs deleted file mode 100644 index a1dfd45c29..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_SAMPLER_DESC.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_STATIC_SAMPLER_DESC -{ - /// - - public D3D12_FILTER Filter; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressU; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressV; - - /// - - public D3D12_TEXTURE_ADDRESS_MODE AddressW; - - /// - - public float MipLODBias; - - /// - - public uint MaxAnisotropy; - - /// - - public D3D12_COMPARISON_FUNC ComparisonFunc; - - /// - - public D3D12_STATIC_BORDER_COLOR BorderColor; - - /// - - public float MinLOD; - - /// - - public float MaxLOD; - - /// - - public uint ShaderRegister; - - /// - - public uint RegisterSpace; - - /// - - public D3D12_SHADER_VISIBILITY ShaderVisibility; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STENCIL_OP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STENCIL_OP.gen.cs deleted file mode 100644 index 8cac95df13..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STENCIL_OP.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_STENCIL_OP -{ - /// - - D3D12_STENCIL_OP_KEEP = 1, - - /// - - D3D12_STENCIL_OP_ZERO = 2, - - /// - - D3D12_STENCIL_OP_REPLACE = 3, - - /// - - D3D12_STENCIL_OP_INCR_SAT = 4, - - /// - - D3D12_STENCIL_OP_DECR_SAT = 5, - - /// - - D3D12_STENCIL_OP_INVERT = 6, - - /// - - D3D12_STENCIL_OP_INCR = 7, - - /// - - D3D12_STENCIL_OP_DECR = 8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_BUFFER_VIEW.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_BUFFER_VIEW.gen.cs deleted file mode 100644 index a3ae659685..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_BUFFER_VIEW.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_STREAM_OUTPUT_BUFFER_VIEW -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong BufferLocation; - - /// - - [NativeTypeName("UINT64")] - public ulong SizeInBytes; - - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong BufferFilledSizeLocation; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_DESC.gen.cs deleted file mode 100644 index 21d0cb01e2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_DESC.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_STREAM_OUTPUT_DESC -{ - /// - - [NativeTypeName("const D3D12_SO_DECLARATION_ENTRY *")] - public D3D12_SO_DECLARATION_ENTRY* pSODeclaration; - - /// - - public uint NumEntries; - - /// - - [NativeTypeName("const UINT *")] - public uint* pBufferStrides; - - /// - - public uint NumStrides; - - /// - - public uint RasterizedStream; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION.gen.cs deleted file mode 100644 index 4b900b6b4a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION -{ - /// - - [NativeTypeName("const D3D12_STATE_SUBOBJECT *")] - public D3D12_STATE_SUBOBJECT* pSubobjectToAssociate; - - /// - - public uint NumExports; - - /// - - [NativeTypeName("LPCWSTR *")] - public ushort** pExports; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_DATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_DATA.gen.cs deleted file mode 100644 index 2ac9e1ff9a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_DATA.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SUBRESOURCE_DATA -{ - /// - - [NativeTypeName("const void *")] - public void* pData; - - /// - - [NativeTypeName("LONG_PTR")] - public nint RowPitch; - - /// - - [NativeTypeName("LONG_PTR")] - public nint SlicePitch; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_FOOTPRINT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_FOOTPRINT.gen.cs deleted file mode 100644 index 52693dd4c2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_FOOTPRINT.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SUBRESOURCE_FOOTPRINT -{ - /// - - public DXGI_FORMAT Format; - - /// - - public uint Width; - - /// - - public uint Height; - - /// - - public uint Depth; - - /// - - public uint RowPitch; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_INFO.gen.cs deleted file mode 100644 index c7d6556602..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_INFO.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SUBRESOURCE_INFO -{ - /// - - [NativeTypeName("UINT64")] - public ulong Offset; - - /// - - public uint RowPitch; - - /// - - public uint DepthPitch; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_RANGE_UINT64.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_RANGE_UINT64.gen.cs deleted file mode 100644 index 0185c30bbf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_RANGE_UINT64.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SUBRESOURCE_RANGE_UINT64 -{ - /// - - public uint Subresource; - - /// - - public D3D12_RANGE_UINT64 Range; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_TILING.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_TILING.gen.cs deleted file mode 100644 index 48bce4a681..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_TILING.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_SUBRESOURCE_TILING -{ - /// - - public uint WidthInTiles; - - /// - - [NativeTypeName("UINT16")] - public ushort HeightInTiles; - - /// - - [NativeTypeName("UINT16")] - public ushort DepthInTiles; - - /// - - public uint StartTileIndexInOverallResource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_DSV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_DSV.gen.cs deleted file mode 100644 index 1efef1f5b4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_DSV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_ARRAY_DSV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_RTV.gen.cs deleted file mode 100644 index d435437ab4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_RTV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_ARRAY_RTV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_SRV.gen.cs deleted file mode 100644 index ab490f43a1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_SRV.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_ARRAY_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_UAV.gen.cs deleted file mode 100644 index cfb3053c49..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_UAV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_ARRAY_UAV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_DSV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_DSV.gen.cs deleted file mode 100644 index fac189ac79..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_DSV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_DSV -{ - /// - - public uint MipSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_RTV.gen.cs deleted file mode 100644 index 2deb484b24..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_RTV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_RTV -{ - /// - - public uint MipSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_SRV.gen.cs deleted file mode 100644 index 363058ab91..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_SRV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_UAV.gen.cs deleted file mode 100644 index 3f253b352c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_UAV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX1D_UAV -{ - /// - - public uint MipSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_DSV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_DSV.gen.cs deleted file mode 100644 index 9eee80afae..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_DSV.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_ARRAY_DSV -{ - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_RTV.gen.cs deleted file mode 100644 index 3e0c3ecd95..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_RTV.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_ARRAY_RTV -{ - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_SRV.gen.cs deleted file mode 100644 index 88cacd3338..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_SRV.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_ARRAY_SRV -{ - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_UAV.gen.cs deleted file mode 100644 index e600c9a477..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_UAV.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_ARRAY_UAV -{ - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_DSV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_DSV.gen.cs deleted file mode 100644 index 72bca93afe..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_DSV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_DSV -{ - /// - - public uint UnusedField_NothingToDefine; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_RTV.gen.cs deleted file mode 100644 index d442d9662c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_RTV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_RTV -{ - /// - - public uint UnusedField_NothingToDefine; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_SRV.gen.cs deleted file mode 100644 index d374cbe19f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_SRV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_SRV -{ - /// - - public uint UnusedField_NothingToDefine; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_UAV.gen.cs deleted file mode 100644 index 0e154752d1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_UAV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2DMS_UAV -{ - /// - - public uint UnusedField_NothingToDefine; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_DSV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_DSV.gen.cs deleted file mode 100644 index ce6960c162..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_DSV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_ARRAY_DSV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_RTV.gen.cs deleted file mode 100644 index 50aaeb7aa5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_RTV.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_ARRAY_RTV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; - - /// - - public uint PlaneSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_SRV.gen.cs deleted file mode 100644 index 9084144415..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_SRV.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_ARRAY_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; - - /// - - public uint PlaneSlice; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_UAV.gen.cs deleted file mode 100644 index 1d10427e88..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_UAV.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_ARRAY_UAV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstArraySlice; - - /// - - public uint ArraySize; - - /// - - public uint PlaneSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_DSV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_DSV.gen.cs deleted file mode 100644 index 7f19d0bd04..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_DSV.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_DSV -{ - /// - - public uint MipSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_RTV.gen.cs deleted file mode 100644 index f1adfd189e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_RTV.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_RTV -{ - /// - - public uint MipSlice; - - /// - - public uint PlaneSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_SRV.gen.cs deleted file mode 100644 index 8259cdd91a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_SRV.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public uint PlaneSlice; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_UAV.gen.cs deleted file mode 100644 index 1a4a4fa8f2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_UAV.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX2D_UAV -{ - /// - - public uint MipSlice; - - /// - - public uint PlaneSlice; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_RTV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_RTV.gen.cs deleted file mode 100644 index cd4c38b79a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_RTV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX3D_RTV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstWSlice; - - /// - - public uint WSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_SRV.gen.cs deleted file mode 100644 index 1e2ce3e3c4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_SRV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX3D_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_UAV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_UAV.gen.cs deleted file mode 100644 index d0e0b7dc39..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_UAV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEX3D_UAV -{ - /// - - public uint MipSlice; - - /// - - public uint FirstWSlice; - - /// - - public uint WSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_ARRAY_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_ARRAY_SRV.gen.cs deleted file mode 100644 index 5b818ff0c4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_ARRAY_SRV.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEXCUBE_ARRAY_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public uint First2DArrayFace; - - /// - - public uint NumCubes; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_SRV.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_SRV.gen.cs deleted file mode 100644 index 3bd70cdc26..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_SRV.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TEXCUBE_SRV -{ - /// - - public uint MostDetailedMip; - - /// - - public uint MipLevels; - - /// - - public float ResourceMinLODClamp; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_ADDRESS_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_ADDRESS_MODE.gen.cs deleted file mode 100644 index 549608a98a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_ADDRESS_MODE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_TEXTURE_ADDRESS_MODE -{ - /// - - D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1, - - /// - - D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2, - - /// - - D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3, - - /// - - D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4, - - /// - - D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIER.gen.cs deleted file mode 100644 index 51dba7476b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIER.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_TEXTURE_BARRIER -{ - /// - - public D3D12_BARRIER_SYNC SyncBefore; - - /// - - public D3D12_BARRIER_SYNC SyncAfter; - - /// - - public D3D12_BARRIER_ACCESS AccessBefore; - - /// - - public D3D12_BARRIER_ACCESS AccessAfter; - - /// - - public D3D12_BARRIER_LAYOUT LayoutBefore; - - /// - - public D3D12_BARRIER_LAYOUT LayoutAfter; - - /// - - public ID3D12Resource* pResource; - - /// - - public D3D12_BARRIER_SUBRESOURCE_RANGE Subresources; - - /// - - public D3D12_TEXTURE_BARRIER_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIER_FLAGS.gen.cs deleted file mode 100644 index ce31b68b80..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIER_FLAGS.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_TEXTURE_BARRIER_FLAGS -{ - /// - - D3D12_TEXTURE_BARRIER_FLAG_NONE = 0, - - /// - - D3D12_TEXTURE_BARRIER_FLAG_DISCARD = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_LOCATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_LOCATION.gen.cs deleted file mode 100644 index 5fac03367d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_LOCATION.gen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_TEXTURE_COPY_LOCATION -{ - /// - - public ID3D12Resource* pResource; - - /// - - public D3D12_TEXTURE_COPY_TYPE Type; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3036_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.PlacedFootprint; } - } - - /// - - [UnscopedRef] - public ref uint SubresourceIndex - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.SubresourceIndex; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint; - - /// - - [FieldOffset(0)] - public uint SubresourceIndex; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_TYPE.gen.cs deleted file mode 100644 index 287928c12b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_TYPE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_TEXTURE_COPY_TYPE -{ - /// - - D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0, - - /// - - D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_LAYOUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_LAYOUT.gen.cs deleted file mode 100644 index 70d0acf8c1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_LAYOUT.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_TEXTURE_LAYOUT -{ - /// - - D3D12_TEXTURE_LAYOUT_UNKNOWN = 0, - - /// - - D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1, - - /// - - D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2, - - /// - - D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCES_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCES_TIER.gen.cs deleted file mode 100644 index 06e17abd1c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCES_TIER.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_TILED_RESOURCES_TIER -{ - /// - - D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_TILED_RESOURCES_TIER_1 = 1, - - /// - - D3D12_TILED_RESOURCES_TIER_2 = 2, - - /// - - D3D12_TILED_RESOURCES_TIER_3 = 3, - - /// - - D3D12_TILED_RESOURCES_TIER_4 = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCE_COORDINATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCE_COORDINATE.gen.cs deleted file mode 100644 index 309af75d70..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCE_COORDINATE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TILED_RESOURCE_COORDINATE -{ - /// - - public uint X; - - /// - - public uint Y; - - /// - - public uint Z; - - /// - - public uint Subresource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_COPY_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_COPY_FLAGS.gen.cs deleted file mode 100644 index df1ec01db8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_COPY_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_TILE_COPY_FLAGS -{ - /// - - D3D12_TILE_COPY_FLAG_NONE = 0, - - /// - - D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1, - - /// - - D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2, - - /// - - D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_MAPPING_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_MAPPING_FLAGS.gen.cs deleted file mode 100644 index 039e236b6b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_MAPPING_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_TILE_MAPPING_FLAGS -{ - /// - - D3D12_TILE_MAPPING_FLAG_NONE = 0, - - /// - - D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_RANGE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_RANGE_FLAGS.gen.cs deleted file mode 100644 index 66283f6aa4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_RANGE_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_TILE_RANGE_FLAGS -{ - /// - - D3D12_TILE_RANGE_FLAG_NONE = 0, - - /// - - D3D12_TILE_RANGE_FLAG_NULL = 1, - - /// - - D3D12_TILE_RANGE_FLAG_SKIP = 2, - - /// - - D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_REGION_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_REGION_SIZE.gen.cs deleted file mode 100644 index d39fa94ad4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_REGION_SIZE.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TILE_REGION_SIZE -{ - /// - - public uint NumTiles; - - /// - - public BOOL UseBox; - - /// - - public uint Width; - - /// - - [NativeTypeName("UINT16")] - public ushort Height; - - /// - - [NativeTypeName("UINT16")] - public ushort Depth; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_SHAPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_SHAPE.gen.cs deleted file mode 100644 index 45410ba871..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_SHAPE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_TILE_SHAPE -{ - /// - - public uint WidthInTexels; - - /// - - public uint HeightInTexels; - - /// - - public uint DepthInTexels; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TRI_STATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TRI_STATE.gen.cs deleted file mode 100644 index 959cc3dcb6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_TRI_STATE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_TRI_STATE -{ - /// - - D3D12_TRI_STATE_UNKNOWN = -1, - - /// - - D3D12_TRI_STATE_FALSE = 0, - - /// - - D3D12_TRI_STATE_TRUE = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_UAV_DIMENSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_UAV_DIMENSION.gen.cs deleted file mode 100644 index b80d6bdcaa..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_UAV_DIMENSION.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_UAV_DIMENSION -{ - /// - - D3D12_UAV_DIMENSION_UNKNOWN = 0, - - /// - - D3D12_UAV_DIMENSION_BUFFER = 1, - - /// - - D3D12_UAV_DIMENSION_TEXTURE1D = 2, - - /// - - D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3, - - /// - - D3D12_UAV_DIMENSION_TEXTURE2D = 4, - - /// - - D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5, - - /// - - D3D12_UAV_DIMENSION_TEXTURE2DMS = 6, - - /// - - D3D12_UAV_DIMENSION_TEXTURE2DMSARRAY = 7, - - /// - - D3D12_UAV_DIMENSION_TEXTURE3D = 8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.gen.cs deleted file mode 100644 index 2f458971c7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.gen.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_UNORDERED_ACCESS_VIEW_DESC -{ - /// - - public DXGI_FORMAT Format; - - /// - - public D3D12_UAV_DIMENSION ViewDimension; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3468_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_BUFFER_UAV Buffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Buffer; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_UAV Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX1D_ARRAY_UAV Texture1DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture1DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_UAV Texture2D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2D; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2D_ARRAY_UAV Texture2DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_UAV Texture2DMS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMS; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture2DMSArray; } - } - - /// - - [UnscopedRef] - public ref D3D12_TEX3D_UAV Texture3D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Texture3D; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_BUFFER_UAV Buffer; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_UAV Texture1D; - - /// - - [FieldOffset(0)] - public D3D12_TEX1D_ARRAY_UAV Texture1DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_UAV Texture2D; - - /// - - [FieldOffset(0)] - public D3D12_TEX2D_ARRAY_UAV Texture2DArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_UAV Texture2DMS; - - /// - - [FieldOffset(0)] - public D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray; - - /// - - [FieldOffset(0)] - public D3D12_TEX3D_UAV Texture3D; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VARIABLE_SHADING_RATE_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VARIABLE_SHADING_RATE_TIER.gen.cs deleted file mode 100644 index 89bea26acc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VARIABLE_SHADING_RATE_TIER.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VARIABLE_SHADING_RATE_TIER -{ - /// - - D3D12_VARIABLE_SHADING_RATE_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_VARIABLE_SHADING_RATE_TIER_1 = 1, - - /// - - D3D12_VARIABLE_SHADING_RATE_TIER_2 = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.gen.cs deleted file mode 100644 index bfa3265fb8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA.gen.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA -{ - /// - - public D3D12_DRED_VERSION Version; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L14958_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Dred_1_0; } - } - - /// - - [UnscopedRef] - public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Dred_1_1; } - } - - /// - - [UnscopedRef] - public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Dred_1_2; } - } - - /// - - [UnscopedRef] - public ref D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Dred_1_3; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0; - - /// - - [FieldOffset(0)] - public D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1; - - /// - - [FieldOffset(0)] - public D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2; - - /// - - [FieldOffset(0)] - public D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.gen.cs deleted file mode 100644 index aec5e5e48f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC -{ - /// - - public D3D_ROOT_SIGNATURE_VERSION Version; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12_L3874_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_ROOT_SIGNATURE_DESC Desc_1_0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Desc_1_0; } - } - - /// - - [UnscopedRef] - public ref D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.Desc_1_1; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_ROOT_SIGNATURE_DESC Desc_1_0; - - /// - - [FieldOffset(0)] - public D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERTEX_BUFFER_VIEW.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERTEX_BUFFER_VIEW.gen.cs deleted file mode 100644 index af8e4f8ddf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VERTEX_BUFFER_VIEW.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VERTEX_BUFFER_VIEW -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong BufferLocation; - - /// - - public uint SizeInBytes; - - /// - - public uint StrideInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEWPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEWPORT.gen.cs deleted file mode 100644 index e21973727b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEWPORT.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIEWPORT -{ - /// - - public float TopLeftX; - - /// - - public float TopLeftY; - - /// - - public float Width; - - /// - - public float Height; - - /// - - public float MinDepth; - - /// - - public float MaxDepth; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCE_LOCATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCE_LOCATION.gen.cs deleted file mode 100644 index 5b3e4661df..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCE_LOCATION.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIEW_INSTANCE_LOCATION -{ - /// - - public uint ViewportArrayIndex; - - /// - - public uint RenderTargetArrayIndex; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_DESC.gen.cs deleted file mode 100644 index 24b0c26da0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_DESC.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIEW_INSTANCING_DESC -{ - /// - - public uint ViewInstanceCount; - - /// - - [NativeTypeName("const D3D12_VIEW_INSTANCE_LOCATION *")] - public D3D12_VIEW_INSTANCE_LOCATION* pViewInstanceLocations; - - /// - - public D3D12_VIEW_INSTANCING_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_FLAGS.gen.cs deleted file mode 100644 index 9f1c255475..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIEW_INSTANCING_FLAGS -{ - /// - - D3D12_VIEW_INSTANCING_FLAG_NONE = 0, - - /// - - D3D12_VIEW_INSTANCING_FLAG_ENABLE_VIEW_INSTANCE_MASKING = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_TIER.gen.cs deleted file mode 100644 index 85f1818118..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_TIER.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIEW_INSTANCING_TIER -{ - /// - - D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_VIEW_INSTANCING_TIER_1 = 1, - - /// - - D3D12_VIEW_INSTANCING_TIER_2 = 2, - - /// - - D3D12_VIEW_INSTANCING_TIER_3 = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WAVE_MMA_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WAVE_MMA_TIER.gen.cs deleted file mode 100644 index 5759bc282e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WAVE_MMA_TIER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_WAVE_MMA_TIER -{ - /// - - D3D12_WAVE_MMA_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_WAVE_MMA_TIER_1_0 = 10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_MODE.gen.cs deleted file mode 100644 index c4716afc2c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_MODE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_WRITEBUFFERIMMEDIATE_MODE -{ - /// - - D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0, - - /// - - D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1, - - /// - - D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_PARAMETER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_PARAMETER.gen.cs deleted file mode 100644 index 30d8ec8155..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_PARAMETER.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER -{ - /// - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong Dest; - - /// - - [NativeTypeName("UINT32")] - public uint Value; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D_ROOT_SIGNATURE_VERSION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D_ROOT_SIGNATURE_VERSION.gen.cs deleted file mode 100644 index a019bad7ec..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D_ROOT_SIGNATURE_VERSION.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D_ROOT_SIGNATURE_VERSION -{ - /// - - D3D_ROOT_SIGNATURE_VERSION_1 = 0x1, - - /// - - D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1, - - /// - - D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/D3D_SHADER_MODEL.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/D3D_SHADER_MODEL.gen.cs deleted file mode 100644 index f14a4062c6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/D3D_SHADER_MODEL.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D_SHADER_MODEL -{ - /// - - D3D_SHADER_MODEL_5_1 = 0x51, - - /// - - D3D_SHADER_MODEL_6_0 = 0x60, - - /// - - D3D_SHADER_MODEL_6_1 = 0x61, - - /// - - D3D_SHADER_MODEL_6_2 = 0x62, - - /// - - D3D_SHADER_MODEL_6_3 = 0x63, - - /// - - D3D_SHADER_MODEL_6_4 = 0x64, - - /// - - D3D_SHADER_MODEL_6_5 = 0x65, - - /// - - D3D_SHADER_MODEL_6_6 = 0x66, - - /// - - D3D_SHADER_MODEL_6_7 = 0x67, - - /// - - D3D_SHADER_MODEL_6_8 = 0x68, - - /// - - D3D_HIGHEST_SHADER_MODEL = D3D_SHADER_MODEL_6_8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/DirectX.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/DirectX.gen.cs deleted file mode 100644 index 97cb4b4597..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/DirectX.gen.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static unsafe partial class DirectX -{ - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12SerializeRootSignature([NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC *")] D3D12_ROOT_SIGNATURE_DESC* pRootSignature, D3D_ROOT_SIGNATURE_VERSION Version, ID3DBlob** ppBlob, ID3DBlob** ppErrorBlob); - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12CreateRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer); - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12SerializeVersionedRootSignature([NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature, ID3DBlob** ppBlob, ID3DBlob** ppErrorBlob); - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12CreateVersionedRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer); - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12CreateDevice(IUnknown* pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, [NativeTypeName("const IID &")] Guid* riid, void** ppDevice); - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12GetDebugInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvDebug); - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12EnableExperimentalFeatures(uint NumFeatures, [NativeTypeName("const IID *")] Guid* pIIDs, void* pConfigurationStructs, uint* pConfigurationStructSizes); - [NativeTypeName("const UUID")] - public static ref readonly Guid D3D12ExperimentalShaderModels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3E, 0x57, 0xF5, 0x76, 0x3A, 0xF1, 0xF5, 0x40, 0xB2, 0x97, 0x81, 0xCE, 0x9E, 0x18, 0x93, 0x3F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const UUID")] - public static ref readonly Guid D3D12TiledResourceTier4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x5F, 0x72, 0xC4, 0xC9, 0x1A, 0xA8, 0x56, 0x4F, 0x8C, 0x5B, 0xC5, 0x10, 0x39, 0xD6, 0x94, 0xFB]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - /// - [DllImport("d3d12", ExactSpelling = true)] - public static extern HRESULT D3D12GetInterface([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, void** ppvDebug); -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandAllocator.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandAllocator.gen.cs deleted file mode 100644 index 7fa648c16b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandAllocator.gen.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("6102DEE4-AF59-4B09-B999-B44D73F09B24")] -[NativeTypeName("struct ID3D12CommandAllocator : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandAllocator : ID3D12CommandAllocator.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandAllocator)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT Reset() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12CommandAllocator*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - HRESULT Reset(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Reset; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandList.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandList.gen.cs deleted file mode 100644 index 176a2b2f46..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandList.gen.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("7116D91C-E7E4-47CE-B8C6-EC8168F437E5")] -[NativeTypeName("struct ID3D12CommandList : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12CommandList : ID3D12CommandList.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12CommandList*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : ID3D12DeviceChild.Interface - { - [VtblIndex(8)] - D3D12_COMMAND_LIST_TYPE GetType(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandQueue.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandQueue.gen.cs deleted file mode 100644 index 3d4c5b2e33..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandQueue.gen.cs +++ /dev/null @@ -1,495 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("0EC870A6-5D7E-4C22-8CFC-5BAAE07616ED")] -[NativeTypeName("struct ID3D12CommandQueue : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandQueue : ID3D12CommandQueue.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandQueue)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void UpdateTileMappings( - ID3D12Resource* pResource, - uint NumResourceRegions, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pResourceRegionStartCoordinates, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] - D3D12_TILE_REGION_SIZE* pResourceRegionSizes, - ID3D12Heap* pHeap, - uint NumRanges, - [NativeTypeName("const D3D12_TILE_RANGE_FLAGS *")] D3D12_TILE_RANGE_FLAGS* pRangeFlags, - [NativeTypeName("const UINT *")] uint* pHeapRangeStartOffsets, - [NativeTypeName("const UINT *")] uint* pRangeTileCounts, - D3D12_TILE_MAPPING_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12CommandQueue*, - ID3D12Resource*, - uint, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Heap*, - uint, - D3D12_TILE_RANGE_FLAGS*, - uint*, - uint*, - D3D12_TILE_MAPPING_FLAGS, - void>)(lpVtbl[8]) - )( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - pResource, - NumResourceRegions, - pResourceRegionStartCoordinates, - pResourceRegionSizes, - pHeap, - NumRanges, - pRangeFlags, - pHeapRangeStartOffsets, - pRangeTileCounts, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void CopyTileMappings( - ID3D12Resource* pDstResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pDstRegionStartCoordinate, - ID3D12Resource* pSrcResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pSrcRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pRegionSize, - D3D12_TILE_MAPPING_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12CommandQueue*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - D3D12_TILE_MAPPING_FLAGS, - void>)(lpVtbl[9]) - )( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - pDstResource, - pDstRegionStartCoordinate, - pSrcResource, - pSrcRegionStartCoordinate, - pRegionSize, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void ExecuteCommandLists( - uint NumCommandLists, - [NativeTypeName("ID3D12CommandList *const *")] ID3D12CommandList** ppCommandLists - ) - { - ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - NumCommandLists, - ppCommandLists - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[12]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT Signal(ID3D12Fence* pFence, [NativeTypeName("UINT64")] ulong Value) - { - return ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - pFence, - Value - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HRESULT Wait(ID3D12Fence* pFence, [NativeTypeName("UINT64")] ulong Value) - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - pFence, - Value - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT GetTimestampFrequency([NativeTypeName("UINT64 *")] ulong* pFrequency) - { - return ((delegate* unmanaged)(lpVtbl[16]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - pFrequency - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HRESULT GetClockCalibration( - [NativeTypeName("UINT64 *")] ulong* pGpuTimestamp, - [NativeTypeName("UINT64 *")] ulong* pCpuTimestamp - ) - { - return ((delegate* unmanaged)(lpVtbl[17]))( - (ID3D12CommandQueue*)Unsafe.AsPointer(ref this), - pGpuTimestamp, - pCpuTimestamp - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public D3D12_COMMAND_QUEUE_DESC GetDesc() - { - D3D12_COMMAND_QUEUE_DESC result; - return *( - (delegate* unmanaged< - ID3D12CommandQueue*, - D3D12_COMMAND_QUEUE_DESC*, - D3D12_COMMAND_QUEUE_DESC*>)(lpVtbl[18]) - )((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - void UpdateTileMappings( - ID3D12Resource* pResource, - uint NumResourceRegions, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pResourceRegionStartCoordinates, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] - D3D12_TILE_REGION_SIZE* pResourceRegionSizes, - ID3D12Heap* pHeap, - uint NumRanges, - [NativeTypeName("const D3D12_TILE_RANGE_FLAGS *")] D3D12_TILE_RANGE_FLAGS* pRangeFlags, - [NativeTypeName("const UINT *")] uint* pHeapRangeStartOffsets, - [NativeTypeName("const UINT *")] uint* pRangeTileCounts, - D3D12_TILE_MAPPING_FLAGS Flags - ); - - [VtblIndex(9)] - void CopyTileMappings( - ID3D12Resource* pDstResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pDstRegionStartCoordinate, - ID3D12Resource* pSrcResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pSrcRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pRegionSize, - D3D12_TILE_MAPPING_FLAGS Flags - ); - - [VtblIndex(10)] - void ExecuteCommandLists( - uint NumCommandLists, - [NativeTypeName("ID3D12CommandList *const *")] ID3D12CommandList** ppCommandLists - ); - - [VtblIndex(11)] - void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(12)] - void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(13)] - void EndEvent(); - - [VtblIndex(14)] - HRESULT Signal(ID3D12Fence* pFence, [NativeTypeName("UINT64")] ulong Value); - - [VtblIndex(15)] - HRESULT Wait(ID3D12Fence* pFence, [NativeTypeName("UINT64")] ulong Value); - - [VtblIndex(16)] - HRESULT GetTimestampFrequency([NativeTypeName("UINT64 *")] ulong* pFrequency); - - [VtblIndex(17)] - HRESULT GetClockCalibration( - [NativeTypeName("UINT64 *")] ulong* pGpuTimestamp, - [NativeTypeName("UINT64 *")] ulong* pCpuTimestamp - ); - - [VtblIndex(18)] - D3D12_COMMAND_QUEUE_DESC GetDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Heap *, UINT, const D3D12_TILE_RANGE_FLAGS *, const UINT *, const UINT *, D3D12_TILE_MAPPING_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Heap*, - uint, - D3D12_TILE_RANGE_FLAGS*, - uint*, - uint*, - D3D12_TILE_MAPPING_FLAGS, - void> UpdateTileMappings; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, D3D12_TILE_MAPPING_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - D3D12_TILE_MAPPING_FLAGS, - void> CopyTileMappings; - - [NativeTypeName("void (UINT, ID3D12CommandList *const *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteCommandLists; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName("HRESULT (ID3D12Fence *, UINT64) __attribute__((stdcall))")] - public delegate* unmanaged Signal; - - [NativeTypeName("HRESULT (ID3D12Fence *, UINT64) __attribute__((stdcall))")] - public delegate* unmanaged Wait; - - [NativeTypeName("HRESULT (UINT64 *) __attribute__((stdcall))")] - public delegate* unmanaged GetTimestampFrequency; - - [NativeTypeName("HRESULT (UINT64 *, UINT64 *) __attribute__((stdcall))")] - public delegate* unmanaged GetClockCalibration; - - [NativeTypeName("D3D12_COMMAND_QUEUE_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - D3D12_COMMAND_QUEUE_DESC*> GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandSignature.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandSignature.gen.cs deleted file mode 100644 index fffd46cbf5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandSignature.gen.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C36A797C-EC80-4F0A-8985-A7B2475082D1")] -[NativeTypeName("struct ID3D12CommandSignature : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandSignature : ID3D12CommandSignature.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandSignature)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12CommandSignature*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - public interface Interface : ID3D12Pageable.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DescriptorHeap.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DescriptorHeap.gen.cs deleted file mode 100644 index 66c6574211..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DescriptorHeap.gen.cs +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8EFB471D-616C-4F49-90F7-127BB763FA51")] -[NativeTypeName("struct ID3D12DescriptorHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12DescriptorHeap : ID3D12DescriptorHeap.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DescriptorHeap)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_DESCRIPTOR_HEAP_DESC GetDesc() - { - D3D12_DESCRIPTOR_HEAP_DESC result; - return *( - (delegate* unmanaged< - ID3D12DescriptorHeap*, - D3D12_DESCRIPTOR_HEAP_DESC*, - D3D12_DESCRIPTOR_HEAP_DESC*>)(lpVtbl[8]) - )((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public D3D12_CPU_DESCRIPTOR_HANDLE GetCPUDescriptorHandleForHeapStart() - { - D3D12_CPU_DESCRIPTOR_HANDLE result; - return *( - (delegate* unmanaged< - ID3D12DescriptorHeap*, - D3D12_CPU_DESCRIPTOR_HANDLE*, - D3D12_CPU_DESCRIPTOR_HANDLE*>)(lpVtbl[9]) - )((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_GPU_DESCRIPTOR_HANDLE GetGPUDescriptorHandleForHeapStart() - { - D3D12_GPU_DESCRIPTOR_HANDLE result; - return *( - (delegate* unmanaged< - ID3D12DescriptorHeap*, - D3D12_GPU_DESCRIPTOR_HANDLE*, - D3D12_GPU_DESCRIPTOR_HANDLE*>)(lpVtbl[10]) - )((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_DESCRIPTOR_HEAP_DESC GetDesc(); - - [VtblIndex(9)] - D3D12_CPU_DESCRIPTOR_HANDLE GetCPUDescriptorHandleForHeapStart(); - - [VtblIndex(10)] - D3D12_GPU_DESCRIPTOR_HANDLE GetGPUDescriptorHandleForHeapStart(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_DESCRIPTOR_HEAP_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - D3D12_DESCRIPTOR_HEAP_DESC*> GetDesc; - - [NativeTypeName("D3D12_CPU_DESCRIPTOR_HANDLE () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE*, - D3D12_CPU_DESCRIPTOR_HANDLE*> GetCPUDescriptorHandleForHeapStart; - - [NativeTypeName("D3D12_GPU_DESCRIPTOR_HANDLE () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE*, - D3D12_GPU_DESCRIPTOR_HANDLE*> GetGPUDescriptorHandleForHeapStart; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device.gen.cs deleted file mode 100644 index b6fd2a3106..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device.gen.cs +++ /dev/null @@ -1,1579 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("189819F1-1DB6-4B57-BE54-1821339B85F7")] -[NativeTypeName("struct ID3D12Device : ID3D12Object")] -[NativeInheritance("ID3D12Object")] -public unsafe partial struct ID3D12Device : ID3D12Device.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - DescriptorHeapType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)(lpVtbl[16]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device*)Unsafe.AsPointer(ref this), - &result - ); - } - - public interface Interface : ID3D12Object.Interface - { - [VtblIndex(7)] - uint GetNodeCount(); - - [VtblIndex(8)] - HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ); - - [VtblIndex(9)] - HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ); - - [VtblIndex(10)] - HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ); - - [VtblIndex(11)] - HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ); - - [VtblIndex(12)] - HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ); - - [VtblIndex(13)] - HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ); - - [VtblIndex(14)] - HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ); - - [VtblIndex(15)] - uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); - - [VtblIndex(16)] - HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ); - - [VtblIndex(17)] - void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(18)] - void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(19)] - void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(20)] - void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(21)] - void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(22)] - void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(23)] - void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ); - - [VtblIndex(24)] - void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ); - - [VtblIndex(25)] - D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ); - - [VtblIndex(26)] - D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType); - - [VtblIndex(27)] - HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ); - - [VtblIndex(28)] - HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ); - - [VtblIndex(29)] - HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ); - - [VtblIndex(30)] - HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ); - - [VtblIndex(31)] - HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ); - - [VtblIndex(32)] - HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ); - - [VtblIndex(33)] - HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ); - - [VtblIndex(34)] - HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ); - - [VtblIndex(35)] - HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ); - - [VtblIndex(36)] - HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ); - - [VtblIndex(37)] - HRESULT GetDeviceRemovedReason(); - - [VtblIndex(38)] - void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ); - - [VtblIndex(39)] - HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ); - - [VtblIndex(40)] - HRESULT SetStablePowerState(BOOL Enable); - - [VtblIndex(41)] - HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ); - - [VtblIndex(42)] - void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ); - - [VtblIndex(43)] - LUID GetAdapterLuid(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device1.gen.cs deleted file mode 100644 index 3899b236a9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device1.gen.cs +++ /dev/null @@ -1,1428 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("77ACCE80-638E-4E65-8895-C1F23386863E")] -[NativeTypeName("struct ID3D12Device1 : ID3D12Device")] -[NativeInheritance("ID3D12Device")] -public unsafe partial struct ID3D12Device1 : ID3D12Device1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device1*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device1*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - public interface Interface : ID3D12Device.Interface - { - [VtblIndex(44)] - HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ); - - [VtblIndex(45)] - HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ); - - [VtblIndex(46)] - HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] - D3D12_RESIDENCY_PRIORITY* pPriorities - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device10.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device10.gen.cs deleted file mode 100644 index dd8d9d170f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device10.gen.cs +++ /dev/null @@ -1,2653 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("517F8718-AA66-49F9-B02B-A7AB89C06031")] -[NativeTypeName("struct ID3D12Device10 : ID3D12Device9")] -[NativeInheritance("ID3D12Device9")] -public unsafe partial struct ID3D12Device10 : ID3D12Device10.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device10)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ( - (delegate* unmanaged)(lpVtbl[13]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device10*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int>)(lpVtbl[65]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - Mode, - MeasurementsAction, - hEventToSignalUponCompletion, - pbFurtherMeasurementsDesired - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HRESULT AddToStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pAddition, - ID3D12StateObject* pStateObjectToGrowFrom, - [NativeTypeName("const IID &")] Guid* riid, - void** ppNewStateObject - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int>)(lpVtbl[66]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pAddition, - pStateObjectToGrowFrom, - riid, - ppNewStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HRESULT CreateProtectedResourceSession1( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int>)(lpVtbl[67]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo2( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[68]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HRESULT CreateCommittedResource2( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[69]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HRESULT CreatePlacedResource1( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[70]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CreateSamplerFeedbackUnorderedAccessView( - ID3D12Resource* pTargetedResource, - ID3D12Resource* pFeedbackResource, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[71]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pTargetedResource, - pFeedbackResource, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void GetCopyableFootprints1( - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[72]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HRESULT CreateShaderCacheSession( - [NativeTypeName("const D3D12_SHADER_CACHE_SESSION_DESC *")] - D3D12_SHADER_CACHE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_SHADER_CACHE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[73]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HRESULT ShaderCacheControl( - D3D12_SHADER_CACHE_KIND_FLAGS Kinds, - D3D12_SHADER_CACHE_CONTROL_FLAGS Control - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_SHADER_CACHE_KIND_FLAGS, - D3D12_SHADER_CACHE_CONTROL_FLAGS, - int>)(lpVtbl[74]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), Kinds, Control); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HRESULT CreateCommandQueue1( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* CreatorID, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - Guid*, - void**, - int>)(lpVtbl[75]) - )((ID3D12Device10*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HRESULT CreateCommittedResource3( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int>)(lpVtbl[76]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialLayout, - pOptimizedClearValue, - pProtectedSession, - NumCastableFormats, - pCastableFormats, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public HRESULT CreatePlacedResource2( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int>)(lpVtbl[77]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialLayout, - pOptimizedClearValue, - NumCastableFormats, - pCastableFormats, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public HRESULT CreateReservedResource2( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device10*, - D3D12_RESOURCE_DESC*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int>)(lpVtbl[78]) - )( - (ID3D12Device10*)Unsafe.AsPointer(ref this), - pDesc, - InitialLayout, - pOptimizedClearValue, - pProtectedSession, - NumCastableFormats, - pCastableFormats, - riid, - ppvResource - ); - } - - public interface Interface : ID3D12Device9.Interface - { - [VtblIndex(76)] - HRESULT CreateCommittedResource3( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ); - - [VtblIndex(77)] - HRESULT CreatePlacedResource2( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ); - - [VtblIndex(78)] - HRESULT CreateReservedResource2( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - - [NativeTypeName( - "HRESULT (D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, HANDLE, BOOL *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int> SetBackgroundProcessingMode; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, ID3D12StateObject *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int> AddToStateObject; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int> CreateProtectedResourceSession1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo2; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource2; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource1; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSamplerFeedbackUnorderedAccessView; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC1 *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints1; - - [NativeTypeName( - "HRESULT (const D3D12_SHADER_CACHE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_SESSION_DESC*, - Guid*, - void**, - int> CreateShaderCacheSession; - - [NativeTypeName( - "HRESULT (D3D12_SHADER_CACHE_KIND_FLAGS, D3D12_SHADER_CACHE_CONTROL_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_KIND_FLAGS, - D3D12_SHADER_CACHE_CONTROL_FLAGS, - int> ShaderCacheControl; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - Guid*, - void**, - int> CreateCommandQueue1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC1 *, D3D12_BARRIER_LAYOUT, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, UINT32, DXGI_FORMAT *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int> CreateCommittedResource3; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC1 *, D3D12_BARRIER_LAYOUT, const D3D12_CLEAR_VALUE *, UINT32, DXGI_FORMAT *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int> CreatePlacedResource2; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_BARRIER_LAYOUT, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, UINT32, DXGI_FORMAT *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int> CreateReservedResource2; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device11.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device11.gen.cs deleted file mode 100644 index 3a57924504..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device11.gen.cs +++ /dev/null @@ -1,2646 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("5405C344-D457-444E-B4DD-2366E45AEE39")] -[NativeTypeName("struct ID3D12Device11 : ID3D12Device10")] -[NativeInheritance("ID3D12Device10")] -public unsafe partial struct ID3D12Device11 : ID3D12Device11.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device11)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ( - (delegate* unmanaged)(lpVtbl[13]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device11*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int>)(lpVtbl[65]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - Mode, - MeasurementsAction, - hEventToSignalUponCompletion, - pbFurtherMeasurementsDesired - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HRESULT AddToStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pAddition, - ID3D12StateObject* pStateObjectToGrowFrom, - [NativeTypeName("const IID &")] Guid* riid, - void** ppNewStateObject - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int>)(lpVtbl[66]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pAddition, - pStateObjectToGrowFrom, - riid, - ppNewStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HRESULT CreateProtectedResourceSession1( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int>)(lpVtbl[67]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo2( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[68]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HRESULT CreateCommittedResource2( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[69]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HRESULT CreatePlacedResource1( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[70]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CreateSamplerFeedbackUnorderedAccessView( - ID3D12Resource* pTargetedResource, - ID3D12Resource* pFeedbackResource, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[71]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pTargetedResource, - pFeedbackResource, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void GetCopyableFootprints1( - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[72]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HRESULT CreateShaderCacheSession( - [NativeTypeName("const D3D12_SHADER_CACHE_SESSION_DESC *")] - D3D12_SHADER_CACHE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_SHADER_CACHE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[73]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HRESULT ShaderCacheControl( - D3D12_SHADER_CACHE_KIND_FLAGS Kinds, - D3D12_SHADER_CACHE_CONTROL_FLAGS Control - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_SHADER_CACHE_KIND_FLAGS, - D3D12_SHADER_CACHE_CONTROL_FLAGS, - int>)(lpVtbl[74]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), Kinds, Control); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HRESULT CreateCommandQueue1( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* CreatorID, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - Guid*, - void**, - int>)(lpVtbl[75]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HRESULT CreateCommittedResource3( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int>)(lpVtbl[76]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialLayout, - pOptimizedClearValue, - pProtectedSession, - NumCastableFormats, - pCastableFormats, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public HRESULT CreatePlacedResource2( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int>)(lpVtbl[77]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialLayout, - pOptimizedClearValue, - NumCastableFormats, - pCastableFormats, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public HRESULT CreateReservedResource2( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_BARRIER_LAYOUT InitialLayout, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("UINT32")] uint NumCastableFormats, - DXGI_FORMAT* pCastableFormats, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_RESOURCE_DESC*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int>)(lpVtbl[78]) - )( - (ID3D12Device11*)Unsafe.AsPointer(ref this), - pDesc, - InitialLayout, - pOptimizedClearValue, - pProtectedSession, - NumCastableFormats, - pCastableFormats, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void CreateSampler2( - [NativeTypeName("const D3D12_SAMPLER_DESC2 *")] D3D12_SAMPLER_DESC2* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device11*, - D3D12_SAMPLER_DESC2*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[79]) - )((ID3D12Device11*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - public interface Interface : ID3D12Device10.Interface - { - [VtblIndex(79)] - void CreateSampler2( - [NativeTypeName("const D3D12_SAMPLER_DESC2 *")] D3D12_SAMPLER_DESC2* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - - [NativeTypeName( - "HRESULT (D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, HANDLE, BOOL *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int> SetBackgroundProcessingMode; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, ID3D12StateObject *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int> AddToStateObject; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int> CreateProtectedResourceSession1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo2; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource2; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource1; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSamplerFeedbackUnorderedAccessView; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC1 *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints1; - - [NativeTypeName( - "HRESULT (const D3D12_SHADER_CACHE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_SESSION_DESC*, - Guid*, - void**, - int> CreateShaderCacheSession; - - [NativeTypeName( - "HRESULT (D3D12_SHADER_CACHE_KIND_FLAGS, D3D12_SHADER_CACHE_CONTROL_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_KIND_FLAGS, - D3D12_SHADER_CACHE_CONTROL_FLAGS, - int> ShaderCacheControl; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - Guid*, - void**, - int> CreateCommandQueue1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC1 *, D3D12_BARRIER_LAYOUT, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, UINT32, DXGI_FORMAT *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int> CreateCommittedResource3; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC1 *, D3D12_BARRIER_LAYOUT, const D3D12_CLEAR_VALUE *, UINT32, DXGI_FORMAT *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int> CreatePlacedResource2; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_BARRIER_LAYOUT, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, UINT32, DXGI_FORMAT *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_BARRIER_LAYOUT, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - uint, - DXGI_FORMAT*, - Guid*, - void**, - int> CreateReservedResource2; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC2 *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC2*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler2; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device2.gen.cs deleted file mode 100644 index cb77703407..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device2.gen.cs +++ /dev/null @@ -1,1442 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("30BAA41E-B15B-475C-A0BB-1AF5C5B64328")] -[NativeTypeName("struct ID3D12Device2 : ID3D12Device1")] -[NativeInheritance("ID3D12Device1")] -public unsafe partial struct ID3D12Device2 : ID3D12Device2.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device2*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device2*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - public interface Interface : ID3D12Device1.Interface - { - [VtblIndex(47)] - HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device3.gen.cs deleted file mode 100644 index d0170f30ff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device3.gen.cs +++ /dev/null @@ -1,1547 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("81DADC15-2BAD-4392-93C5-101345C4AA98")] -[NativeTypeName("struct ID3D12Device3 : ID3D12Device2")] -[NativeInheritance("ID3D12Device2")] -public unsafe partial struct ID3D12Device3 : ID3D12Device3.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device3*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device3*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - public interface Interface : ID3D12Device2.Interface - { - [VtblIndex(48)] - HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ); - - [VtblIndex(49)] - HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ); - - [VtblIndex(50)] - HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device4.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device4.gen.cs deleted file mode 100644 index 807b3beb74..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device4.gen.cs +++ /dev/null @@ -1,1825 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("E865DF17-A9EE-46F9-A463-3098315AA2E5")] -[NativeTypeName("struct ID3D12Device4 : ID3D12Device3")] -[NativeInheritance("ID3D12Device3")] -public unsafe partial struct ID3D12Device4 : ID3D12Device4.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device4)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device4*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device4*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - public interface Interface : ID3D12Device3.Interface - { - [VtblIndex(51)] - HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ); - - [VtblIndex(52)] - HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ); - - [VtblIndex(53)] - HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ); - - [VtblIndex(54)] - HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ); - - [VtblIndex(55)] - HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ); - - [VtblIndex(56)] - D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device5.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device5.gen.cs deleted file mode 100644 index 378c80dec7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device5.gen.cs +++ /dev/null @@ -1,2050 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8B4F173B-2FEA-4B80-8F58-4307191AB95D")] -[NativeTypeName("struct ID3D12Device5 : ID3D12Device4")] -[NativeInheritance("ID3D12Device4")] -[SupportedOSPlatform("windows10.0.17763.0")] -public unsafe partial struct ID3D12Device5 : ID3D12Device5.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device5)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device5*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device5*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device5*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - public interface Interface : ID3D12Device4.Interface - { - [VtblIndex(57)] - HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ); - - [VtblIndex(58)] - void RemoveDevice(); - - [VtblIndex(59)] - HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs); - - [VtblIndex(60)] - HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ); - - [VtblIndex(61)] - HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ); - - [VtblIndex(62)] - HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ); - - [VtblIndex(63)] - void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ); - - [VtblIndex(64)] - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device6.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device6.gen.cs deleted file mode 100644 index 2a96066091..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device6.gen.cs +++ /dev/null @@ -1,2042 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C70B221B-40E4-4A17-89AF-025A0727A6DC")] -[NativeTypeName("struct ID3D12Device6 : ID3D12Device5")] -[NativeInheritance("ID3D12Device5")] -public unsafe partial struct ID3D12Device6 : ID3D12Device6.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device6)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device6*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ) - { - return ( - (delegate* unmanaged< - ID3D12Device6*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int>)(lpVtbl[65]) - )( - (ID3D12Device6*)Unsafe.AsPointer(ref this), - Mode, - MeasurementsAction, - hEventToSignalUponCompletion, - pbFurtherMeasurementsDesired - ); - } - - public interface Interface : ID3D12Device5.Interface - { - [VtblIndex(65)] - HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - - [NativeTypeName( - "HRESULT (D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, HANDLE, BOOL *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int> SetBackgroundProcessingMode; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device7.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device7.gen.cs deleted file mode 100644 index b2fbf83f72..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device7.gen.cs +++ /dev/null @@ -1,2120 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("5C014B53-68A1-4B9B-8BD1-DD6046B9358B")] -[NativeTypeName("struct ID3D12Device7 : ID3D12Device6")] -[NativeInheritance("ID3D12Device6")] -public unsafe partial struct ID3D12Device7 : ID3D12Device7.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device7)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int>)(lpVtbl[65]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - Mode, - MeasurementsAction, - hEventToSignalUponCompletion, - pbFurtherMeasurementsDesired - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HRESULT AddToStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pAddition, - ID3D12StateObject* pStateObjectToGrowFrom, - [NativeTypeName("const IID &")] Guid* riid, - void** ppNewStateObject - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int>)(lpVtbl[66]) - )( - (ID3D12Device7*)Unsafe.AsPointer(ref this), - pAddition, - pStateObjectToGrowFrom, - riid, - ppNewStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HRESULT CreateProtectedResourceSession1( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device7*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int>)(lpVtbl[67]) - )((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - public interface Interface : ID3D12Device6.Interface - { - [VtblIndex(66)] - HRESULT AddToStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pAddition, - ID3D12StateObject* pStateObjectToGrowFrom, - [NativeTypeName("const IID &")] Guid* riid, - void** ppNewStateObject - ); - - [VtblIndex(67)] - HRESULT CreateProtectedResourceSession1( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - - [NativeTypeName( - "HRESULT (D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, HANDLE, BOOL *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int> SetBackgroundProcessingMode; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, ID3D12StateObject *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int> AddToStateObject; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int> CreateProtectedResourceSession1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device8.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device8.gen.cs deleted file mode 100644 index 621ffd76dd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device8.gen.cs +++ /dev/null @@ -1,2394 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("9218E6BB-F944-4F7E-A75C-B1B2C7B701F3")] -[NativeTypeName("struct ID3D12Device8 : ID3D12Device7")] -[NativeInheritance("ID3D12Device7")] -public unsafe partial struct ID3D12Device8 : ID3D12Device8.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device8)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int>)(lpVtbl[65]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - Mode, - MeasurementsAction, - hEventToSignalUponCompletion, - pbFurtherMeasurementsDesired - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HRESULT AddToStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pAddition, - ID3D12StateObject* pStateObjectToGrowFrom, - [NativeTypeName("const IID &")] Guid* riid, - void** ppNewStateObject - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int>)(lpVtbl[66]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pAddition, - pStateObjectToGrowFrom, - riid, - ppNewStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HRESULT CreateProtectedResourceSession1( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int>)(lpVtbl[67]) - )((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo2( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[68]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HRESULT CreateCommittedResource2( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[69]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HRESULT CreatePlacedResource1( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[70]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CreateSamplerFeedbackUnorderedAccessView( - ID3D12Resource* pTargetedResource, - ID3D12Resource* pFeedbackResource, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[71]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pTargetedResource, - pFeedbackResource, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void GetCopyableFootprints1( - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device8*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[72]) - )( - (ID3D12Device8*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - public interface Interface : ID3D12Device7.Interface - { - [VtblIndex(68)] - D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo2( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ); - - [VtblIndex(69)] - HRESULT CreateCommittedResource2( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ); - - [VtblIndex(70)] - HRESULT CreatePlacedResource1( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ); - - [VtblIndex(71)] - void CreateSamplerFeedbackUnorderedAccessView( - ID3D12Resource* pTargetedResource, - ID3D12Resource* pFeedbackResource, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ); - - [VtblIndex(72)] - void GetCopyableFootprints1( - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - - [NativeTypeName( - "HRESULT (D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, HANDLE, BOOL *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int> SetBackgroundProcessingMode; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, ID3D12StateObject *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int> AddToStateObject; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int> CreateProtectedResourceSession1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo2; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource2; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource1; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSamplerFeedbackUnorderedAccessView; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC1 *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device9.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device9.gen.cs deleted file mode 100644 index ca6bcdc2ad..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Device9.gen.cs +++ /dev/null @@ -1,2456 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("4C80E962-F032-4F60-BC9E-EBC2CFA1D83C")] -[NativeTypeName("struct ID3D12Device9 : ID3D12Device8")] -[NativeInheritance("ID3D12Device8")] -public unsafe partial struct ID3D12Device9 : ID3D12Device9.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device9)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateCommandQueue( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateCommandAllocator( - D3D12_COMMAND_LIST_TYPE type, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandAllocator - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateGraphicsPipelineState( - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateComputePipelineState( - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[11]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateCommandList( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - ID3D12CommandAllocator* pCommandAllocator, - ID3D12PipelineState* pInitialState, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - nodeMask, - type, - pCommandAllocator, - pInitialState, - riid, - ppCommandList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE Feature, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - Feature, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateDescriptorHeap( - [NativeTypeName("const D3D12_DESCRIPTOR_HEAP_DESC *")] - D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) - { - return ( - (delegate* unmanaged)(lpVtbl[15]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT CreateRootSignature( - uint nodeMask, - [NativeTypeName("const void *")] void* pBlobWithRootSignature, - [NativeTypeName("SIZE_T")] nuint blobLengthInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvRootSignature - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - nodeMask, - pBlobWithRootSignature, - blobLengthInBytes, - riid, - ppvRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView( - [NativeTypeName("const D3D12_CONSTANT_BUFFER_VIEW_DESC *")] - D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[17]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_SHADER_RESOURCE_VIEW_DESC *")] - D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[18]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView( - ID3D12Resource* pResource, - ID3D12Resource* pCounterResource, - [NativeTypeName("const D3D12_UNORDERED_ACCESS_VIEW_DESC *")] - D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[19]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pResource, - pCounterResource, - pDesc, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_RENDER_TARGET_VIEW_DESC *")] - D3D12_RENDER_TARGET_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[20]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DEPTH_STENCIL_VIEW_DESC *")] - D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[21]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler( - [NativeTypeName("const D3D12_SAMPLER_DESC *")] D3D12_SAMPLER_DESC* pDesc, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[22]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors( - uint NumDestDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pDestDescriptorRangeSizes, - uint NumSrcDescriptorRanges, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, - [NativeTypeName("const UINT *")] uint* pSrcDescriptorRangeSizes, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[23]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - NumDestDescriptorRanges, - pDestDescriptorRangeStarts, - pDestDescriptorRangeSizes, - NumSrcDescriptorRanges, - pSrcDescriptorRangeStarts, - pSrcDescriptorRangeSizes, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple( - uint NumDescriptors, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, - D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, - D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void>)(lpVtbl[24]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - NumDescriptors, - DestDescriptorRangeStart, - SrcDescriptorRangeStart, - DescriptorHeapsType - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[25]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public D3D12_HEAP_PROPERTIES GetCustomHeapProperties(uint nodeMask, D3D12_HEAP_TYPE heapType) - { - D3D12_HEAP_PROPERTIES result; - return *( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*>)(lpVtbl[26]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HRESULT CreateCommittedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[27]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT CreateHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)(lpVtbl[28]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT CreatePlacedResource( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[29]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT CreateReservedResource( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[30]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT CreateSharedHandle( - ID3D12DeviceChild* pObject, - [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES* pAttributes, - [NativeTypeName("DWORD")] uint Access, - [NativeTypeName("LPCWSTR")] ushort* Name, - HANDLE* pHandle - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int>)(lpVtbl[31]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT OpenSharedHandle( - HANDLE NTHandle, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvObj - ) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - NTHandle, - riid, - ppvObj - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HRESULT OpenSharedHandleByName( - [NativeTypeName("LPCWSTR")] ushort* Name, - [NativeTypeName("DWORD")] uint Access, - HANDLE* pNTHandle - ) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - Name, - Access, - pNTHandle - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HRESULT MakeResident( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HRESULT Evict( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects - ) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - NumObjects, - ppObjects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HRESULT CreateFence( - [NativeTypeName("UINT64")] ulong InitialValue, - D3D12_FENCE_FLAGS Flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppFence - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HRESULT GetDeviceRemovedReason() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[38]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT CreateQueryHeap( - [NativeTypeName("const D3D12_QUERY_HEAP_DESC *")] D3D12_QUERY_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[39] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HRESULT SetStablePowerState(BOOL Enable) - { - return ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HRESULT CreateCommandSignature( - [NativeTypeName("const D3D12_COMMAND_SIGNATURE_DESC *")] - D3D12_COMMAND_SIGNATURE_DESC* pDesc, - ID3D12RootSignature* pRootSignature, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvCommandSignature - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int>)(lpVtbl[41]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pDesc, - pRootSignature, - riid, - ppvCommandSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling( - ID3D12Resource* pTiledResource, - uint* pNumTilesForEntireResource, - D3D12_PACKED_MIP_INFO* pPackedMipDesc, - D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, - uint* pNumSubresourceTilings, - uint FirstSubresourceTilingToGet, - D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void>)(lpVtbl[42]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pTiledResource, - pNumTilesForEntireResource, - pPackedMipDesc, - pStandardTileShapeForNonPackedMips, - pNumSubresourceTilings, - FirstSubresourceTilingToGet, - pSubresourceTilingsForNonPackedMips - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public LUID GetAdapterLuid() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[43]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HRESULT CreatePipelineLibrary( - [NativeTypeName("const void *")] void* pLibraryBlob, - [NativeTypeName("SIZE_T")] nuint BlobLength, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineLibrary - ) - { - return ( - (delegate* unmanaged)(lpVtbl[44]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pLibraryBlob, - BlobLength, - riid, - ppPipelineLibrary - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HRESULT SetEventOnMultipleFenceCompletion( - [NativeTypeName("ID3D12Fence *const *")] ID3D12Fence** ppFences, - [NativeTypeName("const UINT64 *")] ulong* pFenceValues, - uint NumFences, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, - HANDLE hEvent - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int>)(lpVtbl[45]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - ppFences, - pFenceValues, - NumFences, - Flags, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HRESULT SetResidencyPriority( - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - [NativeTypeName("const D3D12_RESIDENCY_PRIORITY *")] D3D12_RESIDENCY_PRIORITY* pPriorities - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int>)(lpVtbl[46]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HRESULT CreatePipelineState( - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[47]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HRESULT OpenExistingHeapFromAddress( - [NativeTypeName("const void *")] void* pAddress, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[48]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pAddress, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HRESULT OpenExistingHeapFromFileMapping( - HANDLE hFileMapping, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ((delegate* unmanaged)(lpVtbl[49]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - hFileMapping, - riid, - ppvHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HRESULT EnqueueMakeResident( - D3D12_RESIDENCY_FLAGS Flags, - uint NumObjects, - [NativeTypeName("ID3D12Pageable *const *")] ID3D12Pageable** ppObjects, - ID3D12Fence* pFenceToSignal, - [NativeTypeName("UINT64")] ulong FenceValueToSignal - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int>)(lpVtbl[50]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - Flags, - NumObjects, - ppObjects, - pFenceToSignal, - FenceValueToSignal - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HRESULT CreateCommandList1( - uint nodeMask, - D3D12_COMMAND_LIST_TYPE type, - D3D12_COMMAND_LIST_FLAGS flags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandList - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int>)(lpVtbl[51]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HRESULT CreateProtectedResourceSession( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[52]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HRESULT CreateCommittedResource1( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[53]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HRESULT CreateHeap1( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[54]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HRESULT CreateReservedResource1( - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[55]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pDesc, - InitialState, - pOptimizedClearValue, - pProtectedSession, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[56]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HRESULT CreateLifetimeTracker( - ID3D12LifetimeOwner* pOwner, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvTracker - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[57] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12Device9*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HRESULT EnumerateMetaCommands(uint* pNumMetaCommands, D3D12_META_COMMAND_DESC* pDescs) - { - return ( - (delegate* unmanaged)(lpVtbl[59]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HRESULT EnumerateMetaCommandParameters( - [NativeTypeName("const GUID &")] Guid* CommandId, - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint* pTotalStructureSizeInBytes, - uint* pParameterCount, - D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int>)(lpVtbl[60]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - CommandId, - Stage, - pTotalStructureSizeInBytes, - pParameterCount, - pParameterDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HRESULT CreateMetaCommand( - [NativeTypeName("const GUID &")] Guid* CommandId, - uint NodeMask, - [NativeTypeName("const void *")] void* pCreationParametersData, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppMetaCommand - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[61] - ) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - CommandId, - NodeMask, - pCreationParametersData, - CreationParametersDataSizeInBytes, - riid, - ppMetaCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HRESULT CreateStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppStateObject - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[62] - ) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO* pInfo - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void>)(lpVtbl[63]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( - D3D12_SERIALIZED_DATA_TYPE SerializedDataType, - [NativeTypeName("const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *")] - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS>)(lpVtbl[64]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HRESULT SetBackgroundProcessingMode( - D3D12_BACKGROUND_PROCESSING_MODE Mode, - D3D12_MEASUREMENTS_ACTION MeasurementsAction, - HANDLE hEventToSignalUponCompletion, - BOOL* pbFurtherMeasurementsDesired - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int>)(lpVtbl[65]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - Mode, - MeasurementsAction, - hEventToSignalUponCompletion, - pbFurtherMeasurementsDesired - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HRESULT AddToStateObject( - [NativeTypeName("const D3D12_STATE_OBJECT_DESC *")] D3D12_STATE_OBJECT_DESC* pAddition, - ID3D12StateObject* pStateObjectToGrowFrom, - [NativeTypeName("const IID &")] Guid* riid, - void** ppNewStateObject - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int>)(lpVtbl[66]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pAddition, - pStateObjectToGrowFrom, - riid, - ppNewStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HRESULT CreateProtectedResourceSession1( - [NativeTypeName("const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *")] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int>)(lpVtbl[67]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo2( - uint visibleMask, - uint numResourceDescs, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDescs, - D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 - ) - { - D3D12_RESOURCE_ALLOCATION_INFO result; - return *( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*>)(lpVtbl[68]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - &result, - visibleMask, - numResourceDescs, - pResourceDescs, - pResourceAllocationInfo1 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HRESULT CreateCommittedResource2( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - ID3D12ProtectedResourceSession* pProtectedSession, - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[69]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pProtectedSession, - riidResource, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HRESULT CreatePlacedResource1( - ID3D12Heap* pHeap, - [NativeTypeName("UINT64")] ulong HeapOffset, - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pDesc, - D3D12_RESOURCE_STATES InitialState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvResource - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int>)(lpVtbl[70]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pHeap, - HeapOffset, - pDesc, - InitialState, - pOptimizedClearValue, - riid, - ppvResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CreateSamplerFeedbackUnorderedAccessView( - ID3D12Resource* pTargetedResource, - ID3D12Resource* pFeedbackResource, - D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[71]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pTargetedResource, - pFeedbackResource, - DestDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void GetCopyableFootprints1( - [NativeTypeName("const D3D12_RESOURCE_DESC1 *")] D3D12_RESOURCE_DESC1* pResourceDesc, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong BaseOffset, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - uint* pNumRows, - [NativeTypeName("UINT64 *")] ulong* pRowSizeInBytes, - [NativeTypeName("UINT64 *")] ulong* pTotalBytes - ) - { - ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void>)(lpVtbl[72]) - )( - (ID3D12Device9*)Unsafe.AsPointer(ref this), - pResourceDesc, - FirstSubresource, - NumSubresources, - BaseOffset, - pLayouts, - pNumRows, - pRowSizeInBytes, - pTotalBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HRESULT CreateShaderCacheSession( - [NativeTypeName("const D3D12_SHADER_CACHE_SESSION_DESC *")] - D3D12_SHADER_CACHE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvSession - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_SHADER_CACHE_SESSION_DESC*, - Guid*, - void**, - int>)(lpVtbl[73]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HRESULT ShaderCacheControl( - D3D12_SHADER_CACHE_KIND_FLAGS Kinds, - D3D12_SHADER_CACHE_CONTROL_FLAGS Control - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_SHADER_CACHE_KIND_FLAGS, - D3D12_SHADER_CACHE_CONTROL_FLAGS, - int>)(lpVtbl[74]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), Kinds, Control); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HRESULT CreateCommandQueue1( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* CreatorID, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ) - { - return ( - (delegate* unmanaged< - ID3D12Device9*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - Guid*, - void**, - int>)(lpVtbl[75]) - )((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); - } - - public interface Interface : ID3D12Device8.Interface - { - [VtblIndex(73)] - HRESULT CreateShaderCacheSession( - [NativeTypeName("const D3D12_SHADER_CACHE_SESSION_DESC *")] - D3D12_SHADER_CACHE_SESSION_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvSession - ); - - [VtblIndex(74)] - HRESULT ShaderCacheControl( - D3D12_SHADER_CACHE_KIND_FLAGS Kinds, - D3D12_SHADER_CACHE_CONTROL_FLAGS Control - ); - - [VtblIndex(75)] - HRESULT CreateCommandQueue1( - [NativeTypeName("const D3D12_COMMAND_QUEUE_DESC *")] D3D12_COMMAND_QUEUE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* CreatorID, - [NativeTypeName("const IID &")] Guid* riid, - void** ppCommandQueue - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeCount; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - void**, - int> CreateCommandQueue; - - [NativeTypeName( - "HRESULT (D3D12_COMMAND_LIST_TYPE, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_LIST_TYPE, - Guid*, - void**, - int> CreateCommandAllocator; - - [NativeTypeName( - "HRESULT (const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateGraphicsPipelineState; - - [NativeTypeName( - "HRESULT (const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> CreateComputePipelineState; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, ID3D12CommandAllocator *, ID3D12PipelineState *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - Guid*, - void**, - int> CreateCommandList; - - [NativeTypeName("HRESULT (D3D12_FEATURE, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_DESCRIPTOR_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_DESC*, - Guid*, - void**, - int> CreateDescriptorHeap; - - [NativeTypeName("UINT (D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DESCRIPTOR_HEAP_TYPE, - uint> GetDescriptorHandleIncrementSize; - - [NativeTypeName( - "HRESULT (UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateRootSignature; - - [NativeTypeName( - "void (const D3D12_CONSTANT_BUFFER_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CONSTANT_BUFFER_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateConstantBufferView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_SHADER_RESOURCE_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_SHADER_RESOURCE_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateShaderResourceView; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, const D3D12_UNORDERED_ACCESS_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_UNORDERED_ACCESS_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateUnorderedAccessView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_RENDER_TARGET_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_RENDER_TARGET_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateRenderTargetView; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DEPTH_STENCIL_VIEW_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DEPTH_STENCIL_VIEW_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateDepthStencilView; - - [NativeTypeName( - "void (const D3D12_SAMPLER_DESC *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SAMPLER_DESC*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSampler; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, const UINT *, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - uint*, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptors; - - [NativeTypeName( - "void (UINT, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_DESCRIPTOR_HEAP_TYPE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_DESCRIPTOR_HEAP_TYPE, - void> CopyDescriptorsSimple; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo; - - [NativeTypeName("D3D12_HEAP_PROPERTIES (UINT, D3D12_HEAP_TYPE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - uint, - D3D12_HEAP_TYPE, - D3D12_HEAP_PROPERTIES*> GetCustomHeapProperties; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateCommittedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateHeap; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreateReservedResource; - - [NativeTypeName( - "HRESULT (ID3D12DeviceChild *, const SECURITY_ATTRIBUTES *, DWORD, LPCWSTR, HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12DeviceChild*, - SECURITY_ATTRIBUTES*, - uint, - ushort*, - HANDLE*, - int> CreateSharedHandle; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandle; - - [NativeTypeName("HRESULT (LPCWSTR, DWORD, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged OpenSharedHandleByName; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged MakeResident; - - [NativeTypeName("HRESULT (UINT, ID3D12Pageable *const *) __attribute__((stdcall))")] - public delegate* unmanaged Evict; - - [NativeTypeName( - "HRESULT (UINT64, D3D12_FENCE_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - D3D12_FENCE_FLAGS, - Guid*, - void**, - int> CreateFence; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceRemovedReason; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints; - - [NativeTypeName( - "HRESULT (const D3D12_QUERY_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_QUERY_HEAP_DESC*, - Guid*, - void**, - int> CreateQueryHeap; - - [NativeTypeName("HRESULT (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetStablePowerState; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_SIGNATURE_DESC *, ID3D12RootSignature *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_SIGNATURE_DESC*, - ID3D12RootSignature*, - Guid*, - void**, - int> CreateCommandSignature; - - [NativeTypeName( - "void (ID3D12Resource *, UINT *, D3D12_PACKED_MIP_INFO *, D3D12_TILE_SHAPE *, UINT *, UINT, D3D12_SUBRESOURCE_TILING *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint*, - D3D12_PACKED_MIP_INFO*, - D3D12_TILE_SHAPE*, - uint*, - uint, - D3D12_SUBRESOURCE_TILING*, - void> GetResourceTiling; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterLuid; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreatePipelineLibrary; - - [NativeTypeName( - "HRESULT (ID3D12Fence *const *, const UINT64 *, UINT, D3D12_MULTIPLE_FENCE_WAIT_FLAGS, HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Fence**, - ulong*, - uint, - D3D12_MULTIPLE_FENCE_WAIT_FLAGS, - HANDLE, - int> SetEventOnMultipleFenceCompletion; - - [NativeTypeName( - "HRESULT (UINT, ID3D12Pageable *const *, const D3D12_RESIDENCY_PRIORITY *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12Pageable**, - D3D12_RESIDENCY_PRIORITY*, - int> SetResidencyPriority; - - [NativeTypeName( - "HRESULT (const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> CreatePipelineState; - - [NativeTypeName("HRESULT (const void *, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged OpenExistingHeapFromAddress; - - [NativeTypeName("HRESULT (HANDLE, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - HANDLE, - Guid*, - void**, - int> OpenExistingHeapFromFileMapping; - - [NativeTypeName( - "HRESULT (D3D12_RESIDENCY_FLAGS, UINT, ID3D12Pageable *const *, ID3D12Fence *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESIDENCY_FLAGS, - uint, - ID3D12Pageable**, - ID3D12Fence*, - ulong, - int> EnqueueMakeResident; - - [NativeTypeName( - "HRESULT (UINT, D3D12_COMMAND_LIST_TYPE, D3D12_COMMAND_LIST_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_COMMAND_LIST_TYPE, - D3D12_COMMAND_LIST_FLAGS, - Guid*, - void**, - int> CreateCommandList1; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - Guid*, - void**, - int> CreateProtectedResourceSession; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource1; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateHeap1; - - [NativeTypeName( - "HRESULT (const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateReservedResource1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo1; - - [NativeTypeName( - "HRESULT (ID3D12LifetimeOwner *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12LifetimeOwner*, - Guid*, - void**, - int> CreateLifetimeTracker; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged RemoveDevice; - - [NativeTypeName("HRESULT (UINT *, D3D12_META_COMMAND_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint*, - D3D12_META_COMMAND_DESC*, - int> EnumerateMetaCommands; - - [NativeTypeName( - "HRESULT (const GUID &, D3D12_META_COMMAND_PARAMETER_STAGE, UINT *, UINT *, D3D12_META_COMMAND_PARAMETER_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint*, - uint*, - D3D12_META_COMMAND_PARAMETER_DESC*, - int> EnumerateMetaCommandParameters; - - [NativeTypeName( - "HRESULT (const GUID &, UINT, const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - uint, - void*, - nuint, - Guid*, - void**, - int> CreateMetaCommand; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - Guid*, - void**, - int> CreateStateObject; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO*, - void> GetRaytracingAccelerationStructurePrebuildInfo; - - [NativeTypeName( - "D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS (D3D12_SERIALIZED_DATA_TYPE, const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SERIALIZED_DATA_TYPE, - D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER*, - D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS> CheckDriverMatchingIdentifier; - - [NativeTypeName( - "HRESULT (D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, HANDLE, BOOL *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BACKGROUND_PROCESSING_MODE, - D3D12_MEASUREMENTS_ACTION, - HANDLE, - BOOL*, - int> SetBackgroundProcessingMode; - - [NativeTypeName( - "HRESULT (const D3D12_STATE_OBJECT_DESC *, ID3D12StateObject *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_STATE_OBJECT_DESC*, - ID3D12StateObject*, - Guid*, - void**, - int> AddToStateObject; - - [NativeTypeName( - "HRESULT (const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - Guid*, - void**, - int> CreateProtectedResourceSession1; - - [NativeTypeName( - "D3D12_RESOURCE_ALLOCATION_INFO (UINT, UINT, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_ALLOCATION_INFO1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_ALLOCATION_INFO*, - uint, - uint, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_ALLOCATION_INFO1*, - D3D12_RESOURCE_ALLOCATION_INFO*> GetResourceAllocationInfo2; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateCommittedResource2; - - [NativeTypeName( - "HRESULT (ID3D12Heap *, UINT64, const D3D12_RESOURCE_DESC1 *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Heap*, - ulong, - D3D12_RESOURCE_DESC1*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - Guid*, - void**, - int> CreatePlacedResource1; - - [NativeTypeName( - "void (ID3D12Resource *, ID3D12Resource *, D3D12_CPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ID3D12Resource*, - D3D12_CPU_DESCRIPTOR_HANDLE, - void> CreateSamplerFeedbackUnorderedAccessView; - - [NativeTypeName( - "void (const D3D12_RESOURCE_DESC1 *, UINT, UINT, UINT64, D3D12_PLACED_SUBRESOURCE_FOOTPRINT *, UINT *, UINT64 *, UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOURCE_DESC1*, - uint, - uint, - ulong, - D3D12_PLACED_SUBRESOURCE_FOOTPRINT*, - uint*, - ulong*, - ulong*, - void> GetCopyableFootprints1; - - [NativeTypeName( - "HRESULT (const D3D12_SHADER_CACHE_SESSION_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_SESSION_DESC*, - Guid*, - void**, - int> CreateShaderCacheSession; - - [NativeTypeName( - "HRESULT (D3D12_SHADER_CACHE_KIND_FLAGS, D3D12_SHADER_CACHE_CONTROL_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_KIND_FLAGS, - D3D12_SHADER_CACHE_CONTROL_FLAGS, - int> ShaderCacheControl; - - [NativeTypeName( - "HRESULT (const D3D12_COMMAND_QUEUE_DESC *, const IID &, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_COMMAND_QUEUE_DESC*, - Guid*, - Guid*, - void**, - int> CreateCommandQueue1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceChild.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceChild.gen.cs deleted file mode 100644 index ed3ebc9d77..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceChild.gen.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("905DB94B-A00C-4140-9DF5-2B64CA9EA357")] -[NativeTypeName("struct ID3D12DeviceChild : ID3D12Object")] -[NativeInheritance("ID3D12Object")] -public unsafe partial struct ID3D12DeviceChild : ID3D12DeviceChild.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceChild)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12DeviceChild*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - public interface Interface : ID3D12Object.Interface - { - [VtblIndex(7)] - HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceConfiguration.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceConfiguration.gen.cs deleted file mode 100644 index 2760c8d4f5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceConfiguration.gen.cs +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("78DBF87B-F766-422B-A61C-C8C446BDB9AD")] -[NativeTypeName("struct ID3D12DeviceConfiguration : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DeviceConfiguration - : ID3D12DeviceConfiguration.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceConfiguration)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public D3D12_DEVICE_CONFIGURATION_DESC GetDesc() - { - D3D12_DEVICE_CONFIGURATION_DESC result; - return *( - (delegate* unmanaged< - ID3D12DeviceConfiguration*, - D3D12_DEVICE_CONFIGURATION_DESC*, - D3D12_DEVICE_CONFIGURATION_DESC*>)(lpVtbl[3]) - )((ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetEnabledExperimentalFeatures(Guid* pGuids, uint NumGuids) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this), - pGuids, - NumGuids - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SerializeVersionedRootSignature( - [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] - D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pDesc, - ID3DBlob** ppResult, - ID3DBlob** ppError - ) - { - return ( - (delegate* unmanaged< - ID3D12DeviceConfiguration*, - D3D12_VERSIONED_ROOT_SIGNATURE_DESC*, - ID3DBlob**, - ID3DBlob**, - int>)(lpVtbl[5]) - )((ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this), pDesc, ppResult, ppError); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT CreateVersionedRootSignatureDeserializer( - [NativeTypeName("const void *")] void* pBlob, - [NativeTypeName("SIZE_T")] nuint Size, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvDeserializer - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[6] - ) - )( - (ID3D12DeviceConfiguration*)Unsafe.AsPointer(ref this), - pBlob, - Size, - riid, - ppvDeserializer - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - D3D12_DEVICE_CONFIGURATION_DESC GetDesc(); - - [VtblIndex(4)] - HRESULT GetEnabledExperimentalFeatures(Guid* pGuids, uint NumGuids); - - [VtblIndex(5)] - HRESULT SerializeVersionedRootSignature( - [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] - D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pDesc, - ID3DBlob** ppResult, - ID3DBlob** ppError - ); - - [VtblIndex(6)] - HRESULT CreateVersionedRootSignatureDeserializer( - [NativeTypeName("const void *")] void* pBlob, - [NativeTypeName("SIZE_T")] nuint Size, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvDeserializer - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("D3D12_DEVICE_CONFIGURATION_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DEVICE_CONFIGURATION_DESC*, - D3D12_DEVICE_CONFIGURATION_DESC*> GetDesc; - - [NativeTypeName("HRESULT (GUID *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged GetEnabledExperimentalFeatures; - - [NativeTypeName( - "HRESULT (const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *, ID3DBlob **, ID3DBlob **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VERSIONED_ROOT_SIGNATURE_DESC*, - ID3DBlob**, - ID3DBlob**, - int> SerializeVersionedRootSignature; - - [NativeTypeName( - "HRESULT (const void *, SIZE_T, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - void*, - nuint, - Guid*, - void**, - int> CreateVersionedRootSignatureDeserializer; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceFactory.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceFactory.gen.cs deleted file mode 100644 index 284af5f7da..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceFactory.gen.cs +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("61F307D3-D34E-4E7C-8374-3BA4DE23CCCB")] -[NativeTypeName("struct ID3D12DeviceFactory : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DeviceFactory : ID3D12DeviceFactory.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceFactory)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT InitializeFromGlobalState() - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT ApplyToGlobalState() - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetFlags(D3D12_DEVICE_FACTORY_FLAGS flags) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12DeviceFactory*)Unsafe.AsPointer(ref this), flags); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public D3D12_DEVICE_FACTORY_FLAGS GetFlags() - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetConfigurationInterface( - [NativeTypeName("const IID &")] Guid* clsid, - [NativeTypeName("const IID &")] Guid* iid, - void** ppv - ) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this), - clsid, - iid, - ppv - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT EnableExperimentalFeatures( - uint NumFeatures, - [NativeTypeName("const IID *")] Guid* pIIDs, - void* pConfigurationStructs, - uint* pConfigurationStructSizes - ) - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )( - (ID3D12DeviceFactory*)Unsafe.AsPointer(ref this), - NumFeatures, - pIIDs, - pConfigurationStructs, - pConfigurationStructSizes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateDevice( - IUnknown* adapter, - D3D_FEATURE_LEVEL FeatureLevel, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvDevice - ) - { - return ( - (delegate* unmanaged< - ID3D12DeviceFactory*, - IUnknown*, - D3D_FEATURE_LEVEL, - Guid*, - void**, - int>)(lpVtbl[9]) - )((ID3D12DeviceFactory*)Unsafe.AsPointer(ref this), adapter, FeatureLevel, riid, ppvDevice); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT InitializeFromGlobalState(); - - [VtblIndex(4)] - HRESULT ApplyToGlobalState(); - - [VtblIndex(5)] - HRESULT SetFlags(D3D12_DEVICE_FACTORY_FLAGS flags); - - [VtblIndex(6)] - D3D12_DEVICE_FACTORY_FLAGS GetFlags(); - - [VtblIndex(7)] - HRESULT GetConfigurationInterface( - [NativeTypeName("const IID &")] Guid* clsid, - [NativeTypeName("const IID &")] Guid* iid, - void** ppv - ); - - [VtblIndex(8)] - HRESULT EnableExperimentalFeatures( - uint NumFeatures, - [NativeTypeName("const IID *")] Guid* pIIDs, - void* pConfigurationStructs, - uint* pConfigurationStructSizes - ); - - [VtblIndex(9)] - HRESULT CreateDevice( - IUnknown* adapter, - D3D_FEATURE_LEVEL FeatureLevel, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvDevice - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged InitializeFromGlobalState; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged ApplyToGlobalState; - - [NativeTypeName("HRESULT (D3D12_DEVICE_FACTORY_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged SetFlags; - - [NativeTypeName("D3D12_DEVICE_FACTORY_FLAGS () __attribute__((stdcall))")] - public delegate* unmanaged GetFlags; - - [NativeTypeName("HRESULT (const IID &, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetConfigurationInterface; - - [NativeTypeName("HRESULT (UINT, const IID *, void *, UINT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - Guid*, - void*, - uint*, - int> EnableExperimentalFeatures; - - [NativeTypeName( - "HRESULT (IUnknown *, D3D_FEATURE_LEVEL, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - IUnknown*, - D3D_FEATURE_LEVEL, - Guid*, - void**, - int> CreateDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData.gen.cs deleted file mode 100644 index 21531202c5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData.gen.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("98931D33-5AE8-4791-AA3C-1A73A2934E71")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedData : IUnknown")] -[NativeInheritance("IUnknown")] -[SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData - : ID3D12DeviceRemovedExtendedData.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetAutoBreadcrumbsOutput(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT*, - int>)(lpVtbl[3]) - )((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetPageFaultAllocationOutput(D3D12_DRED_PAGE_FAULT_OUTPUT* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData*, - D3D12_DRED_PAGE_FAULT_OUTPUT*, - int>)(lpVtbl[4]) - )((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), pOutput); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT GetAutoBreadcrumbsOutput(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT* pOutput); - - [VtblIndex(4)] - HRESULT GetPageFaultAllocationOutput(D3D12_DRED_PAGE_FAULT_OUTPUT* pOutput); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT*, - int> GetAutoBreadcrumbsOutput; - - [NativeTypeName("HRESULT (D3D12_DRED_PAGE_FAULT_OUTPUT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_PAGE_FAULT_OUTPUT*, - int> GetPageFaultAllocationOutput; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData1.gen.cs deleted file mode 100644 index 1cc98c5a71..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData1.gen.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("9727A022-CF1D-4DDA-9EBA-EFFA653FC506")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData")] -[NativeInheritance("ID3D12DeviceRemovedExtendedData")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData1 - : ID3D12DeviceRemovedExtendedData1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetAutoBreadcrumbsOutput(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData1*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT*, - int>)(lpVtbl[3]) - )((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetPageFaultAllocationOutput(D3D12_DRED_PAGE_FAULT_OUTPUT* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData1*, - D3D12_DRED_PAGE_FAULT_OUTPUT*, - int>)(lpVtbl[4]) - )((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetAutoBreadcrumbsOutput1(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData1*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1*, - int>)(lpVtbl[5]) - )((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT GetPageFaultAllocationOutput1(D3D12_DRED_PAGE_FAULT_OUTPUT1* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData1*, - D3D12_DRED_PAGE_FAULT_OUTPUT1*, - int>)(lpVtbl[6]) - )((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - public interface Interface : ID3D12DeviceRemovedExtendedData.Interface - { - [VtblIndex(5)] - HRESULT GetAutoBreadcrumbsOutput1(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1* pOutput); - - [VtblIndex(6)] - HRESULT GetPageFaultAllocationOutput1(D3D12_DRED_PAGE_FAULT_OUTPUT1* pOutput); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT*, - int> GetAutoBreadcrumbsOutput; - - [NativeTypeName("HRESULT (D3D12_DRED_PAGE_FAULT_OUTPUT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_PAGE_FAULT_OUTPUT*, - int> GetPageFaultAllocationOutput; - - [NativeTypeName("HRESULT (D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1*, - int> GetAutoBreadcrumbsOutput1; - - [NativeTypeName("HRESULT (D3D12_DRED_PAGE_FAULT_OUTPUT1 *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_PAGE_FAULT_OUTPUT1*, - int> GetPageFaultAllocationOutput1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData2.gen.cs deleted file mode 100644 index 68aef661fd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData2.gen.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("67FC5816-E4CA-4915-BF18-42541272DA54")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedData2 : ID3D12DeviceRemovedExtendedData1")] -[NativeInheritance("ID3D12DeviceRemovedExtendedData1")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData2 - : ID3D12DeviceRemovedExtendedData2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetAutoBreadcrumbsOutput(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData2*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT*, - int>)(lpVtbl[3]) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetPageFaultAllocationOutput(D3D12_DRED_PAGE_FAULT_OUTPUT* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData2*, - D3D12_DRED_PAGE_FAULT_OUTPUT*, - int>)(lpVtbl[4]) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetAutoBreadcrumbsOutput1(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData2*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1*, - int>)(lpVtbl[5]) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT GetPageFaultAllocationOutput1(D3D12_DRED_PAGE_FAULT_OUTPUT1* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData2*, - D3D12_DRED_PAGE_FAULT_OUTPUT1*, - int>)(lpVtbl[6]) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetPageFaultAllocationOutput2(D3D12_DRED_PAGE_FAULT_OUTPUT2* pOutput) - { - return ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedData2*, - D3D12_DRED_PAGE_FAULT_OUTPUT2*, - int>)(lpVtbl[7]) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_DRED_DEVICE_STATE GetDeviceState() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this)); - } - - public interface Interface : ID3D12DeviceRemovedExtendedData1.Interface - { - [VtblIndex(7)] - HRESULT GetPageFaultAllocationOutput2(D3D12_DRED_PAGE_FAULT_OUTPUT2* pOutput); - - [VtblIndex(8)] - D3D12_DRED_DEVICE_STATE GetDeviceState(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT*, - int> GetAutoBreadcrumbsOutput; - - [NativeTypeName("HRESULT (D3D12_DRED_PAGE_FAULT_OUTPUT *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_PAGE_FAULT_OUTPUT*, - int> GetPageFaultAllocationOutput; - - [NativeTypeName("HRESULT (D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1*, - int> GetAutoBreadcrumbsOutput1; - - [NativeTypeName("HRESULT (D3D12_DRED_PAGE_FAULT_OUTPUT1 *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_PAGE_FAULT_OUTPUT1*, - int> GetPageFaultAllocationOutput1; - - [NativeTypeName("HRESULT (D3D12_DRED_PAGE_FAULT_OUTPUT2 *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_PAGE_FAULT_OUTPUT2*, - int> GetPageFaultAllocationOutput2; - - [NativeTypeName("D3D12_DRED_DEVICE_STATE () __attribute__((stdcall))")] - public delegate* unmanaged GetDeviceState; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings.gen.cs deleted file mode 100644 index e9b5e3c798..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings.gen.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings : IUnknown")] -[NativeInheritance("IUnknown")] -[SupportedOSPlatform("windows10.0.18362.0")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings - : ID3D12DeviceRemovedExtendedDataSettings.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[3]) - )((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[4]) - )((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[5]) - )((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement); - - [VtblIndex(4)] - void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement); - - [VtblIndex(5)] - void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_ENABLEMENT, - void> SetAutoBreadcrumbsEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged SetPageFaultEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged SetWatsonDumpEnablement; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.gen.cs deleted file mode 100644 index 097478b227..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.gen.cs +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B")] -[NativeTypeName( - "struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings" -)] -[NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings1 - : ID3D12DeviceRemovedExtendedDataSettings1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings1*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[3]) - )((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings1*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[4]) - )((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings1*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[5]) - )((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetBreadcrumbContextEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings1*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[6]) - )((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - public interface Interface : ID3D12DeviceRemovedExtendedDataSettings.Interface - { - [VtblIndex(6)] - void SetBreadcrumbContextEnablement(D3D12_DRED_ENABLEMENT Enablement); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_ENABLEMENT, - void> SetAutoBreadcrumbsEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged SetPageFaultEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged SetWatsonDumpEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_ENABLEMENT, - void> SetBreadcrumbContextEnablement; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings2.gen.cs deleted file mode 100644 index 6dc4d924a2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings2.gen.cs +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("61552388-01AB-4008-A436-83DB189566EA")] -[NativeTypeName( - "struct ID3D12DeviceRemovedExtendedDataSettings2 : ID3D12DeviceRemovedExtendedDataSettings1" -)] -[NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings1")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings2 - : ID3D12DeviceRemovedExtendedDataSettings2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings2*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[3]) - )((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings2*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[4]) - )((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings2*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[5]) - )((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetBreadcrumbContextEnablement(D3D12_DRED_ENABLEMENT Enablement) - { - ( - (delegate* unmanaged< - ID3D12DeviceRemovedExtendedDataSettings2*, - D3D12_DRED_ENABLEMENT, - void>)(lpVtbl[6]) - )((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void UseMarkersOnlyAutoBreadcrumbs(BOOL MarkersOnly) - { - ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), - MarkersOnly - ); - } - - public interface Interface : ID3D12DeviceRemovedExtendedDataSettings1.Interface - { - [VtblIndex(7)] - void UseMarkersOnlyAutoBreadcrumbs(BOOL MarkersOnly); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_ENABLEMENT, - void> SetAutoBreadcrumbsEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged SetPageFaultEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged SetWatsonDumpEnablement; - - [NativeTypeName("void (D3D12_DRED_ENABLEMENT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_DRED_ENABLEMENT, - void> SetBreadcrumbContextEnablement; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged UseMarkersOnlyAutoBreadcrumbs; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence.gen.cs deleted file mode 100644 index 7552d64857..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence.gen.cs +++ /dev/null @@ -1,222 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("0A753DCF-C4D8-4B91-ADF6-BE5A60D95A76")] -[NativeTypeName("struct ID3D12Fence : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Fence : ID3D12Fence.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - public ulong GetCompletedValue() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT SetEventOnCompletion([NativeTypeName("UINT64")] ulong Value, HANDLE hEvent) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - Value, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Signal([NativeTypeName("UINT64")] ulong Value) - { - return ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12Fence*)Unsafe.AsPointer(ref this), - Value - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - ulong GetCompletedValue(); - - [VtblIndex(9)] - HRESULT SetEventOnCompletion([NativeTypeName("UINT64")] ulong Value, HANDLE hEvent); - - [VtblIndex(10)] - HRESULT Signal([NativeTypeName("UINT64")] ulong Value); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetCompletedValue; - - [NativeTypeName("HRESULT (UINT64, HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged SetEventOnCompletion; - - [NativeTypeName("HRESULT (UINT64) __attribute__((stdcall))")] - public delegate* unmanaged Signal; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence1.gen.cs deleted file mode 100644 index f81c7e8ef8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence1.gen.cs +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("433685FE-E22B-4CA0-A8DB-B5B4F4DD0E4A")] -[NativeTypeName("struct ID3D12Fence1 : ID3D12Fence")] -[NativeInheritance("ID3D12Fence")] -public unsafe partial struct ID3D12Fence1 : ID3D12Fence1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - public ulong GetCompletedValue() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT SetEventOnCompletion([NativeTypeName("UINT64")] ulong Value, HANDLE hEvent) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - Value, - hEvent - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Signal([NativeTypeName("UINT64")] ulong Value) - { - return ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this), - Value - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public D3D12_FENCE_FLAGS GetCreationFlags() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12Fence1*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : ID3D12Fence.Interface - { - [VtblIndex(11)] - D3D12_FENCE_FLAGS GetCreationFlags(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetCompletedValue; - - [NativeTypeName("HRESULT (UINT64, HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged SetEventOnCompletion; - - [NativeTypeName("HRESULT (UINT64) __attribute__((stdcall))")] - public delegate* unmanaged Signal; - - [NativeTypeName("D3D12_FENCE_FLAGS () __attribute__((stdcall))")] - public delegate* unmanaged GetCreationFlags; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList.gen.cs deleted file mode 100644 index 86dfe57420..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList.gen.cs +++ /dev/null @@ -1,1832 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("5B160D0F-AC1B-4185-8BA8-B3AE42A5A455")] -[NativeTypeName("struct ID3D12GraphicsCommandList : ID3D12CommandList")] -[NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12GraphicsCommandList - : ID3D12GraphicsCommandList.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pPipelineState - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged)(lpVtbl[25]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pPipelineState - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged)(lpVtbl[29]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged)(lpVtbl[30]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pRootSignature - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - public interface Interface : ID3D12CommandList.Interface - { - [VtblIndex(9)] - HRESULT Close(); - - [VtblIndex(10)] - HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState); - - [VtblIndex(11)] - void ClearState(ID3D12PipelineState* pPipelineState); - - [VtblIndex(12)] - void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ); - - [VtblIndex(13)] - void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ); - - [VtblIndex(14)] - void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ); - - [VtblIndex(15)] - void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ); - - [VtblIndex(16)] - void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] - D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] - D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ); - - [VtblIndex(17)] - void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource); - - [VtblIndex(18)] - void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] - D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ); - - [VtblIndex(19)] - void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ); - - [VtblIndex(20)] - void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ); - - [VtblIndex(21)] - void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ); - - [VtblIndex(22)] - void RSSetScissorRects(uint NumRects, [NativeTypeName("const D3D12_RECT *")] RECT* pRects); - - [VtblIndex(23)] - void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor); - - [VtblIndex(24)] - void OMSetStencilRef(uint StencilRef); - - [VtblIndex(25)] - void SetPipelineState(ID3D12PipelineState* pPipelineState); - - [VtblIndex(26)] - void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ); - - [VtblIndex(27)] - void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList); - - [VtblIndex(28)] - void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] - ID3D12DescriptorHeap** ppDescriptorHeaps - ); - - [VtblIndex(29)] - void SetComputeRootSignature(ID3D12RootSignature* pRootSignature); - - [VtblIndex(30)] - void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature); - - [VtblIndex(31)] - void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ); - - [VtblIndex(32)] - void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ); - - [VtblIndex(33)] - void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ); - - [VtblIndex(34)] - void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ); - - [VtblIndex(35)] - void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ); - - [VtblIndex(36)] - void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ); - - [VtblIndex(37)] - void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ); - - [VtblIndex(38)] - void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ); - - [VtblIndex(39)] - void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ); - - [VtblIndex(40)] - void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ); - - [VtblIndex(41)] - void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ); - - [VtblIndex(42)] - void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ); - - [VtblIndex(43)] - void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ); - - [VtblIndex(44)] - void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ); - - [VtblIndex(45)] - void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ); - - [VtblIndex(46)] - void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ); - - [VtblIndex(47)] - void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ); - - [VtblIndex(48)] - void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ); - - [VtblIndex(49)] - void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ); - - [VtblIndex(50)] - void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ); - - [VtblIndex(51)] - void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ); - - [VtblIndex(52)] - void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(53)] - void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(54)] - void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ); - - [VtblIndex(55)] - void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ); - - [VtblIndex(56)] - void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(57)] - void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(58)] - void EndEvent(); - - [VtblIndex(59)] - void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList1.gen.cs deleted file mode 100644 index c3b1265c3c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList1.gen.cs +++ /dev/null @@ -1,1800 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("553103FB-1FE7-4557-BB38-946D7D0E7CA7")] -[NativeTypeName("struct ID3D12GraphicsCommandList1 : ID3D12GraphicsCommandList")] -[NativeInheritance("ID3D12GraphicsCommandList")] -public unsafe partial struct ID3D12GraphicsCommandList1 - : ID3D12GraphicsCommandList1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged)(lpVtbl[62]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - NumSamplesPerPixel, - NumPixels, - pSamplePositions - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList1*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - DstX, - DstY, - pSrcResource, - SrcSubresource, - pSrcRect, - Format, - ResolveMode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged)(lpVtbl[65]))( - (ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), - Mask - ); - } - - public interface Interface : ID3D12GraphicsCommandList.Interface - { - [VtblIndex(60)] - void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ); - - [VtblIndex(61)] - void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ); - - [VtblIndex(62)] - void OMSetDepthBounds(float Min, float Max); - - [VtblIndex(63)] - void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ); - - [VtblIndex(64)] - void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ); - - [VtblIndex(65)] - void SetViewInstanceMask(uint Mask); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList2.gen.cs deleted file mode 100644 index 3499f64338..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList2.gen.cs +++ /dev/null @@ -1,1793 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("38C3E585-FF17-412C-9150-4FC6F9D72A28")] -[NativeTypeName("struct ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList1")] -[NativeInheritance("ID3D12GraphicsCommandList1")] -[SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12GraphicsCommandList2 - : ID3D12GraphicsCommandList2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged)(lpVtbl[62]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - NumSamplesPerPixel, - NumPixels, - pSamplePositions - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - DstX, - DstY, - pSrcResource, - SrcSubresource, - pSrcRect, - Format, - ResolveMode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged)(lpVtbl[65]))( - (ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList2*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - public interface Interface : ID3D12GraphicsCommandList1.Interface - { - [VtblIndex(66)] - void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList3.gen.cs deleted file mode 100644 index 1a8b08f123..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList3.gen.cs +++ /dev/null @@ -1,1809 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("6FDA83A7-B84C-4E38-9AC8-C7BD22016B3D")] -[NativeTypeName("struct ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList2")] -[NativeInheritance("ID3D12GraphicsCommandList2")] -[SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12GraphicsCommandList3 - : ID3D12GraphicsCommandList3.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged)(lpVtbl[62]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - NumSamplesPerPixel, - NumPixels, - pSamplePositions - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - DstX, - DstY, - pSrcResource, - SrcSubresource, - pSrcRect, - Format, - ResolveMode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged)(lpVtbl[65]))( - (ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList3*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[67]) - )((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - public interface Interface : ID3D12GraphicsCommandList2.Interface - { - [VtblIndex(67)] - void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList4.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList4.gen.cs deleted file mode 100644 index a5e05b2e30..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList4.gen.cs +++ /dev/null @@ -1,2133 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8754318E-D3A9-4541-98CF-645B50DC4874")] -[NativeTypeName("struct ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList3")] -[NativeInheritance("ID3D12GraphicsCommandList3")] -[SupportedOSPlatform("windows10.0.17763.0")] -public unsafe partial struct ID3D12GraphicsCommandList4 - : ID3D12GraphicsCommandList4.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList4)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged)(lpVtbl[62]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - NumSamplesPerPixel, - NumPixels, - pSamplePositions - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - DstX, - DstY, - pSrcResource, - SrcSubresource, - pSrcRect, - Format, - ResolveMode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged)(lpVtbl[65]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[67]) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginRenderPass( - uint NumRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC *")] - D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *")] - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, - D3D12_RENDER_PASS_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void>)(lpVtbl[68]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - NumRenderTargets, - pRenderTargets, - pDepthStencil, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndRenderPass() - { - ((delegate* unmanaged)(lpVtbl[69]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void InitializeMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pInitializationParametersData, - [NativeTypeName("SIZE_T")] nuint InitializationParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[70]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pMetaCommand, - pInitializationParametersData, - InitializationParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void ExecuteMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pExecutionParametersData, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[71]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pMetaCommand, - pExecutionParametersData, - ExecutionParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void BuildRaytracingAccelerationStructure( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, - uint NumPostbuildInfoDescs, - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void>)(lpVtbl[72]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDesc, - NumPostbuildInfoDescs, - pPostbuildInfoDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void EmitRaytracingAccelerationStructurePostbuildInfo( - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, - uint NumSourceAccelerationStructures, - [NativeTypeName("const D3D12_GPU_VIRTUAL_ADDRESS *")] - ulong* pSourceAccelerationStructureData - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void>)(lpVtbl[73]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pDesc, - NumSourceAccelerationStructures, - pSourceAccelerationStructureData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyRaytracingAccelerationStructure( - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong DestAccelerationStructureData, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong SourceAccelerationStructureData, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList4*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void>)(lpVtbl[74]) - )( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - DestAccelerationStructureData, - SourceAccelerationStructureData, - Mode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged)(lpVtbl[75]))( - (ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), - pStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DispatchRays( - [NativeTypeName("const D3D12_DISPATCH_RAYS_DESC *")] D3D12_DISPATCH_RAYS_DESC* pDesc - ) - { - ( - (delegate* unmanaged)( - lpVtbl[76] - ) - )((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc); - } - - public interface Interface : ID3D12GraphicsCommandList3.Interface - { - [VtblIndex(68)] - void BeginRenderPass( - uint NumRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC *")] - D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *")] - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, - D3D12_RENDER_PASS_FLAGS Flags - ); - - [VtblIndex(69)] - void EndRenderPass(); - - [VtblIndex(70)] - void InitializeMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pInitializationParametersData, - [NativeTypeName("SIZE_T")] nuint InitializationParametersDataSizeInBytes - ); - - [VtblIndex(71)] - void ExecuteMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pExecutionParametersData, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersDataSizeInBytes - ); - - [VtblIndex(72)] - void BuildRaytracingAccelerationStructure( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, - uint NumPostbuildInfoDescs, - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs - ); - - [VtblIndex(73)] - void EmitRaytracingAccelerationStructurePostbuildInfo( - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, - uint NumSourceAccelerationStructures, - [NativeTypeName("const D3D12_GPU_VIRTUAL_ADDRESS *")] - ulong* pSourceAccelerationStructureData - ); - - [VtblIndex(74)] - void CopyRaytracingAccelerationStructure( - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong DestAccelerationStructureData, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong SourceAccelerationStructureData, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode - ); - - [VtblIndex(75)] - void SetPipelineState1(ID3D12StateObject* pStateObject); - - [VtblIndex(76)] - void DispatchRays( - [NativeTypeName("const D3D12_DISPATCH_RAYS_DESC *")] D3D12_DISPATCH_RAYS_DESC* pDesc - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (UINT, const D3D12_RENDER_PASS_RENDER_TARGET_DESC *, const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *, D3D12_RENDER_PASS_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void> BeginRenderPass; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndRenderPass; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> InitializeMetaCommand; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> ExecuteMetaCommand; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *, UINT, const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void> BuildRaytracingAccelerationStructure; - - [NativeTypeName( - "void (const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *, UINT, const D3D12_GPU_VIRTUAL_ADDRESS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void> EmitRaytracingAccelerationStructurePostbuildInfo; - - [NativeTypeName( - "void (D3D12_GPU_VIRTUAL_ADDRESS, D3D12_GPU_VIRTUAL_ADDRESS, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void> CopyRaytracingAccelerationStructure; - - [NativeTypeName("void (ID3D12StateObject *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState1; - - [NativeTypeName("void (const D3D12_DISPATCH_RAYS_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged DispatchRays; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList5.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList5.gen.cs deleted file mode 100644 index 7124e3245b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList5.gen.cs +++ /dev/null @@ -1,2124 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("55050859-4024-474C-87F5-6472EAEE44EA")] -[NativeTypeName("struct ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList4")] -[NativeInheritance("ID3D12GraphicsCommandList4")] -public unsafe partial struct ID3D12GraphicsCommandList5 - : ID3D12GraphicsCommandList5.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList5)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged)(lpVtbl[62]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - NumSamplesPerPixel, - NumPixels, - pSamplePositions - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - DstX, - DstY, - pSrcResource, - SrcSubresource, - pSrcRect, - Format, - ResolveMode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged)(lpVtbl[65]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[67]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginRenderPass( - uint NumRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC *")] - D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *")] - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, - D3D12_RENDER_PASS_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void>)(lpVtbl[68]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - NumRenderTargets, - pRenderTargets, - pDepthStencil, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndRenderPass() - { - ((delegate* unmanaged)(lpVtbl[69]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void InitializeMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pInitializationParametersData, - [NativeTypeName("SIZE_T")] nuint InitializationParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[70]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pMetaCommand, - pInitializationParametersData, - InitializationParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void ExecuteMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pExecutionParametersData, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[71]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pMetaCommand, - pExecutionParametersData, - ExecutionParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void BuildRaytracingAccelerationStructure( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, - uint NumPostbuildInfoDescs, - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void>)(lpVtbl[72]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDesc, - NumPostbuildInfoDescs, - pPostbuildInfoDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void EmitRaytracingAccelerationStructurePostbuildInfo( - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, - uint NumSourceAccelerationStructures, - [NativeTypeName("const D3D12_GPU_VIRTUAL_ADDRESS *")] - ulong* pSourceAccelerationStructureData - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void>)(lpVtbl[73]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pDesc, - NumSourceAccelerationStructures, - pSourceAccelerationStructureData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyRaytracingAccelerationStructure( - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong DestAccelerationStructureData, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong SourceAccelerationStructureData, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void>)(lpVtbl[74]) - )( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - DestAccelerationStructureData, - SourceAccelerationStructureData, - Mode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged)(lpVtbl[75]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - pStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DispatchRays( - [NativeTypeName("const D3D12_DISPATCH_RAYS_DESC *")] D3D12_DISPATCH_RAYS_DESC* pDesc - ) - { - ( - (delegate* unmanaged)( - lpVtbl[76] - ) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void RSSetShadingRate( - D3D12_SHADING_RATE baseShadingRate, - [NativeTypeName("const D3D12_SHADING_RATE_COMBINER *")] - D3D12_SHADING_RATE_COMBINER* combiners - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList5*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void>)(lpVtbl[77]) - )((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) - { - ((delegate* unmanaged)(lpVtbl[78]))( - (ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), - shadingRateImage - ); - } - - public interface Interface : ID3D12GraphicsCommandList4.Interface - { - [VtblIndex(77)] - void RSSetShadingRate( - D3D12_SHADING_RATE baseShadingRate, - [NativeTypeName("const D3D12_SHADING_RATE_COMBINER *")] - D3D12_SHADING_RATE_COMBINER* combiners - ); - - [VtblIndex(78)] - void RSSetShadingRateImage(ID3D12Resource* shadingRateImage); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (UINT, const D3D12_RENDER_PASS_RENDER_TARGET_DESC *, const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *, D3D12_RENDER_PASS_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void> BeginRenderPass; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndRenderPass; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> InitializeMetaCommand; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> ExecuteMetaCommand; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *, UINT, const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void> BuildRaytracingAccelerationStructure; - - [NativeTypeName( - "void (const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *, UINT, const D3D12_GPU_VIRTUAL_ADDRESS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void> EmitRaytracingAccelerationStructurePostbuildInfo; - - [NativeTypeName( - "void (D3D12_GPU_VIRTUAL_ADDRESS, D3D12_GPU_VIRTUAL_ADDRESS, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void> CopyRaytracingAccelerationStructure; - - [NativeTypeName("void (ID3D12StateObject *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState1; - - [NativeTypeName("void (const D3D12_DISPATCH_RAYS_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged DispatchRays; - - [NativeTypeName( - "void (D3D12_SHADING_RATE, const D3D12_SHADING_RATE_COMBINER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void> RSSetShadingRate; - - [NativeTypeName("void (ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetShadingRateImage; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList6.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList6.gen.cs deleted file mode 100644 index 1f16c61b8f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList6.gen.cs +++ /dev/null @@ -1,2134 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C3827890-E548-4CFA-96CF-5689A9370F80")] -[NativeTypeName("struct ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList5")] -[NativeInheritance("ID3D12GraphicsCommandList5")] -public unsafe partial struct ID3D12GraphicsCommandList6 - : ID3D12GraphicsCommandList6.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList6)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - VertexCountPerInstance, - InstanceCount, - StartVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced( - uint IndexCountPerInstance, - uint InstanceCount, - uint StartIndexLocation, - int BaseVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - IndexCountPerInstance, - InstanceCount, - StartIndexLocation, - BaseVertexLocation, - StartInstanceLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pTiledResource, - pTileRegionStartCoordinate, - pTileRegionSize, - pBuffer, - BufferStartOffsetInBytes, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource( - ID3D12Resource* pDstResource, - uint DstSubresource, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged)(lpVtbl[62]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - NumSamplesPerPixel, - NumPixels, - pSamplePositions - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion( - ID3D12Resource* pDstResource, - uint DstSubresource, - uint DstX, - uint DstY, - ID3D12Resource* pSrcResource, - uint SrcSubresource, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - DstX, - DstY, - pSrcResource, - SrcSubresource, - pSrcRect, - Format, - ResolveMode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged)(lpVtbl[65]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[67]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginRenderPass( - uint NumRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC *")] - D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *")] - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, - D3D12_RENDER_PASS_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void>)(lpVtbl[68]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - NumRenderTargets, - pRenderTargets, - pDepthStencil, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndRenderPass() - { - ((delegate* unmanaged)(lpVtbl[69]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void InitializeMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pInitializationParametersData, - [NativeTypeName("SIZE_T")] nuint InitializationParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[70]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pMetaCommand, - pInitializationParametersData, - InitializationParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void ExecuteMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pExecutionParametersData, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[71]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pMetaCommand, - pExecutionParametersData, - ExecutionParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void BuildRaytracingAccelerationStructure( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, - uint NumPostbuildInfoDescs, - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void>)(lpVtbl[72]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDesc, - NumPostbuildInfoDescs, - pPostbuildInfoDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void EmitRaytracingAccelerationStructurePostbuildInfo( - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, - uint NumSourceAccelerationStructures, - [NativeTypeName("const D3D12_GPU_VIRTUAL_ADDRESS *")] - ulong* pSourceAccelerationStructureData - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void>)(lpVtbl[73]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pDesc, - NumSourceAccelerationStructures, - pSourceAccelerationStructureData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyRaytracingAccelerationStructure( - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong DestAccelerationStructureData, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong SourceAccelerationStructureData, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void>)(lpVtbl[74]) - )( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - DestAccelerationStructureData, - SourceAccelerationStructureData, - Mode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged)(lpVtbl[75]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - pStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DispatchRays( - [NativeTypeName("const D3D12_DISPATCH_RAYS_DESC *")] D3D12_DISPATCH_RAYS_DESC* pDesc - ) - { - ( - (delegate* unmanaged)( - lpVtbl[76] - ) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void RSSetShadingRate( - D3D12_SHADING_RATE baseShadingRate, - [NativeTypeName("const D3D12_SHADING_RATE_COMBINER *")] - D3D12_SHADING_RATE_COMBINER* combiners - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList6*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void>)(lpVtbl[77]) - )((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) - { - ((delegate* unmanaged)(lpVtbl[78]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - shadingRateImage - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[79]))( - (ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - public interface Interface : ID3D12GraphicsCommandList5.Interface - { - [VtblIndex(79)] - void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (UINT, const D3D12_RENDER_PASS_RENDER_TARGET_DESC *, const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *, D3D12_RENDER_PASS_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void> BeginRenderPass; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndRenderPass; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> InitializeMetaCommand; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> ExecuteMetaCommand; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *, UINT, const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void> BuildRaytracingAccelerationStructure; - - [NativeTypeName( - "void (const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *, UINT, const D3D12_GPU_VIRTUAL_ADDRESS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void> EmitRaytracingAccelerationStructurePostbuildInfo; - - [NativeTypeName( - "void (D3D12_GPU_VIRTUAL_ADDRESS, D3D12_GPU_VIRTUAL_ADDRESS, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void> CopyRaytracingAccelerationStructure; - - [NativeTypeName("void (ID3D12StateObject *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState1; - - [NativeTypeName("void (const D3D12_DISPATCH_RAYS_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged DispatchRays; - - [NativeTypeName( - "void (D3D12_SHADING_RATE, const D3D12_SHADING_RATE_COMBINER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void> RSSetShadingRate; - - [NativeTypeName("void (ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetShadingRateImage; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DispatchMesh; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList7.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList7.gen.cs deleted file mode 100644 index 512ccfd6f7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList7.gen.cs +++ /dev/null @@ -1,2160 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("DD171223-8B61-4769-90E3-160CCDE4E2C1")] -[NativeTypeName("struct ID3D12GraphicsCommandList7 : ID3D12GraphicsCommandList6")] -[NativeInheritance("ID3D12GraphicsCommandList6")] -public unsafe partial struct ID3D12GraphicsCommandList7 - : ID3D12GraphicsCommandList7.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList7)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList7*)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)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList7*)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)(lpVtbl[14]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList7*)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, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList7*)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)(lpVtbl[62]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList7*)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, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList7*)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)(lpVtbl[65]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[67]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginRenderPass( - uint NumRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC *")] - D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *")] - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, - D3D12_RENDER_PASS_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void>)(lpVtbl[68]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - NumRenderTargets, - pRenderTargets, - pDepthStencil, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndRenderPass() - { - ((delegate* unmanaged)(lpVtbl[69]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void InitializeMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pInitializationParametersData, - [NativeTypeName("SIZE_T")] nuint InitializationParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[70]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pMetaCommand, - pInitializationParametersData, - InitializationParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void ExecuteMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pExecutionParametersData, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[71]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pMetaCommand, - pExecutionParametersData, - ExecutionParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void BuildRaytracingAccelerationStructure( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, - uint NumPostbuildInfoDescs, - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void>)(lpVtbl[72]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pDesc, - NumPostbuildInfoDescs, - pPostbuildInfoDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void EmitRaytracingAccelerationStructurePostbuildInfo( - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, - uint NumSourceAccelerationStructures, - [NativeTypeName("const D3D12_GPU_VIRTUAL_ADDRESS *")] - ulong* pSourceAccelerationStructureData - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void>)(lpVtbl[73]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pDesc, - NumSourceAccelerationStructures, - pSourceAccelerationStructureData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyRaytracingAccelerationStructure( - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong DestAccelerationStructureData, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong SourceAccelerationStructureData, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void>)(lpVtbl[74]) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - DestAccelerationStructureData, - SourceAccelerationStructureData, - Mode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged)(lpVtbl[75]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - pStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DispatchRays( - [NativeTypeName("const D3D12_DISPATCH_RAYS_DESC *")] D3D12_DISPATCH_RAYS_DESC* pDesc - ) - { - ( - (delegate* unmanaged)( - lpVtbl[76] - ) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void RSSetShadingRate( - D3D12_SHADING_RATE baseShadingRate, - [NativeTypeName("const D3D12_SHADING_RATE_COMBINER *")] - D3D12_SHADING_RATE_COMBINER* combiners - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList7*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void>)(lpVtbl[77]) - )((ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) - { - ((delegate* unmanaged)(lpVtbl[78]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - shadingRateImage - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[79]))( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ) - { - ( - (delegate* unmanaged)( - lpVtbl[80] - ) - )( - (ID3D12GraphicsCommandList7*)Unsafe.AsPointer(ref this), - NumBarrierGroups, - pBarrierGroups - ); - } - - public interface Interface : ID3D12GraphicsCommandList6.Interface - { - [VtblIndex(80)] - void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (UINT, const D3D12_RENDER_PASS_RENDER_TARGET_DESC *, const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *, D3D12_RENDER_PASS_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void> BeginRenderPass; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndRenderPass; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> InitializeMetaCommand; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> ExecuteMetaCommand; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *, UINT, const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void> BuildRaytracingAccelerationStructure; - - [NativeTypeName( - "void (const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *, UINT, const D3D12_GPU_VIRTUAL_ADDRESS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void> EmitRaytracingAccelerationStructurePostbuildInfo; - - [NativeTypeName( - "void (D3D12_GPU_VIRTUAL_ADDRESS, D3D12_GPU_VIRTUAL_ADDRESS, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void> CopyRaytracingAccelerationStructure; - - [NativeTypeName("void (ID3D12StateObject *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState1; - - [NativeTypeName("void (const D3D12_DISPATCH_RAYS_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged DispatchRays; - - [NativeTypeName( - "void (D3D12_SHADING_RATE, const D3D12_SHADING_RATE_COMBINER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void> RSSetShadingRate; - - [NativeTypeName("void (ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetShadingRateImage; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DispatchMesh; - - [NativeTypeName("void (UINT32, const D3D12_BARRIER_GROUP *) __attribute__((stdcall))")] - public delegate* unmanaged Barrier; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList8.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList8.gen.cs deleted file mode 100644 index 802f69614a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList8.gen.cs +++ /dev/null @@ -1,2173 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("EE936EF9-599D-4D28-938E-23C4AD05CE51")] -[NativeTypeName("struct ID3D12GraphicsCommandList8 : ID3D12GraphicsCommandList7")] -[NativeInheritance("ID3D12GraphicsCommandList7")] -public unsafe partial struct ID3D12GraphicsCommandList8 - : ID3D12GraphicsCommandList8.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList8)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int>)(lpVtbl[10]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced( - uint VertexCountPerInstance, - uint InstanceCount, - uint StartVertexLocation, - uint StartInstanceLocation - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12GraphicsCommandList8*)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)( - lpVtbl[13] - ) - )( - (ID3D12GraphicsCommandList8*)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)(lpVtbl[14]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - [NativeTypeName("UINT64")] ulong NumBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void>)(lpVtbl[15]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - NumBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion( - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pDst, - uint DstX, - uint DstY, - uint DstZ, - [NativeTypeName("const D3D12_TEXTURE_COPY_LOCATION *")] D3D12_TEXTURE_COPY_LOCATION* pSrc, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void>)(lpVtbl[16]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pDst, - DstX, - DstY, - DstZ, - pSrc, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - ID3D12Resource*, - void>)(lpVtbl[17]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles( - ID3D12Resource* pTiledResource, - [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] - D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, - [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE* pTileRegionSize, - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong BufferStartOffsetInBytes, - D3D12_TILE_COPY_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void>)(lpVtbl[18]) - )( - (ID3D12GraphicsCommandList8*)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, - DXGI_FORMAT Format - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void>)(lpVtbl[19]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pDstResource, - DstSubresource, - pSrcResource, - SrcSubresource, - Format - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology( - [NativeTypeName("D3D12_PRIMITIVE_TOPOLOGY")] D3D_PRIMITIVE_TOPOLOGY PrimitiveTopology - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports( - uint NumViewports, - [NativeTypeName("const D3D12_VIEWPORT *")] D3D12_VIEWPORT* pViewports - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects( - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor([NativeTypeName("const FLOAT[4]")] float* BlendFactor) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - BlendFactor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - StencilRef - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ( - (delegate* unmanaged)( - lpVtbl[25] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged)( - lpVtbl[26] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps( - uint NumDescriptorHeaps, - [NativeTypeName("ID3D12DescriptorHeap *const *")] ID3D12DescriptorHeap** ppDescriptorHeaps - ) - { - ( - (delegate* unmanaged)( - lpVtbl[28] - ) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - NumDescriptorHeaps, - ppDescriptorHeaps - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ( - (delegate* unmanaged)( - lpVtbl[30] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[31]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable( - uint RootParameterIndex, - D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void>)(lpVtbl[32]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BaseDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant( - uint RootParameterIndex, - uint SrcData, - uint DestOffsetIn32BitValues - ) - { - ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - SrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[35] - ) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants( - uint RootParameterIndex, - uint Num32BitValuesToSet, - [NativeTypeName("const void *")] void* pSrcData, - uint DestOffsetIn32BitValues - ) - { - ( - (delegate* unmanaged)( - lpVtbl[36] - ) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - Num32BitValuesToSet, - pSrcData, - DestOffsetIn32BitValues - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[38]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[40]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[41]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView( - uint RootParameterIndex, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong BufferLocation - ) - { - ((delegate* unmanaged)(lpVtbl[42]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RootParameterIndex, - BufferLocation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer( - [NativeTypeName("const D3D12_INDEX_BUFFER_VIEW *")] D3D12_INDEX_BUFFER_VIEW* pView - ) - { - ( - (delegate* unmanaged)( - lpVtbl[43] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pView); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_VERTEX_BUFFER_VIEW *")] D3D12_VERTEX_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void>)(lpVtbl[44]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets( - uint StartSlot, - uint NumViews, - [NativeTypeName("const D3D12_STREAM_OUTPUT_BUFFER_VIEW *")] - D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void>)(lpVtbl[45]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets( - uint NumRenderTargetDescriptors, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, - BOOL RTsSingleHandleToDescriptorRange, - [NativeTypeName("const D3D12_CPU_DESCRIPTOR_HANDLE *")] - D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void>)(lpVtbl[46]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - NumRenderTargetDescriptors, - pRenderTargetDescriptors, - RTsSingleHandleToDescriptorRange, - pDepthStencilDescriptor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView( - D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, - D3D12_CLEAR_FLAGS ClearFlags, - float Depth, - [NativeTypeName("UINT8")] byte Stencil, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void>)(lpVtbl[47]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - DepthStencilView, - ClearFlags, - Depth, - Stencil, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView( - D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, - [NativeTypeName("const FLOAT[4]")] float* ColorRGBA, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void>)(lpVtbl[48]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - RenderTargetView, - ColorRGBA, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const UINT[4]")] uint* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void>)(lpVtbl[49]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat( - D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, - D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, - ID3D12Resource* pResource, - [NativeTypeName("const FLOAT[4]")] float* Values, - uint NumRects, - [NativeTypeName("const D3D12_RECT *")] RECT* pRects - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void>)(lpVtbl[50]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - ViewGPUHandleInCurrentHeap, - ViewCPUHandle, - pResource, - Values, - NumRects, - pRects - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[51]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[52]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[53]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[54]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[55]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[56]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[57]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[58]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect( - ID3D12CommandSignature* pCommandSignature, - uint MaxCommandCount, - ID3D12Resource* pArgumentBuffer, - [NativeTypeName("UINT64")] ulong ArgumentBufferOffset, - ID3D12Resource* pCountBuffer, - [NativeTypeName("UINT64")] ulong CountBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void>)(lpVtbl[59]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pCommandSignature, - MaxCommandCount, - pArgumentBuffer, - ArgumentBufferOffset, - pCountBuffer, - CountBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[60]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pDstBuffer, - DstOffset, - pSrcBuffer, - SrcOffset, - Dependencies, - ppDependentResources, - pDependentSubresourceRanges - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64( - ID3D12Resource* pDstBuffer, - [NativeTypeName("UINT64")] ulong DstOffset, - ID3D12Resource* pSrcBuffer, - [NativeTypeName("UINT64")] ulong SrcOffset, - uint Dependencies, - [NativeTypeName("ID3D12Resource *const *")] ID3D12Resource** ppDependentResources, - [NativeTypeName("const D3D12_SUBRESOURCE_RANGE_UINT64 *")] - D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void>)(lpVtbl[61]) - )( - (ID3D12GraphicsCommandList8*)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)(lpVtbl[62]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - Min, - Max - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions( - uint NumSamplesPerPixel, - uint NumPixels, - D3D12_SAMPLE_POSITION* pSamplePositions - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void>)(lpVtbl[63]) - )( - (ID3D12GraphicsCommandList8*)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, - [NativeTypeName("D3D12_RECT *")] RECT* pSrcRect, - DXGI_FORMAT Format, - D3D12_RESOLVE_MODE ResolveMode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void>)(lpVtbl[64]) - )( - (ID3D12GraphicsCommandList8*)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)(lpVtbl[65]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[66]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[67]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginRenderPass( - uint NumRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_RENDER_TARGET_DESC *")] - D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, - [NativeTypeName("const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *")] - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, - D3D12_RENDER_PASS_FLAGS Flags - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void>)(lpVtbl[68]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - NumRenderTargets, - pRenderTargets, - pDepthStencil, - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndRenderPass() - { - ((delegate* unmanaged)(lpVtbl[69]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void InitializeMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pInitializationParametersData, - [NativeTypeName("SIZE_T")] nuint InitializationParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[70]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pMetaCommand, - pInitializationParametersData, - InitializationParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void ExecuteMetaCommand( - ID3D12MetaCommand* pMetaCommand, - [NativeTypeName("const void *")] void* pExecutionParametersData, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersDataSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ID3D12MetaCommand*, - void*, - nuint, - void>)(lpVtbl[71]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pMetaCommand, - pExecutionParametersData, - ExecutionParametersDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void BuildRaytracingAccelerationStructure( - [NativeTypeName("const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *")] - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, - uint NumPostbuildInfoDescs, - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void>)(lpVtbl[72]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pDesc, - NumPostbuildInfoDescs, - pPostbuildInfoDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void EmitRaytracingAccelerationStructurePostbuildInfo( - [NativeTypeName("const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *")] - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, - uint NumSourceAccelerationStructures, - [NativeTypeName("const D3D12_GPU_VIRTUAL_ADDRESS *")] - ulong* pSourceAccelerationStructureData - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void>)(lpVtbl[73]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pDesc, - NumSourceAccelerationStructures, - pSourceAccelerationStructureData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyRaytracingAccelerationStructure( - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong DestAccelerationStructureData, - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] ulong SourceAccelerationStructureData, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void>)(lpVtbl[74]) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - DestAccelerationStructureData, - SourceAccelerationStructureData, - Mode - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged)(lpVtbl[75]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - pStateObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DispatchRays( - [NativeTypeName("const D3D12_DISPATCH_RAYS_DESC *")] D3D12_DISPATCH_RAYS_DESC* pDesc - ) - { - ( - (delegate* unmanaged)( - lpVtbl[76] - ) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void RSSetShadingRate( - D3D12_SHADING_RATE baseShadingRate, - [NativeTypeName("const D3D12_SHADING_RATE_COMBINER *")] - D3D12_SHADING_RATE_COMBINER* combiners - ) - { - ( - (delegate* unmanaged< - ID3D12GraphicsCommandList8*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void>)(lpVtbl[77]) - )((ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) - { - ((delegate* unmanaged)(lpVtbl[78]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - shadingRateImage - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged)(lpVtbl[79]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - ThreadGroupCountX, - ThreadGroupCountY, - ThreadGroupCountZ - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ) - { - ( - (delegate* unmanaged)( - lpVtbl[80] - ) - )( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - NumBarrierGroups, - pBarrierGroups - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void OMSetFrontAndBackStencilRef(uint FrontStencilRef, uint BackStencilRef) - { - ((delegate* unmanaged)(lpVtbl[81]))( - (ID3D12GraphicsCommandList8*)Unsafe.AsPointer(ref this), - FrontStencilRef, - BackStencilRef - ); - } - - public interface Interface : ID3D12GraphicsCommandList7.Interface - { - [VtblIndex(81)] - void OMSetFrontAndBackStencilRef(uint FrontStencilRef, uint BackStencilRef); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName( - "HRESULT (ID3D12CommandAllocator *, ID3D12PipelineState *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandAllocator*, - ID3D12PipelineState*, - int> Reset; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawInstanced; - - [NativeTypeName("void (UINT, UINT, UINT, INT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DrawIndexedInstanced; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged Dispatch; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - ulong, - void> CopyBufferRegion; - - [NativeTypeName( - "void (const D3D12_TEXTURE_COPY_LOCATION *, UINT, UINT, UINT, const D3D12_TEXTURE_COPY_LOCATION *, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_TEXTURE_COPY_LOCATION*, - uint, - uint, - uint, - D3D12_TEXTURE_COPY_LOCATION*, - D3D12_BOX*, - void> CopyTextureRegion; - - [NativeTypeName("void (ID3D12Resource *, ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged CopyResource; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_TILED_RESOURCE_COORDINATE *, const D3D12_TILE_REGION_SIZE *, ID3D12Resource *, UINT64, D3D12_TILE_COPY_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_TILED_RESOURCE_COORDINATE*, - D3D12_TILE_REGION_SIZE*, - ID3D12Resource*, - ulong, - D3D12_TILE_COPY_FLAGS, - void> CopyTiles; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, ID3D12Resource *, UINT, DXGI_FORMAT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - ID3D12Resource*, - uint, - DXGI_FORMAT, - void> ResolveSubresource; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY) __attribute__((stdcall))")] - public delegate* unmanaged IASetPrimitiveTopology; - - [NativeTypeName("void (UINT, const D3D12_VIEWPORT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetViewports; - - [NativeTypeName("void (UINT, const D3D12_RECT *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetScissorRects; - - [NativeTypeName("void (const FLOAT *) __attribute__((stdcall))")] - public delegate* unmanaged OMSetBlendFactor; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetStencilRef; - - [NativeTypeName("void (ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName("void (ID3D12GraphicsCommandList *) __attribute__((stdcall))")] - public delegate* unmanaged ExecuteBundle; - - [NativeTypeName("void (UINT, ID3D12DescriptorHeap *const *) __attribute__((stdcall))")] - public delegate* unmanaged SetDescriptorHeaps; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootSignature; - - [NativeTypeName("void (ID3D12RootSignature *) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootSignature; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetComputeRootDescriptorTable; - - [NativeTypeName("void (UINT, D3D12_GPU_DESCRIPTOR_HANDLE) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_GPU_DESCRIPTOR_HANDLE, - void> SetGraphicsRootDescriptorTable; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRoot32BitConstant; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetComputeRoot32BitConstants; - - [NativeTypeName("void (UINT, UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - void*, - uint, - void> SetGraphicsRoot32BitConstants; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootConstantBufferView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootShaderResourceView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetComputeRootUnorderedAccessView; - - [NativeTypeName("void (UINT, D3D12_GPU_VIRTUAL_ADDRESS) __attribute__((stdcall))")] - public delegate* unmanaged SetGraphicsRootUnorderedAccessView; - - [NativeTypeName("void (const D3D12_INDEX_BUFFER_VIEW *) __attribute__((stdcall))")] - public delegate* unmanaged IASetIndexBuffer; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_VERTEX_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_VERTEX_BUFFER_VIEW*, - void> IASetVertexBuffers; - - [NativeTypeName( - "void (UINT, UINT, const D3D12_STREAM_OUTPUT_BUFFER_VIEW *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_STREAM_OUTPUT_BUFFER_VIEW*, - void> SOSetTargets; - - [NativeTypeName( - "void (UINT, const D3D12_CPU_DESCRIPTOR_HANDLE *, BOOL, const D3D12_CPU_DESCRIPTOR_HANDLE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_CPU_DESCRIPTOR_HANDLE*, - BOOL, - D3D12_CPU_DESCRIPTOR_HANDLE*, - void> OMSetRenderTargets; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, FLOAT, UINT8, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - D3D12_CLEAR_FLAGS, - float, - byte, - uint, - RECT*, - void> ClearDepthStencilView; - - [NativeTypeName( - "void (D3D12_CPU_DESCRIPTOR_HANDLE, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_CPU_DESCRIPTOR_HANDLE, - float*, - uint, - RECT*, - void> ClearRenderTargetView; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const UINT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - uint*, - uint, - RECT*, - void> ClearUnorderedAccessViewUint; - - [NativeTypeName( - "void (D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, ID3D12Resource *, const FLOAT *, UINT, const D3D12_RECT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_DESCRIPTOR_HANDLE, - D3D12_CPU_DESCRIPTOR_HANDLE, - ID3D12Resource*, - float*, - uint, - RECT*, - void> ClearUnorderedAccessViewFloat; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12CommandSignature *, UINT, ID3D12Resource *, UINT64, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12CommandSignature*, - uint, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - void> ExecuteIndirect; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, ID3D12Resource *, UINT64, UINT, ID3D12Resource *const *, const D3D12_SUBRESOURCE_RANGE_UINT64 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - ID3D12Resource*, - ulong, - uint, - ID3D12Resource**, - D3D12_SUBRESOURCE_RANGE_UINT64*, - void> AtomicCopyBufferUINT64; - - [NativeTypeName("void (FLOAT, FLOAT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetDepthBounds; - - [NativeTypeName("void (UINT, UINT, D3D12_SAMPLE_POSITION *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - uint, - uint, - D3D12_SAMPLE_POSITION*, - void> SetSamplePositions; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, UINT, UINT, ID3D12Resource *, UINT, D3D12_RECT *, DXGI_FORMAT, D3D12_RESOLVE_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - uint, - uint, - ID3D12Resource*, - uint, - RECT*, - DXGI_FORMAT, - D3D12_RESOLVE_MODE, - void> ResolveSubresourceRegion; - - [NativeTypeName("void (UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetViewInstanceMask; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (UINT, const D3D12_RENDER_PASS_RENDER_TARGET_DESC *, const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *, D3D12_RENDER_PASS_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_RENDER_PASS_RENDER_TARGET_DESC*, - D3D12_RENDER_PASS_DEPTH_STENCIL_DESC*, - D3D12_RENDER_PASS_FLAGS, - void> BeginRenderPass; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndRenderPass; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> InitializeMetaCommand; - - [NativeTypeName( - "void (ID3D12MetaCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12MetaCommand*, - void*, - nuint, - void> ExecuteMetaCommand; - - [NativeTypeName( - "void (const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *, UINT, const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC*, - uint, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - void> BuildRaytracingAccelerationStructure; - - [NativeTypeName( - "void (const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *, UINT, const D3D12_GPU_VIRTUAL_ADDRESS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*, - uint, - ulong*, - void> EmitRaytracingAccelerationStructurePostbuildInfo; - - [NativeTypeName( - "void (D3D12_GPU_VIRTUAL_ADDRESS, D3D12_GPU_VIRTUAL_ADDRESS, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ulong, - ulong, - D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE, - void> CopyRaytracingAccelerationStructure; - - [NativeTypeName("void (ID3D12StateObject *) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineState1; - - [NativeTypeName("void (const D3D12_DISPATCH_RAYS_DESC *) __attribute__((stdcall))")] - public delegate* unmanaged DispatchRays; - - [NativeTypeName( - "void (D3D12_SHADING_RATE, const D3D12_SHADING_RATE_COMBINER *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_SHADING_RATE, - D3D12_SHADING_RATE_COMBINER*, - void> RSSetShadingRate; - - [NativeTypeName("void (ID3D12Resource *) __attribute__((stdcall))")] - public delegate* unmanaged RSSetShadingRateImage; - - [NativeTypeName("void (UINT, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged DispatchMesh; - - [NativeTypeName("void (UINT32, const D3D12_BARRIER_GROUP *) __attribute__((stdcall))")] - public delegate* unmanaged Barrier; - - [NativeTypeName("void (UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged OMSetFrontAndBackStencilRef; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap.gen.cs deleted file mode 100644 index fb639b6d56..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap.gen.cs +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("6B3B2502-6E51-45B3-90EE-9884265E8DF3")] -[NativeTypeName("struct ID3D12Heap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Heap : ID3D12Heap.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_HEAP_DESC GetDesc() - { - D3D12_HEAP_DESC result; - return *((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12Heap*)Unsafe.AsPointer(ref this), - &result - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_HEAP_DESC GetDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_HEAP_DESC () __attribute__((stdcall))")] - public delegate* unmanaged GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap1.gen.cs deleted file mode 100644 index 9ae0262346..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap1.gen.cs +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("572F7389-2168-49E3-9693-D6DF5871BF6D")] -[NativeTypeName("struct ID3D12Heap1 : ID3D12Heap")] -[NativeInheritance("ID3D12Heap")] -public unsafe partial struct ID3D12Heap1 : ID3D12Heap1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_HEAP_DESC GetDesc() - { - D3D12_HEAP_DESC result; - return *( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12Heap1*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Heap1*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12Heap.Interface - { - [VtblIndex(9)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_HEAP_DESC () __attribute__((stdcall))")] - public delegate* unmanaged GetDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeOwner.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeOwner.gen.cs deleted file mode 100644 index 2c3f23e037..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeOwner.gen.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("E667AF9F-CD56-4F46-83CE-032E595D70A8")] -[NativeTypeName("struct ID3D12LifetimeOwner : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12LifetimeOwner : ID3D12LifetimeOwner.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeOwner)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12LifetimeOwner*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12LifetimeOwner*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12LifetimeOwner*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void LifetimeStateUpdated(D3D12_LIFETIME_STATE NewState) - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12LifetimeOwner*)Unsafe.AsPointer(ref this), - NewState - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void LifetimeStateUpdated(D3D12_LIFETIME_STATE NewState); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (D3D12_LIFETIME_STATE) __attribute__((stdcall))")] - public delegate* unmanaged LifetimeStateUpdated; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeTracker.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeTracker.gen.cs deleted file mode 100644 index 457464a5f8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeTracker.gen.cs +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("3FD03D36-4EB1-424A-A582-494ECB8BA813")] -[NativeTypeName("struct ID3D12LifetimeTracker : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12LifetimeTracker : ID3D12LifetimeTracker.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeTracker)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT DestroyOwnedObject(ID3D12DeviceChild* pObject) - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), - pObject - ); - } - - public interface Interface : ID3D12DeviceChild.Interface - { - [VtblIndex(8)] - HRESULT DestroyOwnedObject(ID3D12DeviceChild* pObject); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (ID3D12DeviceChild *) __attribute__((stdcall))")] - public delegate* unmanaged DestroyOwnedObject; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12MetaCommand.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12MetaCommand.gen.cs deleted file mode 100644 index 3039cf1dbc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12MetaCommand.gen.cs +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("DBB84C27-36CE-4FC9-B801-F048C46AC570")] -[NativeTypeName("struct ID3D12MetaCommand : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12MetaCommand : ID3D12MetaCommand.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12MetaCommand)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12MetaCommand*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - public ulong GetRequiredParameterResourceSize( - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint ParameterIndex - ) - { - return ( - (delegate* unmanaged< - ID3D12MetaCommand*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint, - ulong>)(lpVtbl[8]) - )((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), Stage, ParameterIndex); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - ulong GetRequiredParameterResourceSize( - D3D12_META_COMMAND_PARAMETER_STAGE Stage, - uint ParameterIndex - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName( - "UINT64 (D3D12_META_COMMAND_PARAMETER_STAGE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_META_COMMAND_PARAMETER_STAGE, - uint, - ulong> GetRequiredParameterResourceSize; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Object.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Object.gen.cs deleted file mode 100644 index 80b6f3eda6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Object.gen.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C4FEC28F-7966-4E95-9F94-F431CB56C3B8")] -[NativeTypeName("struct ID3D12Object : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Object : ID3D12Object.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Object)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Object*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Object*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Object*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Object*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Object*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Object*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Object*)Unsafe.AsPointer(ref this), - Name - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ); - - [VtblIndex(4)] - HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ); - - [VtblIndex(5)] - HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ); - - [VtblIndex(6)] - HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Pageable.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Pageable.gen.cs deleted file mode 100644 index c23d77e06b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Pageable.gen.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("63EE58FB-1268-4835-86DA-F008CE62F0D6")] -[NativeTypeName("struct ID3D12Pageable : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12Pageable : ID3D12Pageable.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Pageable)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Pageable*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - public interface Interface : ID3D12DeviceChild.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary.gen.cs deleted file mode 100644 index 4e70cdbcbc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary.gen.cs +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C64226A8-9201-46AF-B4CC-53FB9FF7414F")] -[NativeTypeName("struct ID3D12PipelineLibrary : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12PipelineLibrary : ID3D12PipelineLibrary.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT StorePipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - ID3D12PipelineState* pPipeline - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pPipeline); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT LoadGraphicsPipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12PipelineLibrary*, - ushort*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[9]) - )((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT LoadComputePipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12PipelineLibrary*, - ushort*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("SIZE_T")] - public nuint GetSerializedSize() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT Serialize(void* pData, [NativeTypeName("SIZE_T")] nuint DataSizeInBytes) - { - return ((delegate* unmanaged)(lpVtbl[12]))( - (ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), - pData, - DataSizeInBytes - ); - } - - public interface Interface : ID3D12DeviceChild.Interface - { - [VtblIndex(8)] - HRESULT StorePipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - ID3D12PipelineState* pPipeline - ); - - [VtblIndex(9)] - HRESULT LoadGraphicsPipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ); - - [VtblIndex(10)] - HRESULT LoadComputePipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ); - - [VtblIndex(11)] - [return: NativeTypeName("SIZE_T")] - nuint GetSerializedSize(); - - [VtblIndex(12)] - HRESULT Serialize(void* pData, [NativeTypeName("SIZE_T")] nuint DataSizeInBytes); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (LPCWSTR, ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged StorePipeline; - - [NativeTypeName( - "HRESULT (LPCWSTR, const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ushort*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> LoadGraphicsPipeline; - - [NativeTypeName( - "HRESULT (LPCWSTR, const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ushort*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> LoadComputePipeline; - - [NativeTypeName("SIZE_T () __attribute__((stdcall))")] - public delegate* unmanaged GetSerializedSize; - - [NativeTypeName("HRESULT (void *, SIZE_T) __attribute__((stdcall))")] - public delegate* unmanaged Serialize; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary1.gen.cs deleted file mode 100644 index dff476a1c4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary1.gen.cs +++ /dev/null @@ -1,324 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("80EABF42-2568-4E5E-BD82-C37F86961DC3")] -[NativeTypeName("struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary")] -[NativeInheritance("ID3D12PipelineLibrary")] -public unsafe partial struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT StorePipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - ID3D12PipelineState* pPipeline - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pPipeline); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT LoadGraphicsPipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_GRAPHICS_PIPELINE_STATE_DESC *")] - D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12PipelineLibrary1*, - ushort*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[9]) - )((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT LoadComputePipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_COMPUTE_PIPELINE_STATE_DESC *")] - D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12PipelineLibrary1*, - ushort*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int>)(lpVtbl[10]) - )((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("SIZE_T")] - public nuint GetSerializedSize() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT Serialize(void* pData, [NativeTypeName("SIZE_T")] nuint DataSizeInBytes) - { - return ((delegate* unmanaged)(lpVtbl[12]))( - (ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), - pData, - DataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT LoadPipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ) - { - return ( - (delegate* unmanaged< - ID3D12PipelineLibrary1*, - ushort*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[13]) - )((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - public interface Interface : ID3D12PipelineLibrary.Interface - { - [VtblIndex(13)] - HRESULT LoadPipeline( - [NativeTypeName("LPCWSTR")] ushort* pName, - [NativeTypeName("const D3D12_PIPELINE_STATE_STREAM_DESC *")] - D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppPipelineState - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (LPCWSTR, ID3D12PipelineState *) __attribute__((stdcall))")] - public delegate* unmanaged StorePipeline; - - [NativeTypeName( - "HRESULT (LPCWSTR, const D3D12_GRAPHICS_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ushort*, - D3D12_GRAPHICS_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> LoadGraphicsPipeline; - - [NativeTypeName( - "HRESULT (LPCWSTR, const D3D12_COMPUTE_PIPELINE_STATE_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ushort*, - D3D12_COMPUTE_PIPELINE_STATE_DESC*, - Guid*, - void**, - int> LoadComputePipeline; - - [NativeTypeName("SIZE_T () __attribute__((stdcall))")] - public delegate* unmanaged GetSerializedSize; - - [NativeTypeName("HRESULT (void *, SIZE_T) __attribute__((stdcall))")] - public delegate* unmanaged Serialize; - - [NativeTypeName( - "HRESULT (LPCWSTR, const D3D12_PIPELINE_STATE_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ushort*, - D3D12_PIPELINE_STATE_STREAM_DESC*, - Guid*, - void**, - int> LoadPipeline; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineState.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineState.gen.cs deleted file mode 100644 index 79a95aac89..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineState.gen.cs +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("765A30F3-F624-4C6F-A828-ACE948622445")] -[NativeTypeName("struct ID3D12PipelineState : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12PipelineState : ID3D12PipelineState.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineState)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT GetCachedBlob(ID3DBlob** ppBlob) - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12PipelineState*)Unsafe.AsPointer(ref this), - ppBlob - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - HRESULT GetCachedBlob(ID3DBlob** ppBlob); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (ID3DBlob **) __attribute__((stdcall))")] - public delegate* unmanaged GetCachedBlob; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession.gen.cs deleted file mode 100644 index 3833c15d43..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession.gen.cs +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("6CD696F4-F289-40CC-8091-5A6C0A099C3D")] -[NativeTypeName("struct ID3D12ProtectedResourceSession : ID3D12ProtectedSession")] -[NativeInheritance("ID3D12ProtectedSession")] -[SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12ProtectedResourceSession - : ID3D12ProtectedResourceSession.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT GetStatusFence([NativeTypeName("const IID &")] Guid* riid, void** ppFence) - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public D3D12_PROTECTED_SESSION_STATUS GetSessionStatus() - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_PROTECTED_RESOURCE_SESSION_DESC GetDesc() - { - D3D12_PROTECTED_RESOURCE_SESSION_DESC result; - return *( - (delegate* unmanaged< - ID3D12ProtectedResourceSession*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*>)(lpVtbl[10]) - )((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12ProtectedSession.Interface - { - [VtblIndex(10)] - D3D12_PROTECTED_RESOURCE_SESSION_DESC GetDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetStatusFence; - - [NativeTypeName("D3D12_PROTECTED_SESSION_STATUS () __attribute__((stdcall))")] - public delegate* unmanaged GetSessionStatus; - - [NativeTypeName("D3D12_PROTECTED_RESOURCE_SESSION_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*> GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession1.gen.cs deleted file mode 100644 index 0ffd3c73af..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession1.gen.cs +++ /dev/null @@ -1,237 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("D6F12DD6-76FB-406E-8961-4296EEFC0409")] -[NativeTypeName("struct ID3D12ProtectedResourceSession1 : ID3D12ProtectedResourceSession")] -[NativeInheritance("ID3D12ProtectedResourceSession")] -public unsafe partial struct ID3D12ProtectedResourceSession1 - : ID3D12ProtectedResourceSession1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[5] - ) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT GetStatusFence([NativeTypeName("const IID &")] Guid* riid, void** ppFence) - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppFence); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public D3D12_PROTECTED_SESSION_STATUS GetSessionStatus() - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_PROTECTED_RESOURCE_SESSION_DESC GetDesc() - { - D3D12_PROTECTED_RESOURCE_SESSION_DESC result; - return *( - (delegate* unmanaged< - ID3D12ProtectedResourceSession1*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*>)(lpVtbl[10]) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public D3D12_PROTECTED_RESOURCE_SESSION_DESC1 GetDesc1() - { - D3D12_PROTECTED_RESOURCE_SESSION_DESC1 result; - return *( - (delegate* unmanaged< - ID3D12ProtectedResourceSession1*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*>)(lpVtbl[11]) - )((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12ProtectedResourceSession.Interface - { - [VtblIndex(11)] - D3D12_PROTECTED_RESOURCE_SESSION_DESC1 GetDesc1(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetStatusFence; - - [NativeTypeName("D3D12_PROTECTED_SESSION_STATUS () __attribute__((stdcall))")] - public delegate* unmanaged GetSessionStatus; - - [NativeTypeName("D3D12_PROTECTED_RESOURCE_SESSION_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC*> GetDesc; - - [NativeTypeName("D3D12_PROTECTED_RESOURCE_SESSION_DESC1 () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*, - D3D12_PROTECTED_RESOURCE_SESSION_DESC1*> GetDesc1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedSession.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedSession.gen.cs deleted file mode 100644 index ad81467b5b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedSession.gen.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("A1533D18-0AC1-4084-85B9-89A96116806B")] -[NativeTypeName("struct ID3D12ProtectedSession : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -[SupportedOSPlatform("windows10.0")] -public unsafe partial struct ID3D12ProtectedSession : ID3D12ProtectedSession.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedSession)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT GetStatusFence([NativeTypeName("const IID &")] Guid* riid, void** ppFence) - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), - riid, - ppFence - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public D3D12_PROTECTED_SESSION_STATUS GetSessionStatus() - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this)); - } - - public interface Interface : ID3D12DeviceChild.Interface - { - [VtblIndex(8)] - HRESULT GetStatusFence([NativeTypeName("const IID &")] Guid* riid, void** ppFence); - - [VtblIndex(9)] - D3D12_PROTECTED_SESSION_STATUS GetSessionStatus(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetStatusFence; - - [NativeTypeName("D3D12_PROTECTED_SESSION_STATUS () __attribute__((stdcall))")] - public delegate* unmanaged GetSessionStatus; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12QueryHeap.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12QueryHeap.gen.cs deleted file mode 100644 index 9436d417c4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12QueryHeap.gen.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("0D9658AE-ED45-469E-A61D-970EC583CAB4")] -[NativeTypeName("struct ID3D12QueryHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12QueryHeap : ID3D12QueryHeap.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12QueryHeap)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12QueryHeap*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - public interface Interface : ID3D12Pageable.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource.gen.cs deleted file mode 100644 index 83342a6942..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource.gen.cs +++ /dev/null @@ -1,383 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("696442BE-A72E-4059-BC79-5B5C98040FAD")] -[NativeTypeName("struct ID3D12Resource : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Resource : ID3D12Resource.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT Map( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pReadRange, - void** ppData - ) - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - Subresource, - pReadRange, - ppData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void Unmap( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pWrittenRange - ) - { - ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - Subresource, - pWrittenRange - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_RESOURCE_DESC GetDesc() - { - D3D12_RESOURCE_DESC result; - return *( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12Resource*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong GetGPUVirtualAddress() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12Resource*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT WriteToSubresource( - uint DstSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pDstBox, - [NativeTypeName("const void *")] void* pSrcData, - uint SrcRowPitch, - uint SrcDepthPitch - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - DstSubresource, - pDstBox, - pSrcData, - SrcRowPitch, - SrcDepthPitch - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT ReadFromSubresource( - void* pDstData, - uint DstRowPitch, - uint DstDepthPitch, - uint SrcSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12Resource*)Unsafe.AsPointer(ref this), - pDstData, - DstRowPitch, - DstDepthPitch, - SrcSubresource, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT GetHeapProperties( - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS* pHeapFlags - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Resource*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - HRESULT Map( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pReadRange, - void** ppData - ); - - [VtblIndex(9)] - void Unmap( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pWrittenRange - ); - - [VtblIndex(10)] - D3D12_RESOURCE_DESC GetDesc(); - - [VtblIndex(11)] - [return: NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - ulong GetGPUVirtualAddress(); - - [VtblIndex(12)] - HRESULT WriteToSubresource( - uint DstSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pDstBox, - [NativeTypeName("const void *")] void* pSrcData, - uint SrcRowPitch, - uint SrcDepthPitch - ); - - [VtblIndex(13)] - HRESULT ReadFromSubresource( - void* pDstData, - uint DstRowPitch, - uint DstDepthPitch, - uint SrcSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ); - - [VtblIndex(14)] - HRESULT GetHeapProperties( - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS* pHeapFlags - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (UINT, const D3D12_RANGE *, void **) __attribute__((stdcall))")] - public delegate* unmanaged Map; - - [NativeTypeName("void (UINT, const D3D12_RANGE *) __attribute__((stdcall))")] - public delegate* unmanaged Unmap; - - [NativeTypeName("D3D12_RESOURCE_DESC () __attribute__((stdcall))")] - public delegate* unmanaged GetDesc; - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS () __attribute__((stdcall))")] - public delegate* unmanaged GetGPUVirtualAddress; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_BOX *, const void *, UINT, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_BOX*, - void*, - uint, - uint, - int> WriteToSubresource; - - [NativeTypeName( - "HRESULT (void *, UINT, UINT, UINT, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - void*, - uint, - uint, - uint, - D3D12_BOX*, - int> ReadFromSubresource; - - [NativeTypeName( - "HRESULT (D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS*, - int> GetHeapProperties; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource1.gen.cs deleted file mode 100644 index 365b4afb72..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource1.gen.cs +++ /dev/null @@ -1,361 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("9D5E227A-4430-4161-88B3-3ECA6BB16E19")] -[NativeTypeName("struct ID3D12Resource1 : ID3D12Resource")] -[NativeInheritance("ID3D12Resource")] -public unsafe partial struct ID3D12Resource1 : ID3D12Resource1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT Map( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pReadRange, - void** ppData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12Resource1*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void Unmap( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pWrittenRange - ) - { - ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - Subresource, - pWrittenRange - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_RESOURCE_DESC GetDesc() - { - D3D12_RESOURCE_DESC result; - return *( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12Resource1*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong GetGPUVirtualAddress() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT WriteToSubresource( - uint DstSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pDstBox, - [NativeTypeName("const void *")] void* pSrcData, - uint SrcRowPitch, - uint SrcDepthPitch - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - DstSubresource, - pDstBox, - pSrcData, - SrcRowPitch, - SrcDepthPitch - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT ReadFromSubresource( - void* pDstData, - uint DstRowPitch, - uint DstDepthPitch, - uint SrcSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - pDstData, - DstRowPitch, - DstDepthPitch, - SrcSubresource, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT GetHeapProperties( - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS* pHeapFlags - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Resource1*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12Resource1*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12Resource.Interface - { - [VtblIndex(15)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (UINT, const D3D12_RANGE *, void **) __attribute__((stdcall))")] - public delegate* unmanaged Map; - - [NativeTypeName("void (UINT, const D3D12_RANGE *) __attribute__((stdcall))")] - public delegate* unmanaged Unmap; - - [NativeTypeName("D3D12_RESOURCE_DESC () __attribute__((stdcall))")] - public delegate* unmanaged GetDesc; - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS () __attribute__((stdcall))")] - public delegate* unmanaged GetGPUVirtualAddress; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_BOX *, const void *, UINT, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_BOX*, - void*, - uint, - uint, - int> WriteToSubresource; - - [NativeTypeName( - "HRESULT (void *, UINT, UINT, UINT, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - void*, - uint, - uint, - uint, - D3D12_BOX*, - int> ReadFromSubresource; - - [NativeTypeName( - "HRESULT (D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS*, - int> GetHeapProperties; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource2.gen.cs deleted file mode 100644 index 3ef2eae9b8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource2.gen.cs +++ /dev/null @@ -1,375 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("BE36EC3B-EA85-4AEB-A45A-E9D76404A495")] -[NativeTypeName("struct ID3D12Resource2 : ID3D12Resource1")] -[NativeInheritance("ID3D12Resource1")] -public unsafe partial struct ID3D12Resource2 : ID3D12Resource2.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT Map( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pReadRange, - void** ppData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12Resource2*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void Unmap( - uint Subresource, - [NativeTypeName("const D3D12_RANGE *")] D3D12_RANGE* pWrittenRange - ) - { - ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - Subresource, - pWrittenRange - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_RESOURCE_DESC GetDesc() - { - D3D12_RESOURCE_DESC result; - return *( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12Resource2*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")] - public ulong GetGPUVirtualAddress() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT WriteToSubresource( - uint DstSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pDstBox, - [NativeTypeName("const void *")] void* pSrcData, - uint SrcRowPitch, - uint SrcDepthPitch - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - DstSubresource, - pDstBox, - pSrcData, - SrcRowPitch, - SrcDepthPitch - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT ReadFromSubresource( - void* pDstData, - uint DstRowPitch, - uint DstDepthPitch, - uint SrcSubresource, - [NativeTypeName("const D3D12_BOX *")] D3D12_BOX* pSrcBox - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - pDstData, - DstRowPitch, - DstDepthPitch, - SrcSubresource, - pSrcBox - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT GetHeapProperties( - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS* pHeapFlags - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3D12Resource2*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12Resource2*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public D3D12_RESOURCE_DESC1 GetDesc1() - { - D3D12_RESOURCE_DESC1 result; - return *( - (delegate* unmanaged)( - lpVtbl[16] - ) - )((ID3D12Resource2*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12Resource1.Interface - { - [VtblIndex(16)] - D3D12_RESOURCE_DESC1 GetDesc1(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (UINT, const D3D12_RANGE *, void **) __attribute__((stdcall))")] - public delegate* unmanaged Map; - - [NativeTypeName("void (UINT, const D3D12_RANGE *) __attribute__((stdcall))")] - public delegate* unmanaged Unmap; - - [NativeTypeName("D3D12_RESOURCE_DESC () __attribute__((stdcall))")] - public delegate* unmanaged GetDesc; - - [NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS () __attribute__((stdcall))")] - public delegate* unmanaged GetGPUVirtualAddress; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_BOX *, const void *, UINT, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_BOX*, - void*, - uint, - uint, - int> WriteToSubresource; - - [NativeTypeName( - "HRESULT (void *, UINT, UINT, UINT, const D3D12_BOX *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - void*, - uint, - uint, - uint, - D3D12_BOX*, - int> ReadFromSubresource; - - [NativeTypeName( - "HRESULT (D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS*, - int> GetHeapProperties; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - - [NativeTypeName("D3D12_RESOURCE_DESC1 () __attribute__((stdcall))")] - public delegate* unmanaged GetDesc1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignature.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignature.gen.cs deleted file mode 100644 index a0746e3762..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignature.gen.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C54A6B66-72DF-4EE8-8BE5-A946A1429214")] -[NativeTypeName("struct ID3D12RootSignature : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12RootSignature : ID3D12RootSignature.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignature)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12RootSignature*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - public interface Interface : ID3D12DeviceChild.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureDeserializer.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureDeserializer.gen.cs deleted file mode 100644 index 68baa82a11..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureDeserializer.gen.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("34AB647B-3CC8-46AC-841B-C0965645C046")] -[NativeTypeName("struct ID3D12RootSignatureDeserializer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12RootSignatureDeserializer - : ID3D12RootSignatureDeserializer.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignatureDeserializer)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12RootSignatureDeserializer*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12RootSignatureDeserializer*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12RootSignatureDeserializer*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - [return: NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC *")] - public D3D12_ROOT_SIGNATURE_DESC* GetRootSignatureDesc() - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12RootSignatureDeserializer*)Unsafe.AsPointer(ref this)); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - [return: NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC *")] - D3D12_ROOT_SIGNATURE_DESC* GetRootSignatureDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("const D3D12_ROOT_SIGNATURE_DESC *() __attribute__((stdcall))")] - public delegate* unmanaged GetRootSignatureDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration.gen.cs deleted file mode 100644 index 193bfdaba9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration.gen.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("E9EB5314-33AA-42B2-A718-D77F58B1F1C7")] -[NativeTypeName("struct ID3D12SDKConfiguration : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SDKConfiguration : ID3D12SDKConfiguration.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SDKConfiguration)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12SDKConfiguration*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12SDKConfiguration*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12SDKConfiguration*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetSDKVersion(uint SDKVersion, [NativeTypeName("LPCSTR")] sbyte* SDKPath) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12SDKConfiguration*)Unsafe.AsPointer(ref this), - SDKVersion, - SDKPath - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT SetSDKVersion(uint SDKVersion, [NativeTypeName("LPCSTR")] sbyte* SDKPath); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (UINT, LPCSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetSDKVersion; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration1.gen.cs deleted file mode 100644 index 6f4cc93f59..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration1.gen.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8AAF9303-AD25-48B9-9A57-D9C37E009D9F")] -[NativeTypeName("struct ID3D12SDKConfiguration1 : ID3D12SDKConfiguration")] -[NativeInheritance("ID3D12SDKConfiguration")] -public unsafe partial struct ID3D12SDKConfiguration1 - : ID3D12SDKConfiguration1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SDKConfiguration1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12SDKConfiguration1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12SDKConfiguration1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12SDKConfiguration1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetSDKVersion(uint SDKVersion, [NativeTypeName("LPCSTR")] sbyte* SDKPath) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12SDKConfiguration1*)Unsafe.AsPointer(ref this), - SDKVersion, - SDKPath - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateDeviceFactory( - uint SDKVersion, - [NativeTypeName("LPCSTR")] sbyte* SDKPath, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvFactory - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )( - (ID3D12SDKConfiguration1*)Unsafe.AsPointer(ref this), - SDKVersion, - SDKPath, - riid, - ppvFactory - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void FreeUnusedSDKs() - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12SDKConfiguration1*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : ID3D12SDKConfiguration.Interface - { - [VtblIndex(4)] - HRESULT CreateDeviceFactory( - uint SDKVersion, - [NativeTypeName("LPCSTR")] sbyte* SDKPath, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvFactory - ); - - [VtblIndex(5)] - void FreeUnusedSDKs(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (UINT, LPCSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetSDKVersion; - - [NativeTypeName("HRESULT (UINT, LPCSTR, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged CreateDeviceFactory; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged FreeUnusedSDKs; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ShaderCacheSession.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ShaderCacheSession.gen.cs deleted file mode 100644 index fa57734849..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12ShaderCacheSession.gen.cs +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("28E2495D-0F64-4AE4-A6EC-129255DC49A8")] -[NativeTypeName("struct ID3D12ShaderCacheSession : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12ShaderCacheSession - : ID3D12ShaderCacheSession.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderCacheSession)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT FindValue( - [NativeTypeName("const void *")] void* pKey, - uint KeySize, - void* pValue, - uint* pValueSize - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), pKey, KeySize, pValue, pValueSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT StoreValue( - [NativeTypeName("const void *")] void* pKey, - uint KeySize, - [NativeTypeName("const void *")] void* pValue, - uint ValueSize - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), pKey, KeySize, pValue, ValueSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetDeleteOnDestroy() - { - ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public D3D12_SHADER_CACHE_SESSION_DESC GetDesc() - { - D3D12_SHADER_CACHE_SESSION_DESC result; - return *( - (delegate* unmanaged< - ID3D12ShaderCacheSession*, - D3D12_SHADER_CACHE_SESSION_DESC*, - D3D12_SHADER_CACHE_SESSION_DESC*>)(lpVtbl[11]) - )((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12DeviceChild.Interface - { - [VtblIndex(8)] - HRESULT FindValue( - [NativeTypeName("const void *")] void* pKey, - uint KeySize, - void* pValue, - uint* pValueSize - ); - - [VtblIndex(9)] - HRESULT StoreValue( - [NativeTypeName("const void *")] void* pKey, - uint KeySize, - [NativeTypeName("const void *")] void* pValue, - uint ValueSize - ); - - [VtblIndex(10)] - void SetDeleteOnDestroy(); - - [VtblIndex(11)] - D3D12_SHADER_CACHE_SESSION_DESC GetDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("HRESULT (const void *, UINT, void *, UINT *) __attribute__((stdcall))")] - public delegate* unmanaged FindValue; - - [NativeTypeName( - "HRESULT (const void *, UINT, const void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged StoreValue; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged SetDeleteOnDestroy; - - [NativeTypeName("D3D12_SHADER_CACHE_SESSION_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_SHADER_CACHE_SESSION_DESC*, - D3D12_SHADER_CACHE_SESSION_DESC*> GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObject.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObject.gen.cs deleted file mode 100644 index 1661b87b62..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObject.gen.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("47016943-FCA8-4594-93EA-AF258B55346D")] -[NativeTypeName("struct ID3D12StateObject : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12StateObject : ID3D12StateObject.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObject)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12StateObject*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - public interface Interface : ID3D12Pageable.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectProperties.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectProperties.gen.cs deleted file mode 100644 index 69b7371f3b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectProperties.gen.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("DE5FA827-9BF9-4F26-89FF-D7F56FDE3860")] -[NativeTypeName("struct ID3D12StateObjectProperties : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12StateObjectProperties - : ID3D12StateObjectProperties.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObjectProperties)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void* GetShaderIdentifier([NativeTypeName("LPCWSTR")] ushort* pExportName) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), - pExportName - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - [return: NativeTypeName("UINT64")] - public ulong GetShaderStackSize([NativeTypeName("LPCWSTR")] ushort* pExportName) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), - pExportName - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - [return: NativeTypeName("UINT64")] - public ulong GetPipelineStackSize() - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetPipelineStackSize([NativeTypeName("UINT64")] ulong PipelineStackSizeInBytes) - { - ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), - PipelineStackSizeInBytes - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void* GetShaderIdentifier([NativeTypeName("LPCWSTR")] ushort* pExportName); - - [VtblIndex(4)] - [return: NativeTypeName("UINT64")] - ulong GetShaderStackSize([NativeTypeName("LPCWSTR")] ushort* pExportName); - - [VtblIndex(5)] - [return: NativeTypeName("UINT64")] - ulong GetPipelineStackSize(); - - [VtblIndex(6)] - void SetPipelineStackSize([NativeTypeName("UINT64")] ulong PipelineStackSizeInBytes); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void *(LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged GetShaderIdentifier; - - [NativeTypeName("UINT64 (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged GetShaderStackSize; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetPipelineStackSize; - - [NativeTypeName("void (UINT64) __attribute__((stdcall))")] - public delegate* unmanaged SetPipelineStackSize; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SwapChainAssistant.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SwapChainAssistant.gen.cs deleted file mode 100644 index ad9691728d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12SwapChainAssistant.gen.cs +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("F1DF64B6-57FD-49CD-8807-C0EB88B45C8F")] -[NativeTypeName("struct ID3D12SwapChainAssistant : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SwapChainAssistant - : ID3D12SwapChainAssistant.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SwapChainAssistant)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public LUID GetLUID() - { - LUID result; - return *((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), - &result - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetSwapChainObject([NativeTypeName("const IID &")] Guid* riid, void** ppv) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), - riid, - ppv - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetCurrentResourceAndCommandQueue( - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource, - [NativeTypeName("const IID &")] Guid* riidQueue, - void** ppvQueue - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[5] - ) - )( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), - riidResource, - ppvResource, - riidQueue, - ppvQueue - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT InsertImplicitSync() - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - LUID GetLUID(); - - [VtblIndex(4)] - HRESULT GetSwapChainObject([NativeTypeName("const IID &")] Guid* riid, void** ppv); - - [VtblIndex(5)] - HRESULT GetCurrentResourceAndCommandQueue( - [NativeTypeName("const IID &")] Guid* riidResource, - void** ppvResource, - [NativeTypeName("const IID &")] Guid* riidQueue, - void** ppvQueue - ); - - [VtblIndex(6)] - HRESULT InsertImplicitSync(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("LUID () __attribute__((stdcall))")] - public delegate* unmanaged GetLUID; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetSwapChainObject; - - [NativeTypeName( - "HRESULT (const IID &, void **, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - Guid*, - void**, - Guid*, - void**, - int> GetCurrentResourceAndCommandQueue; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged InsertImplicitSync; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Tools.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Tools.gen.cs deleted file mode 100644 index c9f5ab427a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12Tools.gen.cs +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("7071E1F0-E84B-4B33-974F-12FA49DE65C5")] -[NativeTypeName("struct ID3D12Tools : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Tools : ID3D12Tools.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Tools)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Tools*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Tools*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Tools*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableShaderInstrumentation(BOOL bEnable) - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Tools*)Unsafe.AsPointer(ref this), - bEnable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public BOOL ShaderInstrumentationEnabled() - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Tools*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void EnableShaderInstrumentation(BOOL bEnable); - - [VtblIndex(4)] - BOOL ShaderInstrumentationEnabled(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged EnableShaderInstrumentation; - - [NativeTypeName("BOOL () __attribute__((stdcall))")] - public delegate* unmanaged ShaderInstrumentationEnabled; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12VersionedRootSignatureDeserializer.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12VersionedRootSignatureDeserializer.gen.cs deleted file mode 100644 index 9fe3577fd9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12VersionedRootSignatureDeserializer.gen.cs +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0")] -[NativeTypeName("struct ID3D12VersionedRootSignatureDeserializer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12VersionedRootSignatureDeserializer - : ID3D12VersionedRootSignatureDeserializer.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VersionedRootSignatureDeserializer)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetRootSignatureDescAtVersion( - D3D_ROOT_SIGNATURE_VERSION convertToVersion, - [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **")] - D3D12_VERSIONED_ROOT_SIGNATURE_DESC** ppDesc - ) - { - return ( - (delegate* unmanaged< - ID3D12VersionedRootSignatureDeserializer*, - D3D_ROOT_SIGNATURE_VERSION, - D3D12_VERSIONED_ROOT_SIGNATURE_DESC**, - int>)(lpVtbl[3]) - )( - (ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this), - convertToVersion, - ppDesc - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - [return: NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] - public D3D12_VERSIONED_ROOT_SIGNATURE_DESC* GetUnconvertedRootSignatureDesc() - { - return ( - (delegate* unmanaged< - ID3D12VersionedRootSignatureDeserializer*, - D3D12_VERSIONED_ROOT_SIGNATURE_DESC*>)(lpVtbl[4]) - )((ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this)); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT GetRootSignatureDescAtVersion( - D3D_ROOT_SIGNATURE_VERSION convertToVersion, - [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **")] - D3D12_VERSIONED_ROOT_SIGNATURE_DESC** ppDesc - ); - - [VtblIndex(4)] - [return: NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *")] - D3D12_VERSIONED_ROOT_SIGNATURE_DESC* GetUnconvertedRootSignatureDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (D3D_ROOT_SIGNATURE_VERSION, const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D_ROOT_SIGNATURE_VERSION, - D3D12_VERSIONED_ROOT_SIGNATURE_DESC**, - int> GetRootSignatureDescAtVersion; - - [NativeTypeName("const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *() __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VERSIONED_ROOT_SIGNATURE_DESC*> GetUnconvertedRootSignatureDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12VirtualizationGuestDevice.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12VirtualizationGuestDevice.gen.cs deleted file mode 100644 index 8cba951d01..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/ID3D12VirtualizationGuestDevice.gen.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("BC66D368-7373-4943-8757-FC87DC79E476")] -[NativeTypeName("struct ID3D12VirtualizationGuestDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12VirtualizationGuestDevice - : ID3D12VirtualizationGuestDevice.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VirtualizationGuestDevice)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VirtualizationGuestDevice*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VirtualizationGuestDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VirtualizationGuestDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT ShareWithHost(ID3D12DeviceChild* pObject, HANDLE* pHandle) - { - return ( - (delegate* unmanaged< - ID3D12VirtualizationGuestDevice*, - ID3D12DeviceChild*, - HANDLE*, - int>)(lpVtbl[3]) - )((ID3D12VirtualizationGuestDevice*)Unsafe.AsPointer(ref this), pObject, pHandle); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateFenceFd( - ID3D12Fence* pFence, - [NativeTypeName("UINT64")] ulong FenceValue, - int* pFenceFd - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )( - (ID3D12VirtualizationGuestDevice*)Unsafe.AsPointer(ref this), - pFence, - FenceValue, - pFenceFd - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT ShareWithHost(ID3D12DeviceChild* pObject, HANDLE* pHandle); - - [VtblIndex(4)] - HRESULT CreateFenceFd( - ID3D12Fence* pFence, - [NativeTypeName("UINT64")] ulong FenceValue, - int* pFenceFd - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (ID3D12DeviceChild *, HANDLE *) __attribute__((stdcall))")] - public delegate* unmanaged ShareWithHost; - - [NativeTypeName("HRESULT (ID3D12Fence *, UINT64, int *) __attribute__((stdcall))")] - public delegate* unmanaged CreateFenceFd; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12/IID.gen.cs deleted file mode 100644 index 1d04214bb8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12/IID.gen.cs +++ /dev/null @@ -1,792 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Object - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x8F, 0xC2, 0xFE, 0xC4, 0x66, 0x79, 0x95, 0x4E, 0x9F, 0x94, 0xF4, 0x31, 0xCB, 0x56, 0xC3, 0xB8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceChild - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x4B, 0xB9, 0x5D, 0x90, 0x0C, 0xA0, 0x40, 0x41, 0x9D, 0xF5, 0x2B, 0x64, 0xCA, 0x9E, 0xA3, 0x57]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12RootSignature - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x66, 0x6B, 0x4A, 0xC5, 0xDF, 0x72, 0xE8, 0x4E, 0x8B, 0xE5, 0xA9, 0x46, 0xA1, 0x42, 0x92, 0x14]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12RootSignatureDeserializer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7B, 0x64, 0xAB, 0x34, 0xC8, 0x3C, 0xAC, 0x46, 0x84, 0x1B, 0xC0, 0x96, 0x56, 0x45, 0xC0, 0x46]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VersionedRootSignatureDeserializer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x67, 0xCE, 0x91, 0x7F, 0x0C, 0x09, 0xB7, 0x4B, 0xB7, 0x8E, 0xED, 0x8F, 0xF2, 0xE3, 0x1D, 0xA0]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Pageable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xFB, 0x58, 0xEE, 0x63, 0x68, 0x12, 0x35, 0x48, 0x86, 0xDA, 0xF0, 0x08, 0xCE, 0x62, 0xF0, 0xD6]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Heap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x02, 0x25, 0x3B, 0x6B, 0x51, 0x6E, 0xB3, 0x45, 0x90, 0xEE, 0x98, 0x84, 0x26, 0x5E, 0x8D, 0xF3]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Resource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xBE, 0x42, 0x64, 0x69, 0x2E, 0xA7, 0x59, 0x40, 0xBC, 0x79, 0x5B, 0x5C, 0x98, 0x04, 0x0F, 0xAD]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12CommandAllocator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xE4, 0xDE, 0x02, 0x61, 0x59, 0xAF, 0x09, 0x4B, 0xB9, 0x99, 0xB4, 0x4D, 0x73, 0xF0, 0x9B, 0x24]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Fence - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xCF, 0x3D, 0x75, 0x0A, 0xD8, 0xC4, 0x91, 0x4B, 0xAD, 0xF6, 0xBE, 0x5A, 0x60, 0xD9, 0x5A, 0x76]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Fence1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xFE, 0x85, 0x36, 0x43, 0x2B, 0xE2, 0xA0, 0x4C, 0xA8, 0xDB, 0xB5, 0xB4, 0xF4, 0xDD, 0x0E, 0x4A]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12PipelineState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xF3, 0x30, 0x5A, 0x76, 0x24, 0xF6, 0x6F, 0x4C, 0xA8, 0x28, 0xAC, 0xE9, 0x48, 0x62, 0x24, 0x45]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DescriptorHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1D, 0x47, 0xFB, 0x8E, 0x6C, 0x61, 0x49, 0x4F, 0x90, 0xF7, 0x12, 0x7B, 0xB7, 0x63, 0xFA, 0x51]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12QueryHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xAE, 0x58, 0x96, 0x0D, 0x45, 0xED, 0x9E, 0x46, 0xA6, 0x1D, 0x97, 0x0E, 0xC5, 0x83, 0xCA, 0xB4]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12CommandSignature - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7C, 0x79, 0x6A, 0xC3, 0x80, 0xEC, 0x0A, 0x4F, 0x89, 0x85, 0xA7, 0xB2, 0x47, 0x50, 0x82, 0xD1]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12CommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1C, 0xD9, 0x16, 0x71, 0xE4, 0xE7, 0xCE, 0x47, 0xB8, 0xC6, 0xEC, 0x81, 0x68, 0xF4, 0x37, 0xE5]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x0F, 0x0D, 0x16, 0x5B, 0x1B, 0xAC, 0x85, 0x41, 0x8B, 0xA8, 0xB3, 0xAE, 0x42, 0xA5, 0xA4, 0x55]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xFB, 0x03, 0x31, 0x55, 0xE7, 0x1F, 0x57, 0x45, 0xBB, 0x38, 0x94, 0x6D, 0x7D, 0x0E, 0x7C, 0xA7]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x85, 0xE5, 0xC3, 0x38, 0x17, 0xFF, 0x2C, 0x41, 0x91, 0x50, 0x4F, 0xC6, 0xF9, 0xD7, 0x2A, 0x28]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12CommandQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA6, 0x70, 0xC8, 0x0E, 0x7E, 0x5D, 0x22, 0x4C, 0x8C, 0xFC, 0x5B, 0xAA, 0xE0, 0x76, 0x16, 0xED]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xF1, 0x19, 0x98, 0x18, 0xB6, 0x1D, 0x57, 0x4B, 0xBE, 0x54, 0x18, 0x21, 0x33, 0x9B, 0x85, 0xF7]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12PipelineLibrary - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA8, 0x26, 0x42, 0xC6, 0x01, 0x92, 0xAF, 0x46, 0xB4, 0xCC, 0x53, 0xFB, 0x9F, 0xF7, 0x41, 0x4F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12PipelineLibrary1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x42, 0xBF, 0xEA, 0x80, 0x68, 0x25, 0x5E, 0x4E, 0xBD, 0x82, 0xC3, 0x7F, 0x86, 0x96, 0x1D, 0xC3]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x80, 0xCE, 0xAC, 0x77, 0x8E, 0x63, 0x65, 0x4E, 0x88, 0x95, 0xC1, 0xF2, 0x33, 0x86, 0x86, 0x3E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1E, 0xA4, 0xBA, 0x30, 0x5B, 0xB1, 0x5C, 0x47, 0xA0, 0xBB, 0x1A, 0xF5, 0xC5, 0xB6, 0x43, 0x28]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x15, 0xDC, 0xDA, 0x81, 0xAD, 0x2B, 0x92, 0x43, 0x93, 0xC5, 0x10, 0x13, 0x45, 0xC4, 0xAA, 0x98]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ProtectedSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x18, 0x3D, 0x53, 0xA1, 0xC1, 0x0A, 0x84, 0x40, 0x85, 0xB9, 0x89, 0xA9, 0x61, 0x16, 0x80, 0x6B]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ProtectedResourceSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xF4, 0x96, 0xD6, 0x6C, 0x89, 0xF2, 0xCC, 0x40, 0x80, 0x91, 0x5A, 0x6C, 0x0A, 0x09, 0x9C, 0x3D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x17, 0xDF, 0x65, 0xE8, 0xEE, 0xA9, 0xF9, 0x46, 0xA4, 0x63, 0x30, 0x98, 0x31, 0x5A, 0xA2, 0xE5]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12LifetimeOwner - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x9F, 0xAF, 0x67, 0xE6, 0x56, 0xCD, 0x46, 0x4F, 0x83, 0xCE, 0x03, 0x2E, 0x59, 0x5D, 0x70, 0xA8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12SwapChainAssistant - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xB6, 0x64, 0xDF, 0xF1, 0xFD, 0x57, 0xCD, 0x49, 0x88, 0x07, 0xC0, 0xEB, 0x88, 0xB4, 0x5C, 0x8F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12LifetimeTracker - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x36, 0x3D, 0xD0, 0x3F, 0xB1, 0x4E, 0x4A, 0x42, 0xA5, 0x82, 0x49, 0x4E, 0xCB, 0x8B, 0xA8, 0x13]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12StateObject - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x43, 0x69, 0x01, 0x47, 0xA8, 0xFC, 0x94, 0x45, 0x93, 0xEA, 0xAF, 0x25, 0x8B, 0x55, 0x34, 0x6D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12StateObjectProperties - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x27, 0xA8, 0x5F, 0xDE, 0xF9, 0x9B, 0x26, 0x4F, 0x89, 0xFF, 0xD7, 0xF5, 0x6F, 0xDE, 0x38, 0x60]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3B, 0x17, 0x4F, 0x8B, 0xEA, 0x2F, 0x80, 0x4B, 0x8F, 0x58, 0x43, 0x07, 0x19, 0x1A, 0xB9, 0x5D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1C, 0x48, 0xBC, 0x82, 0x9B, 0x6B, 0x30, 0x40, 0xAE, 0xDB, 0x7E, 0xE3, 0xD1, 0xDF, 0x1E, 0x63]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x51, 0xAE, 0xD5, 0xDB, 0x17, 0x33, 0x0A, 0x4F, 0xAD, 0xF9, 0x1D, 0x7C, 0xED, 0xCA, 0xAE, 0x0B]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x88, 0x23, 0x55, 0x61, 0xAB, 0x01, 0x08, 0x40, 0xA4, 0x36, 0x83, 0xDB, 0x18, 0x95, 0x66, 0xEA]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x33, 0x1D, 0x93, 0x98, 0xE8, 0x5A, 0x91, 0x47, 0xAA, 0x3C, 0x1A, 0x73, 0xA2, 0x93, 0x4E, 0x71]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x22, 0xA0, 0x27, 0x97, 0x1D, 0xCF, 0xDA, 0x4D, 0x9E, 0xBA, 0xEF, 0xFA, 0x65, 0x3F, 0xC5, 0x06]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x16, 0x58, 0xFC, 0x67, 0xCA, 0xE4, 0x15, 0x49, 0xBF, 0x18, 0x42, 0x54, 0x12, 0x72, 0xDA, 0x54]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1B, 0x22, 0x0B, 0xC7, 0xE4, 0x40, 0x17, 0x4A, 0x89, 0xAF, 0x02, 0x5A, 0x07, 0x27, 0xA6, 0xDC]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ProtectedResourceSession1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xD6, 0x2D, 0xF1, 0xD6, 0xFB, 0x76, 0x6E, 0x40, 0x89, 0x61, 0x42, 0x96, 0xEE, 0xFC, 0x04, 0x09]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device7 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x53, 0x4B, 0x01, 0x5C, 0xA1, 0x68, 0x9B, 0x4B, 0x8B, 0xD1, 0xDD, 0x60, 0x46, 0xB9, 0x35, 0x8B]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xBB, 0xE6, 0x18, 0x92, 0x44, 0xF9, 0x7E, 0x4F, 0xA7, 0x5C, 0xB1, 0xB2, 0xC7, 0xB7, 0x01, 0xF3]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Resource1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7A, 0x22, 0x5E, 0x9D, 0x30, 0x44, 0x61, 0x41, 0x88, 0xB3, 0x3E, 0xCA, 0x6B, 0xB1, 0x6E, 0x19]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Resource2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3B, 0xEC, 0x36, 0xBE, 0x85, 0xEA, 0xEB, 0x4A, 0xA4, 0x5A, 0xE9, 0xD7, 0x64, 0x04, 0xA4, 0x95]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Heap1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x89, 0x73, 0x2F, 0x57, 0x68, 0x21, 0xE3, 0x49, 0x96, 0x93, 0xD6, 0xDF, 0x58, 0x71, 0xBF, 0x6D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA7, 0x83, 0xDA, 0x6F, 0x4C, 0xB8, 0x38, 0x4E, 0x9A, 0xC8, 0xC7, 0xBD, 0x22, 0x01, 0x6B, 0x3D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12MetaCommand - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x27, 0x4C, 0xB8, 0xDB, 0xCE, 0x36, 0xC9, 0x4F, 0xB8, 0x01, 0xF0, 0x48, 0xC4, 0x6A, 0xC5, 0x70]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x8E, 0x31, 0x54, 0x87, 0xA9, 0xD3, 0x41, 0x45, 0x98, 0xCF, 0x64, 0x5B, 0x50, 0xDC, 0x48, 0x74]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ShaderCacheSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x5D, 0x49, 0xE2, 0x28, 0x64, 0x0F, 0xE4, 0x4A, 0xA6, 0xEC, 0x12, 0x92, 0x55, 0xDC, 0x49, 0xA8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device9 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x62, 0xE9, 0x80, 0x4C, 0x32, 0xF0, 0x60, 0x4F, 0xBC, 0x9E, 0xEB, 0xC2, 0xCF, 0xA1, 0xD8, 0x3C]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x18, 0x87, 0x7F, 0x51, 0x66, 0xAA, 0xF9, 0x49, 0xB0, 0x2B, 0xA7, 0xAB, 0x89, 0xC0, 0x60, 0x31]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Device11 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x44, 0xC3, 0x05, 0x54, 0x57, 0xD4, 0x4E, 0x44, 0xB4, 0xDD, 0x23, 0x66, 0xE4, 0x5A, 0xEE, 0x39]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VirtualizationGuestDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x68, 0xD3, 0x66, 0xBC, 0x73, 0x73, 0x43, 0x49, 0x87, 0x57, 0xFC, 0x87, 0xDC, 0x79, 0xE4, 0x76]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Tools - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xF0, 0xE1, 0x71, 0x70, 0x4B, 0xE8, 0x33, 0x4B, 0x97, 0x4F, 0x12, 0xFA, 0x49, 0xDE, 0x65, 0xC5]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12SDKConfiguration - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x14, 0x53, 0xEB, 0xE9, 0xAA, 0x33, 0xB2, 0x42, 0xA7, 0x18, 0xD7, 0x7F, 0x58, 0xB1, 0xF1, 0xC7]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12SDKConfiguration1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x03, 0x93, 0xAF, 0x8A, 0x25, 0xAD, 0xB9, 0x48, 0x9A, 0x57, 0xD9, 0xC3, 0x7E, 0x00, 0x9D, 0x9F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xD3, 0x07, 0xF3, 0x61, 0x4E, 0xD3, 0x7C, 0x4E, 0x83, 0x74, 0x3B, 0xA4, 0xDE, 0x23, 0xCC, 0xCB]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceConfiguration - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7B, 0xF8, 0xDB, 0x78, 0x66, 0xF7, 0x2B, 0x42, 0xA6, 0x1C, 0xC8, 0xC4, 0x46, 0xBD, 0xB9, 0xAD]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x59, 0x08, 0x05, 0x55, 0x24, 0x40, 0x4C, 0x47, 0x87, 0xF5, 0x64, 0x72, 0xEA, 0xEE, 0x44, 0xEA]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x90, 0x78, 0x82, 0xC3, 0x48, 0xE5, 0xFA, 0x4C, 0x96, 0xCF, 0x56, 0x89, 0xA9, 0x37, 0x0F, 0x80]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList7 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x23, 0x12, 0x17, 0xDD, 0x61, 0x8B, 0x69, 0x47, 0x90, 0xE3, 0x16, 0x0C, 0xCD, 0xE4, 0xE2, 0xC1]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12GraphicsCommandList8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xF9, 0x6E, 0x93, 0xEE, 0x9D, 0x59, 0x28, 0x4D, 0x93, 0x8E, 0x23, 0xC4, 0xAD, 0x05, 0xCE, 0x51]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D11On12CreatorID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D11On12CreatorID.gen.cs deleted file mode 100644 index 531ffef643..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D11On12CreatorID.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("EDBF5678-2960-4E81-8429-99D4B2630C4E")] -[NativeTypeName("struct D3D11On12CreatorID : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct D3D11On12CreatorID : D3D11On12CreatorID.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_D3D11On12CreatorID)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (D3D11On12CreatorID*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (D3D11On12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (D3D11On12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D12_COMPATIBILITY_SHARED_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D12_COMPATIBILITY_SHARED_FLAGS.gen.cs deleted file mode 100644 index aa637d7c4d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D12_COMPATIBILITY_SHARED_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_COMPATIBILITY_SHARED_FLAGS -{ - /// - - D3D12_COMPATIBILITY_SHARED_FLAG_NONE = 0, - - /// - - D3D12_COMPATIBILITY_SHARED_FLAG_NON_NT_HANDLE = 0x1, - - /// - - D3D12_COMPATIBILITY_SHARED_FLAG_KEYED_MUTEX = 0x2, - - /// - - D3D12_COMPATIBILITY_SHARED_FLAG_9_ON_12 = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D12_REFLECT_SHARED_PROPERTY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D12_REFLECT_SHARED_PROPERTY.gen.cs deleted file mode 100644 index ee219f7f13..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D12_REFLECT_SHARED_PROPERTY.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_REFLECT_SHARED_PROPERTY -{ - /// - - D3D12_REFLECT_SHARED_PROPERTY_D3D11_RESOURCE_FLAGS = 0, - - /// - - D3D12_REFELCT_SHARED_PROPERTY_COMPATIBILITY_SHARED_FLAGS = - (D3D12_REFLECT_SHARED_PROPERTY_D3D11_RESOURCE_FLAGS + 1), - - /// - - D3D12_REFLECT_SHARED_PROPERTY_NON_NT_SHARED_HANDLE = - (D3D12_REFELCT_SHARED_PROPERTY_COMPATIBILITY_SHARED_FLAGS + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D9On12CreatorID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D9On12CreatorID.gen.cs deleted file mode 100644 index ae86729c51..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/D3D9On12CreatorID.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("FFFCBB7F-15D3-42A2-841E-9D8D32F37DDD")] -[NativeTypeName("struct D3D9On12CreatorID : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct D3D9On12CreatorID : D3D9On12CreatorID.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_D3D9On12CreatorID)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (D3D9On12CreatorID*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (D3D9On12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (D3D9On12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLPyTorchCreatorID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLPyTorchCreatorID.gen.cs deleted file mode 100644 index 133e8dbebb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLPyTorchCreatorID.gen.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("AF029192-FBA1-4B05-9116-235E06560354")] -[NativeTypeName("struct DirectMLPyTorchCreatorID : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct DirectMLPyTorchCreatorID - : DirectMLPyTorchCreatorID.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DirectMLPyTorchCreatorID)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (DirectMLPyTorchCreatorID*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (DirectMLPyTorchCreatorID*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (DirectMLPyTorchCreatorID*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLTensorFlowCreatorID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLTensorFlowCreatorID.gen.cs deleted file mode 100644 index 359862f805..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLTensorFlowCreatorID.gen.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("CB7490AC-8A0F-44EC-9B7B-6F4CAFE8E9AB")] -[NativeTypeName("struct DirectMLTensorFlowCreatorID : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct DirectMLTensorFlowCreatorID - : DirectMLTensorFlowCreatorID.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_DirectMLTensorFlowCreatorID)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (DirectMLTensorFlowCreatorID*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (DirectMLTensorFlowCreatorID*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (DirectMLTensorFlowCreatorID*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/ID3D12CompatibilityDevice.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/ID3D12CompatibilityDevice.gen.cs deleted file mode 100644 index 9568eda4b5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/ID3D12CompatibilityDevice.gen.cs +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8F1C0E3C-FAE3-4A82-B098-BFE1708207FF")] -[NativeTypeName("struct ID3D12CompatibilityDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12CompatibilityDevice - : ID3D12CompatibilityDevice.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CompatibilityDevice)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12CompatibilityDevice*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12CompatibilityDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12CompatibilityDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT CreateSharedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const D3D11_RESOURCE_FLAGS *")] D3D11_RESOURCE_FLAGS* pFlags11, - D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, - ID3D12LifetimeTracker* pLifetimeTracker, - ID3D12SwapChainAssistant* pOwningSwapchain, - [NativeTypeName("const IID &")] Guid* riid, - void** ppResource - ) - { - return ( - (delegate* unmanaged< - ID3D12CompatibilityDevice*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - D3D11_RESOURCE_FLAGS*, - D3D12_COMPATIBILITY_SHARED_FLAGS, - ID3D12LifetimeTracker*, - ID3D12SwapChainAssistant*, - Guid*, - void**, - int>)(lpVtbl[3]) - )( - (ID3D12CompatibilityDevice*)Unsafe.AsPointer(ref this), - pHeapProperties, - HeapFlags, - pDesc, - InitialResourceState, - pOptimizedClearValue, - pFlags11, - CompatibilityFlags, - pLifetimeTracker, - pOwningSwapchain, - riid, - ppResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateSharedHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pHeapDesc, - D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12CompatibilityDevice*, - D3D12_HEAP_DESC*, - D3D12_COMPATIBILITY_SHARED_FLAGS, - Guid*, - void**, - int>)(lpVtbl[4]) - )( - (ID3D12CompatibilityDevice*)Unsafe.AsPointer(ref this), - pHeapDesc, - CompatibilityFlags, - riid, - ppHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT ReflectSharedProperties( - ID3D12Object* pHeapOrResource, - D3D12_REFLECT_SHARED_PROPERTY ReflectType, - void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12CompatibilityDevice*, - ID3D12Object*, - D3D12_REFLECT_SHARED_PROPERTY, - void*, - uint, - int>)(lpVtbl[5]) - )( - (ID3D12CompatibilityDevice*)Unsafe.AsPointer(ref this), - pHeapOrResource, - ReflectType, - pData, - DataSize - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT CreateSharedResource( - [NativeTypeName("const D3D12_HEAP_PROPERTIES *")] - D3D12_HEAP_PROPERTIES* pHeapProperties, - D3D12_HEAP_FLAGS HeapFlags, - [NativeTypeName("const D3D12_RESOURCE_DESC *")] D3D12_RESOURCE_DESC* pDesc, - D3D12_RESOURCE_STATES InitialResourceState, - [NativeTypeName("const D3D12_CLEAR_VALUE *")] D3D12_CLEAR_VALUE* pOptimizedClearValue, - [NativeTypeName("const D3D11_RESOURCE_FLAGS *")] D3D11_RESOURCE_FLAGS* pFlags11, - D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, - ID3D12LifetimeTracker* pLifetimeTracker, - ID3D12SwapChainAssistant* pOwningSwapchain, - [NativeTypeName("const IID &")] Guid* riid, - void** ppResource - ); - - [VtblIndex(4)] - HRESULT CreateSharedHeap( - [NativeTypeName("const D3D12_HEAP_DESC *")] D3D12_HEAP_DESC* pHeapDesc, - D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, - [NativeTypeName("const IID &")] Guid* riid, - void** ppHeap - ); - - [VtblIndex(5)] - HRESULT ReflectSharedProperties( - ID3D12Object* pHeapOrResource, - D3D12_REFLECT_SHARED_PROPERTY ReflectType, - void* pData, - uint DataSize - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_PROPERTIES *, D3D12_HEAP_FLAGS, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES, const D3D12_CLEAR_VALUE *, const D3D11_RESOURCE_FLAGS *, D3D12_COMPATIBILITY_SHARED_FLAGS, ID3D12LifetimeTracker *, ID3D12SwapChainAssistant *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_PROPERTIES*, - D3D12_HEAP_FLAGS, - D3D12_RESOURCE_DESC*, - D3D12_RESOURCE_STATES, - D3D12_CLEAR_VALUE*, - D3D11_RESOURCE_FLAGS*, - D3D12_COMPATIBILITY_SHARED_FLAGS, - ID3D12LifetimeTracker*, - ID3D12SwapChainAssistant*, - Guid*, - void**, - int> CreateSharedResource; - - [NativeTypeName( - "HRESULT (const D3D12_HEAP_DESC *, D3D12_COMPATIBILITY_SHARED_FLAGS, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_HEAP_DESC*, - D3D12_COMPATIBILITY_SHARED_FLAGS, - Guid*, - void**, - int> CreateSharedHeap; - - [NativeTypeName( - "HRESULT (ID3D12Object *, D3D12_REFLECT_SHARED_PROPERTY, void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Object*, - D3D12_REFLECT_SHARED_PROPERTY, - void*, - uint, - int> ReflectSharedProperties; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/IID.gen.cs deleted file mode 100644 index 34d34439dd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/IID.gen.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12CompatibilityDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3C, 0x0E, 0x1C, 0x8F, 0xE3, 0xFA, 0x82, 0x4A, 0xB0, 0x98, 0xBF, 0xE1, 0x70, 0x82, 0x07, 0xFF]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_D3D11On12CreatorID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x78, 0x56, 0xBF, 0xED, 0x60, 0x29, 0x81, 0x4E, 0x84, 0x29, 0x99, 0xD4, 0xB2, 0x63, 0x0C, 0x4E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_D3D9On12CreatorID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7F, 0xBB, 0xFC, 0xFF, 0xD3, 0x15, 0xA2, 0x42, 0x84, 0x1E, 0x9D, 0x8D, 0x32, 0xF3, 0x7D, 0xDD]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_OpenGLOn12CreatorID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x34, 0xCD, 0xB3, 0x6B, 0x19, 0x0D, 0xAB, 0x45, 0x97, 0xED, 0xD7, 0x20, 0xBA, 0x3D, 0xFC, 0x80]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_OpenCLOn12CreatorID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x74, 0xBB, 0x76, 0x3F, 0xB5, 0x91, 0x88, 0x4A, 0xB1, 0x26, 0x20, 0xCA, 0x03, 0x31, 0xCD, 0x60]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_DirectMLTensorFlowCreatorID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xAC, 0x90, 0x74, 0xCB, 0x0F, 0x8A, 0xEC, 0x44, 0x9B, 0x7B, 0x6F, 0x4C, 0xAF, 0xE8, 0xE9, 0xAB]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_DirectMLPyTorchCreatorID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x92, 0x91, 0x02, 0xAF, 0xA1, 0xFB, 0x05, 0x4B, 0x91, 0x16, 0x23, 0x5E, 0x06, 0x56, 0x03, 0x54]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/OpenCLOn12CreatorID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/OpenCLOn12CreatorID.gen.cs deleted file mode 100644 index d7c44d4c4a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/OpenCLOn12CreatorID.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("3F76BB74-91B5-4A88-B126-20CA0331CD60")] -[NativeTypeName("struct OpenCLOn12CreatorID : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct OpenCLOn12CreatorID : OpenCLOn12CreatorID.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OpenCLOn12CreatorID)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (OpenCLOn12CreatorID*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (OpenCLOn12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (OpenCLOn12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/OpenGLOn12CreatorID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12compatibility/OpenGLOn12CreatorID.gen.cs deleted file mode 100644 index d3b77d5670..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12compatibility/OpenGLOn12CreatorID.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("6BB3CD34-0D19-45AB-97ED-D720BA3DFC80")] -[NativeTypeName("struct OpenGLOn12CreatorID : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct OpenGLOn12CreatorID : OpenGLOn12CreatorID.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_OpenGLOn12CreatorID)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (OpenGLOn12CreatorID*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (OpenGLOn12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (OpenGLOn12CreatorID*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface { } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12.gen.cs deleted file mode 100644 index b1cebe3a6e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12.gen.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -public static partial class D3D12 -{ - [NativeTypeName("#define D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024")] - public const int D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS.gen.cs deleted file mode 100644 index f8de21d9b9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS -{ - /// - - public D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE ShaderPatchMode; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE.gen.cs deleted file mode 100644 index 0e39187301..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE -{ - /// - - D3D12_DEBUG_COMMAND_LIST_PARAMETER_GPU_BASED_VALIDATION_SETTINGS = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS.gen.cs deleted file mode 100644 index feeb1540cb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS -{ - /// - - public uint MaxMessagesPerCommandList; - - /// - - public D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE DefaultShaderPatchMode; - - /// - - public D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS PipelineStateCreateFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR.gen.cs deleted file mode 100644 index 90df3041cb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR -{ - /// - - public float SlowdownFactor; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_PARAMETER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_PARAMETER_TYPE.gen.cs deleted file mode 100644 index 9a2400cb89..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_PARAMETER_TYPE.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_DEBUG_DEVICE_PARAMETER_TYPE -{ - /// - - D3D12_DEBUG_DEVICE_PARAMETER_FEATURE_FLAGS = 0, - - /// - - D3D12_DEBUG_DEVICE_PARAMETER_GPU_BASED_VALIDATION_SETTINGS = - (D3D12_DEBUG_DEVICE_PARAMETER_FEATURE_FLAGS + 1), - - /// - - D3D12_DEBUG_DEVICE_PARAMETER_GPU_SLOWDOWN_PERFORMANCE_FACTOR = - (D3D12_DEBUG_DEVICE_PARAMETER_GPU_BASED_VALIDATION_SETTINGS + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_FEATURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_FEATURE.gen.cs deleted file mode 100644 index 02b883344f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_FEATURE.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DEBUG_FEATURE -{ - /// - - D3D12_DEBUG_FEATURE_NONE = 0, - - /// - - D3D12_DEBUG_FEATURE_ALLOW_BEHAVIOR_CHANGING_DEBUG_AIDS = 0x1, - - /// - - D3D12_DEBUG_FEATURE_CONSERVATIVE_RESOURCE_STATE_TRACKING = 0x2, - - /// - - D3D12_DEBUG_FEATURE_DISABLE_VIRTUALIZED_BUNDLES_VALIDATION = 0x4, - - /// - - D3D12_DEBUG_FEATURE_EMULATE_WINDOWS7 = 0x8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_FLAGS.gen.cs deleted file mode 100644 index ebbd7794c6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_GPU_BASED_VALIDATION_FLAGS -{ - /// - - D3D12_GPU_BASED_VALIDATION_FLAGS_NONE = 0, - - /// - - D3D12_GPU_BASED_VALIDATION_FLAGS_DISABLE_STATE_TRACKING = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS.gen.cs deleted file mode 100644 index 61610d761d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS -{ - /// - - D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_NONE = 0, - - /// - - D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_TRACKING_ONLY_SHADERS = - 0x1, - - /// - - D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_UNGUARDED_VALIDATION_SHADERS = - 0x2, - - /// - - D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_GUARDED_VALIDATION_SHADERS = - 0x4, - - /// - - D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS_VALID_MASK = 0x7, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE.gen.cs deleted file mode 100644 index 8bc00020c1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE -{ - /// - - D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_NONE = 0, - - /// - - D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_STATE_TRACKING_ONLY = - (D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_NONE + 1), - - /// - - D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_UNGUARDED_VALIDATION = - (D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_STATE_TRACKING_ONLY + 1), - - /// - - D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_GUARDED_VALIDATION = - (D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_UNGUARDED_VALIDATION + 1), - - /// - - NUM_D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODES = - (D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_GUARDED_VALIDATION + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER.gen.cs deleted file mode 100644 index dd68bf94ed..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_INFO_QUEUE_FILTER -{ - /// - - public D3D12_INFO_QUEUE_FILTER_DESC AllowList; - - /// - - public D3D12_INFO_QUEUE_FILTER_DESC DenyList; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER_DESC.gen.cs deleted file mode 100644 index 7f3b220d23..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER_DESC.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_INFO_QUEUE_FILTER_DESC -{ - /// - - public uint NumCategories; - - /// - - public D3D12_MESSAGE_CATEGORY* pCategoryList; - - /// - - public uint NumSeverities; - - /// - - public D3D12_MESSAGE_SEVERITY* pSeverityList; - - /// - - public uint NumIDs; - - /// - - public D3D12_MESSAGE_ID* pIDList; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE.gen.cs deleted file mode 100644 index db1f9b7dea..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_MESSAGE -{ - /// - - public D3D12_MESSAGE_CATEGORY Category; - - /// - - public D3D12_MESSAGE_SEVERITY Severity; - - /// - - public D3D12_MESSAGE_ID ID; - - /// - - [NativeTypeName("const char *")] - public sbyte* pDescription; - - /// - - [NativeTypeName("SIZE_T")] - public nuint DescriptionByteLength; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_CALLBACK_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_CALLBACK_FLAGS.gen.cs deleted file mode 100644 index f04fa877cb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_CALLBACK_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_MESSAGE_CALLBACK_FLAGS -{ - /// - - D3D12_MESSAGE_CALLBACK_FLAG_NONE = 0, - - /// - - D3D12_MESSAGE_CALLBACK_IGNORE_FILTERS = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_CATEGORY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_CATEGORY.gen.cs deleted file mode 100644 index 5de0891f75..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_CATEGORY.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_MESSAGE_CATEGORY -{ - /// - - D3D12_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0, - - /// - - D3D12_MESSAGE_CATEGORY_MISCELLANEOUS = (D3D12_MESSAGE_CATEGORY_APPLICATION_DEFINED + 1), - - /// - - D3D12_MESSAGE_CATEGORY_INITIALIZATION = (D3D12_MESSAGE_CATEGORY_MISCELLANEOUS + 1), - - /// - - D3D12_MESSAGE_CATEGORY_CLEANUP = (D3D12_MESSAGE_CATEGORY_INITIALIZATION + 1), - - /// - - D3D12_MESSAGE_CATEGORY_COMPILATION = (D3D12_MESSAGE_CATEGORY_CLEANUP + 1), - - /// - - D3D12_MESSAGE_CATEGORY_STATE_CREATION = (D3D12_MESSAGE_CATEGORY_COMPILATION + 1), - - /// - - D3D12_MESSAGE_CATEGORY_STATE_SETTING = (D3D12_MESSAGE_CATEGORY_STATE_CREATION + 1), - - /// - - D3D12_MESSAGE_CATEGORY_STATE_GETTING = (D3D12_MESSAGE_CATEGORY_STATE_SETTING + 1), - - /// - - D3D12_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = (D3D12_MESSAGE_CATEGORY_STATE_GETTING + 1), - - /// - - D3D12_MESSAGE_CATEGORY_EXECUTION = (D3D12_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1), - - /// - - D3D12_MESSAGE_CATEGORY_SHADER = (D3D12_MESSAGE_CATEGORY_EXECUTION + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_ID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_ID.gen.cs deleted file mode 100644 index 4e52a083a2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_ID.gen.cs +++ /dev/null @@ -1,3719 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_MESSAGE_ID -{ - /// - - D3D12_MESSAGE_ID_UNKNOWN = 0, - - /// - - D3D12_MESSAGE_ID_STRING_FROM_APPLICATION = 1, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_THIS = 2, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER1 = 3, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER2 = 4, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER3 = 5, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER4 = 6, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER5 = 7, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER6 = 8, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER7 = 9, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER8 = 10, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER9 = 11, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER10 = 12, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER11 = 13, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER12 = 14, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER13 = 15, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER14 = 16, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_PARAMETER15 = 17, - - /// - - D3D12_MESSAGE_ID_CORRUPTED_MULTITHREADING = 18, - - /// - - D3D12_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = 19, - - /// - - D3D12_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = 20, - - /// - - D3D12_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = 21, - - /// - - D3D12_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = 24, - - /// - - D3D12_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = 25, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = 26, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = 27, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = 28, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDVIDEOPLANESLICE = 29, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDPLANESLICE = 30, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = 31, - - /// - - D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = 32, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = 35, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = 36, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = 37, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = 38, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDVIDEOPLANESLICE = 39, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDPLANESLICE = 40, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = 41, - - /// - - D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = 42, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = 45, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = 46, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = 47, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = 48, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = 49, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = 52, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = 53, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = 54, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = 55, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = 56, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = 57, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = 58, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = 59, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = 60, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = 61, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = 62, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = 63, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = 64, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = 65, - - /// - - D3D12_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = 66, - - /// - - D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = 67, - - /// - - D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = 68, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = 69, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = 70, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = 71, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = 72, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = 73, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = 74, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = 75, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED = 76, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = 79, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = 80, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = 81, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = 82, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT = - 83, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = 84, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = 85, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = 86, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = 87, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = 88, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = 89, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = 90, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = 91, - - /// - - D3D12_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = 92, - - /// - - D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = 93, - - /// - - D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = 94, - - /// - - D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = 95, - - /// - - D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = 96, - - /// - - D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = 97, - - /// - - D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = 98, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK = 100, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = 101, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = 102, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = 103, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = 104, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = 105, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = 106, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = 107, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = 108, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = 109, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = 111, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = 112, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = 113, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = 114, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = 115, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = 116, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = 117, - - /// - - D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = 135, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_NOT_SET = 200, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_MISMATCH = 201, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_NOT_SET = 202, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = 209, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL = 210, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_NOT_SET = 211, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_FORMAT_INVALID = 212, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_TOO_SMALL = 213, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INVALID_PRIMITIVETOPOLOGY = 219, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_STRIDE_UNALIGNED = 221, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_OFFSET_UNALIGNED = 222, - - /// - - D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = 232, - - /// - - D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = 233, - - /// - - D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = 234, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = 239, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = 240, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = 245, - - /// - - D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT = 253, - - /// - - D3D12_MESSAGE_ID_LIVE_OBJECT_SUMMARY = 255, - - /// - - D3D12_MESSAGE_ID_LIVE_DEVICE = 274, - - /// - - D3D12_MESSAGE_ID_LIVE_SWAPCHAIN = 275, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS = 276, - - /// - - D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE = 277, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE = 278, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER = 280, - - /// - - D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE = 283, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM = 284, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES = 285, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES = 286, - - /// - - D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES = 287, - - /// - - D3D12_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY = 289, - - /// - - D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE = 290, - - /// - - D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE = 291, - - /// - - D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE = 292, - - /// - - D3D12_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY = 294, - - /// - - D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE = 295, - - /// - - D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE = 296, - - /// - - D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE = 297, - - /// - - D3D12_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED = 310, - - /// - - D3D12_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE = 318, - - /// - - D3D12_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY = 321, - - /// - - D3D12_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE = 322, - - /// - - D3D12_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE = 323, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 331, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 332, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 333, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 334, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED = 335, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 336, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED = 337, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE = 340, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC = 341, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT = 342, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDVIDEOPLANESLICE = 343, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDPLANESLICE = 344, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS = 345, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT = 346, - - /// - - D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS = 354, - - /// - - D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFORCEDSAMPLECOUNT = 401, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDLOGICOPS = 403, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 410, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 412, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 414, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 416, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEEXTENSIONSNOTSUPPORTED = 418, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 420, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 422, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_UAVSNOTSUPPORTED = 425, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_UAVSNOTSUPPORTED = 426, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_UAVSNOTSUPPORTED = 427, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_UAVSNOTSUPPORTED = 428, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UAVSNOTSUPPORTED = 429, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_UAVSNOTSUPPORTED = 430, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_UAVSNOTSUPPORTED = 431, - - /// - - D3D12_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDSOURCERECT = 447, - - /// - - D3D12_MESSAGE_ID_DEVICE_CLEARVIEW_EMPTYRECT = 448, - - /// - - D3D12_MESSAGE_ID_UPDATETILEMAPPINGS_INVALID_PARAMETER = 493, - - /// - - D3D12_MESSAGE_ID_COPYTILEMAPPINGS_INVALID_PARAMETER = 494, - - /// - - D3D12_MESSAGE_ID_CREATEDEVICE_INVALIDARGS = 506, - - /// - - D3D12_MESSAGE_ID_CREATEDEVICE_WARNING = 507, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_TYPE = 519, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_NULL_POINTER = 520, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_SUBRESOURCE = 521, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_RESERVED_BITS = 522, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISSING_BIND_FLAGS = 523, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_MISC_FLAGS = 524, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_MATCHING_STATES = 525, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMBINATION = 526, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_BEFORE_AFTER_MISMATCH = 527, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_RESOURCE = 528, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_SAMPLE_COUNT = 529, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAGS = 530, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMBINED_FLAGS = 531, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAGS_FOR_FORMAT = 532, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_SPLIT_BARRIER = 533, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_UNMATCHED_END = 534, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_UNMATCHED_BEGIN = 535, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAG = 536, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMMAND_LIST_TYPE = 537, - - /// - - D3D12_MESSAGE_ID_INVALID_SUBRESOURCE_STATE = 538, - - /// - - D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_CONTENTION = 540, - - /// - - D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_RESET = 541, - - /// - - D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_RESET_BUNDLE = 542, - - /// - - D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_CANNOT_RESET = 543, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_OPEN = 544, - - /// - - D3D12_MESSAGE_ID_INVALID_BUNDLE_API = 546, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_CLOSED = 547, - - /// - - D3D12_MESSAGE_ID_WRONG_COMMAND_ALLOCATOR_TYPE = 549, - - /// - - D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_SYNC = 552, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_SYNC = 553, - - /// - - D3D12_MESSAGE_ID_SET_DESCRIPTOR_HEAP_INVALID = 554, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMANDQUEUE = 557, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMANDALLOCATOR = 558, - - /// - - D3D12_MESSAGE_ID_CREATE_PIPELINESTATE = 559, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMANDLIST12 = 560, - - /// - - D3D12_MESSAGE_ID_CREATE_RESOURCE = 562, - - /// - - D3D12_MESSAGE_ID_CREATE_DESCRIPTORHEAP = 563, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOTSIGNATURE = 564, - - /// - - D3D12_MESSAGE_ID_CREATE_LIBRARY = 565, - - /// - - D3D12_MESSAGE_ID_CREATE_HEAP = 566, - - /// - - D3D12_MESSAGE_ID_CREATE_MONITOREDFENCE = 567, - - /// - - D3D12_MESSAGE_ID_CREATE_QUERYHEAP = 568, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMANDSIGNATURE = 569, - - /// - - D3D12_MESSAGE_ID_LIVE_COMMANDQUEUE = 570, - - /// - - D3D12_MESSAGE_ID_LIVE_COMMANDALLOCATOR = 571, - - /// - - D3D12_MESSAGE_ID_LIVE_PIPELINESTATE = 572, - - /// - - D3D12_MESSAGE_ID_LIVE_COMMANDLIST12 = 573, - - /// - - D3D12_MESSAGE_ID_LIVE_RESOURCE = 575, - - /// - - D3D12_MESSAGE_ID_LIVE_DESCRIPTORHEAP = 576, - - /// - - D3D12_MESSAGE_ID_LIVE_ROOTSIGNATURE = 577, - - /// - - D3D12_MESSAGE_ID_LIVE_LIBRARY = 578, - - /// - - D3D12_MESSAGE_ID_LIVE_HEAP = 579, - - /// - - D3D12_MESSAGE_ID_LIVE_MONITOREDFENCE = 580, - - /// - - D3D12_MESSAGE_ID_LIVE_QUERYHEAP = 581, - - /// - - D3D12_MESSAGE_ID_LIVE_COMMANDSIGNATURE = 582, - - /// - - D3D12_MESSAGE_ID_DESTROY_COMMANDQUEUE = 583, - - /// - - D3D12_MESSAGE_ID_DESTROY_COMMANDALLOCATOR = 584, - - /// - - D3D12_MESSAGE_ID_DESTROY_PIPELINESTATE = 585, - - /// - - D3D12_MESSAGE_ID_DESTROY_COMMANDLIST12 = 586, - - /// - - D3D12_MESSAGE_ID_DESTROY_RESOURCE = 588, - - /// - - D3D12_MESSAGE_ID_DESTROY_DESCRIPTORHEAP = 589, - - /// - - D3D12_MESSAGE_ID_DESTROY_ROOTSIGNATURE = 590, - - /// - - D3D12_MESSAGE_ID_DESTROY_LIBRARY = 591, - - /// - - D3D12_MESSAGE_ID_DESTROY_HEAP = 592, - - /// - - D3D12_MESSAGE_ID_DESTROY_MONITOREDFENCE = 593, - - /// - - D3D12_MESSAGE_ID_DESTROY_QUERYHEAP = 594, - - /// - - D3D12_MESSAGE_ID_DESTROY_COMMANDSIGNATURE = 595, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDIMENSIONS = 597, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDMISCFLAGS = 599, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDARG_RETURN = 602, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_OUTOFMEMORY_RETURN = 603, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDESC = 604, - - /// - - D3D12_MESSAGE_ID_POSSIBLY_INVALID_SUBRESOURCE_STATE = 607, - - /// - - D3D12_MESSAGE_ID_INVALID_USE_OF_NON_RESIDENT_RESOURCE = 608, - - /// - - D3D12_MESSAGE_ID_POSSIBLE_INVALID_USE_OF_NON_RESIDENT_RESOURCE = 609, - - /// - - D3D12_MESSAGE_ID_BUNDLE_PIPELINE_STATE_MISMATCH = 610, - - /// - - D3D12_MESSAGE_ID_PRIMITIVE_TOPOLOGY_MISMATCH_PIPELINE_STATE = 611, - - /// - - D3D12_MESSAGE_ID_RENDER_TARGET_FORMAT_MISMATCH_PIPELINE_STATE = 613, - - /// - - D3D12_MESSAGE_ID_RENDER_TARGET_SAMPLE_DESC_MISMATCH_PIPELINE_STATE = 614, - - /// - - D3D12_MESSAGE_ID_DEPTH_STENCIL_FORMAT_MISMATCH_PIPELINE_STATE = 615, - - /// - - D3D12_MESSAGE_ID_DEPTH_STENCIL_SAMPLE_DESC_MISMATCH_PIPELINE_STATE = 616, - - /// - - D3D12_MESSAGE_ID_CREATESHADER_INVALIDBYTECODE = 622, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_NULLDESC = 623, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_INVALIDSIZE = 624, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDHEAPTYPE = 625, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDCPUPAGEPROPERTIES = 626, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDMEMORYPOOL = 627, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_INVALIDPROPERTIES = 628, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_INVALIDALIGNMENT = 629, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDMISCFLAGS = 630, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_INVALIDMISCFLAGS = 631, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_INVALIDARG_RETURN = 632, - - /// - - D3D12_MESSAGE_ID_CREATEHEAP_OUTOFMEMORY_RETURN = 633, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLHEAPPROPERTIES = 634, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDHEAPTYPE = 635, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDCPUPAGEPROPERTIES = 636, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDMEMORYPOOL = 637, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPPROPERTIES = 638, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDHEAPMISCFLAGS = 639, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPMISCFLAGS = 640, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDARG_RETURN = 641, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_OUTOFMEMORY_RETURN = 642, - - /// - - D3D12_MESSAGE_ID_GETCUSTOMHEAPPROPERTIES_UNRECOGNIZEDHEAPTYPE = 643, - - /// - - D3D12_MESSAGE_ID_GETCUSTOMHEAPPROPERTIES_INVALIDHEAPTYPE = 644, - - /// - - D3D12_MESSAGE_ID_CREATE_DESCRIPTOR_HEAP_INVALID_DESC = 645, - - /// - - D3D12_MESSAGE_ID_INVALID_DESCRIPTOR_HANDLE = 646, - - /// - - D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_CONSERVATIVERASTERMODE = 647, - - /// - - D3D12_MESSAGE_ID_CREATE_CONSTANT_BUFFER_VIEW_INVALID_RESOURCE = 649, - - /// - - D3D12_MESSAGE_ID_CREATE_CONSTANT_BUFFER_VIEW_INVALID_DESC = 650, - - /// - - D3D12_MESSAGE_ID_CREATE_UNORDEREDACCESS_VIEW_INVALID_COUNTER_USAGE = 652, - - /// - - D3D12_MESSAGE_ID_COPY_DESCRIPTORS_INVALID_RANGES = 653, - - /// - - D3D12_MESSAGE_ID_COPY_DESCRIPTORS_WRITE_ONLY_DESCRIPTOR = 654, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RTV_FORMAT_NOT_UNKNOWN = 655, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_RENDER_TARGET_COUNT = 656, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VERTEX_SHADER_NOT_SET = 657, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INPUTLAYOUT_NOT_SET = 658, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_HS_DS_SIGNATURE_MISMATCH = 659, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_REGISTERINDEX = 660, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_COMPONENTTYPE = 661, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_REGISTERMASK = 662, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_SYSTEMVALUE = 663, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = 664, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_MINPRECISION = 665, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = 666, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_XOR_DS_MISMATCH = 667, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH = 668, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_DS_CONTROL_POINT_COUNT_MISMATCH = 669, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_DS_TESSELLATOR_DOMAIN_MISMATCH = 670, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = 671, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_USE_OF_FORCED_SAMPLE_COUNT = 672, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_PRIMITIVETOPOLOGY = 673, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_SYSTEMVALUE = 674, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = - 675, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = 676, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_OUTPUT_TYPE_MISMATCH = 677, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_RENDER_TARGET_DOES_NOT_SUPPORT_LOGIC_OPS = 678, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDERTARGETVIEW_NOT_SET = 679, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DEPTHSTENCILVIEW_NOT_SET = 680, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_GS_INPUT_PRIMITIVE_MISMATCH = 681, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_POSITION_NOT_PRESENT = 682, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MISSING_ROOT_SIGNATURE_FLAGS = 683, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_INDEX_BUFFER_PROPERTIES = 684, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_SAMPLE_DESC = 685, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_ROOT_SIGNATURE_MISMATCH = 686, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DS_ROOT_SIGNATURE_MISMATCH = 687, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VS_ROOT_SIGNATURE_MISMATCH = 688, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_GS_ROOT_SIGNATURE_MISMATCH = 689, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_ROOT_SIGNATURE_MISMATCH = 690, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MISSING_ROOT_SIGNATURE = 691, - - /// - - D3D12_MESSAGE_ID_EXECUTE_BUNDLE_OPEN_BUNDLE = 692, - - /// - - D3D12_MESSAGE_ID_EXECUTE_BUNDLE_DESCRIPTOR_HEAP_MISMATCH = 693, - - /// - - D3D12_MESSAGE_ID_EXECUTE_BUNDLE_TYPE = 694, - - /// - - D3D12_MESSAGE_ID_DRAW_EMPTY_SCISSOR_RECTANGLE = 695, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_BLOB_NOT_FOUND = 696, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_DESERIALIZE_FAILED = 697, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_INVALID_CONFIGURATION = 698, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_SUPPORTED_ON_DEVICE = 699, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLRESOURCEPROPERTIES = 700, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLHEAP = 701, - - /// - - D3D12_MESSAGE_ID_GETRESOURCEALLOCATIONINFO_INVALIDRDESCS = 702, - - /// - - D3D12_MESSAGE_ID_MAKERESIDENT_NULLOBJECTARRAY = 703, - - /// - - D3D12_MESSAGE_ID_EVICT_NULLOBJECTARRAY = 705, - - /// - - D3D12_MESSAGE_ID_SET_DESCRIPTOR_TABLE_INVALID = 708, - - /// - - D3D12_MESSAGE_ID_SET_ROOT_CONSTANT_INVALID = 709, - - /// - - D3D12_MESSAGE_ID_SET_ROOT_CONSTANT_BUFFER_VIEW_INVALID = 710, - - /// - - D3D12_MESSAGE_ID_SET_ROOT_SHADER_RESOURCE_VIEW_INVALID = 711, - - /// - - D3D12_MESSAGE_ID_SET_ROOT_UNORDERED_ACCESS_VIEW_INVALID = 712, - - /// - - D3D12_MESSAGE_ID_SET_VERTEX_BUFFERS_INVALID_DESC = 713, - - /// - - D3D12_MESSAGE_ID_SET_INDEX_BUFFER_INVALID_DESC = 715, - - /// - - D3D12_MESSAGE_ID_SET_STREAM_OUTPUT_BUFFERS_INVALID_DESC = 717, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDDIMENSIONALITY = 718, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDLAYOUT = 719, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDIMENSIONALITY = 720, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT = 721, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDMIPLEVELS = 722, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDSAMPLEDESC = 723, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDLAYOUT = 724, - - /// - - D3D12_MESSAGE_ID_SET_INDEX_BUFFER_INVALID = 725, - - /// - - D3D12_MESSAGE_ID_SET_VERTEX_BUFFERS_INVALID = 726, - - /// - - D3D12_MESSAGE_ID_SET_STREAM_OUTPUT_BUFFERS_INVALID = 727, - - /// - - D3D12_MESSAGE_ID_SET_RENDER_TARGETS_INVALID = 728, - - /// - - D3D12_MESSAGE_ID_CREATEQUERY_HEAP_INVALID_PARAMETERS = 729, - - /// - - D3D12_MESSAGE_ID_BEGIN_END_QUERY_INVALID_PARAMETERS = 731, - - /// - - D3D12_MESSAGE_ID_CLOSE_COMMAND_LIST_OPEN_QUERY = 732, - - /// - - D3D12_MESSAGE_ID_RESOLVE_QUERY_DATA_INVALID_PARAMETERS = 733, - - /// - - D3D12_MESSAGE_ID_SET_PREDICATION_INVALID_PARAMETERS = 734, - - /// - - D3D12_MESSAGE_ID_TIMESTAMPS_NOT_SUPPORTED = 735, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDFORMAT = 737, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDFORMAT = 738, - - /// - - D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_INVALIDSUBRESOURCERANGE = 739, - - /// - - D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_INVALIDBASEOFFSET = 740, - - /// - - D3D12_MESSAGE_ID_GETCOPYABLELAYOUT_INVALIDSUBRESOURCERANGE = 739, - - /// - - D3D12_MESSAGE_ID_GETCOPYABLELAYOUT_INVALIDBASEOFFSET = 740, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_HEAP = 741, - - /// - - D3D12_MESSAGE_ID_CREATE_SAMPLER_INVALID = 742, - - /// - - D3D12_MESSAGE_ID_CREATECOMMANDSIGNATURE_INVALID = 743, - - /// - - D3D12_MESSAGE_ID_EXECUTE_INDIRECT_INVALID_PARAMETERS = 744, - - /// - - D3D12_MESSAGE_ID_GETGPUVIRTUALADDRESS_INVALID_RESOURCE_DIMENSION = 745, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDCLEARVALUE = 815, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDCLEARVALUEFORMAT = 816, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDCLEARVALUEFORMAT = 817, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_CLEARVALUEDENORMFLUSH = 818, - - /// - - D3D12_MESSAGE_ID_CLEARRENDERTARGETVIEW_MISMATCHINGCLEARVALUE = 820, - - /// - - D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_MISMATCHINGCLEARVALUE = 821, - - /// - - D3D12_MESSAGE_ID_MAP_INVALIDHEAP = 822, - - /// - - D3D12_MESSAGE_ID_UNMAP_INVALIDHEAP = 823, - - /// - - D3D12_MESSAGE_ID_MAP_INVALIDRESOURCE = 824, - - /// - - D3D12_MESSAGE_ID_UNMAP_INVALIDRESOURCE = 825, - - /// - - D3D12_MESSAGE_ID_MAP_INVALIDSUBRESOURCE = 826, - - /// - - D3D12_MESSAGE_ID_UNMAP_INVALIDSUBRESOURCE = 827, - - /// - - D3D12_MESSAGE_ID_MAP_INVALIDRANGE = 828, - - /// - - D3D12_MESSAGE_ID_UNMAP_INVALIDRANGE = 829, - - /// - - D3D12_MESSAGE_ID_MAP_INVALIDDATAPOINTER = 832, - - /// - - D3D12_MESSAGE_ID_MAP_INVALIDARG_RETURN = 833, - - /// - - D3D12_MESSAGE_ID_MAP_OUTOFMEMORY_RETURN = 834, - - /// - - D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_BUNDLENOTSUPPORTED = 835, - - /// - - D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_COMMANDLISTMISMATCH = 836, - - /// - - D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_OPENCOMMANDLIST = 837, - - /// - - D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_FAILEDCOMMANDLIST = 838, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_NULLDST = 839, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDDSTRESOURCEDIMENSION = 840, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_DSTRANGEOUTOFBOUNDS = 841, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_NULLSRC = 842, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDSRCRESOURCEDIMENSION = 843, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_SRCRANGEOUTOFBOUNDS = 844, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDCOPYFLAGS = 845, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_NULLDST = 846, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDDSTTYPE = 847, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTRESOURCEDIMENSION = 848, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTRESOURCE = 849, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTSUBRESOURCE = 850, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTOFFSET = 851, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDDSTFORMAT = 852, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTFORMAT = 853, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTDIMENSIONS = 854, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTROWPITCH = 855, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTPLACEMENT = 856, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTDSPLACEDFOOTPRINTFORMAT = 857, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_DSTREGIONOUTOFBOUNDS = 858, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_NULLSRC = 859, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDSRCTYPE = 860, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCRESOURCEDIMENSION = 861, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCRESOURCE = 862, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCSUBRESOURCE = 863, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCOFFSET = 864, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDSRCFORMAT = 865, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCFORMAT = 866, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCDIMENSIONS = 867, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCROWPITCH = 868, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCPLACEMENT = 869, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCDSPLACEDFOOTPRINTFORMAT = 870, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_SRCREGIONOUTOFBOUNDS = 871, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTCOORDINATES = 872, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCBOX = 873, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_FORMATMISMATCH = 874, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_EMPTYBOX = 875, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDCOPYFLAGS = 876, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_SUBRESOURCE_INDEX = 877, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_FORMAT = 878, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_RESOURCE_MISMATCH = 879, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_SAMPLE_COUNT = 880, - - /// - - D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_INVALID_SHADER = 881, - - /// - - D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_CS_ROOT_SIGNATURE_MISMATCH = 882, - - /// - - D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_MISSING_ROOT_SIGNATURE = 883, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALIDCACHEDBLOB = 884, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBADAPTERMISMATCH = 885, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBDRIVERVERSIONMISMATCH = 886, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBDESCMISMATCH = 887, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBIGNORED = 888, - - /// - - D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDHEAP = 889, - - /// - - D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDRESOURCE = 890, - - /// - - D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDBOX = 891, - - /// - - D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDSUBRESOURCE = 892, - - /// - - D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_EMPTYBOX = 893, - - /// - - D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDHEAP = 894, - - /// - - D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDRESOURCE = 895, - - /// - - D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDBOX = 896, - - /// - - D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDSUBRESOURCE = 897, - - /// - - D3D12_MESSAGE_ID_READFROMSUBRESOURCE_EMPTYBOX = 898, - - /// - - D3D12_MESSAGE_ID_TOO_MANY_NODES_SPECIFIED = 899, - - /// - - D3D12_MESSAGE_ID_INVALID_NODE_INDEX = 900, - - /// - - D3D12_MESSAGE_ID_GETHEAPPROPERTIES_INVALIDRESOURCE = 901, - - /// - - D3D12_MESSAGE_ID_NODE_MASK_MISMATCH = 902, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_OUTOFMEMORY = 903, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_MULTIPLE_SWAPCHAIN_BUFFER_REFERENCES = 904, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_TOO_MANY_SWAPCHAIN_REFERENCES = 905, - - /// - - D3D12_MESSAGE_ID_COMMAND_QUEUE_TOO_MANY_SWAPCHAIN_REFERENCES = 906, - - /// - - D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_WRONGSWAPCHAINBUFFERREFERENCE = 907, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_SETRENDERTARGETS_INVALIDNUMRENDERTARGETS = 908, - - /// - - D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_TYPE = 909, - - /// - - D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_FLAGS = 910, - - /// - - D3D12_MESSAGE_ID_CREATESHAREDRESOURCE_INVALIDFLAGS = 911, - - /// - - D3D12_MESSAGE_ID_CREATESHAREDRESOURCE_INVALIDFORMAT = 912, - - /// - - D3D12_MESSAGE_ID_CREATESHAREDHEAP_INVALIDFLAGS = 913, - - /// - - D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_UNRECOGNIZEDPROPERTIES = 914, - - /// - - D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_INVALIDSIZE = 915, - - /// - - D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_INVALIDOBJECT = 916, - - /// - - D3D12_MESSAGE_ID_KEYEDMUTEX_INVALIDOBJECT = 917, - - /// - - D3D12_MESSAGE_ID_KEYEDMUTEX_INVALIDKEY = 918, - - /// - - D3D12_MESSAGE_ID_KEYEDMUTEX_WRONGSTATE = 919, - - /// - - D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_PRIORITY = 920, - - /// - - D3D12_MESSAGE_ID_OBJECT_DELETED_WHILE_STILL_IN_USE = 921, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALID_FLAGS = 922, - - /// - - D3D12_MESSAGE_ID_HEAP_ADDRESS_RANGE_HAS_NO_RESOURCE = 923, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_RENDER_TARGET_DELETED = 924, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_ALL_RENDER_TARGETS_HAVE_UNKNOWN_FORMAT = 925, - - /// - - D3D12_MESSAGE_ID_HEAP_ADDRESS_RANGE_INTERSECTS_MULTIPLE_BUFFERS = 926, - - /// - - D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_GPU_WRITTEN_READBACK_RESOURCE_MAPPED = 927, - - /// - - D3D12_MESSAGE_ID_UNMAP_RANGE_NOT_EMPTY = 929, - - /// - - D3D12_MESSAGE_ID_MAP_INVALID_NULLRANGE = 930, - - /// - - D3D12_MESSAGE_ID_UNMAP_INVALID_NULLRANGE = 931, - - /// - - D3D12_MESSAGE_ID_NO_GRAPHICS_API_SUPPORT = 932, - - /// - - D3D12_MESSAGE_ID_NO_COMPUTE_API_SUPPORT = 933, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_RESOURCE_FLAGS_NOT_SUPPORTED = 934, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_ROOT_ARGUMENT_UNINITIALIZED = 935, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_HEAP_INDEX_OUT_OF_BOUNDS = 936, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_TABLE_REGISTER_INDEX_OUT_OF_BOUNDS = 937, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_UNINITIALIZED = 938, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_TYPE_MISMATCH = 939, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_SRV_RESOURCE_DIMENSION_MISMATCH = 940, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UAV_RESOURCE_DIMENSION_MISMATCH = 941, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INCOMPATIBLE_RESOURCE_STATE = 942, - - /// - - D3D12_MESSAGE_ID_COPYRESOURCE_NULLDST = 943, - - /// - - D3D12_MESSAGE_ID_COPYRESOURCE_INVALIDDSTRESOURCE = 944, - - /// - - D3D12_MESSAGE_ID_COPYRESOURCE_NULLSRC = 945, - - /// - - D3D12_MESSAGE_ID_COPYRESOURCE_INVALIDSRCRESOURCE = 946, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_NULLDST = 947, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALIDDSTRESOURCE = 948, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_NULLSRC = 949, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALIDSRCRESOURCE = 950, - - /// - - D3D12_MESSAGE_ID_PIPELINE_STATE_TYPE_MISMATCH = 951, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DISPATCH_ROOT_SIGNATURE_NOT_SET = 952, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DISPATCH_ROOT_SIGNATURE_MISMATCH = 953, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_ZERO_BARRIERS = 954, - - /// - - D3D12_MESSAGE_ID_BEGIN_END_EVENT_MISMATCH = 955, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_POSSIBLE_BEFORE_AFTER_MISMATCH = 956, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_BEGIN_END = 957, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INVALID_RESOURCE = 958, - - /// - - D3D12_MESSAGE_ID_USE_OF_ZERO_REFCOUNT_OBJECT = 959, - - /// - - D3D12_MESSAGE_ID_OBJECT_EVICTED_WHILE_STILL_IN_USE = 960, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_ROOT_DESCRIPTOR_ACCESS_OUT_OF_BOUNDS = 961, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_INVALIDLIBRARYBLOB = 962, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_DRIVERVERSIONMISMATCH = 963, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_ADAPTERVERSIONMISMATCH = 964, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_UNSUPPORTED = 965, - - /// - - D3D12_MESSAGE_ID_CREATE_PIPELINELIBRARY = 966, - - /// - - D3D12_MESSAGE_ID_LIVE_PIPELINELIBRARY = 967, - - /// - - D3D12_MESSAGE_ID_DESTROY_PIPELINELIBRARY = 968, - - /// - - D3D12_MESSAGE_ID_STOREPIPELINE_NONAME = 969, - - /// - - D3D12_MESSAGE_ID_STOREPIPELINE_DUPLICATENAME = 970, - - /// - - D3D12_MESSAGE_ID_LOADPIPELINE_NAMENOTFOUND = 971, - - /// - - D3D12_MESSAGE_ID_LOADPIPELINE_INVALIDDESC = 972, - - /// - - D3D12_MESSAGE_ID_PIPELINELIBRARY_SERIALIZE_NOTENOUGHMEMORY = 973, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_OUTPUT_RT_OUTPUT_MISMATCH = 974, - - /// - - D3D12_MESSAGE_ID_SETEVENTONMULTIPLEFENCECOMPLETION_INVALIDFLAGS = 975, - - /// - - D3D12_MESSAGE_ID_CREATE_QUEUE_VIDEO_NOT_SUPPORTED = 976, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_ALLOCATOR_VIDEO_NOT_SUPPORTED = 977, - - /// - - D3D12_MESSAGE_ID_CREATEQUERY_HEAP_VIDEO_DECODE_STATISTICS_NOT_SUPPORTED = 978, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEODECODECOMMANDLIST = 979, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEODECODER = 980, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEODECODESTREAM = 981, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEODECODECOMMANDLIST = 982, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEODECODER = 983, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEODECODESTREAM = 984, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEODECODECOMMANDLIST = 985, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEODECODER = 986, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEODECODESTREAM = 987, - - /// - - D3D12_MESSAGE_ID_DECODE_FRAME_INVALID_PARAMETERS = 988, - - /// - - D3D12_MESSAGE_ID_DEPRECATED_API = 989, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_COMMAND_LIST_TYPE = 990, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DESCRIPTOR_TABLE_NOT_SET = 991, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_CONSTANT_BUFFER_VIEW_NOT_SET = 992, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_SHADER_RESOURCE_VIEW_NOT_SET = 993, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_UNORDERED_ACCESS_VIEW_NOT_SET = 994, - - /// - - D3D12_MESSAGE_ID_DISCARD_INVALID_SUBRESOURCE_RANGE = 995, - - /// - - D3D12_MESSAGE_ID_DISCARD_ONE_SUBRESOURCE_FOR_MIPS_WITH_RECTS = 996, - - /// - - D3D12_MESSAGE_ID_DISCARD_NO_RECTS_FOR_NON_TEXTURE2D = 997, - - /// - - D3D12_MESSAGE_ID_COPY_ON_SAME_SUBRESOURCE = 998, - - /// - - D3D12_MESSAGE_ID_SETRESIDENCYPRIORITY_INVALID_PAGEABLE = 999, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UNSUPPORTED = 1000, - - /// - - D3D12_MESSAGE_ID_STATIC_DESCRIPTOR_INVALID_DESCRIPTOR_CHANGE = 1001, - - /// - - D3D12_MESSAGE_ID_DATA_STATIC_DESCRIPTOR_INVALID_DATA_CHANGE = 1002, - - /// - - D3D12_MESSAGE_ID_DATA_STATIC_WHILE_SET_AT_EXECUTE_DESCRIPTOR_INVALID_DATA_CHANGE = 1003, - - /// - - D3D12_MESSAGE_ID_EXECUTE_BUNDLE_STATIC_DESCRIPTOR_DATA_STATIC_NOT_SET = 1004, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_RESOURCE_ACCESS_OUT_OF_BOUNDS = 1005, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_SAMPLER_MODE_MISMATCH = 1006, - - /// - - D3D12_MESSAGE_ID_CREATE_FENCE_INVALID_FLAGS = 1007, - - /// - - D3D12_MESSAGE_ID_RESOURCE_BARRIER_DUPLICATE_SUBRESOURCE_TRANSITIONS = 1008, - - /// - - D3D12_MESSAGE_ID_SETRESIDENCYPRIORITY_INVALID_PRIORITY = 1009, - - /// - - D3D12_MESSAGE_ID_CREATE_DESCRIPTOR_HEAP_LARGE_NUM_DESCRIPTORS = 1013, - - /// - - D3D12_MESSAGE_ID_BEGIN_EVENT = 1014, - - /// - - D3D12_MESSAGE_ID_END_EVENT = 1015, - - /// - - D3D12_MESSAGE_ID_CREATEDEVICE_DEBUG_LAYER_STARTUP_OPTIONS = 1016, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_DEPTHBOUNDSTEST_UNSUPPORTED = 1017, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_DUPLICATE_SUBOBJECT = 1018, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_UNKNOWN_SUBOBJECT = 1019, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_ZERO_SIZE_STREAM = 1020, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALID_STREAM = 1021, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CANNOT_DEDUCE_TYPE = 1022, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_STATIC_DESCRIPTOR_RESOURCE_DIMENSION_MISMATCH = 1023, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_QUEUE_INSUFFICIENT_PRIVILEGE_FOR_GLOBAL_REALTIME = 1024, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_QUEUE_INSUFFICIENT_HARDWARE_SUPPORT_FOR_GLOBAL_REALTIME = 1025, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_ARCHITECTURE = 1026, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DST = 1027, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DST_RESOURCE_DIMENSION = 1028, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DST_RANGE_OUT_OF_BOUNDS = 1029, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_SRC = 1030, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_SRC_RESOURCE_DIMENSION = 1031, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_SRC_RANGE_OUT_OF_BOUNDS = 1032, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_OFFSET_ALIGNMENT = 1033, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DEPENDENT_RESOURCES = 1034, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DEPENDENT_SUBRESOURCE_RANGES = 1035, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DEPENDENT_RESOURCE = 1036, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DEPENDENT_SUBRESOURCE_RANGE = 1037, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DEPENDENT_SUBRESOURCE_OUT_OF_BOUNDS = 1038, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DEPENDENT_RANGE_OUT_OF_BOUNDS = 1039, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_ZERO_DEPENDENCIES = 1040, - - /// - - D3D12_MESSAGE_ID_DEVICE_CREATE_SHARED_HANDLE_INVALIDARG = 1041, - - /// - - D3D12_MESSAGE_ID_DESCRIPTOR_HANDLE_WITH_INVALID_RESOURCE = 1042, - - /// - - D3D12_MESSAGE_ID_SETDEPTHBOUNDS_INVALIDARGS = 1043, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_RESOURCE_STATE_IMPRECISE = 1044, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_PIPELINE_STATE_NOT_SET = 1045, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_MODEL_MISMATCH = 1046, - - /// - - D3D12_MESSAGE_ID_OBJECT_ACCESSED_WHILE_STILL_IN_USE = 1047, - - /// - - D3D12_MESSAGE_ID_PROGRAMMABLE_MSAA_UNSUPPORTED = 1048, - - /// - - D3D12_MESSAGE_ID_SETSAMPLEPOSITIONS_INVALIDARGS = 1049, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCEREGION_INVALID_RECT = 1050, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEODECODECOMMANDQUEUE = 1051, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSCOMMANDLIST = 1052, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSCOMMANDQUEUE = 1053, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEODECODECOMMANDQUEUE = 1054, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSCOMMANDLIST = 1055, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSCOMMANDQUEUE = 1056, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEODECODECOMMANDQUEUE = 1057, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSCOMMANDLIST = 1058, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSCOMMANDQUEUE = 1059, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSOR = 1060, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSSTREAM = 1061, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSOR = 1062, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSSTREAM = 1063, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSOR = 1064, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSSTREAM = 1065, - - /// - - D3D12_MESSAGE_ID_PROCESS_FRAME_INVALID_PARAMETERS = 1066, - - /// - - D3D12_MESSAGE_ID_COPY_INVALIDLAYOUT = 1067, - - /// - - D3D12_MESSAGE_ID_CREATE_CRYPTO_SESSION = 1068, - - /// - - D3D12_MESSAGE_ID_CREATE_CRYPTO_SESSION_POLICY = 1069, - - /// - - D3D12_MESSAGE_ID_CREATE_PROTECTED_RESOURCE_SESSION = 1070, - - /// - - D3D12_MESSAGE_ID_LIVE_CRYPTO_SESSION = 1071, - - /// - - D3D12_MESSAGE_ID_LIVE_CRYPTO_SESSION_POLICY = 1072, - - /// - - D3D12_MESSAGE_ID_LIVE_PROTECTED_RESOURCE_SESSION = 1073, - - /// - - D3D12_MESSAGE_ID_DESTROY_CRYPTO_SESSION = 1074, - - /// - - D3D12_MESSAGE_ID_DESTROY_CRYPTO_SESSION_POLICY = 1075, - - /// - - D3D12_MESSAGE_ID_DESTROY_PROTECTED_RESOURCE_SESSION = 1076, - - /// - - D3D12_MESSAGE_ID_PROTECTED_RESOURCE_SESSION_UNSUPPORTED = 1077, - - /// - - D3D12_MESSAGE_ID_FENCE_INVALIDOPERATION = 1078, - - /// - - D3D12_MESSAGE_ID_CREATEQUERY_HEAP_COPY_QUEUE_TIMESTAMPS_NOT_SUPPORTED = 1079, - - /// - - D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_DEFERRED = 1080, - - /// - - D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_RECORDTIME_ASSUMEDFROMFIRSTUSE = 1081, - - /// - - D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_RECORDTIME_ASSUMEDFROMCLEAR = 1082, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEODECODERHEAP = 1083, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEODECODERHEAP = 1084, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEODECODERHEAP = 1085, - - /// - - D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDARG_RETURN = 1086, - - /// - - D3D12_MESSAGE_ID_OPENEXISTINGHEAP_OUTOFMEMORY_RETURN = 1087, - - /// - - D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDADDRESS = 1088, - - /// - - D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDHANDLE = 1089, - - /// - - D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_DEST = 1090, - - /// - - D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_MODE = 1091, - - /// - - D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_ALIGNMENT = 1092, - - /// - - D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_NOT_SUPPORTED = 1093, - - /// - - D3D12_MESSAGE_ID_SETVIEWINSTANCEMASK_INVALIDARGS = 1094, - - /// - - D3D12_MESSAGE_ID_VIEW_INSTANCING_UNSUPPORTED = 1095, - - /// - - D3D12_MESSAGE_ID_VIEW_INSTANCING_INVALIDARGS = 1096, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_MISMATCH_DECODE_REFERENCE_ONLY_FLAG = 1097, - - /// - - D3D12_MESSAGE_ID_COPYRESOURCE_MISMATCH_DECODE_REFERENCE_ONLY_FLAG = 1098, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_DECODE_HEAP_CAPS_FAILURE = 1099, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_DECODE_HEAP_CAPS_UNSUPPORTED = 1100, - - /// - - D3D12_MESSAGE_ID_VIDEO_DECODE_SUPPORT_INVALID_INPUT = 1101, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_DECODER_UNSUPPORTED = 1102, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_METADATA_ERROR = 1103, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VIEW_INSTANCING_VERTEX_SIZE_EXCEEDED = 1104, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RUNTIME_INTERNAL_ERROR = 1105, - - /// - - D3D12_MESSAGE_ID_NO_VIDEO_API_SUPPORT = 1106, - - /// - - D3D12_MESSAGE_ID_VIDEO_PROCESS_SUPPORT_INVALID_INPUT = 1107, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_PROCESSOR_CAPS_FAILURE = 1108, - - /// - - D3D12_MESSAGE_ID_VIDEO_PROCESS_SUPPORT_UNSUPPORTED_FORMAT = 1109, - - /// - - D3D12_MESSAGE_ID_VIDEO_DECODE_FRAME_INVALID_ARGUMENT = 1110, - - /// - - D3D12_MESSAGE_ID_ENQUEUE_MAKE_RESIDENT_INVALID_FLAGS = 1111, - - /// - - D3D12_MESSAGE_ID_OPENEXISTINGHEAP_UNSUPPORTED = 1112, - - /// - - D3D12_MESSAGE_ID_VIDEO_PROCESS_FRAMES_INVALID_ARGUMENT = 1113, - - /// - - D3D12_MESSAGE_ID_VIDEO_DECODE_SUPPORT_UNSUPPORTED = 1114, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMANDRECORDER = 1115, - - /// - - D3D12_MESSAGE_ID_LIVE_COMMANDRECORDER = 1116, - - /// - - D3D12_MESSAGE_ID_DESTROY_COMMANDRECORDER = 1117, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_VIDEO_NOT_SUPPORTED = 1118, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_INVALID_SUPPORT_FLAGS = 1119, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_INVALID_FLAGS = 1120, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_MORE_RECORDERS_THAN_LOGICAL_PROCESSORS = 1121, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMANDPOOL = 1122, - - /// - - D3D12_MESSAGE_ID_LIVE_COMMANDPOOL = 1123, - - /// - - D3D12_MESSAGE_ID_DESTROY_COMMANDPOOL = 1124, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_POOL_INVALID_FLAGS = 1125, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_VIDEO_NOT_SUPPORTED = 1126, - - /// - - D3D12_MESSAGE_ID_COMMAND_RECORDER_SUPPORT_FLAGS_MISMATCH = 1127, - - /// - - D3D12_MESSAGE_ID_COMMAND_RECORDER_CONTENTION = 1128, - - /// - - D3D12_MESSAGE_ID_COMMAND_RECORDER_USAGE_WITH_CREATECOMMANDLIST_COMMAND_LIST = 1129, - - /// - - D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_USAGE_WITH_CREATECOMMANDLIST1_COMMAND_LIST = 1130, - - /// - - D3D12_MESSAGE_ID_CANNOT_EXECUTE_EMPTY_COMMAND_LIST = 1131, - - /// - - D3D12_MESSAGE_ID_CANNOT_RESET_COMMAND_POOL_WITH_OPEN_COMMAND_LISTS = 1132, - - /// - - D3D12_MESSAGE_ID_CANNOT_USE_COMMAND_RECORDER_WITHOUT_CURRENT_TARGET = 1133, - - /// - - D3D12_MESSAGE_ID_CANNOT_CHANGE_COMMAND_RECORDER_TARGET_WHILE_RECORDING = 1134, - - /// - - D3D12_MESSAGE_ID_COMMAND_POOL_SYNC = 1135, - - /// - - D3D12_MESSAGE_ID_EVICT_UNDERFLOW = 1136, - - /// - - D3D12_MESSAGE_ID_CREATE_META_COMMAND = 1137, - - /// - - D3D12_MESSAGE_ID_LIVE_META_COMMAND = 1138, - - /// - - D3D12_MESSAGE_ID_DESTROY_META_COMMAND = 1139, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALID_DST_RESOURCE = 1140, - - /// - - D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALID_SRC_RESOURCE = 1141, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DST_RESOURCE = 1142, - - /// - - D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_SRC_RESOURCE = 1143, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_NULL_BUFFER = 1144, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_NULL_RESOURCE_DESC = 1145, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_UNSUPPORTED = 1146, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_DIMENSION = 1147, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_FLAGS = 1148, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_OFFSET = 1149, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_RESOURCE_DIMENSION = 1150, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_RESOURCE_FLAGS = 1151, - - /// - - D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_OUTOFMEMORY_RETURN = 1152, - - /// - - D3D12_MESSAGE_ID_CANNOT_CREATE_GRAPHICS_AND_VIDEO_COMMAND_RECORDER = 1153, - - /// - - D3D12_MESSAGE_ID_UPDATETILEMAPPINGS_POSSIBLY_MISMATCHING_PROPERTIES = 1154, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_INVALID_COMMAND_LIST_TYPE = 1155, - - /// - - D3D12_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_INCOMPATIBLE_WITH_STRUCTURED_BUFFERS = 1156, - - /// - - D3D12_MESSAGE_ID_COMPUTE_ONLY_DEVICE_OPERATION_UNSUPPORTED = 1157, - - /// - - D3D12_MESSAGE_ID_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INVALID = 1158, - - /// - - D3D12_MESSAGE_ID_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_INVALID = 1159, - - /// - - D3D12_MESSAGE_ID_COPY_RAYTRACING_ACCELERATION_STRUCTURE_INVALID = 1160, - - /// - - D3D12_MESSAGE_ID_DISPATCH_RAYS_INVALID = 1161, - - /// - - D3D12_MESSAGE_ID_GET_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_INVALID = 1162, - - /// - - D3D12_MESSAGE_ID_CREATE_LIFETIMETRACKER = 1163, - - /// - - D3D12_MESSAGE_ID_LIVE_LIFETIMETRACKER = 1164, - - /// - - D3D12_MESSAGE_ID_DESTROY_LIFETIMETRACKER = 1165, - - /// - - D3D12_MESSAGE_ID_DESTROYOWNEDOBJECT_OBJECTNOTOWNED = 1166, - - /// - - D3D12_MESSAGE_ID_CREATE_TRACKEDWORKLOAD = 1167, - - /// - - D3D12_MESSAGE_ID_LIVE_TRACKEDWORKLOAD = 1168, - - /// - - D3D12_MESSAGE_ID_DESTROY_TRACKEDWORKLOAD = 1169, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_ERROR = 1170, - - /// - - D3D12_MESSAGE_ID_META_COMMAND_ID_INVALID = 1171, - - /// - - D3D12_MESSAGE_ID_META_COMMAND_UNSUPPORTED_PARAMS = 1172, - - /// - - D3D12_MESSAGE_ID_META_COMMAND_FAILED_ENUMERATION = 1173, - - /// - - D3D12_MESSAGE_ID_META_COMMAND_PARAMETER_SIZE_MISMATCH = 1174, - - /// - - D3D12_MESSAGE_ID_UNINITIALIZED_META_COMMAND = 1175, - - /// - - D3D12_MESSAGE_ID_META_COMMAND_INVALID_GPU_VIRTUAL_ADDRESS = 1176, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOENCODECOMMANDLIST = 1177, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOENCODECOMMANDLIST = 1178, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOENCODECOMMANDLIST = 1179, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOENCODECOMMANDQUEUE = 1180, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOENCODECOMMANDQUEUE = 1181, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOENCODECOMMANDQUEUE = 1182, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOMOTIONESTIMATOR = 1183, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOMOTIONESTIMATOR = 1184, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOMOTIONESTIMATOR = 1185, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOMOTIONVECTORHEAP = 1186, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOMOTIONVECTORHEAP = 1187, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOMOTIONVECTORHEAP = 1188, - - /// - - D3D12_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOADS = 1189, - - /// - - D3D12_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOAD_PAIRS = 1190, - - /// - - D3D12_MESSAGE_ID_OUT_OF_ORDER_TRACKED_WORKLOAD_PAIR = 1191, - - /// - - D3D12_MESSAGE_ID_CANNOT_ADD_TRACKED_WORKLOAD = 1192, - - /// - - D3D12_MESSAGE_ID_INCOMPLETE_TRACKED_WORKLOAD_PAIR = 1193, - - /// - - D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_ERROR = 1194, - - /// - - D3D12_MESSAGE_ID_GET_SHADER_IDENTIFIER_ERROR = 1195, - - /// - - D3D12_MESSAGE_ID_GET_SHADER_STACK_SIZE_ERROR = 1196, - - /// - - D3D12_MESSAGE_ID_GET_PIPELINE_STACK_SIZE_ERROR = 1197, - - /// - - D3D12_MESSAGE_ID_SET_PIPELINE_STACK_SIZE_ERROR = 1198, - - /// - - D3D12_MESSAGE_ID_GET_SHADER_IDENTIFIER_SIZE_INVALID = 1199, - - /// - - D3D12_MESSAGE_ID_CHECK_DRIVER_MATCHING_IDENTIFIER_INVALID = 1200, - - /// - - D3D12_MESSAGE_ID_CHECK_DRIVER_MATCHING_IDENTIFIER_DRIVER_REPORTED_ISSUE = 1201, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_INVALID_RESOURCE_BARRIER = 1202, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_DISALLOWED_API_CALLED = 1203, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_NEST_RENDER_PASSES = 1204, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_END_WITHOUT_BEGIN = 1205, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_CLOSE_COMMAND_LIST = 1206, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_GPU_WORK_WHILE_SUSPENDED = 1207, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_SUSPEND_RESUME = 1208, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_NO_PRIOR_SUSPEND_WITHIN_EXECUTECOMMANDLISTS = 1209, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_NO_SUBSEQUENT_RESUME_WITHIN_EXECUTECOMMANDLISTS = 1210, - - /// - - D3D12_MESSAGE_ID_TRACKED_WORKLOAD_COMMAND_QUEUE_MISMATCH = 1211, - - /// - - D3D12_MESSAGE_ID_TRACKED_WORKLOAD_NOT_SUPPORTED = 1212, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_NO_ACCESS = 1213, - - /// - - D3D12_MESSAGE_ID_RENDER_PASS_UNSUPPORTED_RESOLVE = 1214, - - /// - - D3D12_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_INVALID_RESOURCE_PTR = 1215, - - /// - - D3D12_MESSAGE_ID_WINDOWS7_FENCE_OUTOFORDER_SIGNAL = 1216, - - /// - - D3D12_MESSAGE_ID_WINDOWS7_FENCE_OUTOFORDER_WAIT = 1217, - - /// - - D3D12_MESSAGE_ID_VIDEO_CREATE_MOTION_ESTIMATOR_INVALID_ARGUMENT = 1218, - - /// - - D3D12_MESSAGE_ID_VIDEO_CREATE_MOTION_VECTOR_HEAP_INVALID_ARGUMENT = 1219, - - /// - - D3D12_MESSAGE_ID_ESTIMATE_MOTION_INVALID_ARGUMENT = 1220, - - /// - - D3D12_MESSAGE_ID_RESOLVE_MOTION_VECTOR_HEAP_INVALID_ARGUMENT = 1221, - - /// - - D3D12_MESSAGE_ID_GETGPUVIRTUALADDRESS_INVALID_HEAP_TYPE = 1222, - - /// - - D3D12_MESSAGE_ID_SET_BACKGROUND_PROCESSING_MODE_INVALID_ARGUMENT = 1223, - - /// - - D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_INVALID_COMMAND_LIST_TYPE_FOR_FEATURE_LEVEL = 1224, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOEXTENSIONCOMMAND = 1225, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOEXTENSIONCOMMAND = 1226, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOEXTENSIONCOMMAND = 1227, - - /// - - D3D12_MESSAGE_ID_INVALID_VIDEO_EXTENSION_COMMAND_ID = 1228, - - /// - - D3D12_MESSAGE_ID_VIDEO_EXTENSION_COMMAND_INVALID_ARGUMENT = 1229, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_UNIQUE_IN_DXIL_LIBRARY = 1230, - - /// - - D3D12_MESSAGE_ID_VARIABLE_SHADING_RATE_NOT_ALLOWED_WITH_TIR = 1231, - - /// - - D3D12_MESSAGE_ID_GEOMETRY_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = - 1232, - - /// - - D3D12_MESSAGE_ID_RSSETSHADING_RATE_INVALID_SHADING_RATE = 1233, - - /// - - D3D12_MESSAGE_ID_RSSETSHADING_RATE_SHADING_RATE_NOT_PERMITTED_BY_CAP = 1234, - - /// - - D3D12_MESSAGE_ID_RSSETSHADING_RATE_INVALID_COMBINER = 1235, - - /// - - D3D12_MESSAGE_ID_RSSETSHADINGRATEIMAGE_REQUIRES_TIER_2 = 1236, - - /// - - D3D12_MESSAGE_ID_RSSETSHADINGRATE_REQUIRES_TIER_1 = 1237, - - /// - - D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_FORMAT = 1238, - - /// - - D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_ARRAY_SIZE = 1239, - - /// - - D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_MIP_LEVEL = 1240, - - /// - - D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_SAMPLE_COUNT = 1241, - - /// - - D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_SAMPLE_QUALITY = 1242, - - /// - - D3D12_MESSAGE_ID_NON_RETAIL_SHADER_MODEL_WONT_VALIDATE = 1243, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_AS_ROOT_SIGNATURE_MISMATCH = 1244, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_ROOT_SIGNATURE_MISMATCH = 1245, - - /// - - D3D12_MESSAGE_ID_ADD_TO_STATE_OBJECT_ERROR = 1246, - - /// - - D3D12_MESSAGE_ID_CREATE_PROTECTED_RESOURCE_SESSION_INVALID_ARGUMENT = 1247, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_PSO_DESC_MISMATCH = 1248, - - /// - - D3D12_MESSAGE_ID_CREATEPIPELINESTATE_MS_INCOMPLETE_TYPE = 1249, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_AS_NOT_MS_MISMATCH = 1250, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_NOT_PS_MISMATCH = 1251, - - /// - - D3D12_MESSAGE_ID_NONZERO_SAMPLER_FEEDBACK_MIP_REGION_WITH_INCOMPATIBLE_FORMAT = 1252, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INPUTLAYOUT_SHADER_MISMATCH = 1253, - - /// - - D3D12_MESSAGE_ID_EMPTY_DISPATCH = 1254, - - /// - - D3D12_MESSAGE_ID_RESOURCE_FORMAT_REQUIRES_SAMPLER_FEEDBACK_CAPABILITY = 1255, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_MIP_REGION = 1256, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_DIMENSION = 1257, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_SAMPLE_COUNT = 1258, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_SAMPLE_QUALITY = 1259, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_LAYOUT = 1260, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_REQUIRES_UNORDERED_ACCESS_FLAG = 1261, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_NULL_ARGUMENTS = 1262, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_UAV_REQUIRES_SAMPLER_FEEDBACK_CAPABILITY = 1263, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_REQUIRES_FEEDBACK_MAP_FORMAT = 1264, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADER_INVALIDSHADERBYTECODE = 1265, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADER_OUTOFMEMORY = 1266, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = 1267, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_TRANSCODE_INVALID_FORMAT = 1268, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_INVALID_MIP_LEVEL_COUNT = 1269, - - /// - - D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_TRANSCODE_ARRAY_SIZE_MISMATCH = 1270, - - /// - - D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_MISMATCHING_TARGETED_RESOURCE = 1271, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADER_OUTPUTEXCEEDSMAXSIZE = 1272, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADER_GROUPSHAREDEXCEEDSMAXSIZE = 1273, - - /// - - D3D12_MESSAGE_ID_VERTEX_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = - 1274, - - /// - - D3D12_MESSAGE_ID_MESH_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = - 1275, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADER_MISMATCHEDASMSPAYLOADSIZE = 1276, - - /// - - D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_UNBOUNDED_STATIC_DESCRIPTORS = 1277, - - /// - - D3D12_MESSAGE_ID_CREATEAMPLIFICATIONSHADER_INVALIDSHADERBYTECODE = 1278, - - /// - - D3D12_MESSAGE_ID_CREATEAMPLIFICATIONSHADER_OUTOFMEMORY = 1279, - - /// - - D3D12_MESSAGE_ID_CREATE_SHADERCACHESESSION = 1280, - - /// - - D3D12_MESSAGE_ID_LIVE_SHADERCACHESESSION = 1281, - - /// - - D3D12_MESSAGE_ID_DESTROY_SHADERCACHESESSION = 1282, - - /// - - D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_INVALIDARGS = 1283, - - /// - - D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_DISABLED = 1284, - - /// - - D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_ALREADYOPEN = 1285, - - /// - - D3D12_MESSAGE_ID_SHADERCACHECONTROL_DEVELOPERMODE = 1286, - - /// - - D3D12_MESSAGE_ID_SHADERCACHECONTROL_INVALIDFLAGS = 1287, - - /// - - D3D12_MESSAGE_ID_SHADERCACHECONTROL_STATEALREADYSET = 1288, - - /// - - D3D12_MESSAGE_ID_SHADERCACHECONTROL_IGNOREDFLAG = 1289, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_ALREADYPRESENT = 1290, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_HASHCOLLISION = 1291, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_CACHEFULL = 1292, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_FINDVALUE_NOTFOUND = 1293, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_CORRUPT = 1294, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_DISABLED = 1295, - - /// - - D3D12_MESSAGE_ID_OVERSIZED_DISPATCH = 1296, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOENCODER = 1297, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOENCODER = 1298, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOENCODER = 1299, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEOENCODERHEAP = 1300, - - /// - - D3D12_MESSAGE_ID_LIVE_VIDEOENCODERHEAP = 1301, - - /// - - D3D12_MESSAGE_ID_DESTROY_VIDEOENCODERHEAP = 1302, - - /// - - D3D12_MESSAGE_ID_COPYTEXTUREREGION_MISMATCH_ENCODE_REFERENCE_ONLY_FLAG = 1303, - - /// - - D3D12_MESSAGE_ID_COPYRESOURCE_MISMATCH_ENCODE_REFERENCE_ONLY_FLAG = 1304, - - /// - - D3D12_MESSAGE_ID_ENCODE_FRAME_INVALID_PARAMETERS = 1305, - - /// - - D3D12_MESSAGE_ID_ENCODE_FRAME_UNSUPPORTED_PARAMETERS = 1306, - - /// - - D3D12_MESSAGE_ID_RESOLVE_ENCODER_OUTPUT_METADATA_INVALID_PARAMETERS = 1307, - - /// - - D3D12_MESSAGE_ID_RESOLVE_ENCODER_OUTPUT_METADATA_UNSUPPORTED_PARAMETERS = 1308, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_INVALID_PARAMETERS = 1309, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_UNSUPPORTED_PARAMETERS = 1310, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_HEAP_INVALID_PARAMETERS = 1311, - - /// - - D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_HEAP_UNSUPPORTED_PARAMETERS = 1312, - - /// - - D3D12_MESSAGE_ID_CREATECOMMANDLIST_NULL_COMMANDALLOCATOR = 1313, - - /// - - D3D12_MESSAGE_ID_CLEAR_UNORDERED_ACCESS_VIEW_INVALID_DESCRIPTOR_HANDLE = 1314, - - /// - - D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SHADER_VISIBLE = 1315, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_BLENDOP_WARNING = 1316, - - /// - - D3D12_MESSAGE_ID_CREATEBLENDSTATE_BLENDOPALPHA_WARNING = 1317, - - /// - - D3D12_MESSAGE_ID_WRITE_COMBINE_PERFORMANCE_WARNING = 1318, - - /// - - D3D12_MESSAGE_ID_RESOLVE_QUERY_INVALID_QUERY_STATE = 1319, - - /// - - D3D12_MESSAGE_ID_SETPRIVATEDATA_NO_ACCESS = 1320, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_STATIC_DESCRIPTOR_SAMPLER_MODE_MISMATCH = 1321, - - /// - - D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_UNSUPPORTED_BUFFER_WIDTH = 1322, - - /// - - D3D12_MESSAGE_ID_CREATEMESHSHADER_TOPOLOGY_MISMATCH = 1323, - - /// - - D3D12_MESSAGE_ID_VRS_SUM_COMBINER_REQUIRES_CAPABILITY = 1324, - - /// - - D3D12_MESSAGE_ID_SETTING_SHADING_RATE_FROM_MS_REQUIRES_CAPABILITY = 1325, - - /// - - D3D12_MESSAGE_ID_SHADERCACHESESSION_SHADERCACHEDELETE_NOTSUPPORTED = 1326, - - /// - - D3D12_MESSAGE_ID_SHADERCACHECONTROL_SHADERCACHECLEAR_NOTSUPPORTED = 1327, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCE_STATE_IGNORED = 1328, - - /// - - D3D12_MESSAGE_ID_UNUSED_CROSS_EXECUTE_SPLIT_BARRIER = 1329, - - /// - - D3D12_MESSAGE_ID_DEVICE_OPEN_SHARED_HANDLE_ACCESS_DENIED = 1330, - - /// - - D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_VALUES = 1331, - - /// - - D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_ACCESS = 1332, - - /// - - D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_SYNC = 1333, - - /// - - D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_LAYOUT = 1334, - - /// - - D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_TYPE = 1335, - - /// - - D3D12_MESSAGE_ID_OUT_OF_BOUNDS_BARRIER_SUBRESOURCE_RANGE = 1336, - - /// - - D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_RESOURCE_DIMENSION = 1337, - - /// - - D3D12_MESSAGE_ID_SET_SCISSOR_RECTS_INVALID_RECT = 1338, - - /// - - D3D12_MESSAGE_ID_SHADING_RATE_SOURCE_REQUIRES_DIMENSION_TEXTURE2D = 1339, - - /// - - D3D12_MESSAGE_ID_BUFFER_BARRIER_SUBREGION_OUT_OF_BOUNDS = 1340, - - /// - - D3D12_MESSAGE_ID_UNSUPPORTED_BARRIER_LAYOUT = 1341, - - /// - - D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALID_PARAMETERS = 1342, - - /// - - D3D12_MESSAGE_ID_ENHANCED_BARRIERS_NOT_SUPPORTED = 1343, - - /// - - D3D12_MESSAGE_ID_CAST_TARGET_TEXEL_SIZE_MISMATCH = 1344, - - /// - - D3D12_MESSAGE_ID_CAST_TO_PLANAR_NOT_SUPORTED = 1345, - - /// - - D3D12_MESSAGE_ID_LEGACY_BARRIER_VALIDATION_FORCED_ON = 1346, - - /// - - D3D12_MESSAGE_ID_EMPTY_ROOT_DESCRIPTOR_TABLE = 1347, - - /// - - D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ELEMENT_OFFSET_UNALIGNED = 1348, - - /// - - D3D12_MESSAGE_ID_ALPHA_BLEND_FACTOR_NOT_SUPPORTED = 1349, - - /// - - D3D12_MESSAGE_ID_BARRIER_INTEROP_INVALID_LAYOUT = 1350, - - /// - - D3D12_MESSAGE_ID_BARRIER_INTEROP_INVALID_STATE = 1351, - - /// - - D3D12_MESSAGE_ID_GRAPHICS_PIPELINE_STATE_DESC_ZERO_SAMPLE_MASK = 1352, - - /// - - D3D12_MESSAGE_ID_INDEPENDENT_STENCIL_REF_NOT_SUPPORTED = 1353, - - /// - - D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INDEPENDENT_MASKS_UNSUPPORTED = 1354, - - /// - - D3D12_MESSAGE_ID_TEXTURE_BARRIER_SUBRESOURCES_OUT_OF_BOUNDS = 1355, - - /// - - D3D12_MESSAGE_ID_NON_OPTIMAL_BARRIER_ONLY_EXECUTE_COMMAND_LISTS = 1356, - - /// - - D3D12_MESSAGE_ID_EXECUTE_INDIRECT_ZERO_COMMAND_COUNT = 1357, - - /// - - D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INCOMPATIBLE_TEXTURE_LAYOUT = 1358, - - /// - - D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DYNAMIC_INDEX_BUFFER_STRIP_CUT_NOT_SUPPORTED = - 1359, - - /// - - D3D12_MESSAGE_ID_PRIMITIVE_TOPOLOGY_TRIANGLE_FANS_NOT_SUPPORTED = 1360, - - /// - - D3D12_MESSAGE_ID_CREATE_SAMPLER_COMPARISON_FUNC_IGNORED = 1361, - - /// - - D3D12_MESSAGE_ID_D3D12_MESSAGES_END = - (D3D12_MESSAGE_ID_CREATE_SAMPLER_COMPARISON_FUNC_IGNORED + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_SEVERITY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_SEVERITY.gen.cs deleted file mode 100644 index 444dbd7973..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGE_SEVERITY.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_MESSAGE_SEVERITY -{ - /// - - D3D12_MESSAGE_SEVERITY_CORRUPTION = 0, - - /// - - D3D12_MESSAGE_SEVERITY_ERROR = (D3D12_MESSAGE_SEVERITY_CORRUPTION + 1), - - /// - - D3D12_MESSAGE_SEVERITY_WARNING = (D3D12_MESSAGE_SEVERITY_ERROR + 1), - - /// - - D3D12_MESSAGE_SEVERITY_INFO = (D3D12_MESSAGE_SEVERITY_WARNING + 1), - - /// - - D3D12_MESSAGE_SEVERITY_MESSAGE = (D3D12_MESSAGE_SEVERITY_INFO + 1), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_RLDO_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_RLDO_FLAGS.gen.cs deleted file mode 100644 index e13162570a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_RLDO_FLAGS.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_RLDO_FLAGS -{ - /// - - D3D12_RLDO_NONE = 0, - - /// - - D3D12_RLDO_SUMMARY = 0x1, - - /// - - D3D12_RLDO_DETAIL = 0x2, - - /// - - D3D12_RLDO_IGNORE_INTERNAL = 0x4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/DXGI.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/DXGI.gen.cs deleted file mode 100644 index 29f7b9ea1a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/DXGI.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class DXGI -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_D3D12 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x8C, 0xA9, 0x59, 0xCF, 0x50, 0xA9, 0x26, 0x43, 0x91, 0xEF, 0x9B, 0xBA, 0xA1, 0x7B, 0xFD, 0x95]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/DirectX.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/DirectX.gen.cs deleted file mode 100644 index aad840c91c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/DirectX.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class DirectX -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid WKPDID_D3DAutoDebugObjectNameW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x36, 0x2E, 0x90, 0xD4, 0x7A, 0x75, 0x42, 0x49, 0x95, 0x94, 0xB6, 0x76, 0x9A, 0xFA, 0x43, 0xCD]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug.gen.cs deleted file mode 100644 index f2af1b705d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug.gen.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("344488B7-6846-474B-B989-F027448245E0")] -[NativeTypeName("struct ID3D12Debug : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug : ID3D12Debug.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void EnableDebugLayer(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EnableDebugLayer; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug1.gen.cs deleted file mode 100644 index c367e767a9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug1.gen.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("AFFAA4CA-63FE-4D8E-B8AD-159000AF4304")] -[NativeTypeName("struct ID3D12Debug1 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug1 : ID3D12Debug1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Debug1*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Debug1*)Unsafe.AsPointer(ref this), - Enable - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void EnableDebugLayer(); - - [VtblIndex(4)] - void SetEnableGPUBasedValidation(BOOL Enable); - - [VtblIndex(5)] - void SetEnableSynchronizedCommandQueueValidation(BOOL Enable); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EnableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableGPUBasedValidation; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableSynchronizedCommandQueueValidation; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug2.gen.cs deleted file mode 100644 index 20f3b4e5d3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug2.gen.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("93A665C4-A3B2-4E5D-B692-A26AE14E3374")] -[NativeTypeName("struct ID3D12Debug2 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug2 : ID3D12Debug2.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags) - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug2*)Unsafe.AsPointer(ref this), - Flags - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (D3D12_GPU_BASED_VALIDATION_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_BASED_VALIDATION_FLAGS, - void> SetGPUBasedValidationFlags; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug3.gen.cs deleted file mode 100644 index dab157300d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug3.gen.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("5CF4E58F-F671-4FF1-A542-3686E3D153D1")] -[NativeTypeName("struct ID3D12Debug3 : ID3D12Debug")] -[NativeInheritance("ID3D12Debug")] -public unsafe partial struct ID3D12Debug3 : ID3D12Debug3.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags) - { - ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Debug3*)Unsafe.AsPointer(ref this), - Flags - ); - } - - public interface Interface : ID3D12Debug.Interface - { - [VtblIndex(4)] - void SetEnableGPUBasedValidation(BOOL Enable); - - [VtblIndex(5)] - void SetEnableSynchronizedCommandQueueValidation(BOOL Enable); - - [VtblIndex(6)] - void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EnableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableGPUBasedValidation; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableSynchronizedCommandQueueValidation; - - [NativeTypeName("void (D3D12_GPU_BASED_VALIDATION_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_BASED_VALIDATION_FLAGS, - void> SetGPUBasedValidationFlags; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug4.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug4.gen.cs deleted file mode 100644 index dafa3dc041..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug4.gen.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("014B816E-9EC5-4A2F-A845-FFBE441CE13A")] -[NativeTypeName("struct ID3D12Debug4 : ID3D12Debug3")] -[NativeInheritance("ID3D12Debug3")] -public unsafe partial struct ID3D12Debug4 : ID3D12Debug4.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug4)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags) - { - ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this), - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void DisableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Debug4*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : ID3D12Debug3.Interface - { - [VtblIndex(7)] - void DisableDebugLayer(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EnableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableGPUBasedValidation; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableSynchronizedCommandQueueValidation; - - [NativeTypeName("void (D3D12_GPU_BASED_VALIDATION_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_BASED_VALIDATION_FLAGS, - void> SetGPUBasedValidationFlags; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged DisableDebugLayer; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug5.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug5.gen.cs deleted file mode 100644 index 4d14280268..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug5.gen.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("548D6B12-09FA-40E0-9069-5DCD589A52C9")] -[NativeTypeName("struct ID3D12Debug5 : ID3D12Debug4")] -[NativeInheritance("ID3D12Debug4")] -public unsafe partial struct ID3D12Debug5 : ID3D12Debug5.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug5)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags) - { - ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this), - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void DisableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetEnableAutoName(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12Debug5*)Unsafe.AsPointer(ref this), - Enable - ); - } - - public interface Interface : ID3D12Debug4.Interface - { - [VtblIndex(8)] - void SetEnableAutoName(BOOL Enable); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EnableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableGPUBasedValidation; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableSynchronizedCommandQueueValidation; - - [NativeTypeName("void (D3D12_GPU_BASED_VALIDATION_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_BASED_VALIDATION_FLAGS, - void> SetGPUBasedValidationFlags; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged DisableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableAutoName; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug6.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug6.gen.cs deleted file mode 100644 index b30552f41e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug6.gen.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("82A816D6-5D01-4157-97D0-4975463FD1ED")] -[NativeTypeName("struct ID3D12Debug6 : ID3D12Debug5")] -[NativeInheritance("ID3D12Debug5")] -public unsafe partial struct ID3D12Debug6 : ID3D12Debug6.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug6)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags) - { - ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this), - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void DisableDebugLayer() - { - ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetEnableAutoName(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this), - Enable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetForceLegacyBarrierValidation(BOOL Enable) - { - ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12Debug6*)Unsafe.AsPointer(ref this), - Enable - ); - } - - public interface Interface : ID3D12Debug5.Interface - { - [VtblIndex(9)] - void SetForceLegacyBarrierValidation(BOOL Enable); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EnableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableGPUBasedValidation; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableSynchronizedCommandQueueValidation; - - [NativeTypeName("void (D3D12_GPU_BASED_VALIDATION_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_GPU_BASED_VALIDATION_FLAGS, - void> SetGPUBasedValidationFlags; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged DisableDebugLayer; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetEnableAutoName; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetForceLegacyBarrierValidation; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList.gen.cs deleted file mode 100644 index 26cccfc1ad..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList.gen.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("09E0BF36-54AC-484F-8847-4BAEEAB6053F")] -[NativeTypeName("struct ID3D12DebugCommandList : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandList : ID3D12DebugCommandList.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), Mask); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public D3D12_DEBUG_FEATURE GetFeatureMask() - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DebugCommandList*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State); - - [VtblIndex(4)] - HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask); - - [VtblIndex(5)] - D3D12_DEBUG_FEATURE GetFeatureMask(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("BOOL (ID3D12Resource *, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged AssertResourceState; - - [NativeTypeName("HRESULT (D3D12_DEBUG_FEATURE) __attribute__((stdcall))")] - public delegate* unmanaged SetFeatureMask; - - [NativeTypeName("D3D12_DEBUG_FEATURE () __attribute__((stdcall))")] - public delegate* unmanaged GetFeatureMask; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList1.gen.cs deleted file mode 100644 index 0118450913..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList1.gen.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("102CA951-311B-4B01-B11F-ECB83E061B37")] -[NativeTypeName("struct ID3D12DebugCommandList1 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandList1 - : ID3D12DebugCommandList1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugCommandList1*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[4]) - )((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugCommandList1*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[5]) - )((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State); - - [VtblIndex(4)] - HRESULT SetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ); - - [VtblIndex(5)] - HRESULT GetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("BOOL (ID3D12Resource *, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged AssertResourceState; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, const void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int> SetDebugParameter; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int> GetDebugParameter; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList2.gen.cs deleted file mode 100644 index 316d014131..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList2.gen.cs +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("AEB575CF-4E06-48BE-BA3B-C450FC96652E")] -[NativeTypeName("struct ID3D12DebugCommandList2 : ID3D12DebugCommandList")] -[NativeInheritance("ID3D12DebugCommandList")] -public unsafe partial struct ID3D12DebugCommandList2 - : ID3D12DebugCommandList2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Mask); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public D3D12_DEBUG_FEATURE GetFeatureMask() - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugCommandList2*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[6]) - )((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugCommandList2*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[7]) - )((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - public interface Interface : ID3D12DebugCommandList.Interface - { - [VtblIndex(6)] - HRESULT SetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ); - - [VtblIndex(7)] - HRESULT GetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("BOOL (ID3D12Resource *, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged AssertResourceState; - - [NativeTypeName("HRESULT (D3D12_DEBUG_FEATURE) __attribute__((stdcall))")] - public delegate* unmanaged SetFeatureMask; - - [NativeTypeName("D3D12_DEBUG_FEATURE () __attribute__((stdcall))")] - public delegate* unmanaged GetFeatureMask; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, const void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int> SetDebugParameter; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int> GetDebugParameter; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList3.gen.cs deleted file mode 100644 index 8f1e321fe7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList3.gen.cs +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("197D5E15-4D37-4D34-AF78-724CD70FDB1F")] -[NativeTypeName("struct ID3D12DebugCommandList3 : ID3D12DebugCommandList2")] -[NativeInheritance("ID3D12DebugCommandList2")] -public unsafe partial struct ID3D12DebugCommandList3 - : ID3D12DebugCommandList3.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), Mask); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public D3D12_DEBUG_FEATURE GetFeatureMask() - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugCommandList3*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[6]) - )((ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDebugParameter( - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugCommandList3*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[7]) - )((ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void AssertResourceAccess( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_ACCESS Access - ) - { - ( - (delegate* unmanaged< - ID3D12DebugCommandList3*, - ID3D12Resource*, - uint, - D3D12_BARRIER_ACCESS, - void>)(lpVtbl[8]) - )((ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), pResource, Subresource, Access); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void AssertTextureLayout( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_LAYOUT Layout - ) - { - ( - (delegate* unmanaged< - ID3D12DebugCommandList3*, - ID3D12Resource*, - uint, - D3D12_BARRIER_LAYOUT, - void>)(lpVtbl[9]) - )((ID3D12DebugCommandList3*)Unsafe.AsPointer(ref this), pResource, Subresource, Layout); - } - - public interface Interface : ID3D12DebugCommandList2.Interface - { - [VtblIndex(8)] - void AssertResourceAccess( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_ACCESS Access - ); - - [VtblIndex(9)] - void AssertTextureLayout( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_LAYOUT Layout - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("BOOL (ID3D12Resource *, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged AssertResourceState; - - [NativeTypeName("HRESULT (D3D12_DEBUG_FEATURE) __attribute__((stdcall))")] - public delegate* unmanaged SetFeatureMask; - - [NativeTypeName("D3D12_DEBUG_FEATURE () __attribute__((stdcall))")] - public delegate* unmanaged GetFeatureMask; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, const void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int> SetDebugParameter; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, - void*, - uint, - int> GetDebugParameter; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, D3D12_BARRIER_ACCESS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - D3D12_BARRIER_ACCESS, - void> AssertResourceAccess; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, D3D12_BARRIER_LAYOUT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - D3D12_BARRIER_LAYOUT, - void> AssertTextureLayout; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue.gen.cs deleted file mode 100644 index 1a4ba74287..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue.gen.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("09E0BF36-54AC-484F-8847-4BAEEAB6053A")] -[NativeTypeName("struct ID3D12DebugCommandQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandQueue - : ID3D12DebugCommandQueue.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandQueue)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugCommandQueue*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugCommandQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugCommandQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12DebugCommandQueue*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("BOOL (ID3D12Resource *, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged AssertResourceState; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue1.gen.cs deleted file mode 100644 index 115649a385..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue1.gen.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("16BE35A2-BFD6-49F2-BCAE-EAAE4AFF862D")] -[NativeTypeName("struct ID3D12DebugCommandQueue1 : ID3D12DebugCommandQueue")] -[NativeInheritance("ID3D12DebugCommandQueue")] -public unsafe partial struct ID3D12DebugCommandQueue1 - : ID3D12DebugCommandQueue1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandQueue1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugCommandQueue1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugCommandQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugCommandQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public BOOL AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12DebugCommandQueue1*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void AssertResourceAccess( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_ACCESS Access - ) - { - ( - (delegate* unmanaged< - ID3D12DebugCommandQueue1*, - ID3D12Resource*, - uint, - D3D12_BARRIER_ACCESS, - void>)(lpVtbl[4]) - )((ID3D12DebugCommandQueue1*)Unsafe.AsPointer(ref this), pResource, Subresource, Access); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void AssertTextureLayout( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_LAYOUT Layout - ) - { - ( - (delegate* unmanaged< - ID3D12DebugCommandQueue1*, - ID3D12Resource*, - uint, - D3D12_BARRIER_LAYOUT, - void>)(lpVtbl[5]) - )((ID3D12DebugCommandQueue1*)Unsafe.AsPointer(ref this), pResource, Subresource, Layout); - } - - public interface Interface : ID3D12DebugCommandQueue.Interface - { - [VtblIndex(4)] - void AssertResourceAccess( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_ACCESS Access - ); - - [VtblIndex(5)] - void AssertTextureLayout( - ID3D12Resource* pResource, - uint Subresource, - D3D12_BARRIER_LAYOUT Layout - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("BOOL (ID3D12Resource *, UINT, UINT) __attribute__((stdcall))")] - public delegate* unmanaged AssertResourceState; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, D3D12_BARRIER_ACCESS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - D3D12_BARRIER_ACCESS, - void> AssertResourceAccess; - - [NativeTypeName( - "void (ID3D12Resource *, UINT, D3D12_BARRIER_LAYOUT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - uint, - D3D12_BARRIER_LAYOUT, - void> AssertTextureLayout; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice.gen.cs deleted file mode 100644 index 8bc46f9794..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice.gen.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("3FEBD6DD-4973-4787-8194-E45F9E28923E")] -[NativeTypeName("struct ID3D12DebugDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugDevice : ID3D12DebugDevice.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugDevice*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12DebugDevice*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public D3D12_DEBUG_FEATURE GetFeatureMask() - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12DebugDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT ReportLiveDeviceObjects(D3D12_RLDO_FLAGS Flags) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DebugDevice*)Unsafe.AsPointer(ref this), - Flags - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask); - - [VtblIndex(4)] - D3D12_DEBUG_FEATURE GetFeatureMask(); - - [VtblIndex(5)] - HRESULT ReportLiveDeviceObjects(D3D12_RLDO_FLAGS Flags); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_DEBUG_FEATURE) __attribute__((stdcall))")] - public delegate* unmanaged SetFeatureMask; - - [NativeTypeName("D3D12_DEBUG_FEATURE () __attribute__((stdcall))")] - public delegate* unmanaged GetFeatureMask; - - [NativeTypeName("HRESULT (D3D12_RLDO_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged ReportLiveDeviceObjects; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice1.gen.cs deleted file mode 100644 index fafaab5286..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice1.gen.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("A9B71770-D099-4A65-A698-3DEE10020F88")] -[NativeTypeName("struct ID3D12DebugDevice1 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugDevice1 : ID3D12DebugDevice1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugDevice1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugDevice1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugDevice1*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[3]) - )((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugDevice1*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[4]) - )((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT ReportLiveDeviceObjects(D3D12_RLDO_FLAGS Flags) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), - Flags - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT SetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ); - - [VtblIndex(4)] - HRESULT GetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ); - - [VtblIndex(5)] - HRESULT ReportLiveDeviceObjects(D3D12_RLDO_FLAGS Flags); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_DEVICE_PARAMETER_TYPE, const void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int> SetDebugParameter; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_DEVICE_PARAMETER_TYPE, void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int> GetDebugParameter; - - [NativeTypeName("HRESULT (D3D12_RLDO_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged ReportLiveDeviceObjects; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice2.gen.cs deleted file mode 100644 index eaeea64ff6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice2.gen.cs +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("60ECCBC1-378D-4DF1-894C-F8AC5CE4D7DD")] -[NativeTypeName("struct ID3D12DebugDevice2 : ID3D12DebugDevice")] -[NativeInheritance("ID3D12DebugDevice")] -public unsafe partial struct ID3D12DebugDevice2 : ID3D12DebugDevice2.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DebugDevice2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DebugDevice2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), - Mask - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public D3D12_DEBUG_FEATURE GetFeatureMask() - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12DebugDevice2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT ReportLiveDeviceObjects(D3D12_RLDO_FLAGS Flags) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), - Flags - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugDevice2*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[6]) - )((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ) - { - return ( - (delegate* unmanaged< - ID3D12DebugDevice2*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int>)(lpVtbl[7]) - )((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - public interface Interface : ID3D12DebugDevice.Interface - { - [VtblIndex(6)] - HRESULT SetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - [NativeTypeName("const void *")] void* pData, - uint DataSize - ); - - [VtblIndex(7)] - HRESULT GetDebugParameter( - D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, - void* pData, - uint DataSize - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_DEBUG_FEATURE) __attribute__((stdcall))")] - public delegate* unmanaged SetFeatureMask; - - [NativeTypeName("D3D12_DEBUG_FEATURE () __attribute__((stdcall))")] - public delegate* unmanaged GetFeatureMask; - - [NativeTypeName("HRESULT (D3D12_RLDO_FLAGS) __attribute__((stdcall))")] - public delegate* unmanaged ReportLiveDeviceObjects; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_DEVICE_PARAMETER_TYPE, const void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int> SetDebugParameter; - - [NativeTypeName( - "HRESULT (D3D12_DEBUG_DEVICE_PARAMETER_TYPE, void *, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_DEBUG_DEVICE_PARAMETER_TYPE, - void*, - uint, - int> GetDebugParameter; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue.gen.cs deleted file mode 100644 index 6a48c3204c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue.gen.cs +++ /dev/null @@ -1,754 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("0742A90B-C387-483F-B946-30A7E4E61458")] -[NativeTypeName("struct ID3D12InfoQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12InfoQueue : ID3D12InfoQueue.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetMessageCountLimit([NativeTypeName("UINT64")] ulong MessageCountLimit) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - MessageCountLimit - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ClearStoredMessages() - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetMessage( - [NativeTypeName("UINT64")] ulong MessageIndex, - D3D12_MESSAGE* pMessage, - [NativeTypeName("SIZE_T *")] nuint* pMessageByteLength - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - [return: NativeTypeName("UINT64")] - public ulong GetNumMessagesAllowedByStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - [return: NativeTypeName("UINT64")] - public ulong GetNumMessagesDeniedByStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - public ulong GetNumStoredMessages() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - [return: NativeTypeName("UINT64")] - public ulong GetNumStoredMessagesAllowedByRetrievalFilter() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - [return: NativeTypeName("UINT64")] - public ulong GetNumMessagesDiscardedByMessageCountLimit() - { - return ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("UINT64")] - public ulong GetMessageCountLimit() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT AddStorageFilterEntries(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ((delegate* unmanaged)(lpVtbl[12]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - pFilter - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT GetStorageFilter( - D3D12_INFO_QUEUE_FILTER* pFilter, - [NativeTypeName("SIZE_T *")] nuint* pFilterByteLength - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ClearStorageFilter() - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HRESULT PushEmptyStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT PushCopyOfStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[16]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HRESULT PushStorageFilter(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ((delegate* unmanaged)(lpVtbl[17]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - pFilter - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void PopStorageFilter() - { - ((delegate* unmanaged)(lpVtbl[18]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public uint GetStorageFilterStackSize() - { - return ((delegate* unmanaged)(lpVtbl[19]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HRESULT AddRetrievalFilterEntries(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - pFilter - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HRESULT GetRetrievalFilter( - D3D12_INFO_QUEUE_FILTER* pFilter, - [NativeTypeName("SIZE_T *")] nuint* pFilterByteLength - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ClearRetrievalFilter() - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HRESULT PushEmptyRetrievalFilter() - { - return ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HRESULT PushCopyOfRetrievalFilter() - { - return ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HRESULT PushRetrievalFilter(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ((delegate* unmanaged)(lpVtbl[25]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - pFilter - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void PopRetrievalFilter() - { - ((delegate* unmanaged)(lpVtbl[26]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetRetrievalFilterStackSize() - { - return ((delegate* unmanaged)(lpVtbl[27]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT AddMessage( - D3D12_MESSAGE_CATEGORY Category, - D3D12_MESSAGE_SEVERITY Severity, - D3D12_MESSAGE_ID ID, - [NativeTypeName("LPCSTR")] sbyte* pDescription - ) - { - return ( - (delegate* unmanaged< - ID3D12InfoQueue*, - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - int>)(lpVtbl[28]) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT AddApplicationMessage( - D3D12_MESSAGE_SEVERITY Severity, - [NativeTypeName("LPCSTR")] sbyte* pDescription - ) - { - return ( - (delegate* unmanaged)(lpVtbl[29]) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT SetBreakOnCategory(D3D12_MESSAGE_CATEGORY Category, BOOL bEnable) - { - return ( - (delegate* unmanaged)(lpVtbl[30]) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category, bEnable); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY Severity, BOOL bEnable) - { - return ( - (delegate* unmanaged)(lpVtbl[31]) - )((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity, bEnable); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT SetBreakOnID(D3D12_MESSAGE_ID ID, BOOL bEnable) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - ID, - bEnable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public BOOL GetBreakOnCategory(D3D12_MESSAGE_CATEGORY Category) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - Category - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public BOOL GetBreakOnSeverity(D3D12_MESSAGE_SEVERITY Severity) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - Severity - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public BOOL GetBreakOnID(D3D12_MESSAGE_ID ID) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - ID - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetMuteDebugOutput(BOOL bMute) - { - ((delegate* unmanaged)(lpVtbl[36]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this), - bMute - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public BOOL GetMuteDebugOutput() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12InfoQueue*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT SetMessageCountLimit([NativeTypeName("UINT64")] ulong MessageCountLimit); - - [VtblIndex(4)] - void ClearStoredMessages(); - - [VtblIndex(5)] - HRESULT GetMessage( - [NativeTypeName("UINT64")] ulong MessageIndex, - D3D12_MESSAGE* pMessage, - [NativeTypeName("SIZE_T *")] nuint* pMessageByteLength - ); - - [VtblIndex(6)] - [return: NativeTypeName("UINT64")] - ulong GetNumMessagesAllowedByStorageFilter(); - - [VtblIndex(7)] - [return: NativeTypeName("UINT64")] - ulong GetNumMessagesDeniedByStorageFilter(); - - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - ulong GetNumStoredMessages(); - - [VtblIndex(9)] - [return: NativeTypeName("UINT64")] - ulong GetNumStoredMessagesAllowedByRetrievalFilter(); - - [VtblIndex(10)] - [return: NativeTypeName("UINT64")] - ulong GetNumMessagesDiscardedByMessageCountLimit(); - - [VtblIndex(11)] - [return: NativeTypeName("UINT64")] - ulong GetMessageCountLimit(); - - [VtblIndex(12)] - HRESULT AddStorageFilterEntries(D3D12_INFO_QUEUE_FILTER* pFilter); - - [VtblIndex(13)] - HRESULT GetStorageFilter( - D3D12_INFO_QUEUE_FILTER* pFilter, - [NativeTypeName("SIZE_T *")] nuint* pFilterByteLength - ); - - [VtblIndex(14)] - void ClearStorageFilter(); - - [VtblIndex(15)] - HRESULT PushEmptyStorageFilter(); - - [VtblIndex(16)] - HRESULT PushCopyOfStorageFilter(); - - [VtblIndex(17)] - HRESULT PushStorageFilter(D3D12_INFO_QUEUE_FILTER* pFilter); - - [VtblIndex(18)] - void PopStorageFilter(); - - [VtblIndex(19)] - uint GetStorageFilterStackSize(); - - [VtblIndex(20)] - HRESULT AddRetrievalFilterEntries(D3D12_INFO_QUEUE_FILTER* pFilter); - - [VtblIndex(21)] - HRESULT GetRetrievalFilter( - D3D12_INFO_QUEUE_FILTER* pFilter, - [NativeTypeName("SIZE_T *")] nuint* pFilterByteLength - ); - - [VtblIndex(22)] - void ClearRetrievalFilter(); - - [VtblIndex(23)] - HRESULT PushEmptyRetrievalFilter(); - - [VtblIndex(24)] - HRESULT PushCopyOfRetrievalFilter(); - - [VtblIndex(25)] - HRESULT PushRetrievalFilter(D3D12_INFO_QUEUE_FILTER* pFilter); - - [VtblIndex(26)] - void PopRetrievalFilter(); - - [VtblIndex(27)] - uint GetRetrievalFilterStackSize(); - - [VtblIndex(28)] - HRESULT AddMessage( - D3D12_MESSAGE_CATEGORY Category, - D3D12_MESSAGE_SEVERITY Severity, - D3D12_MESSAGE_ID ID, - [NativeTypeName("LPCSTR")] sbyte* pDescription - ); - - [VtblIndex(29)] - HRESULT AddApplicationMessage( - D3D12_MESSAGE_SEVERITY Severity, - [NativeTypeName("LPCSTR")] sbyte* pDescription - ); - - [VtblIndex(30)] - HRESULT SetBreakOnCategory(D3D12_MESSAGE_CATEGORY Category, BOOL bEnable); - - [VtblIndex(31)] - HRESULT SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY Severity, BOOL bEnable); - - [VtblIndex(32)] - HRESULT SetBreakOnID(D3D12_MESSAGE_ID ID, BOOL bEnable); - - [VtblIndex(33)] - BOOL GetBreakOnCategory(D3D12_MESSAGE_CATEGORY Category); - - [VtblIndex(34)] - BOOL GetBreakOnSeverity(D3D12_MESSAGE_SEVERITY Severity); - - [VtblIndex(35)] - BOOL GetBreakOnID(D3D12_MESSAGE_ID ID); - - [VtblIndex(36)] - void SetMuteDebugOutput(BOOL bMute); - - [VtblIndex(37)] - BOOL GetMuteDebugOutput(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (UINT64) __attribute__((stdcall))")] - public delegate* unmanaged SetMessageCountLimit; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearStoredMessages; - - [NativeTypeName("HRESULT (UINT64, D3D12_MESSAGE *, SIZE_T *) __attribute__((stdcall))")] - public delegate* unmanaged GetMessage; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumMessagesAllowedByStorageFilter; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumMessagesDeniedByStorageFilter; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumStoredMessages; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumStoredMessagesAllowedByRetrievalFilter; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumMessagesDiscardedByMessageCountLimit; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetMessageCountLimit; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged AddStorageFilterEntries; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *, SIZE_T *) __attribute__((stdcall))")] - public delegate* unmanaged GetStorageFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearStorageFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushEmptyStorageFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushCopyOfStorageFilter; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged PushStorageFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged PopStorageFilter; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetStorageFilterStackSize; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged AddRetrievalFilterEntries; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *, SIZE_T *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_INFO_QUEUE_FILTER*, - nuint*, - int> GetRetrievalFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearRetrievalFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushEmptyRetrievalFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushCopyOfRetrievalFilter; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged PushRetrievalFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged PopRetrievalFilter; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetRetrievalFilterStackSize; - - [NativeTypeName( - "HRESULT (D3D12_MESSAGE_CATEGORY, D3D12_MESSAGE_SEVERITY, D3D12_MESSAGE_ID, LPCSTR) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - int> AddMessage; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_SEVERITY, LPCSTR) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_MESSAGE_SEVERITY, - sbyte*, - int> AddApplicationMessage; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_CATEGORY, BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetBreakOnCategory; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_SEVERITY, BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetBreakOnSeverity; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_ID, BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetBreakOnID; - - [NativeTypeName("BOOL (D3D12_MESSAGE_CATEGORY) __attribute__((stdcall))")] - public delegate* unmanaged GetBreakOnCategory; - - [NativeTypeName("BOOL (D3D12_MESSAGE_SEVERITY) __attribute__((stdcall))")] - public delegate* unmanaged GetBreakOnSeverity; - - [NativeTypeName("BOOL (D3D12_MESSAGE_ID) __attribute__((stdcall))")] - public delegate* unmanaged GetBreakOnID; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetMuteDebugOutput; - - [NativeTypeName("BOOL () __attribute__((stdcall))")] - public delegate* unmanaged GetMuteDebugOutput; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue1.gen.cs deleted file mode 100644 index 75f415beff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue1.gen.cs +++ /dev/null @@ -1,704 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("2852DD88-B484-4C0C-B6B1-67168500E600")] -[NativeTypeName("struct ID3D12InfoQueue1 : ID3D12InfoQueue")] -[NativeInheritance("ID3D12InfoQueue")] -public unsafe partial struct ID3D12InfoQueue1 : ID3D12InfoQueue1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT SetMessageCountLimit([NativeTypeName("UINT64")] ulong MessageCountLimit) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - MessageCountLimit - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ClearStoredMessages() - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetMessage( - [NativeTypeName("UINT64")] ulong MessageIndex, - D3D12_MESSAGE* pMessage, - [NativeTypeName("SIZE_T *")] nuint* pMessageByteLength - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - MessageIndex, - pMessage, - pMessageByteLength - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - [return: NativeTypeName("UINT64")] - public ulong GetNumMessagesAllowedByStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - [return: NativeTypeName("UINT64")] - public ulong GetNumMessagesDeniedByStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - [return: NativeTypeName("UINT64")] - public ulong GetNumStoredMessages() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - [return: NativeTypeName("UINT64")] - public ulong GetNumStoredMessagesAllowedByRetrievalFilter() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - [return: NativeTypeName("UINT64")] - public ulong GetNumMessagesDiscardedByMessageCountLimit() - { - return ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - [return: NativeTypeName("UINT64")] - public ulong GetMessageCountLimit() - { - return ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT AddStorageFilterEntries(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ( - (delegate* unmanaged)(lpVtbl[12]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT GetStorageFilter( - D3D12_INFO_QUEUE_FILTER* pFilter, - [NativeTypeName("SIZE_T *")] nuint* pFilterByteLength - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ClearStorageFilter() - { - ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HRESULT PushEmptyStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HRESULT PushCopyOfStorageFilter() - { - return ((delegate* unmanaged)(lpVtbl[16]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HRESULT PushStorageFilter(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ( - (delegate* unmanaged)(lpVtbl[17]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void PopStorageFilter() - { - ((delegate* unmanaged)(lpVtbl[18]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public uint GetStorageFilterStackSize() - { - return ((delegate* unmanaged)(lpVtbl[19]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HRESULT AddRetrievalFilterEntries(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ( - (delegate* unmanaged)(lpVtbl[20]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HRESULT GetRetrievalFilter( - D3D12_INFO_QUEUE_FILTER* pFilter, - [NativeTypeName("SIZE_T *")] nuint* pFilterByteLength - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ClearRetrievalFilter() - { - ((delegate* unmanaged)(lpVtbl[22]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HRESULT PushEmptyRetrievalFilter() - { - return ((delegate* unmanaged)(lpVtbl[23]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HRESULT PushCopyOfRetrievalFilter() - { - return ((delegate* unmanaged)(lpVtbl[24]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HRESULT PushRetrievalFilter(D3D12_INFO_QUEUE_FILTER* pFilter) - { - return ( - (delegate* unmanaged)(lpVtbl[25]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void PopRetrievalFilter() - { - ((delegate* unmanaged)(lpVtbl[26]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetRetrievalFilterStackSize() - { - return ((delegate* unmanaged)(lpVtbl[27]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HRESULT AddMessage( - D3D12_MESSAGE_CATEGORY Category, - D3D12_MESSAGE_SEVERITY Severity, - D3D12_MESSAGE_ID ID, - [NativeTypeName("LPCSTR")] sbyte* pDescription - ) - { - return ( - (delegate* unmanaged< - ID3D12InfoQueue1*, - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - int>)(lpVtbl[28]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HRESULT AddApplicationMessage( - D3D12_MESSAGE_SEVERITY Severity, - [NativeTypeName("LPCSTR")] sbyte* pDescription - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity, pDescription); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HRESULT SetBreakOnCategory(D3D12_MESSAGE_CATEGORY Category, BOOL bEnable) - { - return ( - (delegate* unmanaged)(lpVtbl[30]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category, bEnable); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HRESULT SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY Severity, BOOL bEnable) - { - return ( - (delegate* unmanaged)(lpVtbl[31]) - )((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity, bEnable); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HRESULT SetBreakOnID(D3D12_MESSAGE_ID ID, BOOL bEnable) - { - return ((delegate* unmanaged)(lpVtbl[32]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - ID, - bEnable - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public BOOL GetBreakOnCategory(D3D12_MESSAGE_CATEGORY Category) - { - return ((delegate* unmanaged)(lpVtbl[33]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - Category - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public BOOL GetBreakOnSeverity(D3D12_MESSAGE_SEVERITY Severity) - { - return ((delegate* unmanaged)(lpVtbl[34]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - Severity - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public BOOL GetBreakOnID(D3D12_MESSAGE_ID ID) - { - return ((delegate* unmanaged)(lpVtbl[35]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - ID - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetMuteDebugOutput(BOOL bMute) - { - ((delegate* unmanaged)(lpVtbl[36]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - bMute - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public BOOL GetMuteDebugOutput() - { - return ((delegate* unmanaged)(lpVtbl[37]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HRESULT RegisterMessageCallback( - [NativeTypeName("D3D12MessageFunc")] - delegate* unmanaged< - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - void*, - void> CallbackFunc, - D3D12_MESSAGE_CALLBACK_FLAGS CallbackFilterFlags, - void* pContext, - [NativeTypeName("DWORD *")] uint* pCallbackCookie - ) - { - return ( - (delegate* unmanaged< - ID3D12InfoQueue1*, - delegate* unmanaged< - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - void*, - void>, - D3D12_MESSAGE_CALLBACK_FLAGS, - void*, - uint*, - int>)(lpVtbl[38]) - )( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - CallbackFunc, - CallbackFilterFlags, - pContext, - pCallbackCookie - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HRESULT UnregisterMessageCallback([NativeTypeName("DWORD")] uint CallbackCookie) - { - return ((delegate* unmanaged)(lpVtbl[39]))( - (ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), - CallbackCookie - ); - } - - public interface Interface : ID3D12InfoQueue.Interface - { - [VtblIndex(39)] - HRESULT UnregisterMessageCallback([NativeTypeName("DWORD")] uint CallbackCookie); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (UINT64) __attribute__((stdcall))")] - public delegate* unmanaged SetMessageCountLimit; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearStoredMessages; - - [NativeTypeName("HRESULT (UINT64, D3D12_MESSAGE *, SIZE_T *) __attribute__((stdcall))")] - public delegate* unmanaged GetMessage; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumMessagesAllowedByStorageFilter; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumMessagesDeniedByStorageFilter; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumStoredMessages; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumStoredMessagesAllowedByRetrievalFilter; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetNumMessagesDiscardedByMessageCountLimit; - - [NativeTypeName("UINT64 () __attribute__((stdcall))")] - public delegate* unmanaged GetMessageCountLimit; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged AddStorageFilterEntries; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *, SIZE_T *) __attribute__((stdcall))")] - public delegate* unmanaged GetStorageFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearStorageFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushEmptyStorageFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushCopyOfStorageFilter; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged PushStorageFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged PopStorageFilter; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetStorageFilterStackSize; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged AddRetrievalFilterEntries; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *, SIZE_T *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_INFO_QUEUE_FILTER*, - nuint*, - int> GetRetrievalFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearRetrievalFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushEmptyRetrievalFilter; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged PushCopyOfRetrievalFilter; - - [NativeTypeName("HRESULT (D3D12_INFO_QUEUE_FILTER *) __attribute__((stdcall))")] - public delegate* unmanaged PushRetrievalFilter; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged PopRetrievalFilter; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetRetrievalFilterStackSize; - - [NativeTypeName( - "HRESULT (D3D12_MESSAGE_CATEGORY, D3D12_MESSAGE_SEVERITY, D3D12_MESSAGE_ID, LPCSTR) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - int> AddMessage; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_SEVERITY, LPCSTR) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_MESSAGE_SEVERITY, - sbyte*, - int> AddApplicationMessage; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_CATEGORY, BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetBreakOnCategory; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_SEVERITY, BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetBreakOnSeverity; - - [NativeTypeName("HRESULT (D3D12_MESSAGE_ID, BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetBreakOnID; - - [NativeTypeName("BOOL (D3D12_MESSAGE_CATEGORY) __attribute__((stdcall))")] - public delegate* unmanaged GetBreakOnCategory; - - [NativeTypeName("BOOL (D3D12_MESSAGE_SEVERITY) __attribute__((stdcall))")] - public delegate* unmanaged GetBreakOnSeverity; - - [NativeTypeName("BOOL (D3D12_MESSAGE_ID) __attribute__((stdcall))")] - public delegate* unmanaged GetBreakOnID; - - [NativeTypeName("void (BOOL) __attribute__((stdcall))")] - public delegate* unmanaged SetMuteDebugOutput; - - [NativeTypeName("BOOL () __attribute__((stdcall))")] - public delegate* unmanaged GetMuteDebugOutput; - - [NativeTypeName( - "HRESULT (D3D12MessageFunc, D3D12_MESSAGE_CALLBACK_FLAGS, void *, DWORD *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - delegate* unmanaged< - D3D12_MESSAGE_CATEGORY, - D3D12_MESSAGE_SEVERITY, - D3D12_MESSAGE_ID, - sbyte*, - void*, - void>, - D3D12_MESSAGE_CALLBACK_FLAGS, - void*, - uint*, - int> RegisterMessageCallback; - - [NativeTypeName("HRESULT (DWORD) __attribute__((stdcall))")] - public delegate* unmanaged UnregisterMessageCallback; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12SharingContract.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12SharingContract.gen.cs deleted file mode 100644 index 0de47be6a2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12SharingContract.gen.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("0ADF7D52-929C-4E61-ADDB-FFED30DE66EF")] -[NativeTypeName("struct ID3D12SharingContract : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SharingContract : ID3D12SharingContract.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SharingContract)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12SharingContract*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12SharingContract*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12SharingContract*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void Present(ID3D12Resource* pResource, uint Subresource, HWND window) - { - ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12SharingContract*)Unsafe.AsPointer(ref this), pResource, Subresource, window); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SharedFenceSignal(ID3D12Fence* pFence, [NativeTypeName("UINT64")] ulong FenceValue) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12SharingContract*)Unsafe.AsPointer(ref this), - pFence, - FenceValue - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void BeginCapturableWork([NativeTypeName("const GUID &")] Guid* guid) - { - ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12SharingContract*)Unsafe.AsPointer(ref this), - guid - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void EndCapturableWork([NativeTypeName("const GUID &")] Guid* guid) - { - ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12SharingContract*)Unsafe.AsPointer(ref this), - guid - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void Present(ID3D12Resource* pResource, uint Subresource, HWND window); - - [VtblIndex(4)] - void SharedFenceSignal(ID3D12Fence* pFence, [NativeTypeName("UINT64")] ulong FenceValue); - - [VtblIndex(5)] - void BeginCapturableWork([NativeTypeName("const GUID &")] Guid* guid); - - [VtblIndex(6)] - void EndCapturableWork([NativeTypeName("const GUID &")] Guid* guid); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("void (ID3D12Resource *, UINT, HWND) __attribute__((stdcall))")] - public delegate* unmanaged Present; - - [NativeTypeName("void (ID3D12Fence *, UINT64) __attribute__((stdcall))")] - public delegate* unmanaged SharedFenceSignal; - - [NativeTypeName("void (const GUID &) __attribute__((stdcall))")] - public delegate* unmanaged BeginCapturableWork; - - [NativeTypeName("void (const GUID &) __attribute__((stdcall))")] - public delegate* unmanaged EndCapturableWork; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/IID.gen.cs deleted file mode 100644 index 2e09a8d9c0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12sdklayers/IID.gen.cs +++ /dev/null @@ -1,240 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xB7, 0x88, 0x44, 0x34, 0x46, 0x68, 0x4B, 0x47, 0xB9, 0x89, 0xF0, 0x27, 0x44, 0x82, 0x45, 0xE0]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xCA, 0xA4, 0xFA, 0xAF, 0xFE, 0x63, 0x8E, 0x4D, 0xB8, 0xAD, 0x15, 0x90, 0x00, 0xAF, 0x43, 0x04]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xC4, 0x65, 0xA6, 0x93, 0xB2, 0xA3, 0x5D, 0x4E, 0xB6, 0x92, 0xA2, 0x6A, 0xE1, 0x4E, 0x33, 0x74]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x8F, 0xE5, 0xF4, 0x5C, 0x71, 0xF6, 0xF1, 0x4F, 0xA5, 0x42, 0x36, 0x86, 0xE3, 0xD1, 0x53, 0xD1]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x6E, 0x81, 0x4B, 0x01, 0xC5, 0x9E, 0x2F, 0x4A, 0xA8, 0x45, 0xFF, 0xBE, 0x44, 0x1C, 0xE1, 0x3A]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x12, 0x6B, 0x8D, 0x54, 0xFA, 0x09, 0xE0, 0x40, 0x90, 0x69, 0x5D, 0xCD, 0x58, 0x9A, 0x52, 0xC9]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12Debug6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xD6, 0x16, 0xA8, 0x82, 0x01, 0x5D, 0x57, 0x41, 0x97, 0xD0, 0x49, 0x75, 0x46, 0x3F, 0xD1, 0xED]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugDevice1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x70, 0x17, 0xB7, 0xA9, 0x99, 0xD0, 0x65, 0x4A, 0xA6, 0x98, 0x3D, 0xEE, 0x10, 0x02, 0x0F, 0x88]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xDD, 0xD6, 0xEB, 0x3F, 0x73, 0x49, 0x87, 0x47, 0x81, 0x94, 0xE4, 0x5F, 0x9E, 0x28, 0x92, 0x3E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugDevice2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xC1, 0xCB, 0xEC, 0x60, 0x8D, 0x37, 0xF1, 0x4D, 0x89, 0x4C, 0xF8, 0xAC, 0x5C, 0xE4, 0xD7, 0xDD]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugCommandQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x36, 0xBF, 0xE0, 0x09, 0xAC, 0x54, 0x4F, 0x48, 0x88, 0x47, 0x4B, 0xAE, 0xEA, 0xB6, 0x05, 0x3A]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugCommandQueue1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA2, 0x35, 0xBE, 0x16, 0xD6, 0xBF, 0xF2, 0x49, 0xBC, 0xAE, 0xEA, 0xAE, 0x4A, 0xFF, 0x86, 0x2D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x51, 0xA9, 0x2C, 0x10, 0x1B, 0x31, 0x01, 0x4B, 0xB1, 0x1F, 0xEC, 0xB8, 0x3E, 0x06, 0x1B, 0x37]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x36, 0xBF, 0xE0, 0x09, 0xAC, 0x54, 0x4F, 0x48, 0x88, 0x47, 0x4B, 0xAE, 0xEA, 0xB6, 0x05, 0x3F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xCF, 0x75, 0xB5, 0xAE, 0x06, 0x4E, 0xBE, 0x48, 0xBA, 0x3B, 0xC4, 0x50, 0xFC, 0x96, 0x65, 0x2E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DebugCommandList3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x15, 0x5E, 0x7D, 0x19, 0x37, 0x4D, 0x34, 0x4D, 0xAF, 0x78, 0x72, 0x4C, 0xD7, 0x0F, 0xDB, 0x1F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12SharingContract - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x52, 0x7D, 0xDF, 0x0A, 0x9C, 0x92, 0x61, 0x4E, 0xAD, 0xDB, 0xFF, 0xED, 0x30, 0xDE, 0x66, 0xEF]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12InfoQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x0B, 0xA9, 0x42, 0x07, 0x87, 0xC3, 0x3F, 0x48, 0xB9, 0x46, 0x30, 0xA7, 0xE4, 0xE6, 0x14, 0x58]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12InfoQueue1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x88, 0xDD, 0x52, 0x28, 0x84, 0xB4, 0x0C, 0x4C, 0xB6, 0xB1, 0x67, 0x16, 0x85, 0x00, 0xE6, 0x00]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D.gen.cs deleted file mode 100644 index 7c1de274e0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D.gen.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -public static partial class D3D -{ - [NativeTypeName("#define D3D_SHADER_REQUIRES_STENCIL_REF 0x00000200")] - public const int D3D_SHADER_REQUIRES_STENCIL_REF = 0x00000200; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_INNER_COVERAGE 0x00000400")] - public const int D3D_SHADER_REQUIRES_INNER_COVERAGE = 0x00000400; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00000800")] - public const int D3D_SHADER_REQUIRES_TYPED_UAV_LOAD_ADDITIONAL_FORMATS = 0x00000800; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_ROVS 0x00001000")] - public const int D3D_SHADER_REQUIRES_ROVS = 0x00001000; - - [NativeTypeName( - "#define D3D_SHADER_REQUIRES_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x00002000" - )] - public const int D3D_SHADER_REQUIRES_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER = - 0x00002000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_WAVE_OPS 0x00004000")] - public const int D3D_SHADER_REQUIRES_WAVE_OPS = 0x00004000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_INT64_OPS 0x00008000")] - public const int D3D_SHADER_REQUIRES_INT64_OPS = 0x00008000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_VIEW_ID 0x00010000")] - public const int D3D_SHADER_REQUIRES_VIEW_ID = 0x00010000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_BARYCENTRICS 0x00020000")] - public const int D3D_SHADER_REQUIRES_BARYCENTRICS = 0x00020000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_NATIVE_16BIT_OPS 0x00040000")] - public const int D3D_SHADER_REQUIRES_NATIVE_16BIT_OPS = 0x00040000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_SHADING_RATE 0x00080000")] - public const int D3D_SHADER_REQUIRES_SHADING_RATE = 0x00080000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_RAYTRACING_TIER_1_1 0x00100000")] - public const int D3D_SHADER_REQUIRES_RAYTRACING_TIER_1_1 = 0x00100000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_SAMPLER_FEEDBACK 0x00200000")] - public const int D3D_SHADER_REQUIRES_SAMPLER_FEEDBACK = 0x00200000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_TYPED_RESOURCE 0x00400000")] - public const int D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_TYPED_RESOURCE = 0x00400000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_GROUP_SHARED 0x00800000")] - public const int D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_GROUP_SHARED = 0x00800000; - - [NativeTypeName( - "#define D3D_SHADER_REQUIRES_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x01000000" - )] - public const int D3D_SHADER_REQUIRES_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS = 0x01000000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x02000000")] - public const int D3D_SHADER_REQUIRES_RESOURCE_DESCRIPTOR_HEAP_INDEXING = 0x02000000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x04000000")] - public const int D3D_SHADER_REQUIRES_SAMPLER_DESCRIPTOR_HEAP_INDEXING = 0x04000000; - - [NativeTypeName("#define D3D_SHADER_REQUIRES_WAVE_MMA 0x08000000")] - public const int D3D_SHADER_REQUIRES_WAVE_MMA = 0x08000000; - - [NativeTypeName( - "#define D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000" - )] - public const int D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 0x10000000; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_FUNCTION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_FUNCTION_DESC.gen.cs deleted file mode 100644 index 55ac407f85..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_FUNCTION_DESC.gen.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FUNCTION_DESC -{ - /// - - public uint Version; - - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Creator; - - /// - - public uint Flags; - - /// - - public uint ConstantBuffers; - - /// - - public uint BoundResources; - - /// - - public uint InstructionCount; - - /// - - public uint TempRegisterCount; - - /// - - public uint TempArrayCount; - - /// - - public uint DefCount; - - /// - - public uint DclCount; - - /// - - public uint TextureNormalInstructions; - - /// - - public uint TextureLoadInstructions; - - /// - - public uint TextureCompInstructions; - - /// - - public uint TextureBiasInstructions; - - /// - - public uint TextureGradientInstructions; - - /// - - public uint FloatInstructionCount; - - /// - - public uint IntInstructionCount; - - /// - - public uint UintInstructionCount; - - /// - - public uint StaticFlowControlCount; - - /// - - public uint DynamicFlowControlCount; - - /// - - public uint MacroInstructionCount; - - /// - - public uint ArrayInstructionCount; - - /// - - public uint MovInstructionCount; - - /// - - public uint MovcInstructionCount; - - /// - - public uint ConversionInstructionCount; - - /// - - public uint BitwiseInstructionCount; - - /// - - public D3D_FEATURE_LEVEL MinFeatureLevel; - - /// - - [NativeTypeName("UINT64")] - public ulong RequiredFeatureFlags; - - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Name; - - /// - - public int FunctionParameterCount; - - /// - - public BOOL HasReturn; - - /// - - public BOOL Has10Level9VertexShader; - - /// - - public BOOL Has10Level9PixelShader; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_LIBRARY_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_LIBRARY_DESC.gen.cs deleted file mode 100644 index f00f855eb6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_LIBRARY_DESC.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_LIBRARY_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Creator; - - /// - - public uint Flags; - - /// - - public uint FunctionCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_PARAMETER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_PARAMETER_DESC.gen.cs deleted file mode 100644 index 2a77c17331..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_PARAMETER_DESC.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_PARAMETER_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Name; - - /// - - [NativeTypeName("LPCSTR")] - public sbyte* SemanticName; - - /// - - public D3D_SHADER_VARIABLE_TYPE Type; - - /// - - public D3D_SHADER_VARIABLE_CLASS Class; - - /// - - public uint Rows; - - /// - - public uint Columns; - - /// - - public D3D_INTERPOLATION_MODE InterpolationMode; - - /// - - public D3D_PARAMETER_FLAGS Flags; - - /// - - public uint FirstInRegister; - - /// - - public uint FirstInComponent; - - /// - - public uint FirstOutRegister; - - /// - - public uint FirstOutComponent; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_BUFFER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_BUFFER_DESC.gen.cs deleted file mode 100644 index ce0c7a483c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_BUFFER_DESC.gen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SHADER_BUFFER_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Name; - - /// - - public D3D_CBUFFER_TYPE Type; - - /// - - public uint Variables; - - /// - - public uint Size; - - /// - - public uint uFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_DESC.gen.cs deleted file mode 100644 index a1106e3e41..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_DESC.gen.cs +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SHADER_DESC -{ - /// - - public uint Version; - - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Creator; - - /// - - public uint Flags; - - /// - - public uint ConstantBuffers; - - /// - - public uint BoundResources; - - /// - - public uint InputParameters; - - /// - - public uint OutputParameters; - - /// - - public uint InstructionCount; - - /// - - public uint TempRegisterCount; - - /// - - public uint TempArrayCount; - - /// - - public uint DefCount; - - /// - - public uint DclCount; - - /// - - public uint TextureNormalInstructions; - - /// - - public uint TextureLoadInstructions; - - /// - - public uint TextureCompInstructions; - - /// - - public uint TextureBiasInstructions; - - /// - - public uint TextureGradientInstructions; - - /// - - public uint FloatInstructionCount; - - /// - - public uint IntInstructionCount; - - /// - - public uint UintInstructionCount; - - /// - - public uint StaticFlowControlCount; - - /// - - public uint DynamicFlowControlCount; - - /// - - public uint MacroInstructionCount; - - /// - - public uint ArrayInstructionCount; - - /// - - public uint CutInstructionCount; - - /// - - public uint EmitInstructionCount; - - /// - - public D3D_PRIMITIVE_TOPOLOGY GSOutputTopology; - - /// - - public uint GSMaxOutputVertexCount; - - /// - - public D3D_PRIMITIVE InputPrimitive; - - /// - - public uint PatchConstantParameters; - - /// - - public uint cGSInstanceCount; - - /// - - public uint cControlPoints; - - /// - - public D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive; - - /// - - public D3D_TESSELLATOR_PARTITIONING HSPartitioning; - - /// - - public D3D_TESSELLATOR_DOMAIN TessellatorDomain; - - /// - - public uint cBarrierInstructions; - - /// - - public uint cInterlockedInstructions; - - /// - - public uint cTextureStoreInstructions; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_INPUT_BIND_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_INPUT_BIND_DESC.gen.cs deleted file mode 100644 index 3984ab6394..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_INPUT_BIND_DESC.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SHADER_INPUT_BIND_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Name; - - /// - - public D3D_SHADER_INPUT_TYPE Type; - - /// - - public uint BindPoint; - - /// - - public uint BindCount; - - /// - - public uint uFlags; - - /// - - public D3D_RESOURCE_RETURN_TYPE ReturnType; - - /// - - public D3D_SRV_DIMENSION Dimension; - - /// - - public uint NumSamples; - - /// - - public uint Space; - - /// - - public uint uID; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_TYPE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_TYPE_DESC.gen.cs deleted file mode 100644 index 4cc9ad0770..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_TYPE_DESC.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SHADER_TYPE_DESC -{ - /// - - public D3D_SHADER_VARIABLE_CLASS Class; - - /// - - public D3D_SHADER_VARIABLE_TYPE Type; - - /// - - public uint Rows; - - /// - - public uint Columns; - - /// - - public uint Elements; - - /// - - public uint Members; - - /// - - public uint Offset; - - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Name; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VARIABLE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VARIABLE_DESC.gen.cs deleted file mode 100644 index eea788d58d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VARIABLE_DESC.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SHADER_VARIABLE_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* Name; - - /// - - public uint StartOffset; - - /// - - public uint Size; - - /// - - public uint uFlags; - - /// - - [NativeTypeName("LPVOID")] - public void* DefaultValue; - - /// - - public uint StartTexture; - - /// - - public uint TextureSize; - - /// - - public uint StartSampler; - - /// - - public uint SamplerSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VERSION_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VERSION_TYPE.gen.cs deleted file mode 100644 index 1158aba9d6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VERSION_TYPE.gen.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_SHADER_VERSION_TYPE -{ - /// - - D3D12_SHVER_PIXEL_SHADER = 0, - - /// - - D3D12_SHVER_VERTEX_SHADER = 1, - - /// - - D3D12_SHVER_GEOMETRY_SHADER = 2, - - /// - - D3D12_SHVER_HULL_SHADER = 3, - - /// - - D3D12_SHVER_DOMAIN_SHADER = 4, - - /// - - D3D12_SHVER_COMPUTE_SHADER = 5, - - /// - - D3D12_SHVER_LIBRARY = 6, - - /// - - D3D12_SHVER_RAY_GENERATION_SHADER = 7, - - /// - - D3D12_SHVER_INTERSECTION_SHADER = 8, - - /// - - D3D12_SHVER_ANY_HIT_SHADER = 9, - - /// - - D3D12_SHVER_CLOSEST_HIT_SHADER = 10, - - /// - - D3D12_SHVER_MISS_SHADER = 11, - - /// - - D3D12_SHVER_CALLABLE_SHADER = 12, - - /// - - D3D12_SHVER_MESH_SHADER = 13, - - /// - - D3D12_SHVER_AMPLIFICATION_SHADER = 14, - - /// - - D3D12_SHVER_RESERVED0 = 0xFFF0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SIGNATURE_PARAMETER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SIGNATURE_PARAMETER_DESC.gen.cs deleted file mode 100644 index 4a55fa0b55..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SIGNATURE_PARAMETER_DESC.gen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_SIGNATURE_PARAMETER_DESC -{ - /// - - [NativeTypeName("LPCSTR")] - public sbyte* SemanticName; - - /// - - public uint SemanticIndex; - - /// - - public uint Register; - - /// - - public D3D_NAME SystemValueType; - - /// - - public D3D_REGISTER_COMPONENT_TYPE ComponentType; - - /// - - public byte Mask; - - /// - - public byte ReadWriteMask; - - /// - - public uint Stream; - - /// - - public D3D_MIN_PRECISION MinPrecision; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionParameterReflection.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionParameterReflection.gen.cs deleted file mode 100644 index c2dddbfb2c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionParameterReflection.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("EC25F42D-7006-4F2B-B33E-02CC3375733F")] -public unsafe partial struct ID3D12FunctionParameterReflection - : ID3D12FunctionParameterReflection.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionParameterReflection)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT GetDesc(D3D12_PARAMETER_DESC* pDesc) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D12FunctionParameterReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT GetDesc(D3D12_PARAMETER_DESC* pDesc); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (D3D12_PARAMETER_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionReflection.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionReflection.gen.cs deleted file mode 100644 index 9b8f24ec32..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionReflection.gen.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("1108795C-2772-4BA9-B2A8-D464DC7E2799")] -public unsafe partial struct ID3D12FunctionReflection - : ID3D12FunctionReflection.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionReflection)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT GetDesc(D3D12_FUNCTION_DESC* pDesc) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByIndex(uint BufferIndex) - { - return ( - (delegate* unmanaged< - ID3D12FunctionReflection*, - uint, - ID3D12ShaderReflectionConstantBuffer*>)(lpVtbl[1]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), BufferIndex); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByName( - [NativeTypeName("LPCSTR")] sbyte* Name - ) - { - return ( - (delegate* unmanaged< - ID3D12FunctionReflection*, - sbyte*, - ID3D12ShaderReflectionConstantBuffer*>)(lpVtbl[2]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetResourceBindingDesc(uint ResourceIndex, D3D12_SHADER_INPUT_BIND_DESC* pDesc) - { - return ( - (delegate* unmanaged< - ID3D12FunctionReflection*, - uint, - D3D12_SHADER_INPUT_BIND_DESC*, - int>)(lpVtbl[3]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D12ShaderReflectionVariable* GetVariableByName([NativeTypeName("LPCSTR")] sbyte* Name) - { - return ( - (delegate* unmanaged< - ID3D12FunctionReflection*, - sbyte*, - ID3D12ShaderReflectionVariable*>)(lpVtbl[4]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT GetResourceBindingDescByName( - [NativeTypeName("LPCSTR")] sbyte* Name, - D3D12_SHADER_INPUT_BIND_DESC* pDesc - ) - { - return ( - (delegate* unmanaged< - ID3D12FunctionReflection*, - sbyte*, - D3D12_SHADER_INPUT_BIND_DESC*, - int>)(lpVtbl[5]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ID3D12FunctionParameterReflection* GetFunctionParameter(int ParameterIndex) - { - return ( - (delegate* unmanaged< - ID3D12FunctionReflection*, - int, - ID3D12FunctionParameterReflection*>)(lpVtbl[6]) - )((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), ParameterIndex); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT GetDesc(D3D12_FUNCTION_DESC* pDesc); - - [VtblIndex(1)] - ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByIndex(uint BufferIndex); - - [VtblIndex(2)] - ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByName( - [NativeTypeName("LPCSTR")] sbyte* Name - ); - - [VtblIndex(3)] - HRESULT GetResourceBindingDesc(uint ResourceIndex, D3D12_SHADER_INPUT_BIND_DESC* pDesc); - - [VtblIndex(4)] - ID3D12ShaderReflectionVariable* GetVariableByName([NativeTypeName("LPCSTR")] sbyte* Name); - - [VtblIndex(5)] - HRESULT GetResourceBindingDescByName( - [NativeTypeName("LPCSTR")] sbyte* Name, - D3D12_SHADER_INPUT_BIND_DESC* pDesc - ); - - [VtblIndex(6)] - ID3D12FunctionParameterReflection* GetFunctionParameter(int ParameterIndex); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (D3D12_FUNCTION_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionConstantBuffer *(UINT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12ShaderReflectionConstantBuffer*> GetConstantBufferByIndex; - - [NativeTypeName( - "ID3D12ShaderReflectionConstantBuffer *(LPCSTR) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - ID3D12ShaderReflectionConstantBuffer*> GetConstantBufferByName; - - [NativeTypeName( - "HRESULT (UINT, D3D12_SHADER_INPUT_BIND_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_SHADER_INPUT_BIND_DESC*, - int> GetResourceBindingDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionVariable *(LPCSTR) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - ID3D12ShaderReflectionVariable*> GetVariableByName; - - [NativeTypeName( - "HRESULT (LPCSTR, D3D12_SHADER_INPUT_BIND_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - D3D12_SHADER_INPUT_BIND_DESC*, - int> GetResourceBindingDescByName; - - [NativeTypeName( - "ID3D12FunctionParameterReflection *(INT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - int, - ID3D12FunctionParameterReflection*> GetFunctionParameter; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12LibraryReflection.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12LibraryReflection.gen.cs deleted file mode 100644 index c548b98107..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12LibraryReflection.gen.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8E349D19-54DB-4A56-9DC9-119D87BDB804")] -[NativeTypeName("struct ID3D12LibraryReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12LibraryReflection - : ID3D12LibraryReflection.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LibraryReflection)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12LibraryReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12LibraryReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetDesc(D3D12_LIBRARY_DESC* pDesc) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D12FunctionReflection* GetFunctionByIndex(int FunctionIndex) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), FunctionIndex); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT GetDesc(D3D12_LIBRARY_DESC* pDesc); - - [VtblIndex(4)] - ID3D12FunctionReflection* GetFunctionByIndex(int FunctionIndex); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (D3D12_LIBRARY_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - - [NativeTypeName( - "ID3D12FunctionReflection *(INT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetFunctionByIndex; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflection.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflection.gen.cs deleted file mode 100644 index 4b44b707f5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflection.gen.cs +++ /dev/null @@ -1,502 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("5A58797D-A72C-478D-8BA2-EFC6B0EFE88E")] -[NativeTypeName("struct ID3D12ShaderReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12ShaderReflection : ID3D12ShaderReflection.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflection)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetDesc(D3D12_SHADER_DESC* pDesc) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), - pDesc - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByIndex(uint Index) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - uint, - ID3D12ShaderReflectionConstantBuffer*>)(lpVtbl[4]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByName( - [NativeTypeName("LPCSTR")] sbyte* Name - ) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - sbyte*, - ID3D12ShaderReflectionConstantBuffer*>)(lpVtbl[5]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT GetResourceBindingDesc(uint ResourceIndex, D3D12_SHADER_INPUT_BIND_DESC* pDesc) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - uint, - D3D12_SHADER_INPUT_BIND_DESC*, - int>)(lpVtbl[6]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetInputParameterDesc(uint ParameterIndex, D3D12_SIGNATURE_PARAMETER_DESC* pDesc) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - uint, - D3D12_SIGNATURE_PARAMETER_DESC*, - int>)(lpVtbl[7]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT GetOutputParameterDesc( - uint ParameterIndex, - D3D12_SIGNATURE_PARAMETER_DESC* pDesc - ) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - uint, - D3D12_SIGNATURE_PARAMETER_DESC*, - int>)(lpVtbl[8]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetPatchConstantParameterDesc( - uint ParameterIndex, - D3D12_SIGNATURE_PARAMETER_DESC* pDesc - ) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - uint, - D3D12_SIGNATURE_PARAMETER_DESC*, - int>)(lpVtbl[9]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ID3D12ShaderReflectionVariable* GetVariableByName([NativeTypeName("LPCSTR")] sbyte* Name) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT GetResourceBindingDescByName( - [NativeTypeName("LPCSTR")] sbyte* Name, - D3D12_SHADER_INPUT_BIND_DESC* pDesc - ) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflection*, - sbyte*, - D3D12_SHADER_INPUT_BIND_DESC*, - int>)(lpVtbl[11]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name, pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public uint GetMovInstructionCount() - { - return ((delegate* unmanaged)(lpVtbl[12]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public uint GetMovcInstructionCount() - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public uint GetConversionInstructionCount() - { - return ((delegate* unmanaged)(lpVtbl[14]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetBitwiseInstructionCount() - { - return ((delegate* unmanaged)(lpVtbl[15]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public D3D_PRIMITIVE GetGSInputPrimitive() - { - return ((delegate* unmanaged)(lpVtbl[16]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public BOOL IsSampleFrequencyShader() - { - return ((delegate* unmanaged)(lpVtbl[17]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetNumInterfaceSlots() - { - return ((delegate* unmanaged)(lpVtbl[18]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HRESULT GetMinFeatureLevel( - [NativeTypeName("enum D3D_FEATURE_LEVEL *")] D3D_FEATURE_LEVEL* pLevel - ) - { - return ( - (delegate* unmanaged)(lpVtbl[19]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pLevel); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ) - { - return ( - (delegate* unmanaged)(lpVtbl[20]) - )((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pSizeX, pSizeY, pSizeZ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - [return: NativeTypeName("UINT64")] - public ulong GetRequiresFlags() - { - return ((delegate* unmanaged)(lpVtbl[21]))( - (ID3D12ShaderReflection*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT GetDesc(D3D12_SHADER_DESC* pDesc); - - [VtblIndex(4)] - ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByIndex(uint Index); - - [VtblIndex(5)] - ID3D12ShaderReflectionConstantBuffer* GetConstantBufferByName( - [NativeTypeName("LPCSTR")] sbyte* Name - ); - - [VtblIndex(6)] - HRESULT GetResourceBindingDesc(uint ResourceIndex, D3D12_SHADER_INPUT_BIND_DESC* pDesc); - - [VtblIndex(7)] - HRESULT GetInputParameterDesc(uint ParameterIndex, D3D12_SIGNATURE_PARAMETER_DESC* pDesc); - - [VtblIndex(8)] - HRESULT GetOutputParameterDesc(uint ParameterIndex, D3D12_SIGNATURE_PARAMETER_DESC* pDesc); - - [VtblIndex(9)] - HRESULT GetPatchConstantParameterDesc( - uint ParameterIndex, - D3D12_SIGNATURE_PARAMETER_DESC* pDesc - ); - - [VtblIndex(10)] - ID3D12ShaderReflectionVariable* GetVariableByName([NativeTypeName("LPCSTR")] sbyte* Name); - - [VtblIndex(11)] - HRESULT GetResourceBindingDescByName( - [NativeTypeName("LPCSTR")] sbyte* Name, - D3D12_SHADER_INPUT_BIND_DESC* pDesc - ); - - [VtblIndex(12)] - uint GetMovInstructionCount(); - - [VtblIndex(13)] - uint GetMovcInstructionCount(); - - [VtblIndex(14)] - uint GetConversionInstructionCount(); - - [VtblIndex(15)] - uint GetBitwiseInstructionCount(); - - [VtblIndex(16)] - D3D_PRIMITIVE GetGSInputPrimitive(); - - [VtblIndex(17)] - BOOL IsSampleFrequencyShader(); - - [VtblIndex(18)] - uint GetNumInterfaceSlots(); - - [VtblIndex(19)] - HRESULT GetMinFeatureLevel( - [NativeTypeName("enum D3D_FEATURE_LEVEL *")] D3D_FEATURE_LEVEL* pLevel - ); - - [VtblIndex(20)] - uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ); - - [VtblIndex(21)] - [return: NativeTypeName("UINT64")] - ulong GetRequiresFlags(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (D3D12_SHADER_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionConstantBuffer *(UINT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12ShaderReflectionConstantBuffer*> GetConstantBufferByIndex; - - [NativeTypeName( - "ID3D12ShaderReflectionConstantBuffer *(LPCSTR) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - ID3D12ShaderReflectionConstantBuffer*> GetConstantBufferByName; - - [NativeTypeName( - "HRESULT (UINT, D3D12_SHADER_INPUT_BIND_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_SHADER_INPUT_BIND_DESC*, - int> GetResourceBindingDesc; - - [NativeTypeName( - "HRESULT (UINT, D3D12_SIGNATURE_PARAMETER_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_SIGNATURE_PARAMETER_DESC*, - int> GetInputParameterDesc; - - [NativeTypeName( - "HRESULT (UINT, D3D12_SIGNATURE_PARAMETER_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_SIGNATURE_PARAMETER_DESC*, - int> GetOutputParameterDesc; - - [NativeTypeName( - "HRESULT (UINT, D3D12_SIGNATURE_PARAMETER_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_SIGNATURE_PARAMETER_DESC*, - int> GetPatchConstantParameterDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionVariable *(LPCSTR) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - ID3D12ShaderReflectionVariable*> GetVariableByName; - - [NativeTypeName( - "HRESULT (LPCSTR, D3D12_SHADER_INPUT_BIND_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - D3D12_SHADER_INPUT_BIND_DESC*, - int> GetResourceBindingDescByName; - - [NativeTypeName("UINT () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetMovInstructionCount; - - [NativeTypeName("UINT () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetMovcInstructionCount; - - [NativeTypeName("UINT () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetConversionInstructionCount; - - [NativeTypeName("UINT () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetBitwiseInstructionCount; - - [NativeTypeName("D3D_PRIMITIVE () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetGSInputPrimitive; - - [NativeTypeName("BOOL () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged IsSampleFrequencyShader; - - [NativeTypeName("UINT () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetNumInterfaceSlots; - - [NativeTypeName( - "HRESULT (enum D3D_FEATURE_LEVEL *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetMinFeatureLevel; - - [NativeTypeName( - "UINT (UINT *, UINT *, UINT *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetThreadGroupSize; - - [NativeTypeName("UINT64 () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetRequiresFlags; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionConstantBuffer.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionConstantBuffer.gen.cs deleted file mode 100644 index a1be906754..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionConstantBuffer.gen.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C59598B4-48B3-4869-B9B1-B1618B14A8B7")] -public unsafe partial struct ID3D12ShaderReflectionConstantBuffer - : ID3D12ShaderReflectionConstantBuffer.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionConstantBuffer)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT GetDesc(D3D12_SHADER_BUFFER_DESC* pDesc) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflectionConstantBuffer*, - D3D12_SHADER_BUFFER_DESC*, - int>)(lpVtbl[0]) - )((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D12ShaderReflectionVariable* GetVariableByIndex(uint Index) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflectionConstantBuffer*, - uint, - ID3D12ShaderReflectionVariable*>)(lpVtbl[1]) - )((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionVariable* GetVariableByName([NativeTypeName("LPCSTR")] sbyte* Name) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflectionConstantBuffer*, - sbyte*, - ID3D12ShaderReflectionVariable*>)(lpVtbl[2]) - )((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT GetDesc(D3D12_SHADER_BUFFER_DESC* pDesc); - - [VtblIndex(1)] - ID3D12ShaderReflectionVariable* GetVariableByIndex(uint Index); - - [VtblIndex(2)] - ID3D12ShaderReflectionVariable* GetVariableByName([NativeTypeName("LPCSTR")] sbyte* Name); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (D3D12_SHADER_BUFFER_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionVariable *(UINT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - ID3D12ShaderReflectionVariable*> GetVariableByIndex; - - [NativeTypeName( - "ID3D12ShaderReflectionVariable *(LPCSTR) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - sbyte*, - ID3D12ShaderReflectionVariable*> GetVariableByName; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionType.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionType.gen.cs deleted file mode 100644 index 9fc0557d64..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionType.gen.cs +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("E913C351-783D-48CA-A1D1-4F306284AD56")] -public unsafe partial struct ID3D12ShaderReflectionType - : ID3D12ShaderReflectionType.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionType)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT GetDesc(D3D12_SHADER_TYPE_DESC* pDesc) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D12ShaderReflectionType* GetMemberTypeByIndex(uint Index) - { - return ( - (delegate* unmanaged)( - lpVtbl[1] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionType* GetMemberTypeByName([NativeTypeName("LPCSTR")] sbyte* Name) - { - return ( - (delegate* unmanaged)( - lpVtbl[2] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Name); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - [return: NativeTypeName("LPCSTR")] - public sbyte* GetMemberTypeName(uint Index) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), - Index - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT IsEqual(ID3D12ShaderReflectionType* pType) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D12ShaderReflectionType* GetSubType() - { - return ( - (delegate* unmanaged)( - lpVtbl[5] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ID3D12ShaderReflectionType* GetBaseClass() - { - return ( - (delegate* unmanaged)( - lpVtbl[6] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNumInterfaces() - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ID3D12ShaderReflectionType* GetInterfaceByIndex(uint uIndex) - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), uIndex); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT IsOfType(ID3D12ShaderReflectionType* pType) - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT ImplementsInterface(ID3D12ShaderReflectionType* pBase) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pBase); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT GetDesc(D3D12_SHADER_TYPE_DESC* pDesc); - - [VtblIndex(1)] - ID3D12ShaderReflectionType* GetMemberTypeByIndex(uint Index); - - [VtblIndex(2)] - ID3D12ShaderReflectionType* GetMemberTypeByName([NativeTypeName("LPCSTR")] sbyte* Name); - - [VtblIndex(3)] - [return: NativeTypeName("LPCSTR")] - sbyte* GetMemberTypeName(uint Index); - - [VtblIndex(4)] - HRESULT IsEqual(ID3D12ShaderReflectionType* pType); - - [VtblIndex(5)] - ID3D12ShaderReflectionType* GetSubType(); - - [VtblIndex(6)] - ID3D12ShaderReflectionType* GetBaseClass(); - - [VtblIndex(7)] - uint GetNumInterfaces(); - - [VtblIndex(8)] - ID3D12ShaderReflectionType* GetInterfaceByIndex(uint uIndex); - - [VtblIndex(9)] - HRESULT IsOfType(ID3D12ShaderReflectionType* pType); - - [VtblIndex(10)] - HRESULT ImplementsInterface(ID3D12ShaderReflectionType* pBase); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (D3D12_SHADER_TYPE_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionType *(UINT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetMemberTypeByIndex; - - [NativeTypeName( - "ID3D12ShaderReflectionType *(LPCSTR) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetMemberTypeByName; - - [NativeTypeName("LPCSTR (UINT) __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetMemberTypeName; - - [NativeTypeName( - "HRESULT (ID3D12ShaderReflectionType *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged IsEqual; - - [NativeTypeName( - "ID3D12ShaderReflectionType *() __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetSubType; - - [NativeTypeName( - "ID3D12ShaderReflectionType *() __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetBaseClass; - - [NativeTypeName("UINT () __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetNumInterfaces; - - [NativeTypeName( - "ID3D12ShaderReflectionType *(UINT) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetInterfaceByIndex; - - [NativeTypeName( - "HRESULT (ID3D12ShaderReflectionType *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged IsOfType; - - [NativeTypeName( - "HRESULT (ID3D12ShaderReflectionType *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged ImplementsInterface; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionVariable.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionVariable.gen.cs deleted file mode 100644 index b4a2360d2a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionVariable.gen.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8337A8A6-A216-444A-B2F4-314733A73AEA")] -public unsafe partial struct ID3D12ShaderReflectionVariable - : ID3D12ShaderReflectionVariable.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionVariable)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT GetDesc(D3D12_SHADER_VARIABLE_DESC* pDesc) - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflectionVariable*, - D3D12_SHADER_VARIABLE_DESC*, - int>)(lpVtbl[0]) - )((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public new ID3D12ShaderReflectionType* GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[1] - ) - )((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionConstantBuffer* GetBuffer() - { - return ( - (delegate* unmanaged< - ID3D12ShaderReflectionVariable*, - ID3D12ShaderReflectionConstantBuffer*>)(lpVtbl[2]) - )((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInterfaceSlot(uint uArrayIndex) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this), - uArrayIndex - ); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT GetDesc(D3D12_SHADER_VARIABLE_DESC* pDesc); - - [VtblIndex(1)] - ID3D12ShaderReflectionType* GetType(); - - [VtblIndex(2)] - ID3D12ShaderReflectionConstantBuffer* GetBuffer(); - - [VtblIndex(3)] - uint GetInterfaceSlot(uint uArrayIndex); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (D3D12_SHADER_VARIABLE_DESC *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetDesc; - - [NativeTypeName( - "ID3D12ShaderReflectionType *() __attribute__((nothrow)) __attribute__((stdcall))" - )] - public new delegate* unmanaged GetType; - - [NativeTypeName( - "ID3D12ShaderReflectionConstantBuffer *() __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetBuffer; - - [NativeTypeName("UINT (UINT) __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged GetInterfaceSlot; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12shader/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12shader/IID.gen.cs deleted file mode 100644 index c706860d0e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12shader/IID.gen.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ShaderReflectionType - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x51, 0xC3, 0x13, 0xE9, 0x3D, 0x78, 0xCA, 0x48, 0xA1, 0xD1, 0x4F, 0x30, 0x62, 0x84, 0xAD, 0x56]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ShaderReflectionVariable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA6, 0xA8, 0x37, 0x83, 0x16, 0xA2, 0x4A, 0x44, 0xB2, 0xF4, 0x31, 0x47, 0x33, 0xA7, 0x3A, 0xEA]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ShaderReflectionConstantBuffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xB4, 0x98, 0x95, 0xC5, 0xB3, 0x48, 0x69, 0x48, 0xB9, 0xB1, 0xB1, 0x61, 0x8B, 0x14, 0xA8, 0xB7]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12ShaderReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7D, 0x79, 0x58, 0x5A, 0x2C, 0xA7, 0x8D, 0x47, 0x8B, 0xA2, 0xEF, 0xC6, 0xB0, 0xEF, 0xE8, 0x8E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12LibraryReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x19, 0x9D, 0x34, 0x8E, 0xDB, 0x54, 0x56, 0x4A, 0x9D, 0xC9, 0x11, 0x9D, 0x87, 0xBD, 0xB8, 0x04]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12FunctionReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x5C, 0x79, 0x08, 0x11, 0x72, 0x27, 0xA9, 0x4B, 0xB2, 0xA8, 0xD4, 0x64, 0xDC, 0x7E, 0x27, 0x99]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12FunctionParameterReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x2D, 0xF4, 0x25, 0xEC, 0x06, 0x70, 0x2B, 0x4F, 0xB3, 0x3E, 0x02, 0xCC, 0x33, 0x75, 0x73, 0x3F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12.gen.cs deleted file mode 100644 index 6b5e741b07..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12.gen.cs +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class D3D12 -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_MPEG2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7F, 0x41, 0x27, 0xEE, 0x28, 0x5E, 0x65, 0x4E, 0xBE, 0xEA, 0x1D, 0x26, 0xB5, 0x08, 0xAD, 0xC9]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x12, 0x5F, 0x69, 0x86, 0x0E, 0x34, 0x04, 0x4F, 0x9F, 0xD3, 0x92, 0x53, 0xDD, 0x32, 0x74, 0x60]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_H264 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x68, 0xBE, 0x81, 0x1B, 0xC7, 0xA0, 0xD3, 0x11, 0xB9, 0x84, 0x00, 0xC0, 0x4F, 0x2E, 0x73, 0xC5]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_H264_STEREO_PROGRESSIVE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xDA, 0xE8, 0x9B, 0xD7, 0xF1, 0x0C, 0x81, 0x4C, 0xB8, 0x2A, 0x69, 0xA4, 0xE2, 0x36, 0xF4, 0x3D]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_H264_STEREO - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xBB, 0xCC, 0xAA, 0xF9, 0xB6, 0xC2, 0xFC, 0x4C, 0x87, 0x79, 0x57, 0x07, 0xB1, 0x76, 0x05, 0x52]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_H264_MULTIVIEW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x82, 0x9D, 0x5B, 0x70, 0xCF, 0x76, 0xD6, 0x49, 0xB7, 0xE6, 0xAC, 0x88, 0x72, 0xDB, 0x01, 0x3C]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_VC1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA3, 0xBE, 0x81, 0x1B, 0xC7, 0xA0, 0xD3, 0x11, 0xB9, 0x84, 0x00, 0xC0, 0x4F, 0x2E, 0x73, 0xC5]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_VC1_D2010 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA4, 0xBE, 0x81, 0x1B, 0xC7, 0xA0, 0xD3, 0x11, 0xB9, 0x84, 0x00, 0xC0, 0x4F, 0x2E, 0x73, 0xC5]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_SIMPLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x74, 0x4D, 0xD6, 0xEF, 0xE8, 0xC9, 0xD7, 0x41, 0xA5, 0xE9, 0xE9, 0xB0, 0xE3, 0x9F, 0xA3, 0x19]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_ADVSIMPLE_NOGMC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x9F, 0x8A, 0x41, 0xED, 0x0D, 0x01, 0xDA, 0x4E, 0x9A, 0xE3, 0x9A, 0x65, 0x35, 0x8D, 0x8D, 0x2E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1B, 0xD5, 0x11, 0x5B, 0x4C, 0x2F, 0x52, 0x44, 0xBC, 0xC3, 0x09, 0xF2, 0xA1, 0x16, 0x0C, 0xC0]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xE0, 0xF0, 0x7A, 0x10, 0x1A, 0xEF, 0x19, 0x4D, 0xAB, 0xA8, 0x67, 0xA1, 0x63, 0x07, 0x3D, 0x13]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_VP9 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xF8, 0x07, 0x37, 0x46, 0xD0, 0xA1, 0x85, 0x45, 0x87, 0x6D, 0x83, 0xAA, 0x6D, 0x60, 0xB8, 0x9E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xEF, 0x49, 0xC7, 0xA4, 0xCF, 0x6E, 0xAA, 0x48, 0x84, 0x48, 0x50, 0xA7, 0xA1, 0x16, 0x5F, 0xF7]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_VP8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xEA, 0x99, 0xB8, 0x90, 0x62, 0x3A, 0x05, 0x47, 0x88, 0xB3, 0x8D, 0xF0, 0x4B, 0x27, 0x44, 0xE7]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xCB, 0x4C, 0xBE, 0xB8, 0x53, 0xCF, 0xBA, 0x46, 0x8D, 0x59, 0xD6, 0xB8, 0xA6, 0xDA, 0x5D, 0x2A]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x0F, 0xFF, 0x36, 0x69, 0xB1, 0x45, 0x63, 0x41, 0x9C, 0xC1, 0x64, 0x6E, 0xF6, 0x94, 0x61, 0x08]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA1, 0x2A, 0x5F, 0x0C, 0x41, 0xE5, 0x89, 0x40, 0xBB, 0x7B, 0x98, 0x11, 0x0A, 0x19, 0xD7, 0xC8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x09, 0x70, 0x12, 0x17, 0x0F, 0xA0, 0xE1, 0x4C, 0x99, 0x4E, 0xBF, 0x40, 0x81, 0xF6, 0xF3, 0xF0]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2_420 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xD6, 0xBE, 0x80, 0x2D, 0xAC, 0x9C, 0x35, 0x48, 0x9E, 0x91, 0x32, 0x7B, 0xBC, 0x4F, 0x9E, 0xE8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_BITSTREAM_ENCRYPTION_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_BITSTREAM_ENCRYPTION_TYPE.gen.cs deleted file mode 100644 index 82ea8431a4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_BITSTREAM_ENCRYPTION_TYPE.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_BITSTREAM_ENCRYPTION_TYPE -{ - /// - - D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE.gen.cs deleted file mode 100644 index 765e1b927f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE -{ - /// - - public BOOL IOCoherent; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE.gen.cs deleted file mode 100644 index 279b08551f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE -{ - /// - - public D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1.gen.cs deleted file mode 100644 index a01b642df6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1 -{ - /// - - public D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc; - - /// - - public BOOL Protected; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT.gen.cs deleted file mode 100644 index d665a8079b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; - - /// - - public D3D12_VIDEO_SAMPLE DecodeSample; - - /// - - public D3D12_VIDEO_FORMAT OutputFormat; - - /// - - public DXGI_RATIONAL FrameRate; - - /// - - public uint BitRate; - - /// - - public D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS SupportFlags; - - /// - - public D3D12_VIDEO_SCALE_SUPPORT ScaleSupport; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS.gen.cs deleted file mode 100644 index 33744f596c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; - - /// - - public uint FormatCount; - - /// - - public DXGI_FORMAT* pOutputFormats; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT.gen.cs deleted file mode 100644 index 3ad8f4f43a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; - - /// - - public uint FormatCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM.gen.cs deleted file mode 100644 index 6dc8b51c44..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM.gen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM -{ - /// - - public uint NodeIndex; - - /// - - public Guid DecodeProfile; - - /// - - public uint Width; - - /// - - public uint Height; - - /// - - public DXGI_FORMAT DecodeFormat; - - /// - - public D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS Components; - - /// - - public uint BinCount; - - /// - - public uint CounterBitDepth; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES.gen.cs deleted file mode 100644 index 2d55ab90cc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES -{ - /// - - public uint NodeIndex; - - /// - - public uint ProfileCount; - - /// - - public Guid* pProfiles; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT.gen.cs deleted file mode 100644 index eee9b0b293..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT -{ - /// - - public uint NodeIndex; - - /// - - public uint ProfileCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES.gen.cs deleted file mode 100644 index f6842f811a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; - - /// - - public D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT.gen.cs deleted file mode 100644 index 31bd12b35f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; - - /// - - public uint Width; - - /// - - public uint Height; - - /// - - public DXGI_FORMAT DecodeFormat; - - /// - - public DXGI_RATIONAL FrameRate; - - /// - - public uint BitRate; - - /// - - public D3D12_VIDEO_DECODE_SUPPORT_FLAGS SupportFlags; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS ConfigurationFlags; - - /// - - public D3D12_VIDEO_DECODE_TIER DecodeTier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC.gen.cs deleted file mode 100644 index 6f8bb99fb8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public BOOL IsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT.gen.cs deleted file mode 100644 index c21d55e1df..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public BOOL IsSupported; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT CodecSupportLimits; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT.gen.cs deleted file mode 100644 index 9d9329a48e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public BOOL IsSupported; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT PictureSupport; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE.gen.cs deleted file mode 100644 index a945c8f650..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; - - /// - - public D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionMode; - - /// - - public BOOL IsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE.gen.cs deleted file mode 100644 index 3fdcdf97ef..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE -{ - /// - - public D3D12_VIDEO_ENCODER_HEAP_DESC HeapDesc; - - /// - - public BOOL IsSupported; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT.gen.cs deleted file mode 100644 index 4ab0be4e41..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public DXGI_FORMAT Format; - - /// - - public BOOL IsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE.gen.cs deleted file mode 100644 index 81cbe33dac..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; - - /// - - public D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefreshMode; - - /// - - public BOOL IsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION.gen.cs deleted file mode 100644 index c8c086545c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public uint ResolutionRatiosCount; - - /// - - public BOOL IsSupported; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC MinResolutionSupported; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC MaxResolutionSupported; - - /// - - public uint ResolutionWidthMultipleRequirement; - - /// - - public uint ResolutionHeightMultipleRequirement; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC* pResolutionRatios; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT.gen.cs deleted file mode 100644 index bccada6832..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public uint ResolutionRatiosCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL.gen.cs deleted file mode 100644 index b38ba47612..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public BOOL IsSupported; - - /// - - public D3D12_VIDEO_ENCODER_LEVEL_SETTING MinSupportedLevel; - - /// - - public D3D12_VIDEO_ENCODER_LEVEL_SETTING MaxSupportedLevel; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE.gen.cs deleted file mode 100644 index e34e9d2508..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE RateControlMode; - - /// - - public BOOL IsSupported; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS.gen.cs deleted file mode 100644 index 4b89ef778a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS -{ - /// - - public uint MaxSubregionsNumber; - - /// - - public uint MaxIntraRefreshFrameDuration; - - /// - - public uint SubregionBlockPixelsSize; - - /// - - public uint QPMapRegionPixelsSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS.gen.cs deleted file mode 100644 index d4573e8cfb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC PictureTargetResolution; - - /// - - public BOOL IsSupported; - - /// - - public uint CompressedBitstreamBufferAccessAlignment; - - /// - - public uint EncoderMetadataBufferAccessAlignment; - - /// - - public uint MaxEncoderOutputMetadataBufferSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT.gen.cs deleted file mode 100644 index cb40e21bd9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT.gen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_ENCODER_CODEC Codec; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; - - /// - - public D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; - - /// - - public D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; - - /// - - public D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefresh; - - /// - - public D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionFrameEncoding; - - /// - - public uint ResolutionsListCount; - - /// - - [NativeTypeName("const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *")] - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList; - - /// - - public uint MaxReferenceFramesInDPB; - - /// - - public D3D12_VIDEO_ENCODER_VALIDATION_FLAGS ValidationFlags; - - /// - - public D3D12_VIDEO_ENCODER_SUPPORT_FLAGS SupportFlags; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC SuggestedProfile; - - /// - - public D3D12_VIDEO_ENCODER_LEVEL_SETTING SuggestedLevel; - - /// - - public D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS* pResolutionDependentSupport; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS.gen.cs deleted file mode 100644 index db8307e45e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS -{ - /// - - public uint NodeIndex; - - /// - - public uint CommandCount; - - /// - - public D3D12_VIDEO_EXTENSION_COMMAND_INFO* pCommandInfos; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT.gen.cs deleted file mode 100644 index c3661e2201..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT -{ - /// - - public uint NodeIndex; - - /// - - public uint CommandCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS.gen.cs deleted file mode 100644 index b914c6c788..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS -{ - /// - - public Guid CommandId; - - /// - - public D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE Stage; - - /// - - public uint ParameterCount; - - /// - - public D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO* pParameterInfos; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT.gen.cs deleted file mode 100644 index 516f3e55a3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT -{ - /// - - public Guid CommandId; - - /// - - public D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE Stage; - - /// - - public uint ParameterCount; - - /// - - public uint ParameterPacking; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE.gen.cs deleted file mode 100644 index 3e50a5cac0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE -{ - /// - - public uint NodeIndex; - - /// - - public Guid CommandId; - - /// - - [NativeTypeName("const void *")] - public void* pCreationParameters; - - /// - - [NativeTypeName("SIZE_T")] - public nuint CreationParametersSizeInBytes; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT.gen.cs deleted file mode 100644 index e830e45da8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public Guid CommandId; - - /// - - [NativeTypeName("const void *")] - public void* pInputData; - - /// - - [NativeTypeName("SIZE_T")] - public nuint InputDataSizeInBytes; - - /// - - public void* pOutputData; - - /// - - [NativeTypeName("SIZE_T")] - public nuint OutputDataSizeInBytes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT.gen.cs deleted file mode 100644 index b5febac5b6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public BOOL VideoDecodeSupport; - - /// - - public BOOL VideoProcessSupport; - - /// - - public BOOL VideoEncodeSupport; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR.gen.cs deleted file mode 100644 index d5b4d62acf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR -{ - /// - - public uint NodeIndex; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS BlockSizeFlags; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS PrecisionFlags; - - /// - - public D3D12_VIDEO_SIZE_RANGE SizeRange; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES.gen.cs deleted file mode 100644 index f376e7ee95..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE.gen.cs deleted file mode 100644 index 53e3c6164d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE.gen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE -{ - /// - - public uint NodeIndex; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; - - /// - - public D3D12_VIDEO_SIZE_RANGE SizeRange; - - /// - - public BOOL Protected; - - /// - - [NativeTypeName("UINT64")] - public ulong MotionVectorHeapMemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MotionVectorHeapMemoryPoolL1Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MotionEstimatorMemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MotionEstimatorMemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE.gen.cs deleted file mode 100644 index 2a254835b2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE -{ - /// - - public uint NodeMask; - - /// - - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - public D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc; - - /// - - public uint NumInputStreamDescs; - - /// - - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - public D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1.gen.cs deleted file mode 100644 index a125a02531..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1.gen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1 -{ - /// - - public uint NodeMask; - - /// - - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - public D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc; - - /// - - public uint NumInputStreamDescs; - - /// - - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - public D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs; - - /// - - public BOOL Protected; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL0Size; - - /// - - [NativeTypeName("UINT64")] - public ulong MemoryPoolL1Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS.gen.cs deleted file mode 100644 index 5cd215ec88..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS -{ - /// - - public uint NodeIndex; - - /// - - public uint MaxInputStreams; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES.gen.cs deleted file mode 100644 index ead6019aba..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO.gen.cs deleted file mode 100644 index 1005577f79..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode; - - /// - - public D3D12_VIDEO_PROCESS_FILTER_FLAGS Filters; - - /// - - public D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport; - - /// - - public DXGI_RATIONAL InputFrameRate; - - /// - - public DXGI_RATIONAL OutputFrameRate; - - /// - - public BOOL EnableAutoProcessing; - - /// - - public uint PastFrames; - - /// - - public uint FutureFrames; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.gen.cs deleted file mode 100644 index 92b260134f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT.gen.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT -{ - /// - - public uint NodeIndex; - - /// - - public D3D12_VIDEO_SAMPLE InputSample; - - /// - - public D3D12_VIDEO_FIELD_TYPE InputFieldType; - - /// - - public D3D12_VIDEO_FRAME_STEREO_FORMAT InputStereoFormat; - - /// - - public DXGI_RATIONAL InputFrameRate; - - /// - - public D3D12_VIDEO_FORMAT OutputFormat; - - /// - - public D3D12_VIDEO_FRAME_STEREO_FORMAT OutputStereoFormat; - - /// - - public DXGI_RATIONAL OutputFrameRate; - - /// - - public D3D12_VIDEO_PROCESS_SUPPORT_FLAGS SupportFlags; - - /// - - public D3D12_VIDEO_SCALE_SUPPORT ScaleSupport; - - /// - - public D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport; - - /// - - public D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceSupport; - - /// - - public D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS AutoProcessingSupport; - - /// - - public D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterSupport; - - /// - - [NativeTypeName("D3D12_VIDEO_PROCESS_FILTER_RANGE[32]")] - public _FilterRangeSupport_e__FixedBuffer FilterRangeSupport; - - /// - - [InlineArray(32)] - public partial struct _FilterRangeSupport_e__FixedBuffer - { - public D3D12_VIDEO_PROCESS_FILTER_RANGE e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_VIDEO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_VIDEO.gen.cs deleted file mode 100644 index ac24ec42bd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_VIDEO.gen.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_FEATURE_VIDEO -{ - /// - - D3D12_FEATURE_VIDEO_DECODE_SUPPORT = 0, - - /// - - D3D12_FEATURE_VIDEO_DECODE_PROFILES = 1, - - /// - - D3D12_FEATURE_VIDEO_DECODE_FORMATS = 2, - - /// - - D3D12_FEATURE_VIDEO_DECODE_CONVERSION_SUPPORT = 3, - - /// - - D3D12_FEATURE_VIDEO_PROCESS_SUPPORT = 5, - - /// - - D3D12_FEATURE_VIDEO_PROCESS_MAX_INPUT_STREAMS = 6, - - /// - - D3D12_FEATURE_VIDEO_PROCESS_REFERENCE_INFO = 7, - - /// - - D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE = 8, - - /// - - D3D12_FEATURE_VIDEO_PROCESSOR_SIZE = 9, - - /// - - D3D12_FEATURE_VIDEO_DECODE_PROFILE_COUNT = 10, - - /// - - D3D12_FEATURE_VIDEO_DECODE_FORMAT_COUNT = 11, - - /// - - D3D12_FEATURE_VIDEO_ARCHITECTURE = 17, - - /// - - D3D12_FEATURE_VIDEO_DECODE_HISTOGRAM = 18, - - /// - - D3D12_FEATURE_VIDEO_FEATURE_AREA_SUPPORT = 19, - - /// - - D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR = 20, - - /// - - D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_SIZE = 21, - - /// - - D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_COUNT = 22, - - /// - - D3D12_FEATURE_VIDEO_EXTENSION_COMMANDS = 23, - - /// - - D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT = 24, - - /// - - D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETERS = 25, - - /// - - D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SUPPORT = 26, - - /// - - D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SIZE = 27, - - /// - - D3D12_FEATURE_VIDEO_DECODE_PROTECTED_RESOURCES = 28, - - /// - - D3D12_FEATURE_VIDEO_PROCESS_PROTECTED_RESOURCES = 29, - - /// - - D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES = 30, - - /// - - D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE1 = 31, - - /// - - D3D12_FEATURE_VIDEO_PROCESSOR_SIZE1 = 32, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_CODEC = 33, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_PROFILE_LEVEL = 34, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT = 35, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION = 36, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_INPUT_FORMAT = 37, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_RATE_CONTROL_MODE = 38, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_INTRA_REFRESH_MODE = 39, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE = 40, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_HEAP_SIZE = 41, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT = 42, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_SUPPORT = 43, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT = 44, - - /// - - D3D12_FEATURE_VIDEO_ENCODER_RESOURCE_REQUIREMENTS = 45, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS.gen.cs deleted file mode 100644 index d22b306dcb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS -{ - /// - - [NativeTypeName("UINT64")] - public ulong Status; - - /// - - [NativeTypeName("UINT64")] - public ulong NumMacroblocksAffected; - - /// - - public DXGI_RATIONAL FrameRate; - - /// - - public uint BitRate; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT.gen.cs deleted file mode 100644 index 2184b3f3d4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT -{ - /// - - public ID3D12VideoMotionVectorHeap* pMotionVectorHeap; - - /// - - public uint PixelWidth; - - /// - - public uint PixelHeight; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT.gen.cs deleted file mode 100644 index 83b20fec18..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT -{ - /// - - public ID3D12Resource* pMotionVectorTexture2D; - - /// - - public D3D12_RESOURCE_COORDINATE MotionVectorCoordinate; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOURCE_COORDINATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOURCE_COORDINATE.gen.cs deleted file mode 100644 index 00b1f21ab9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOURCE_COORDINATE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_RESOURCE_COORDINATE -{ - /// - - [NativeTypeName("UINT64")] - public ulong X; - - /// - - public uint Y; - - /// - - public uint Z; - - /// - - public uint SubresourceIndex; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_DESC.gen.cs deleted file mode 100644 index 3d675fa65e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_DESC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_DECODER_DESC -{ - /// - - public uint NodeMask; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_HEAP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_HEAP_DESC.gen.cs deleted file mode 100644 index 4a11fc5b5e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_HEAP_DESC.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_DECODER_HEAP_DESC -{ - /// - - public uint NodeMask; - - /// - - public D3D12_VIDEO_DECODE_CONFIGURATION Configuration; - - /// - - public uint DecodeWidth; - - /// - - public uint DecodeHeight; - - /// - - public DXGI_FORMAT Format; - - /// - - public DXGI_RATIONAL FrameRate; - - /// - - public uint BitRate; - - /// - - public uint MaxDecodePictureBufferCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_ARGUMENT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_ARGUMENT_TYPE.gen.cs deleted file mode 100644 index a436e8d8da..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_ARGUMENT_TYPE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_DECODE_ARGUMENT_TYPE -{ - /// - - D3D12_VIDEO_DECODE_ARGUMENT_TYPE_PICTURE_PARAMETERS = 0, - - /// - - D3D12_VIDEO_DECODE_ARGUMENT_TYPE_INVERSE_QUANTIZATION_MATRIX = 1, - - /// - - D3D12_VIDEO_DECODE_ARGUMENT_TYPE_SLICE_CONTROL = 2, - - /// - - D3D12_VIDEO_DECODE_ARGUMENT_TYPE_MAX_VALID = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM.gen.cs deleted file mode 100644 index 1de79dbe8b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM -{ - /// - - public ID3D12Resource* pBuffer; - - /// - - [NativeTypeName("UINT64")] - public ulong Offset; - - /// - - [NativeTypeName("UINT64")] - public ulong Size; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATION.gen.cs deleted file mode 100644 index b7ec9d1c3d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATION.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_DECODE_CONFIGURATION -{ - /// - - public Guid DecodeProfile; - - /// - - public D3D12_BITSTREAM_ENCRYPTION_TYPE BitstreamEncryption; - - /// - - public D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE InterlaceType; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS.gen.cs deleted file mode 100644 index 553a3df547..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS -{ - /// - - D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_HEIGHT_ALIGNMENT_MULTIPLE_32_REQUIRED = 0x1, - - /// - - D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_POST_PROCESSING_SUPPORTED = 0x2, - - /// - - D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_REFERENCE_ONLY_ALLOCATIONS_REQUIRED = 0x4, - - /// - - D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_ALLOW_RESOLUTION_CHANGE_ON_NON_KEY_FRAME = 0x8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS.gen.cs deleted file mode 100644 index 114ba4e77a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS -{ - /// - - public BOOL Enable; - - /// - - public ID3D12Resource* pReferenceTexture2D; - - /// - - public uint ReferenceSubresource; - - /// - - public DXGI_COLOR_SPACE_TYPE OutputColorSpace; - - /// - - public DXGI_COLOR_SPACE_TYPE DecodeColorSpace; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1.gen.cs deleted file mode 100644 index b2276dc96e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 -{ - /// - - public BOOL Enable; - - /// - - public ID3D12Resource* pReferenceTexture2D; - - /// - - public uint ReferenceSubresource; - - /// - - public DXGI_COLOR_SPACE_TYPE OutputColorSpace; - - /// - - public DXGI_COLOR_SPACE_TYPE DecodeColorSpace; - - /// - - public uint OutputWidth; - - /// - - public uint OutputHeight; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 91f7772211..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS -{ - /// - - D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_SUPPORTED = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_FRAME_ARGUMENT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_FRAME_ARGUMENT.gen.cs deleted file mode 100644 index 1639ef660d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_FRAME_ARGUMENT.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_FRAME_ARGUMENT -{ - /// - - public D3D12_VIDEO_DECODE_ARGUMENT_TYPE Type; - - /// - - public uint Size; - - /// - - public void* pData; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT.gen.cs deleted file mode 100644 index 1bb8266042..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT -{ - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y = 0, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U = 1, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V = 2, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R = 0, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G = 1, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B = 2, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS.gen.cs deleted file mode 100644 index 7a583c762a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using static Silk.NET.DirectX.D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS -{ - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_Y = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y), - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_U = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U), - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_V = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V), - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_R = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R), - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_G = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G), - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_B = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B), - - /// - - D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_A = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.gen.cs deleted file mode 100644 index 12c8562f40..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS -{ - /// - - public uint NumFrameArguments; - - /// - - [NativeTypeName("D3D12_VIDEO_DECODE_FRAME_ARGUMENT[10]")] - public _FrameArguments_e__FixedBuffer FrameArguments; - - /// - - public D3D12_VIDEO_DECODE_REFERENCE_FRAMES ReferenceFrames; - - /// - - public D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM CompressedBitstream; - - /// - - public ID3D12VideoDecoderHeap* pHeap; - - /// - - [InlineArray(10)] - public partial struct _FrameArguments_e__FixedBuffer - { - public D3D12_VIDEO_DECODE_FRAME_ARGUMENT e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM.gen.cs deleted file mode 100644 index b97301c824..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM -{ - /// - - [NativeTypeName("UINT64")] - public ulong Offset; - - /// - - public ID3D12Resource* pBuffer; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS.gen.cs deleted file mode 100644 index db0e2e94f8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS -{ - /// - - public ID3D12Resource* pOutputTexture2D; - - /// - - public uint OutputSubresource; - - /// - - public D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS ConversionArguments; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.gen.cs deleted file mode 100644 index 3a4687316b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 -{ - /// - - public ID3D12Resource* pOutputTexture2D; - - /// - - public uint OutputSubresource; - - /// - - public D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 ConversionArguments; - - /// - - [NativeTypeName("D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM[4]")] - public _Histograms_e__FixedBuffer Histograms; - - /// - - [InlineArray(4)] - public partial struct _Histograms_e__FixedBuffer - { - public D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_REFERENCE_FRAMES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_REFERENCE_FRAMES.gen.cs deleted file mode 100644 index d478c00764..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_REFERENCE_FRAMES.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_DECODE_REFERENCE_FRAMES -{ - /// - - public uint NumTexture2Ds; - - /// - - public ID3D12Resource** ppTexture2Ds; - - /// - - public uint* pSubresources; - - /// - - public ID3D12VideoDecoderHeap** ppHeaps; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_STATUS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_STATUS.gen.cs deleted file mode 100644 index 9169a9b4f1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_STATUS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_DECODE_STATUS -{ - /// - - D3D12_VIDEO_DECODE_STATUS_OK = 0, - - /// - - D3D12_VIDEO_DECODE_STATUS_CONTINUE = 1, - - /// - - D3D12_VIDEO_DECODE_STATUS_CONTINUE_SKIP_DISPLAY = 2, - - /// - - D3D12_VIDEO_DECODE_STATUS_RESTART = 3, - - /// - - D3D12_VIDEO_DECODE_STATUS_RATE_EXCEEDED = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 97fc30d462..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_DECODE_SUPPORT_FLAGS -{ - /// - - D3D12_VIDEO_DECODE_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_DECODE_SUPPORT_FLAG_SUPPORTED = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_TIER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_TIER.gen.cs deleted file mode 100644 index 8fe01398e2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_TIER.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_DECODE_TIER -{ - /// - - D3D12_VIDEO_DECODE_TIER_NOT_SUPPORTED = 0, - - /// - - D3D12_VIDEO_DECODE_TIER_1 = 1, - - /// - - D3D12_VIDEO_DECODE_TIER_2 = 2, - - /// - - D3D12_VIDEO_DECODE_TIER_3 = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC.gen.cs deleted file mode 100644 index f3ecddced8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_H264 = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_HEVC = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION.gen.cs deleted file mode 100644 index 151f0cb2ab..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6854_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264* pH264Config - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264Config; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC* pHEVCConfig - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCConfig; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264* pH264Config; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC* pHEVCConfig; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264.gen.cs deleted file mode 100644 index 3549cdf793..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264 -{ - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS ConfigurationFlags; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES DirectModeConfig; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES DisableDeblockingFilterConfig; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES.gen.cs deleted file mode 100644 index 9ba905acba..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_DISABLED = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_TEMPORAL = 1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_SPATIAL = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS.gen.cs deleted file mode 100644 index 85cac0ad3a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_CONSTRAINED_INTRAPREDICTION = 0x1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_ADAPTIVE_8x8_TRANSFORM = 0x2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_ENABLE_CABAC_ENCODING = 0x4, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_ALLOW_REQUEST_INTRA_CONSTRAINED_SLICES = 0x8, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES.gen.cs deleted file mode 100644 index 23f663aab5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED = - 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES = - 1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_2_DISABLE_SLICE_BOUNDARIES_BLOCKS = - 2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_3_USE_TWO_STAGE_DEBLOCKING = - 3, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_4_DISABLE_CHROMA_BLOCK_EDGES = - 4, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES = - 5, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING = - 6, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS.gen.cs deleted file mode 100644 index 57dc88ea01..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS.gen.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using static Silk.NET.DirectX.D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES; - -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED - ), - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_1_DISABLE_ALL_SLICE_BLOCK_EDGES = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES - ), - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_2_DISABLE_SLICE_BOUNDARIES_BLOCKS = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_2_DISABLE_SLICE_BOUNDARIES_BLOCKS - ), - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_3_USE_TWO_STAGE_DEBLOCKING = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_3_USE_TWO_STAGE_DEBLOCKING - ), - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_4_DISABLE_CHROMA_BLOCK_EDGES = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_4_DISABLE_CHROMA_BLOCK_EDGES - ), - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES - ), - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING = - ( - 1 - << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING - ), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC.gen.cs deleted file mode 100644 index ff6ceaa6ab..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC -{ - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS ConfigurationFlags; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; - - /// - - [NativeTypeName("UCHAR")] - public byte max_transform_hierarchy_depth_inter; - - /// - - [NativeTypeName("UCHAR")] - public byte max_transform_hierarchy_depth_intra; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE.gen.cs deleted file mode 100644 index 0f7bbbe7d2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_8x8 = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_16x16 = 1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_32x32 = 2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_64x64 = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS.gen.cs deleted file mode 100644 index 9c6eface7f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_DISABLE_LOOP_FILTER_ACROSS_SLICES = 0x1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ALLOW_REQUEST_INTRA_CONSTRAINED_SLICES = 0x2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_SAO_FILTER = 0x4, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_LONG_TERM_REFERENCES = 0x8, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_USE_ASYMETRIC_MOTION_PARTITION = 0x10, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_TRANSFORM_SKIPPING = 0x20, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_USE_CONSTRAINED_INTRAPREDICTION = 0x40, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE.gen.cs deleted file mode 100644 index b48a202cf4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_4x4 = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_8x8 = 1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_16x16 = 2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_32x32 = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT.gen.cs deleted file mode 100644 index 93fc2e9406..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6727_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264* pH264Support - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264Support; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC* pHEVCSupport - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCSupport; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264* pH264Support; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC* pHEVCSupport; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264.gen.cs deleted file mode 100644 index 9d4641587d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264 -{ - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS SupportFlags; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS DisableDeblockingFilterSupportedModes; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS.gen.cs deleted file mode 100644 index b4aab401bd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS.gen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_CABAC_ENCODING_SUPPORT = 0x1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_INTRA_SLICE_CONSTRAINED_ENCODING_SUPPORT = - 0x2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_BFRAME_LTR_COMBINED_SUPPORT = 0x4, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_ADAPTIVE_8x8_TRANSFORM_ENCODING_SUPPORT = - 0x8, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_DIRECT_SPATIAL_ENCODING_SUPPORT = - 0x10, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_DIRECT_TEMPORAL_ENCODING_SUPPORT = - 0x20, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_CONSTRAINED_INTRAPREDICTION_SUPPORT = - 0x40, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC.gen.cs deleted file mode 100644 index d1b664b85b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC -{ - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS SupportFlags; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; - - /// - - [NativeTypeName("UCHAR")] - public byte max_transform_hierarchy_depth_inter; - - /// - - [NativeTypeName("UCHAR")] - public byte max_transform_hierarchy_depth_intra; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS.gen.cs deleted file mode 100644 index 4acb02d42a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS.gen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_BFRAME_LTR_COMBINED_SUPPORT = 0x1, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SLICE_CONSTRAINED_ENCODING_SUPPORT = - 0x2, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CONSTRAINED_INTRAPREDICTION_SUPPORT = - 0x4, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_SAO_FILTER_SUPPORT = 0x8, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_ASYMETRIC_MOTION_PARTITION_SUPPORT = - 0x10, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_ASYMETRIC_MOTION_PARTITION_REQUIRED = - 0x20, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_SUPPORT = 0x40, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_DISABLING_LOOP_FILTER_ACROSS_SLICES_SUPPORT = - 0x80, - - /// - - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_P_FRAMES_IMPLEMENTED_AS_LOW_DELAY_B_FRAMES = - 0x100, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT.gen.cs deleted file mode 100644 index 04886c0f36..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6764_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264* pH264Support - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264Support; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC* pHEVCSupport - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCSupport; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264* pH264Support; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC* pHEVCSupport; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264.gen.cs deleted file mode 100644 index d1b4ffad84..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264 -{ - /// - - public uint MaxL0ReferencesForP; - - /// - - public uint MaxL0ReferencesForB; - - /// - - public uint MaxL1ReferencesForB; - - /// - - public uint MaxLongTermReferences; - - /// - - public uint MaxDPBCapacity; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC.gen.cs deleted file mode 100644 index 04eca9caa5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC -{ - /// - - public uint MaxL0ReferencesForP; - - /// - - public uint MaxL0ReferencesForB; - - /// - - public uint MaxL1ReferencesForB; - - /// - - public uint MaxLongTermReferences; - - /// - - public uint MaxDPBCapacity; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM.gen.cs deleted file mode 100644 index 529bcc50cd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM -{ - /// - - public ID3D12Resource* pBuffer; - - /// - - [NativeTypeName("UINT64")] - public ulong FrameStartOffset; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_DESC.gen.cs deleted file mode 100644 index 745cea4a03..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_DESC.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_DESC -{ - /// - - public uint NodeMask; - - /// - - public D3D12_VIDEO_ENCODER_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_CODEC EncodeCodec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; - - /// - - public D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE MaxMotionEstimationPrecision; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS.gen.cs deleted file mode 100644 index f69e86b615..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS -{ - /// - - public D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC SequenceControlDesc; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC PictureControlDesc; - - /// - - public ID3D12Resource* pInputFrame; - - /// - - public uint InputFrameSubresource; - - /// - - public uint CurrentFrameBitstreamMetadataSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS.gen.cs deleted file mode 100644 index 05160fbcfa..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS -{ - /// - - public D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM Bitstream; - - /// - - public D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE ReconstructedPicture; - - /// - - public D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER EncoderOutputMetadata; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS.gen.cs deleted file mode 100644 index e76836956a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_NO_ERROR = 0, - - /// - - D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_CODEC_PICTURE_CONTROL_NOT_SUPPORTED = 0x1, - - /// - - D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_SUBREGION_LAYOUT_CONFIGURATION_NOT_SUPPORTED = 0x2, - - /// - - D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_INVALID_REFERENCE_PICTURES = 0x4, - - /// - - D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_RECONFIGURATION_REQUEST_NOT_SUPPORTED = 0x8, - - /// - - D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_INVALID_METADATA_BUFFER_SOURCE = 0x10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER.gen.cs deleted file mode 100644 index 1db4bdb984..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER.gen.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER -{ - /// - - public ID3D12Resource* pBuffer; - - /// - - [NativeTypeName("UINT64")] - public ulong Offset; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FLAGS.gen.cs deleted file mode 100644 index 867e53548e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FLAGS.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE.gen.cs deleted file mode 100644 index f5555cf3d5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE -{ - /// - - D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_FULL_FRAME = 0, - - /// - - D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_BYTES_PER_SUBREGION = 1, - - /// - - D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_SQUARE_UNITS_PER_SUBREGION_ROW_UNALIGNED = 2, - - /// - - D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_ROWS_PER_SUBREGION = 3, - - /// - - D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_SUBREGIONS_PER_FRAME = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA.gen.cs deleted file mode 100644 index 039ad62c58..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA -{ - /// - - [NativeTypeName("UINT64")] - public ulong bSize; - - /// - - [NativeTypeName("UINT64")] - public ulong bStartOffset; - - /// - - [NativeTypeName("UINT64")] - public ulong bHeaderSize; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_TYPE_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_TYPE_H264.gen.cs deleted file mode 100644 index 600e756692..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_TYPE_H264.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_FRAME_TYPE_H264 -{ - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_I_FRAME = 0, - - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_P_FRAME = 1, - - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_B_FRAME = 2, - - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_IDR_FRAME = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC.gen.cs deleted file mode 100644 index 7ef6192f30..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC -{ - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_I_FRAME = 0, - - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME = 1, - - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_B_FRAME = 2, - - /// - - D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_IDR_FRAME = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_DESC.gen.cs deleted file mode 100644 index cf68b5a753..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_DESC.gen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_HEAP_DESC -{ - /// - - public uint NodeMask; - - /// - - public D3D12_VIDEO_ENCODER_HEAP_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_CODEC EncodeCodec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile; - - /// - - public D3D12_VIDEO_ENCODER_LEVEL_SETTING EncodeLevel; - - /// - - public uint ResolutionsListCount; - - /// - - [NativeTypeName("const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *")] - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_FLAGS.gen.cs deleted file mode 100644 index be366b798e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_FLAGS.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_HEAP_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_HEAP_FLAG_NONE = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESH.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESH.gen.cs deleted file mode 100644 index 6f6d8292fa..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESH.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_INTRA_REFRESH -{ - /// - - public D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE Mode; - - /// - - public uint IntraRefreshDuration; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE.gen.cs deleted file mode 100644 index a4f12ba9d4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE -{ - /// - - D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE_ROW_BASED = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVELS_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVELS_H264.gen.cs deleted file mode 100644 index ea43afe71d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVELS_H264.gen.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_LEVELS_H264 -{ - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_1 = 0, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_1b = 1, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_11 = 2, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_12 = 3, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_13 = 4, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_2 = 5, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_21 = 6, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_22 = 7, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_3 = 8, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_31 = 9, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_32 = 10, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_4 = 11, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_41 = 12, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_42 = 13, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_5 = 14, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_51 = 15, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_52 = 16, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_6 = 17, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_61 = 18, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_H264_62 = 19, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVELS_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVELS_HEVC.gen.cs deleted file mode 100644 index 9bdb2b45e0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVELS_HEVC.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_LEVELS_HEVC -{ - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_1 = 0, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_2 = 1, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_21 = 2, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_3 = 3, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_31 = 4, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_4 = 5, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_41 = 6, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_5 = 7, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_51 = 8, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_52 = 9, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_6 = 10, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_61 = 11, - - /// - - D3D12_VIDEO_ENCODER_LEVELS_HEVC_62 = 12, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_SETTING.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_SETTING.gen.cs deleted file mode 100644 index 12f03584bb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_SETTING.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_LEVEL_SETTING -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6504_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_LEVELS_H264* pH264LevelSetting - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264LevelSetting; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC* pHEVCLevelSetting - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCLevelSetting; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_LEVELS_H264* pH264LevelSetting; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC* pHEVCLevelSetting; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC.gen.cs deleted file mode 100644 index 9df5d948d2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC -{ - /// - - public D3D12_VIDEO_ENCODER_LEVELS_HEVC Level; - - /// - - public D3D12_VIDEO_ENCODER_TIER_HEVC Tier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE.gen.cs deleted file mode 100644 index 382138d1ff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE -{ - /// - - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_MAXIMUM = 0, - - /// - - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_FULL_PIXEL = 1, - - /// - - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_HALF_PIXEL = 2, - - /// - - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_QUARTER_PIXEL = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA.gen.cs deleted file mode 100644 index b372ea64d2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA.gen.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_OUTPUT_METADATA -{ - /// - - [NativeTypeName("UINT64")] - public ulong EncodeErrorFlags; - - /// - - public D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS EncodeStats; - - /// - - [NativeTypeName("UINT64")] - public ulong EncodedBitstreamWrittenBytesCount; - - /// - - [NativeTypeName("UINT64")] - public ulong WrittenSubregionsCount; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS.gen.cs deleted file mode 100644 index cccc42111d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS -{ - /// - - [NativeTypeName("UINT64")] - public ulong AverageQP; - - /// - - [NativeTypeName("UINT64")] - public ulong IntraCodingUnitsCount; - - /// - - [NativeTypeName("UINT64")] - public ulong InterCodingUnitsCount; - - /// - - [NativeTypeName("UINT64")] - public ulong SkipCodingUnitsCount; - - /// - - [NativeTypeName("UINT64")] - public ulong AverageMotionEstimationXDirection; - - /// - - [NativeTypeName("UINT64")] - public ulong AverageMotionEstimationYDirection; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA.gen.cs deleted file mode 100644 index 44ff04bd99..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L7715_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264* pH264PicData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264PicData; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC* pHEVCPicData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCPicData; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264* pH264PicData; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC* pHEVCPicData; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264.gen.cs deleted file mode 100644 index e6702400cd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264.gen.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264 -{ - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_FRAME_TYPE_H264 FrameType; - - /// - - public uint pic_parameter_set_id; - - /// - - public uint idr_pic_id; - - /// - - public uint PictureOrderCountNumber; - - /// - - public uint FrameDecodingOrderNumber; - - /// - - public uint TemporalLayerIndex; - - /// - - public uint List0ReferenceFramesCount; - - /// - - public uint* pList0ReferenceFrames; - - /// - - public uint List1ReferenceFramesCount; - - /// - - public uint* pList1ReferenceFrames; - - /// - - public uint ReferenceFramesReconPictureDescriptorsCount; - - /// - - public D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264* pReferenceFramesReconPictureDescriptors; - - /// - - [NativeTypeName("UCHAR")] - public byte adaptive_ref_pic_marking_mode_flag; - - /// - - public uint RefPicMarkingOperationsCommandsCount; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION* pRefPicMarkingOperationsCommands; - - /// - - public uint List0RefPicModificationsCount; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION* pList0RefPicModifications; - - /// - - public uint List1RefPicModificationsCount; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION* pList1RefPicModifications; - - /// - - public uint QPMapValuesCount; - - /// - - [NativeTypeName("INT8 *")] - public sbyte* pRateControlQPMap; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS.gen.cs deleted file mode 100644 index 77c6e94c3b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_REQUEST_INTRA_CONSTRAINED_SLICES = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION.gen.cs deleted file mode 100644 index 2bc7589898..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION -{ - /// - - [NativeTypeName("UCHAR")] - public byte modification_of_pic_nums_idc; - - /// - - public uint abs_diff_pic_num_minus1; - - /// - - public uint long_term_pic_num; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION.gen.cs deleted file mode 100644 index f83f1aeddf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION.gen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION -{ - /// - - [NativeTypeName("UCHAR")] - public byte memory_management_control_operation; - - /// - - public uint difference_of_pic_nums_minus1; - - /// - - public uint long_term_pic_num; - - /// - - public uint long_term_frame_idx; - - /// - - public uint max_long_term_frame_idx_plus1; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC.gen.cs deleted file mode 100644 index ebc8f1e518..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC.gen.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC -{ - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC FrameType; - - /// - - public uint slice_pic_parameter_set_id; - - /// - - public uint PictureOrderCountNumber; - - /// - - public uint TemporalLayerIndex; - - /// - - public uint List0ReferenceFramesCount; - - /// - - public uint* pList0ReferenceFrames; - - /// - - public uint List1ReferenceFramesCount; - - /// - - public uint* pList1ReferenceFrames; - - /// - - public uint ReferenceFramesReconPictureDescriptorsCount; - - /// - - public D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC* pReferenceFramesReconPictureDescriptors; - - /// - - public uint List0RefPicModificationsCount; - - /// - - public uint* pList0RefPicModifications; - - /// - - public uint List1RefPicModificationsCount; - - /// - - public uint* pList1RefPicModifications; - - /// - - public uint QPMapValuesCount; - - /// - - [NativeTypeName("INT8 *")] - public sbyte* pRateControlQPMap; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS.gen.cs deleted file mode 100644 index b90ec7c473..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_REQUEST_INTRA_CONSTRAINED_SLICES = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC.gen.cs deleted file mode 100644 index 33257eb196..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC -{ - /// - - public uint IntraRefreshFrameIndex; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA PictureControlCodecData; - - /// - - public D3D12_VIDEO_ENCODE_REFERENCE_FRAMES ReferenceFrames; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS.gen.cs deleted file mode 100644 index dc65e0e815..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAG_USED_AS_REFERENCE_PICTURE = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA.gen.cs deleted file mode 100644 index 71acc92f78..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA.gen.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L7771_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES* pSlicesPartition_H264 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pSlicesPartition_H264; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES* pSlicesPartition_HEVC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pSlicesPartition_HEVC; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName( - "const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES *" - )] - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES* pSlicesPartition_H264; - - /// - - [FieldOffset(0)] - [NativeTypeName( - "const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES *" - )] - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES* pSlicesPartition_HEVC; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES.gen.cs deleted file mode 100644 index a0afadb026..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES.gen.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES -{ - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L7759_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref uint MaxBytesPerSlice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.MaxBytesPerSlice; } - } - - /// - - [UnscopedRef] - public ref uint NumberOfCodingUnitsPerSlice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.NumberOfCodingUnitsPerSlice; } - } - - /// - - [UnscopedRef] - public ref uint NumberOfRowsPerSlice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.NumberOfRowsPerSlice; } - } - - /// - - [UnscopedRef] - public ref uint NumberOfSlicesPerFrame - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.NumberOfSlicesPerFrame; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public uint MaxBytesPerSlice; - - /// - - [FieldOffset(0)] - public uint NumberOfCodingUnitsPerSlice; - - /// - - [FieldOffset(0)] - public uint NumberOfRowsPerSlice; - - /// - - [FieldOffset(0)] - public uint NumberOfSlicesPerFrame; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC.gen.cs deleted file mode 100644 index 24246d4bd2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC -{ - /// - - public uint Width; - - /// - - public uint Height; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC.gen.cs deleted file mode 100644 index 4ff9e1cf48..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC -{ - /// - - public uint WidthRatio; - - /// - - public uint HeightRatio; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_DESC.gen.cs deleted file mode 100644 index 9acba14232..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_DESC.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_PROFILE_DESC -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6438_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_PROFILE_H264* pH264Profile - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264Profile; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_PROFILE_HEVC* pHEVCProfile - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCProfile; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_PROFILE_H264* pH264Profile; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_PROFILE_HEVC* pHEVCProfile; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_H264.gen.cs deleted file mode 100644 index 6d361ddbc3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_H264.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_PROFILE_H264 -{ - /// - - D3D12_VIDEO_ENCODER_PROFILE_H264_MAIN = 0, - - /// - - D3D12_VIDEO_ENCODER_PROFILE_H264_HIGH = 1, - - /// - - D3D12_VIDEO_ENCODER_PROFILE_H264_HIGH_10 = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_HEVC.gen.cs deleted file mode 100644 index 8b284cb18b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_HEVC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_PROFILE_HEVC -{ - /// - - D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN = 0, - - /// - - D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10 = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL.gen.cs deleted file mode 100644 index 72d45104a9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RATE_CONTROL -{ - /// - - public D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE Mode; - - /// - - public D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS ConfigParams; - - /// - - public DXGI_RATIONAL TargetFrameRate; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR.gen.cs deleted file mode 100644 index 5a1e4de132..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR -{ - /// - - public uint InitialQP; - - /// - - public uint MinQP; - - /// - - public uint MaxQP; - - /// - - [NativeTypeName("UINT64")] - public ulong MaxFrameBitSize; - - /// - - [NativeTypeName("UINT64")] - public ulong TargetBitRate; - - /// - - [NativeTypeName("UINT64")] - public ulong VBVCapacity; - - /// - - [NativeTypeName("UINT64")] - public ulong InitialVBVFullness; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS.gen.cs deleted file mode 100644 index b0286826f1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS.gen.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6389_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP* pConfiguration_CQP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pConfiguration_CQP; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR* pConfiguration_CBR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pConfiguration_CBR; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR* pConfiguration_VBR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pConfiguration_VBR; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR* pConfiguration_QVBR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pConfiguration_QVBR; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP *")] - public D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP* pConfiguration_CQP; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR *")] - public D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR* pConfiguration_CBR; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR *")] - public D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR* pConfiguration_VBR; - - /// - - [FieldOffset(0)] - [NativeTypeName("const D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR *")] - public D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR* pConfiguration_QVBR; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP.gen.cs deleted file mode 100644 index 4a78379e27..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP -{ - /// - - public uint ConstantQP_FullIntracodedFrame; - - /// - - public uint ConstantQP_InterPredictedFrame_PrevRefOnly; - - /// - - public uint ConstantQP_InterPredictedFrame_BiDirectionalRef; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS.gen.cs deleted file mode 100644 index 396e6e47e2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_DELTA_QP = 0x1, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_FRAME_ANALYSIS = 0x2, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_QP_RANGE = 0x4, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_INITIAL_QP = 0x8, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_MAX_FRAME_SIZE = 0x10, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_VBV_SIZES = 0x20, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE.gen.cs deleted file mode 100644 index 1ec370e1c0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE -{ - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_ABSOLUTE_QP_MAP = 0, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_CQP = 1, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_CBR = 2, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_VBR = 3, - - /// - - D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_QVBR = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR.gen.cs deleted file mode 100644 index fcc82d034a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR -{ - /// - - public uint InitialQP; - - /// - - public uint MinQP; - - /// - - public uint MaxQP; - - /// - - [NativeTypeName("UINT64")] - public ulong MaxFrameBitSize; - - /// - - [NativeTypeName("UINT64")] - public ulong TargetAvgBitRate; - - /// - - [NativeTypeName("UINT64")] - public ulong PeakBitRate; - - /// - - public uint ConstantQualityTarget; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR.gen.cs deleted file mode 100644 index 33d6a813ef..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR.gen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR -{ - /// - - public uint InitialQP; - - /// - - public uint MinQP; - - /// - - public uint MaxQP; - - /// - - [NativeTypeName("UINT64")] - public ulong MaxFrameBitSize; - - /// - - [NativeTypeName("UINT64")] - public ulong TargetAvgBitRate; - - /// - - [NativeTypeName("UINT64")] - public ulong PeakBitRate; - - /// - - [NativeTypeName("UINT64")] - public ulong VBVCapacity; - - /// - - [NativeTypeName("UINT64")] - public ulong InitialVBVFullness; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE.gen.cs deleted file mode 100644 index d57af2316f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE -{ - /// - - public ID3D12Resource* pReconstructedPicture; - - /// - - public uint ReconstructedPictureSubresource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264.gen.cs deleted file mode 100644 index e39934f40e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264 -{ - /// - - public uint ReconstructedPictureResourceIndex; - - /// - - public BOOL IsLongTermReference; - - /// - - public uint LongTermPictureIdx; - - /// - - public uint PictureOrderCountNumber; - - /// - - public uint FrameDecodingOrderNumber; - - /// - - public uint TemporalLayerIndex; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC.gen.cs deleted file mode 100644 index cec3f50f6c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC -{ - /// - - public uint ReconstructedPictureResourceIndex; - - /// - - public BOOL IsRefUsedByCurrentPic; - - /// - - public BOOL IsLongTermReference; - - /// - - public uint PictureOrderCountNumber; - - /// - - public uint TemporalLayerIndex; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS.gen.cs deleted file mode 100644 index 17c5f26bff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS -{ - /// - - public D3D12_VIDEO_ENCODER_CODEC EncoderCodec; - - /// - - public D3D12_VIDEO_ENCODER_PROFILE_DESC EncoderProfile; - - /// - - public DXGI_FORMAT EncoderInputFormat; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC EncodedPictureEffectiveResolution; - - /// - - public D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER HWLayoutMetadata; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS.gen.cs deleted file mode 100644 index 55ec167004..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS.gen.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS -{ - /// - - public D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER ResolvedLayoutMetadata; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC.gen.cs deleted file mode 100644 index 04f830d846..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC -{ - /// - - public D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS Flags; - - /// - - public D3D12_VIDEO_ENCODER_INTRA_REFRESH IntraRefreshConfig; - - /// - - public D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC PictureTargetResolution; - - /// - - public D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SelectedLayoutMode; - - /// - - public D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA FrameSubregionsLayoutData; - - /// - - public D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS.gen.cs deleted file mode 100644 index 20e037e9ce..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_RESOLUTION_CHANGE = 0x1, - - /// - - D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_RATE_CONTROL_CHANGE = 0x2, - - /// - - D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_SUBREGION_LAYOUT_CHANGE = 0x4, - - /// - - D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_REQUEST_INTRA_REFRESH = 0x8, - - /// - - D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_GOP_SEQUENCE_CHANGE = 0x10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE.gen.cs deleted file mode 100644 index 2e5309b116..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE -{ - /// - - public uint DataSize; - - /// - - [NativeTypeName("__AnonymousRecord_d3d12video_L6919_C5")] - public _Anonymous_e__Union Anonymous; - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264* pH264GroupOfPictures - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pH264GroupOfPictures; } - } - - /// - - [UnscopedRef] - public ref D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC* pHEVCGroupOfPictures - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return ref Anonymous.pHEVCGroupOfPictures; } - } - - /// - - [StructLayout(LayoutKind.Explicit)] - public unsafe partial struct _Anonymous_e__Union - { - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264* pH264GroupOfPictures; - - /// - - [FieldOffset(0)] - public D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC* pHEVCGroupOfPictures; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264.gen.cs deleted file mode 100644 index 4de949248b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264 -{ - /// - - public uint GOPLength; - - /// - - public uint PPicturePeriod; - - /// - - [NativeTypeName("UCHAR")] - public byte pic_order_cnt_type; - - /// - - [NativeTypeName("UCHAR")] - public byte log2_max_frame_num_minus4; - - /// - - [NativeTypeName("UCHAR")] - public byte log2_max_pic_order_cnt_lsb_minus4; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC.gen.cs deleted file mode 100644 index a3cde461f2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC -{ - /// - - public uint GOPLength; - - /// - - public uint PPicturePeriod; - - /// - - [NativeTypeName("UCHAR")] - public byte log2_max_pic_order_cnt_lsb_minus4; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 6cb3b71ebc..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_SUPPORT_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_GENERAL_SUPPORT_OK = 0x1, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_RECONFIGURATION_AVAILABLE = 0x2, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RESOLUTION_RECONFIGURATION_AVAILABLE = 0x4, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_VBV_SIZE_CONFIG_AVAILABLE = 0x8, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_FRAME_ANALYSIS_AVAILABLE = 0x10, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RECONSTRUCTED_FRAMES_REQUIRE_TEXTURE_ARRAYS = 0x20, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_DELTA_QP_AVAILABLE = 0x40, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_SUBREGION_LAYOUT_RECONFIGURATION_AVAILABLE = 0x80, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_ADJUSTABLE_QP_RANGE_AVAILABLE = 0x100, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_INITIAL_QP_AVAILABLE = 0x200, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_MAX_FRAME_SIZE_AVAILABLE = 0x400, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_SEQUENCE_GOP_RECONFIGURATION_AVAILABLE = 0x800, - - /// - - D3D12_VIDEO_ENCODER_SUPPORT_FLAG_MOTION_ESTIMATION_PRECISION_MODE_LIMIT_AVAILABLE = 0x1000, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_TIER_HEVC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_TIER_HEVC.gen.cs deleted file mode 100644 index 43f3e07d02..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_TIER_HEVC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_TIER_HEVC -{ - /// - - D3D12_VIDEO_ENCODER_TIER_HEVC_MAIN = 0, - - /// - - D3D12_VIDEO_ENCODER_TIER_HEVC_HIGH = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_VALIDATION_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_VALIDATION_FLAGS.gen.cs deleted file mode 100644 index 3f44cba161..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_VALIDATION_FLAGS.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_ENCODER_VALIDATION_FLAGS -{ - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_CODEC_NOT_SUPPORTED = 0x1, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_INPUT_FORMAT_NOT_SUPPORTED = 0x8, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_CODEC_CONFIGURATION_NOT_SUPPORTED = 0x10, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RATE_CONTROL_MODE_NOT_SUPPORTED = 0x20, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RATE_CONTROL_CONFIGURATION_NOT_SUPPORTED = 0x40, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_INTRA_REFRESH_MODE_NOT_SUPPORTED = 0x80, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_SUBREGION_LAYOUT_MODE_NOT_SUPPORTED = 0x100, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RESOLUTION_NOT_SUPPORTED_IN_LIST = 0x200, - - /// - - D3D12_VIDEO_ENCODER_VALIDATION_FLAG_GOP_STRUCTURE_NOT_SUPPORTED = 0x800, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODE_REFERENCE_FRAMES.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODE_REFERENCE_FRAMES.gen.cs deleted file mode 100644 index 60a9ffa3d5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODE_REFERENCE_FRAMES.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_ENCODE_REFERENCE_FRAMES -{ - /// - - public uint NumTexture2Ds; - - /// - - public ID3D12Resource** ppTexture2Ds; - - /// - - public uint* pSubresources; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_DESC.gen.cs deleted file mode 100644 index d7db9cf95c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_DESC.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_VIDEO_EXTENSION_COMMAND_DESC -{ - /// - - public uint NodeMask; - - /// - - public Guid CommandId; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_INFO.gen.cs deleted file mode 100644 index 4609688bc0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_INFO.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_VIDEO_EXTENSION_COMMAND_INFO -{ - /// - - public Guid CommandId; - - /// - - [NativeTypeName("LPCWSTR")] - public ushort* Name; - - /// - - public D3D12_COMMAND_LIST_SUPPORT_FLAGS CommandListSupportFlags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS.gen.cs deleted file mode 100644 index 6d45568e2d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[Flags] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS -{ - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_READ = 0x1, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_WRITE = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO.gen.cs deleted file mode 100644 index a76841d670..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO -{ - /// - - [NativeTypeName("LPCWSTR")] - public ushort* Name; - - /// - - public D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE Type; - - /// - - public D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE.gen.cs deleted file mode 100644 index 7c09b3278d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE -{ - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CREATION = 0, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_EXECUTION = 2, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CAPS_INPUT = 3, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CAPS_OUTPUT = 4, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_DEVICE_EXECUTE_INPUT = 5, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_DEVICE_EXECUTE_OUTPUT = 6, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE.gen.cs deleted file mode 100644 index add1ab7223..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE -{ - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT8 = 0, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT16 = 1, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT32 = 2, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT64 = 3, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT8 = 4, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT16 = 5, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT32 = 6, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT64 = 7, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_FLOAT = 8, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_DOUBLE = 9, - - /// - - D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_RESOURCE = 10, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FIELD_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FIELD_TYPE.gen.cs deleted file mode 100644 index fa3585c8e4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FIELD_TYPE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_FIELD_TYPE -{ - /// - - D3D12_VIDEO_FIELD_TYPE_NONE = 0, - - /// - - D3D12_VIDEO_FIELD_TYPE_INTERLACED_TOP_FIELD_FIRST = 1, - - /// - - D3D12_VIDEO_FIELD_TYPE_INTERLACED_BOTTOM_FIELD_FIRST = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FORMAT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FORMAT.gen.cs deleted file mode 100644 index 9a51616c7b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FORMAT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_FORMAT -{ - /// - - public DXGI_FORMAT Format; - - /// - - public DXGI_COLOR_SPACE_TYPE ColorSpace; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE.gen.cs deleted file mode 100644 index 730d1f7c49..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE -{ - /// - - D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_NONE = 0, - - /// - - D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_FIELD_BASED = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FRAME_STEREO_FORMAT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FRAME_STEREO_FORMAT.gen.cs deleted file mode 100644 index 47be34fecd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FRAME_STEREO_FORMAT.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_FRAME_STEREO_FORMAT -{ - /// - - D3D12_VIDEO_FRAME_STEREO_FORMAT_NONE = 0, - - /// - - D3D12_VIDEO_FRAME_STEREO_FORMAT_MONO = 1, - - /// - - D3D12_VIDEO_FRAME_STEREO_FORMAT_HORIZONTAL = 2, - - /// - - D3D12_VIDEO_FRAME_STEREO_FORMAT_VERTICAL = 3, - - /// - - D3D12_VIDEO_FRAME_STEREO_FORMAT_SEPARATE = 4, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_DESC.gen.cs deleted file mode 100644 index 4d5a5769ce..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_DESC.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_VIDEO_MOTION_ESTIMATOR_DESC -{ - /// - - public uint NodeMask; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; - - /// - - public D3D12_VIDEO_SIZE_RANGE SizeRange; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_INPUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_INPUT.gen.cs deleted file mode 100644 index f1992b573c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_INPUT.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_VIDEO_MOTION_ESTIMATOR_INPUT -{ - /// - - public ID3D12Resource* pInputTexture2D; - - /// - - public uint InputSubresourceIndex; - - /// - - public ID3D12Resource* pReferenceTexture2D; - - /// - - public uint ReferenceSubresourceIndex; - - /// - - public ID3D12VideoMotionVectorHeap* pHintMotionVectorHeap; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT.gen.cs deleted file mode 100644 index 950cfd9ca5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT -{ - /// - - public ID3D12VideoMotionVectorHeap* pMotionVectorHeap; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE.gen.cs deleted file mode 100644 index b325d162c2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE -{ - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_8X8 = 0, - - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_16X16 = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS.gen.cs deleted file mode 100644 index 3ed1cd221f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; -using static Silk.NET.DirectX.D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE; - -namespace Silk.NET.DirectX; - -/// -[Flags] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS -{ - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_8X8 = - (1 << D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_8X8), - - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_16X16 = - (1 << D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_16X16), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION.gen.cs deleted file mode 100644 index 6e3b4c79fd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION.gen.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION -{ - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_QUARTER_PEL = 0, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS.gen.cs deleted file mode 100644 index f101ba9ad5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; -using static Silk.NET.DirectX.D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION; - -namespace Silk.NET.DirectX; - -/// -[Flags] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS -{ - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAG_QUARTER_PEL = - (1 << D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_QUARTER_PEL), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC.gen.cs deleted file mode 100644 index c381b6db74..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC -{ - /// - - public uint NodeMask; - - /// - - public DXGI_FORMAT InputFormat; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; - - /// - - public D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; - - /// - - public D3D12_VIDEO_SIZE_RANGE SizeRange; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_BLENDING.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_BLENDING.gen.cs deleted file mode 100644 index 84885ed01a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_BLENDING.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_ALPHA_BLENDING -{ - /// - - public BOOL Enable; - - /// - - public float Alpha; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE.gen.cs deleted file mode 100644 index d9a81118a5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE -{ - /// - - D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE = 0, - - /// - - D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND = 1, - - /// - - D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION = 2, - - /// - - D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_SOURCE_STREAM = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS.gen.cs deleted file mode 100644 index f179a46e01..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS -{ - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DENOISE = 0x1, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DERINGING = 0x2, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_EDGE_ENHANCEMENT = 0x4, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_COLOR_CORRECTION = 0x8, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_FLESH_TONE_MAPPING = 0x10, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_IMAGE_STABILIZATION = 0x20, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_SUPER_RESOLUTION = 0x40, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_ANAMORPHIC_SCALING = 0x80, - - /// - - D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_CUSTOM = unchecked((int)(0x80000000)), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS.gen.cs deleted file mode 100644 index 3466a21292..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS -{ - /// - - D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_BOB = 0x1, - - /// - - D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_CUSTOM = unchecked((int)(0x80000000)), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FEATURE_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FEATURE_FLAGS.gen.cs deleted file mode 100644 index 4446628ca0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FEATURE_FLAGS.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_PROCESS_FEATURE_FLAGS -{ - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_FILL = 0x1, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_LUMA_KEY = 0x2, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_STEREO = 0x4, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_ROTATION = 0x8, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_FLIP = 0x10, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_BLENDING = 0x20, - - /// - - D3D12_VIDEO_PROCESS_FEATURE_FLAG_PIXEL_ASPECT_RATIO = 0x40, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER.gen.cs deleted file mode 100644 index 035bdd3eb0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_PROCESS_FILTER -{ - /// - - D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS = 0, - - /// - - D3D12_VIDEO_PROCESS_FILTER_CONTRAST = 1, - - /// - - D3D12_VIDEO_PROCESS_FILTER_HUE = 2, - - /// - - D3D12_VIDEO_PROCESS_FILTER_SATURATION = 3, - - /// - - D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION = 4, - - /// - - D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT = 5, - - /// - - D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING = 6, - - /// - - D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT = 7, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_FLAGS.gen.cs deleted file mode 100644 index f2cd26d6c2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_FLAGS.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using static Silk.NET.DirectX.D3D12_VIDEO_PROCESS_FILTER; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_PROCESS_FILTER_FLAGS -{ - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_BRIGHTNESS = (1 << D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_CONTRAST = (1 << D3D12_VIDEO_PROCESS_FILTER_CONTRAST), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_HUE = (1 << D3D12_VIDEO_PROCESS_FILTER_HUE), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_SATURATION = (1 << D3D12_VIDEO_PROCESS_FILTER_SATURATION), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_NOISE_REDUCTION = - (1 << D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_EDGE_ENHANCEMENT = - (1 << D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_ANAMORPHIC_SCALING = - (1 << D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING), - - /// - - D3D12_VIDEO_PROCESS_FILTER_FLAG_STEREO_ADJUSTMENT = - (1 << D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT), -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_RANGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_RANGE.gen.cs deleted file mode 100644 index f75f95c3e5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_RANGE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_FILTER_RANGE -{ - /// - - public int Minimum; - - /// - - public int Maximum; - - /// - - public int Default; - - /// - - public float Multiplier; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM.gen.cs deleted file mode 100644 index ec3c02f0d2..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_PROCESS_INPUT_STREAM -{ - /// - - public ID3D12Resource* pTexture2D; - - /// - - public uint Subresource; - - /// - - public D3D12_VIDEO_PROCESS_REFERENCE_SET ReferenceSet; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.gen.cs deleted file mode 100644 index ad974d4d08..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS -{ - /// - - [NativeTypeName("D3D12_VIDEO_PROCESS_INPUT_STREAM[2]")] - public _InputStream_e__FixedBuffer InputStream; - - /// - - public D3D12_VIDEO_PROCESS_TRANSFORM Transform; - - /// - - public D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags; - - /// - - public D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo; - - /// - - [NativeTypeName("INT[32]")] - public _FilterLevels_e__FixedBuffer FilterLevels; - - /// - - public D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending; - - /// - - [InlineArray(2)] - public partial struct _InputStream_e__FixedBuffer - { - public D3D12_VIDEO_PROCESS_INPUT_STREAM e0; - } - - /// - - [InlineArray(32)] - public partial struct _FilterLevels_e__FixedBuffer - { - public int e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.gen.cs deleted file mode 100644 index 68380e3f2e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1.gen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 -{ - /// - - [NativeTypeName("D3D12_VIDEO_PROCESS_INPUT_STREAM[2]")] - public _InputStream_e__FixedBuffer InputStream; - - /// - - public D3D12_VIDEO_PROCESS_TRANSFORM Transform; - - /// - - public D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags; - - /// - - public D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo; - - /// - - [NativeTypeName("INT[32]")] - public _FilterLevels_e__FixedBuffer FilterLevels; - - /// - - public D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending; - - /// - - public D3D12_VIDEO_FIELD_TYPE FieldType; - - /// - - [InlineArray(2)] - public partial struct _InputStream_e__FixedBuffer - { - public D3D12_VIDEO_PROCESS_INPUT_STREAM e0; - } - - /// - - [InlineArray(32)] - public partial struct _FilterLevels_e__FixedBuffer - { - public int e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC.gen.cs deleted file mode 100644 index e52cd0a50f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC.gen.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC -{ - /// - - public DXGI_FORMAT Format; - - /// - - public DXGI_COLOR_SPACE_TYPE ColorSpace; - - /// - - public DXGI_RATIONAL SourceAspectRatio; - - /// - - public DXGI_RATIONAL DestinationAspectRatio; - - /// - - public DXGI_RATIONAL FrameRate; - - /// - - public D3D12_VIDEO_SIZE_RANGE SourceSizeRange; - - /// - - public D3D12_VIDEO_SIZE_RANGE DestinationSizeRange; - - /// - - public BOOL EnableOrientation; - - /// - - public D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterFlags; - - /// - - public D3D12_VIDEO_FRAME_STEREO_FORMAT StereoFormat; - - /// - - public D3D12_VIDEO_FIELD_TYPE FieldType; - - /// - - public D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode; - - /// - - public BOOL EnableAlphaBlending; - - /// - - public D3D12_VIDEO_PROCESS_LUMA_KEY LumaKey; - - /// - - public uint NumPastFrames; - - /// - - public uint NumFutureFrames; - - /// - - public BOOL EnableAutoProcessing; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS.gen.cs deleted file mode 100644 index 00ee18a8f1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS -{ - /// - - D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_DISCONTINUITY = 0x1, - - /// - - D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_REPEAT = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE.gen.cs deleted file mode 100644 index 7ce937e4ea..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE -{ - /// - - public uint OutputIndex; - - /// - - public uint InputFrameOrField; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_LUMA_KEY.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_LUMA_KEY.gen.cs deleted file mode 100644 index 3fff74195b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_LUMA_KEY.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_LUMA_KEY -{ - /// - - public BOOL Enable; - - /// - - public float Lower; - - /// - - public float Upper; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ORIENTATION.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ORIENTATION.gen.cs deleted file mode 100644 index dbef881f09..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ORIENTATION.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D12_VIDEO_PROCESS_ORIENTATION -{ - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_DEFAULT = 0, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_HORIZONTAL = 1, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90 = 2, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90_FLIP_HORIZONTAL = 3, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_180 = 4, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_VERTICAL = 5, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270 = 6, - - /// - - D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270_FLIP_HORIZONTAL = 7, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM.gen.cs deleted file mode 100644 index 8db330866c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM -{ - /// - - public ID3D12Resource* pTexture2D; - - /// - - public uint Subresource; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.gen.cs deleted file mode 100644 index 8e91298b7b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS.gen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS -{ - /// - - [NativeTypeName("D3D12_VIDEO_PROCESS_OUTPUT_STREAM[2]")] - public _OutputStream_e__FixedBuffer OutputStream; - - /// - - [NativeTypeName("D3D12_RECT")] - public RECT TargetRectangle; - - /// - - [InlineArray(2)] - public partial struct _OutputStream_e__FixedBuffer - { - public D3D12_VIDEO_PROCESS_OUTPUT_STREAM e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC.gen.cs deleted file mode 100644 index 1451d1bf1b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC -{ - /// - - public DXGI_FORMAT Format; - - /// - - public DXGI_COLOR_SPACE_TYPE ColorSpace; - - /// - - public D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE AlphaFillMode; - - /// - - public uint AlphaFillModeSourceStreamIndex; - - /// - - [NativeTypeName("FLOAT[4]")] - public _BackgroundColor_e__FixedBuffer BackgroundColor; - - /// - - public DXGI_RATIONAL FrameRate; - - /// - - public BOOL EnableStereo; - - /// - - [InlineArray(4)] - public partial struct _BackgroundColor_e__FixedBuffer - { - public float e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_REFERENCE_SET.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_REFERENCE_SET.gen.cs deleted file mode 100644 index af5e9929ce..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_REFERENCE_SET.gen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3D12_VIDEO_PROCESS_REFERENCE_SET -{ - /// - - public uint NumPastFrames; - - /// - - public ID3D12Resource** ppPastFrames; - - /// - - public uint* pPastSubresources; - - /// - - public uint NumFutureFrames; - - /// - - public ID3D12Resource** ppFutureFrames; - - /// - - public uint* pFutureSubresources; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 5f3719b441..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_PROCESS_SUPPORT_FLAGS -{ - /// - - D3D12_VIDEO_PROCESS_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROCESS_SUPPORT_FLAG_SUPPORTED = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_TRANSFORM.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_TRANSFORM.gen.cs deleted file mode 100644 index f13258ce2c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_TRANSFORM.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; - -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_PROCESS_TRANSFORM -{ - /// - - [NativeTypeName("D3D12_RECT")] - public RECT SourceRectangle; - - /// - - [NativeTypeName("D3D12_RECT")] - public RECT DestinationRectangle; - - /// - - public D3D12_VIDEO_PROCESS_ORIENTATION Orientation; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index fb35d34aed..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[Flags] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS -{ - /// - - D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAG_SUPPORTED = 0x1, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SAMPLE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SAMPLE.gen.cs deleted file mode 100644 index ab88e3cb6c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SAMPLE.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_SAMPLE -{ - /// - - public uint Width; - - /// - - public uint Height; - - /// - - public D3D12_VIDEO_FORMAT Format; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORT.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORT.gen.cs deleted file mode 100644 index 3719a47bb7..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORT.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_SCALE_SUPPORT -{ - /// - - public D3D12_VIDEO_SIZE_RANGE OutputSizeRange; - - /// - - public D3D12_VIDEO_SCALE_SUPPORT_FLAGS Flags; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORT_FLAGS.gen.cs deleted file mode 100644 index 2d82cd8767..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORT_FLAGS.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_VIDEO_SCALE_SUPPORT_FLAGS -{ - /// - - D3D12_VIDEO_SCALE_SUPPORT_FLAG_NONE = 0, - - /// - - D3D12_VIDEO_SCALE_SUPPORT_FLAG_POW2_ONLY = 0x1, - - /// - - D3D12_VIDEO_SCALE_SUPPORT_FLAG_EVEN_DIMENSIONS_ONLY = 0x2, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SIZE_RANGE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SIZE_RANGE.gen.cs deleted file mode 100644 index f16e5a63af..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SIZE_RANGE.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct D3D12_VIDEO_SIZE_RANGE -{ - /// - - public uint MaxWidth; - - /// - - public uint MaxHeight; - - /// - - public uint MinWidth; - - /// - - public uint MinHeight; -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList.gen.cs deleted file mode 100644 index e9edb4b355..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList.gen.cs +++ /dev/null @@ -1,581 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("3B60536E-AD29-4E64-A269-F853837E5E53")] -[NativeTypeName("struct ID3D12VideoDecodeCommandList : ID3D12CommandList")] -[NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12VideoDecodeCommandList - : ID3D12VideoDecodeCommandList.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[18]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[19]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DecodeFrame( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoDecodeCommandList*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - public interface Interface : ID3D12CommandList.Interface - { - [VtblIndex(9)] - HRESULT Close(); - - [VtblIndex(10)] - HRESULT Reset(ID3D12CommandAllocator* pAllocator); - - [VtblIndex(11)] - void ClearState(); - - [VtblIndex(12)] - void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ); - - [VtblIndex(13)] - void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ); - - [VtblIndex(14)] - void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(15)] - void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(16)] - void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ); - - [VtblIndex(17)] - void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ); - - [VtblIndex(18)] - void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(19)] - void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(20)] - void EndEvent(); - - [VtblIndex(21)] - void DecodeFrame( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ); - - [VtblIndex(22)] - void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList1.gen.cs deleted file mode 100644 index 5983866497..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList1.gen.cs +++ /dev/null @@ -1,558 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("D52F011B-B56E-453C-A05A-A7F311C8F472")] -[NativeTypeName("struct ID3D12VideoDecodeCommandList1 : ID3D12VideoDecodeCommandList")] -[NativeInheritance("ID3D12VideoDecodeCommandList")] -public unsafe partial struct ID3D12VideoDecodeCommandList1 - : ID3D12VideoDecodeCommandList1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DecodeFrame( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void DecodeFrame1( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList1*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[23]) - )( - (ID3D12VideoDecodeCommandList1*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - public interface Interface : ID3D12VideoDecodeCommandList.Interface - { - [VtblIndex(23)] - void DecodeFrame1( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList2.gen.cs deleted file mode 100644 index 7d3f79c85f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList2.gen.cs +++ /dev/null @@ -1,660 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("6E120880-C114-4153-8036-D247051E1729")] -[NativeTypeName("struct ID3D12VideoDecodeCommandList2 : ID3D12VideoDecodeCommandList1")] -[NativeInheritance("ID3D12VideoDecodeCommandList1")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoDecodeCommandList2 - : ID3D12VideoDecodeCommandList2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DecodeFrame( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void DecodeFrame1( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[23]) - )( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoDecodeCommandList2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - public interface Interface : ID3D12VideoDecodeCommandList1.Interface - { - [VtblIndex(24)] - void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession); - - [VtblIndex(25)] - void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ); - - [VtblIndex(26)] - void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame1; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList3.gen.cs deleted file mode 100644 index 639aaaf472..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList3.gen.cs +++ /dev/null @@ -1,670 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("2AEE8C37-9562-42DA-8ABF-61EFEB2E4513")] -[NativeTypeName("struct ID3D12VideoDecodeCommandList3 : ID3D12VideoDecodeCommandList2")] -[NativeInheritance("ID3D12VideoDecodeCommandList2")] -public unsafe partial struct ID3D12VideoDecodeCommandList3 - : ID3D12VideoDecodeCommandList3.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecodeCommandList3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DecodeFrame( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void DecodeFrame1( - ID3D12VideoDecoder* pDecoder, - [NativeTypeName("const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[23]) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - pDecoder, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoDecodeCommandList3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ) - { - ( - (delegate* unmanaged)( - lpVtbl[27] - ) - )( - (ID3D12VideoDecodeCommandList3*)Unsafe.AsPointer(ref this), - NumBarrierGroups, - pBarrierGroups - ); - } - - public interface Interface : ID3D12VideoDecodeCommandList2.Interface - { - [VtblIndex(27)] - void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName( - "void (ID3D12VideoDecoder *, const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *, const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1*, - D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS*, - void> DecodeFrame1; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - - [NativeTypeName("void (UINT32, const D3D12_BARRIER_GROUP *) __attribute__((stdcall))")] - public delegate* unmanaged Barrier; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder.gen.cs deleted file mode 100644 index 734e0a17e3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder.gen.cs +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("C59B6BDC-7720-4074-A136-17A156037470")] -[NativeTypeName("struct ID3D12VideoDecoder : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoDecoder : ID3D12VideoDecoder.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoder)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_DECODER_DESC GetDesc() - { - D3D12_VIDEO_DECODER_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoDecoder*, - D3D12_VIDEO_DECODER_DESC*, - D3D12_VIDEO_DECODER_DESC*>)(lpVtbl[8]) - )((ID3D12VideoDecoder*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_VIDEO_DECODER_DESC GetDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_DECODER_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - D3D12_VIDEO_DECODER_DESC*> GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder1.gen.cs deleted file mode 100644 index 1717dd7e01..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder1.gen.cs +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("79A2E5FB-CCD2-469A-9FDE-195D10951F7E")] -[NativeTypeName("struct ID3D12VideoDecoder1 : ID3D12VideoDecoder")] -[NativeInheritance("ID3D12VideoDecoder")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoDecoder1 : ID3D12VideoDecoder1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoder1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_DECODER_DESC GetDesc() - { - D3D12_VIDEO_DECODER_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoDecoder1*, - D3D12_VIDEO_DECODER_DESC*, - D3D12_VIDEO_DECODER_DESC*>)(lpVtbl[8]) - )((ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoDecoder1*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12VideoDecoder.Interface - { - [VtblIndex(9)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_DECODER_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - D3D12_VIDEO_DECODER_DESC*> GetDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap.gen.cs deleted file mode 100644 index b2c872852a..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap.gen.cs +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("0946B7C9-EBF6-4047-BB73-8683E27DBB1F")] -[NativeTypeName("struct ID3D12VideoDecoderHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoDecoderHeap : ID3D12VideoDecoderHeap.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoderHeap)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_DECODER_HEAP_DESC GetDesc() - { - D3D12_VIDEO_DECODER_HEAP_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoDecoderHeap*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - D3D12_VIDEO_DECODER_HEAP_DESC*>)(lpVtbl[8]) - )((ID3D12VideoDecoderHeap*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_VIDEO_DECODER_HEAP_DESC GetDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_DECODER_HEAP_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - D3D12_VIDEO_DECODER_HEAP_DESC*> GetDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap1.gen.cs deleted file mode 100644 index e64394e7a1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap1.gen.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("DA1D98C5-539F-41B2-BF6B-1198A03B6D26")] -[NativeTypeName("struct ID3D12VideoDecoderHeap1 : ID3D12VideoDecoderHeap")] -[NativeInheritance("ID3D12VideoDecoderHeap")] -public unsafe partial struct ID3D12VideoDecoderHeap1 - : ID3D12VideoDecoderHeap1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDecoderHeap1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_DECODER_HEAP_DESC GetDesc() - { - D3D12_VIDEO_DECODER_HEAP_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoDecoderHeap1*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - D3D12_VIDEO_DECODER_HEAP_DESC*>)(lpVtbl[8]) - )((ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoDecoderHeap1*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12VideoDecoderHeap.Interface - { - [VtblIndex(9)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_DECODER_HEAP_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - D3D12_VIDEO_DECODER_HEAP_DESC*> GetDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice.gen.cs deleted file mode 100644 index d8c3045f25..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice.gen.cs +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("1F052807-0B46-4ACC-8A89-364F793718A4")] -[NativeTypeName("struct ID3D12VideoDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12VideoDevice : ID3D12VideoDevice.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDevice*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDevice*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE_VIDEO FeatureVideo, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )( - (ID3D12VideoDevice*)Unsafe.AsPointer(ref this), - FeatureVideo, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateVideoDecoder( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int>)(lpVtbl[4]) - )((ID3D12VideoDevice*)Unsafe.AsPointer(ref this), pDesc, riid, ppVideoDecoder); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT CreateVideoDecoderHeap( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int>)(lpVtbl[5]) - )( - (ID3D12VideoDevice*)Unsafe.AsPointer(ref this), - pVideoDecoderHeapDesc, - riid, - ppVideoDecoderHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT CreateVideoProcessor( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[6]) - )( - (ID3D12VideoDevice*)Unsafe.AsPointer(ref this), - NodeMask, - pOutputStreamDesc, - NumInputStreamDescs, - pInputStreamDescs, - riid, - ppVideoProcessor - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT CheckFeatureSupport( - D3D12_FEATURE_VIDEO FeatureVideo, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ); - - [VtblIndex(4)] - HRESULT CreateVideoDecoder( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ); - - [VtblIndex(5)] - HRESULT CreateVideoDecoderHeap( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ); - - [VtblIndex(6)] - HRESULT CreateVideoProcessor( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_FEATURE_VIDEO, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_FEATURE_VIDEO, - void*, - uint, - int> CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int> CreateVideoDecoder; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int> CreateVideoDecoderHeap; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int> CreateVideoProcessor; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice1.gen.cs deleted file mode 100644 index c51a8839e8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice1.gen.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("981611AD-A144-4C83-9890-F30E26D658AB")] -[NativeTypeName("struct ID3D12VideoDevice1 : ID3D12VideoDevice")] -[NativeInheritance("ID3D12VideoDevice")] -public unsafe partial struct ID3D12VideoDevice1 : ID3D12VideoDevice1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE_VIDEO FeatureVideo, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), - FeatureVideo, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateVideoDecoder( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice1*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int>)(lpVtbl[4]) - )((ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, riid, ppVideoDecoder); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT CreateVideoDecoderHeap( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice1*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int>)(lpVtbl[5]) - )( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), - pVideoDecoderHeapDesc, - riid, - ppVideoDecoderHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT CreateVideoProcessor( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice1*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[6]) - )( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), - NodeMask, - pOutputStreamDesc, - NumInputStreamDescs, - pInputStreamDescs, - riid, - ppVideoProcessor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT CreateVideoMotionEstimator( - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *")] - D3D12_VIDEO_MOTION_ESTIMATOR_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionEstimator - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice1*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[7]) - )( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoMotionEstimator - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateVideoMotionVectorHeap( - [NativeTypeName("const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *")] - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionVectorHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice1*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[8]) - )( - (ID3D12VideoDevice1*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoMotionVectorHeap - ); - } - - public interface Interface : ID3D12VideoDevice.Interface - { - [VtblIndex(7)] - HRESULT CreateVideoMotionEstimator( - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *")] - D3D12_VIDEO_MOTION_ESTIMATOR_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionEstimator - ); - - [VtblIndex(8)] - HRESULT CreateVideoMotionVectorHeap( - [NativeTypeName("const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *")] - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionVectorHeap - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_FEATURE_VIDEO, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_FEATURE_VIDEO, - void*, - uint, - int> CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int> CreateVideoDecoder; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int> CreateVideoDecoderHeap; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int> CreateVideoProcessor; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoMotionEstimator; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoMotionVectorHeap; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice2.gen.cs deleted file mode 100644 index d4ebd899b0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice2.gen.cs +++ /dev/null @@ -1,572 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("F019AC49-F838-4A95-9B17-579437C8F513")] -[NativeTypeName("struct ID3D12VideoDevice2 : ID3D12VideoDevice1")] -[NativeInheritance("ID3D12VideoDevice1")] -public unsafe partial struct ID3D12VideoDevice2 : ID3D12VideoDevice2.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE_VIDEO FeatureVideo, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - FeatureVideo, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateVideoDecoder( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int>)(lpVtbl[4]) - )((ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, riid, ppVideoDecoder); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT CreateVideoDecoderHeap( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int>)(lpVtbl[5]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pVideoDecoderHeapDesc, - riid, - ppVideoDecoderHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT CreateVideoProcessor( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[6]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - NodeMask, - pOutputStreamDesc, - NumInputStreamDescs, - pInputStreamDescs, - riid, - ppVideoProcessor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT CreateVideoMotionEstimator( - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *")] - D3D12_VIDEO_MOTION_ESTIMATOR_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionEstimator - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[7]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoMotionEstimator - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateVideoMotionVectorHeap( - [NativeTypeName("const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *")] - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionVectorHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[8]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoMotionVectorHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateVideoDecoder1( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_DECODER_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[9]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoDecoder - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateVideoDecoderHeap1( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[10]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pVideoDecoderHeapDesc, - pProtectedResourceSession, - riid, - ppVideoDecoderHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateVideoProcessor1( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[11]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - NodeMask, - pOutputStreamDesc, - NumInputStreamDescs, - pInputStreamDescs, - pProtectedResourceSession, - riid, - ppVideoProcessor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateVideoExtensionCommand( - [NativeTypeName("const D3D12_VIDEO_EXTENSION_COMMAND_DESC *")] - D3D12_VIDEO_EXTENSION_COMMAND_DESC* pDesc, - [NativeTypeName("const void *")] void* pCreationParameters, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoExtensionCommand - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*, - void*, - nuint, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pDesc, - pCreationParameters, - CreationParametersDataSizeInBytes, - pProtectedResourceSession, - riid, - ppVideoExtensionCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes, - void* pOutputData, - [NativeTypeName("SIZE_T")] nuint OutputDataSizeInBytes - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void*, - nuint, - int>)(lpVtbl[13]) - )( - (ID3D12VideoDevice2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes, - pOutputData, - OutputDataSizeInBytes - ); - } - - public interface Interface : ID3D12VideoDevice1.Interface - { - [VtblIndex(9)] - HRESULT CreateVideoDecoder1( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ); - - [VtblIndex(10)] - HRESULT CreateVideoDecoderHeap1( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ); - - [VtblIndex(11)] - HRESULT CreateVideoProcessor1( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ); - - [VtblIndex(12)] - HRESULT CreateVideoExtensionCommand( - [NativeTypeName("const D3D12_VIDEO_EXTENSION_COMMAND_DESC *")] - D3D12_VIDEO_EXTENSION_COMMAND_DESC* pDesc, - [NativeTypeName("const void *")] void* pCreationParameters, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoExtensionCommand - ); - - [VtblIndex(13)] - HRESULT ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes, - void* pOutputData, - [NativeTypeName("SIZE_T")] nuint OutputDataSizeInBytes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_FEATURE_VIDEO, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_FEATURE_VIDEO, - void*, - uint, - int> CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int> CreateVideoDecoder; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int> CreateVideoDecoderHeap; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int> CreateVideoProcessor; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoMotionEstimator; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoMotionVectorHeap; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoDecoder1; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoDecoderHeap1; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoProcessor1; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_EXTENSION_COMMAND_DESC *, const void *, SIZE_T, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*, - void*, - nuint, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoExtensionCommand; - - [NativeTypeName( - "HRESULT (ID3D12VideoExtensionCommand *, const void *, SIZE_T, void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void*, - nuint, - int> ExecuteExtensionCommand; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice3.gen.cs deleted file mode 100644 index 781af1ff56..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice3.gen.cs +++ /dev/null @@ -1,598 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("4243ADB4-3A32-4666-973C-0CCC5625DC44")] -[NativeTypeName("struct ID3D12VideoDevice3 : ID3D12VideoDevice2")] -[NativeInheritance("ID3D12VideoDevice2")] -public unsafe partial struct ID3D12VideoDevice3 : ID3D12VideoDevice3.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoDevice3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT CheckFeatureSupport( - D3D12_FEATURE_VIDEO FeatureVideo, - void* pFeatureSupportData, - uint FeatureSupportDataSize - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - FeatureVideo, - pFeatureSupportData, - FeatureSupportDataSize - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT CreateVideoDecoder( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int>)(lpVtbl[4]) - )((ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), pDesc, riid, ppVideoDecoder); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT CreateVideoDecoderHeap( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int>)(lpVtbl[5]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pVideoDecoderHeapDesc, - riid, - ppVideoDecoderHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT CreateVideoProcessor( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int>)(lpVtbl[6]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - NodeMask, - pOutputStreamDesc, - NumInputStreamDescs, - pInputStreamDescs, - riid, - ppVideoProcessor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT CreateVideoMotionEstimator( - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *")] - D3D12_VIDEO_MOTION_ESTIMATOR_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionEstimator - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[7]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoMotionEstimator - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HRESULT CreateVideoMotionVectorHeap( - [NativeTypeName("const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *")] - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoMotionVectorHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[8]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoMotionVectorHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT CreateVideoDecoder1( - [NativeTypeName("const D3D12_VIDEO_DECODER_DESC *")] D3D12_VIDEO_DECODER_DESC* pDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_DECODER_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[9]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pDesc, - pProtectedResourceSession, - riid, - ppVideoDecoder - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT CreateVideoDecoderHeap1( - [NativeTypeName("const D3D12_VIDEO_DECODER_HEAP_DESC *")] - D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoDecoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[10]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pVideoDecoderHeapDesc, - pProtectedResourceSession, - riid, - ppVideoDecoderHeap - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT CreateVideoProcessor1( - uint NodeMask, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, - uint NumInputStreamDescs, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoProcessor - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[11]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - NodeMask, - pOutputStreamDesc, - NumInputStreamDescs, - pInputStreamDescs, - pProtectedResourceSession, - riid, - ppVideoProcessor - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT CreateVideoExtensionCommand( - [NativeTypeName("const D3D12_VIDEO_EXTENSION_COMMAND_DESC *")] - D3D12_VIDEO_EXTENSION_COMMAND_DESC* pDesc, - [NativeTypeName("const void *")] void* pCreationParameters, - [NativeTypeName("SIZE_T")] nuint CreationParametersDataSizeInBytes, - ID3D12ProtectedResourceSession* pProtectedResourceSession, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoExtensionCommand - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*, - void*, - nuint, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int>)(lpVtbl[12]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pDesc, - pCreationParameters, - CreationParametersDataSizeInBytes, - pProtectedResourceSession, - riid, - ppVideoExtensionCommand - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HRESULT ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes, - void* pOutputData, - [NativeTypeName("SIZE_T")] nuint OutputDataSizeInBytes - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void*, - nuint, - int>)(lpVtbl[13]) - )( - (ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes, - pOutputData, - OutputDataSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT CreateVideoEncoder( - [NativeTypeName("const D3D12_VIDEO_ENCODER_DESC *")] D3D12_VIDEO_ENCODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoEncoder - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_ENCODER_DESC*, - Guid*, - void**, - int>)(lpVtbl[14]) - )((ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), pDesc, riid, ppVideoEncoder); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HRESULT CreateVideoEncoderHeap( - [NativeTypeName("const D3D12_VIDEO_ENCODER_HEAP_DESC *")] - D3D12_VIDEO_ENCODER_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoEncoderHeap - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoDevice3*, - D3D12_VIDEO_ENCODER_HEAP_DESC*, - Guid*, - void**, - int>)(lpVtbl[15]) - )((ID3D12VideoDevice3*)Unsafe.AsPointer(ref this), pDesc, riid, ppVideoEncoderHeap); - } - - public interface Interface : ID3D12VideoDevice2.Interface - { - [VtblIndex(14)] - HRESULT CreateVideoEncoder( - [NativeTypeName("const D3D12_VIDEO_ENCODER_DESC *")] D3D12_VIDEO_ENCODER_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoEncoder - ); - - [VtblIndex(15)] - HRESULT CreateVideoEncoderHeap( - [NativeTypeName("const D3D12_VIDEO_ENCODER_HEAP_DESC *")] - D3D12_VIDEO_ENCODER_HEAP_DESC* pDesc, - [NativeTypeName("const IID &")] Guid* riid, - void** ppVideoEncoderHeap - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (D3D12_FEATURE_VIDEO, void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_FEATURE_VIDEO, - void*, - uint, - int> CheckFeatureSupport; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - Guid*, - void**, - int> CreateVideoDecoder; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - Guid*, - void**, - int> CreateVideoDecoderHeap; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - Guid*, - void**, - int> CreateVideoProcessor; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoMotionEstimator; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoMotionVectorHeap; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoDecoder1; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_DECODER_HEAP_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_DECODER_HEAP_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoDecoderHeap1; - - [NativeTypeName( - "HRESULT (UINT, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoProcessor1; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_EXTENSION_COMMAND_DESC *, const void *, SIZE_T, ID3D12ProtectedResourceSession *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*, - void*, - nuint, - ID3D12ProtectedResourceSession*, - Guid*, - void**, - int> CreateVideoExtensionCommand; - - [NativeTypeName( - "HRESULT (ID3D12VideoExtensionCommand *, const void *, SIZE_T, void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void*, - nuint, - int> ExecuteExtensionCommand; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_ENCODER_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_ENCODER_DESC*, - Guid*, - void**, - int> CreateVideoEncoder; - - [NativeTypeName( - "HRESULT (const D3D12_VIDEO_ENCODER_HEAP_DESC *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_ENCODER_HEAP_DESC*, - Guid*, - void**, - int> CreateVideoEncoderHeap; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList.gen.cs deleted file mode 100644 index 5f43f6ee2b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList.gen.cs +++ /dev/null @@ -1,649 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8455293A-0CBD-4831-9B39-FBDBAB724723")] -[NativeTypeName("struct ID3D12VideoEncodeCommandList : ID3D12CommandList")] -[NativeInheritance("ID3D12CommandList")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoEncodeCommandList - : ID3D12VideoEncodeCommandList.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncodeCommandList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[18]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ((delegate* unmanaged)(lpVtbl[19]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - Metadata, - pData, - Size - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void EstimateMotion( - ID3D12VideoMotionEstimator* pMotionEstimator, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - pMotionEstimator, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ResolveMotionVectorHeap( - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void>)(lpVtbl[22]) - )( - (ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[23]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoEncodeCommandList*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - public interface Interface : ID3D12CommandList.Interface - { - [VtblIndex(9)] - HRESULT Close(); - - [VtblIndex(10)] - HRESULT Reset(ID3D12CommandAllocator* pAllocator); - - [VtblIndex(11)] - void ClearState(); - - [VtblIndex(12)] - void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ); - - [VtblIndex(13)] - void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ); - - [VtblIndex(14)] - void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(15)] - void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(16)] - void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ); - - [VtblIndex(17)] - void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ); - - [VtblIndex(18)] - void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(19)] - void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(20)] - void EndEvent(); - - [VtblIndex(21)] - void EstimateMotion( - ID3D12VideoMotionEstimator* pMotionEstimator, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT* pInputArguments - ); - - [VtblIndex(22)] - void ResolveMotionVectorHeap( - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT* pInputArguments - ); - - [VtblIndex(23)] - void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ); - - [VtblIndex(24)] - void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoMotionEstimator *, const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *, const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void> EstimateMotion; - - [NativeTypeName( - "void (const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *, const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void> ResolveMotionVectorHeap; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList1.gen.cs deleted file mode 100644 index ff71108a13..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList1.gen.cs +++ /dev/null @@ -1,651 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("94971ECA-2BDB-4769-88CF-3675EA757EBC")] -[NativeTypeName("struct ID3D12VideoEncodeCommandList1 : ID3D12VideoEncodeCommandList")] -[NativeInheritance("ID3D12VideoEncodeCommandList")] -public unsafe partial struct ID3D12VideoEncodeCommandList1 - : ID3D12VideoEncodeCommandList1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncodeCommandList1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void EstimateMotion( - ID3D12VideoMotionEstimator* pMotionEstimator, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - pMotionEstimator, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ResolveMotionVectorHeap( - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void>)(lpVtbl[22]) - )( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[23]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList1*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoEncodeCommandList1*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - public interface Interface : ID3D12VideoEncodeCommandList.Interface - { - [VtblIndex(25)] - void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ); - - [VtblIndex(26)] - void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoMotionEstimator *, const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *, const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void> EstimateMotion; - - [NativeTypeName( - "void (const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *, const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void> ResolveMotionVectorHeap; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList2.gen.cs deleted file mode 100644 index 6d27ffae31..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList2.gen.cs +++ /dev/null @@ -1,729 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("895491E2-E701-46A9-9A1F-8D3480ED867A")] -[NativeTypeName("struct ID3D12VideoEncodeCommandList2 : ID3D12VideoEncodeCommandList1")] -[NativeInheritance("ID3D12VideoEncodeCommandList1")] -public unsafe partial struct ID3D12VideoEncodeCommandList2 - : ID3D12VideoEncodeCommandList2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncodeCommandList2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void EstimateMotion( - ID3D12VideoMotionEstimator* pMotionEstimator, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pMotionEstimator, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ResolveMotionVectorHeap( - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void>)(lpVtbl[22]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[23]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void EncodeFrame( - ID3D12VideoEncoder* pEncoder, - ID3D12VideoEncoderHeap* pHeap, - [NativeTypeName("const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS* pInputArguments, - [NativeTypeName("const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS* pOutputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - ID3D12VideoEncoder*, - ID3D12VideoEncoderHeap*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS*, - void>)(lpVtbl[27]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pEncoder, - pHeap, - pInputArguments, - pOutputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void ResolveEncoderOutputMetadata( - [NativeTypeName("const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS* pInputArguments, - [NativeTypeName("const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS* pOutputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList2*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS*, - void>)(lpVtbl[28]) - )( - (ID3D12VideoEncodeCommandList2*)Unsafe.AsPointer(ref this), - pInputArguments, - pOutputArguments - ); - } - - public interface Interface : ID3D12VideoEncodeCommandList1.Interface - { - [VtblIndex(27)] - void EncodeFrame( - ID3D12VideoEncoder* pEncoder, - ID3D12VideoEncoderHeap* pHeap, - [NativeTypeName("const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS* pInputArguments, - [NativeTypeName("const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS* pOutputArguments - ); - - [VtblIndex(28)] - void ResolveEncoderOutputMetadata( - [NativeTypeName("const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS* pInputArguments, - [NativeTypeName("const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS* pOutputArguments - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoMotionEstimator *, const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *, const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void> EstimateMotion; - - [NativeTypeName( - "void (const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *, const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void> ResolveMotionVectorHeap; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoEncoder *, ID3D12VideoEncoderHeap *, const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *, const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoEncoder*, - ID3D12VideoEncoderHeap*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS*, - void> EncodeFrame; - - [NativeTypeName( - "void (const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *, const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS*, - void> ResolveEncoderOutputMetadata; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList3.gen.cs deleted file mode 100644 index 3a331c92ef..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList3.gen.cs +++ /dev/null @@ -1,740 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("7F027B22-1515-4E85-AA0D-026486580576")] -[NativeTypeName("struct ID3D12VideoEncodeCommandList3 : ID3D12VideoEncodeCommandList2")] -[NativeInheritance("ID3D12VideoEncodeCommandList2")] -public unsafe partial struct ID3D12VideoEncodeCommandList3 - : ID3D12VideoEncodeCommandList3.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncodeCommandList3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void EstimateMotion( - ID3D12VideoMotionEstimator* pMotionEstimator, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *")] - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pMotionEstimator, - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ResolveMotionVectorHeap( - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT* pOutputArguments, - [NativeTypeName("const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *")] - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void>)(lpVtbl[22]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pOutputArguments, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[23]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void EncodeFrame( - ID3D12VideoEncoder* pEncoder, - ID3D12VideoEncoderHeap* pHeap, - [NativeTypeName("const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS* pInputArguments, - [NativeTypeName("const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS* pOutputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - ID3D12VideoEncoder*, - ID3D12VideoEncoderHeap*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS*, - void>)(lpVtbl[27]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pEncoder, - pHeap, - pInputArguments, - pOutputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void ResolveEncoderOutputMetadata( - [NativeTypeName("const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS* pInputArguments, - [NativeTypeName("const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *")] - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS* pOutputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoEncodeCommandList3*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS*, - void>)(lpVtbl[28]) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - pInputArguments, - pOutputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ) - { - ( - (delegate* unmanaged)( - lpVtbl[29] - ) - )( - (ID3D12VideoEncodeCommandList3*)Unsafe.AsPointer(ref this), - NumBarrierGroups, - pBarrierGroups - ); - } - - public interface Interface : ID3D12VideoEncodeCommandList2.Interface - { - [VtblIndex(29)] - void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoMotionEstimator *, const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *, const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT*, - D3D12_VIDEO_MOTION_ESTIMATOR_INPUT*, - void> EstimateMotion; - - [NativeTypeName( - "void (const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *, const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT*, - D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT*, - void> ResolveMotionVectorHeap; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoEncoder *, ID3D12VideoEncoderHeap *, const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *, const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoEncoder*, - ID3D12VideoEncoderHeap*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS*, - void> EncodeFrame; - - [NativeTypeName( - "void (const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *, const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS*, - D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS*, - void> ResolveEncoderOutputMetadata; - - [NativeTypeName("void (UINT32, const D3D12_BARRIER_GROUP *) __attribute__((stdcall))")] - public delegate* unmanaged Barrier; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoder.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoder.gen.cs deleted file mode 100644 index 2d4803d969..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoder.gen.cs +++ /dev/null @@ -1,301 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("2E0D212D-8DF9-44A6-A770-BB289B182737")] -[NativeTypeName("struct ID3D12VideoEncoder : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoEncoder : ID3D12VideoEncoder.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncoder)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public uint GetNodeMask() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public D3D12_VIDEO_ENCODER_FLAGS GetEncoderFlags() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_VIDEO_ENCODER_CODEC GetCodec() - { - return ((delegate* unmanaged)(lpVtbl[10]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT GetCodecProfile(D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile) - { - return ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), dstProfile); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT GetCodecConfiguration(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION dstCodecConfig) - { - return ( - (delegate* unmanaged< - ID3D12VideoEncoder*, - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION, - int>)(lpVtbl[12]) - )((ID3D12VideoEncoder*)Unsafe.AsPointer(ref this), dstCodecConfig); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public DXGI_FORMAT GetInputFormat() - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12VideoEncoder*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE GetMaxMotionEstimationPrecision() - { - return ( - (delegate* unmanaged< - ID3D12VideoEncoder*, - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE>)(lpVtbl[14]) - )((ID3D12VideoEncoder*)Unsafe.AsPointer(ref this)); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - uint GetNodeMask(); - - [VtblIndex(9)] - D3D12_VIDEO_ENCODER_FLAGS GetEncoderFlags(); - - [VtblIndex(10)] - D3D12_VIDEO_ENCODER_CODEC GetCodec(); - - [VtblIndex(11)] - HRESULT GetCodecProfile(D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile); - - [VtblIndex(12)] - HRESULT GetCodecConfiguration(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION dstCodecConfig); - - [VtblIndex(13)] - DXGI_FORMAT GetInputFormat(); - - [VtblIndex(14)] - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE GetMaxMotionEstimationPrecision(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeMask; - - [NativeTypeName("D3D12_VIDEO_ENCODER_FLAGS () __attribute__((stdcall))")] - public delegate* unmanaged GetEncoderFlags; - - [NativeTypeName("D3D12_VIDEO_ENCODER_CODEC () __attribute__((stdcall))")] - public delegate* unmanaged GetCodec; - - [NativeTypeName("HRESULT (D3D12_VIDEO_ENCODER_PROFILE_DESC) __attribute__((stdcall))")] - public delegate* unmanaged GetCodecProfile; - - [NativeTypeName( - "HRESULT (D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION, - int> GetCodecConfiguration; - - [NativeTypeName("DXGI_FORMAT () __attribute__((stdcall))")] - public delegate* unmanaged GetInputFormat; - - [NativeTypeName( - "D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE () __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE> GetMaxMotionEstimationPrecision; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderHeap.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderHeap.gen.cs deleted file mode 100644 index 1a8a8889f5..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderHeap.gen.cs +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("22B35D96-876A-44C0-B25E-FB8C9C7F1C4A")] -[NativeTypeName("struct ID3D12VideoEncoderHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoEncoderHeap : ID3D12VideoEncoderHeap.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoEncoderHeap)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public uint GetNodeMask() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public D3D12_VIDEO_ENCODER_HEAP_FLAGS GetEncoderHeapFlags() - { - return ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public D3D12_VIDEO_ENCODER_CODEC GetCodec() - { - return ( - (delegate* unmanaged)(lpVtbl[10]) - )((ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT GetCodecProfile(D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile) - { - return ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), dstProfile); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT GetCodecLevel(D3D12_VIDEO_ENCODER_LEVEL_SETTING dstLevel) - { - return ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )((ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), dstLevel); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public uint GetResolutionListCount() - { - return ((delegate* unmanaged)(lpVtbl[13]))( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HRESULT GetResolutionList( - [NativeTypeName("const UINT")] uint ResolutionsListCount, - D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoEncoderHeap*, - uint, - D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC*, - int>)(lpVtbl[14]) - )( - (ID3D12VideoEncoderHeap*)Unsafe.AsPointer(ref this), - ResolutionsListCount, - pResolutionList - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - uint GetNodeMask(); - - [VtblIndex(9)] - D3D12_VIDEO_ENCODER_HEAP_FLAGS GetEncoderHeapFlags(); - - [VtblIndex(10)] - D3D12_VIDEO_ENCODER_CODEC GetCodec(); - - [VtblIndex(11)] - HRESULT GetCodecProfile(D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile); - - [VtblIndex(12)] - HRESULT GetCodecLevel(D3D12_VIDEO_ENCODER_LEVEL_SETTING dstLevel); - - [VtblIndex(13)] - uint GetResolutionListCount(); - - [VtblIndex(14)] - HRESULT GetResolutionList( - [NativeTypeName("const UINT")] uint ResolutionsListCount, - D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeMask; - - [NativeTypeName("D3D12_VIDEO_ENCODER_HEAP_FLAGS () __attribute__((stdcall))")] - public delegate* unmanaged GetEncoderHeapFlags; - - [NativeTypeName("D3D12_VIDEO_ENCODER_CODEC () __attribute__((stdcall))")] - public delegate* unmanaged GetCodec; - - [NativeTypeName("HRESULT (D3D12_VIDEO_ENCODER_PROFILE_DESC) __attribute__((stdcall))")] - public delegate* unmanaged GetCodecProfile; - - [NativeTypeName("HRESULT (D3D12_VIDEO_ENCODER_LEVEL_SETTING) __attribute__((stdcall))")] - public delegate* unmanaged GetCodecLevel; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetResolutionListCount; - - [NativeTypeName( - "HRESULT (const UINT, D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC*, - int> GetResolutionList; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoExtensionCommand.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoExtensionCommand.gen.cs deleted file mode 100644 index ae647d476b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoExtensionCommand.gen.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("554E41E8-AE8E-4A8C-B7D2-5B4F274A30E4")] -[NativeTypeName("struct ID3D12VideoExtensionCommand : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoExtensionCommand - : ID3D12VideoExtensionCommand.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoExtensionCommand)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_EXTENSION_COMMAND_DESC GetDesc() - { - D3D12_VIDEO_EXTENSION_COMMAND_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoExtensionCommand*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*>)(lpVtbl[8]) - )((ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoExtensionCommand*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_VIDEO_EXTENSION_COMMAND_DESC GetDesc(); - - [VtblIndex(9)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_EXTENSION_COMMAND_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*, - D3D12_VIDEO_EXTENSION_COMMAND_DESC*> GetDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionEstimator.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionEstimator.gen.cs deleted file mode 100644 index 1bbc7c2417..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionEstimator.gen.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("33FDAE0E-098B-428F-87BB-34B695DE08F8")] -[NativeTypeName("struct ID3D12VideoMotionEstimator : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoMotionEstimator - : ID3D12VideoMotionEstimator.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoMotionEstimator)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_MOTION_ESTIMATOR_DESC GetDesc() - { - D3D12_VIDEO_MOTION_ESTIMATOR_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoMotionEstimator*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*>)(lpVtbl[8]) - )((ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoMotionEstimator*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_VIDEO_MOTION_ESTIMATOR_DESC GetDesc(); - - [VtblIndex(9)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_MOTION_ESTIMATOR_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*, - D3D12_VIDEO_MOTION_ESTIMATOR_DESC*> GetDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionVectorHeap.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionVectorHeap.gen.cs deleted file mode 100644 index 1cb8a22b5f..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionVectorHeap.gen.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("5BE17987-743A-4061-834B-23D22DAEA505")] -[NativeTypeName("struct ID3D12VideoMotionVectorHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoMotionVectorHeap - : ID3D12VideoMotionVectorHeap.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoMotionVectorHeap)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[3]) - )((ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC GetDesc() - { - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoMotionVectorHeap*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*>)(lpVtbl[8]) - )((ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoMotionVectorHeap*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC GetDesc(); - - [VtblIndex(9)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*, - D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC*> GetDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList.gen.cs deleted file mode 100644 index c870a68588..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList.gen.cs +++ /dev/null @@ -1,588 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("AEB2543A-167F-4682-ACC8-D159ED4A6209")] -[NativeTypeName("struct ID3D12VideoProcessCommandList : ID3D12CommandList")] -[NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12VideoProcessCommandList - : ID3D12VideoProcessCommandList.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void ProcessFrames( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoProcessCommandList*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - public interface Interface : ID3D12CommandList.Interface - { - [VtblIndex(9)] - HRESULT Close(); - - [VtblIndex(10)] - HRESULT Reset(ID3D12CommandAllocator* pAllocator); - - [VtblIndex(11)] - void ClearState(); - - [VtblIndex(12)] - void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ); - - [VtblIndex(13)] - void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ); - - [VtblIndex(14)] - void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(15)] - void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index); - - [VtblIndex(16)] - void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ); - - [VtblIndex(17)] - void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ); - - [VtblIndex(18)] - void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(19)] - void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size); - - [VtblIndex(20)] - void EndEvent(); - - [VtblIndex(21)] - void ProcessFrames( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS* pInputArguments - ); - - [VtblIndex(22)] - void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void> ProcessFrames; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList1.gen.cs deleted file mode 100644 index b295fc2acd..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList1.gen.cs +++ /dev/null @@ -1,567 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("542C5C4D-7596-434F-8C93-4EFA6766F267")] -[NativeTypeName("struct ID3D12VideoProcessCommandList1 : ID3D12VideoProcessCommandList")] -[NativeInheritance("ID3D12VideoProcessCommandList")] -public unsafe partial struct ID3D12VideoProcessCommandList1 - : ID3D12VideoProcessCommandList1.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void ProcessFrames( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void ProcessFrames1( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList1*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1*, - void>)(lpVtbl[23]) - )( - (ID3D12VideoProcessCommandList1*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - public interface Interface : ID3D12VideoProcessCommandList.Interface - { - [VtblIndex(23)] - void ProcessFrames1( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1* pInputArguments - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void> ProcessFrames; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1*, - void> ProcessFrames1; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList2.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList2.gen.cs deleted file mode 100644 index 0e4be080e1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList2.gen.cs +++ /dev/null @@ -1,668 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("DB525AE4-6AD6-473C-BAA7-59B2E37082E4")] -[NativeTypeName("struct ID3D12VideoProcessCommandList2 : ID3D12VideoProcessCommandList1")] -[NativeInheritance("ID3D12VideoProcessCommandList1")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct ID3D12VideoProcessCommandList2 - : ID3D12VideoProcessCommandList2.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList2)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void ProcessFrames( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void ProcessFrames1( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1*, - void>)(lpVtbl[23]) - )( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList2*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoProcessCommandList2*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - public interface Interface : ID3D12VideoProcessCommandList1.Interface - { - [VtblIndex(24)] - void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession); - - [VtblIndex(25)] - void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ); - - [VtblIndex(26)] - void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void> ProcessFrames; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1*, - void> ProcessFrames1; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList3.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList3.gen.cs deleted file mode 100644 index ed8940b65e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList3.gen.cs +++ /dev/null @@ -1,680 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("1A0A4CA4-9F08-40CE-9558-B411FD2666FF")] -[NativeTypeName("struct ID3D12VideoProcessCommandList3 : ID3D12VideoProcessCommandList2")] -[NativeInheritance("ID3D12VideoProcessCommandList2")] -public unsafe partial struct ID3D12VideoProcessCommandList3 - : ID3D12VideoProcessCommandList3.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessCommandList3)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ( - (delegate* unmanaged)(lpVtbl[0]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[4] - ) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ( - (delegate* unmanaged)(lpVtbl[5]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new D3D12_COMMAND_LIST_TYPE GetType() - { - return ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT Close() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT Reset(ID3D12CommandAllocator* pAllocator) - { - return ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), pAllocator); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState() - { - ((delegate* unmanaged)(lpVtbl[11]))( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ResourceBarrier( - uint NumBarriers, - [NativeTypeName("const D3D12_RESOURCE_BARRIER *")] D3D12_RESOURCE_BARRIER* pBarriers - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - uint, - D3D12_RESOURCE_BARRIER*, - void>)(lpVtbl[12]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DiscardResource( - ID3D12Resource* pResource, - [NativeTypeName("const D3D12_DISCARD_REGION *")] D3D12_DISCARD_REGION* pRegion - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void>)(lpVtbl[13]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[14]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, D3D12_QUERY_TYPE Type, uint Index) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void>)(lpVtbl[15]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ResolveQueryData( - ID3D12QueryHeap* pQueryHeap, - D3D12_QUERY_TYPE Type, - uint StartIndex, - uint NumQueries, - ID3D12Resource* pDestinationBuffer, - [NativeTypeName("UINT64")] ulong AlignedDestinationBufferOffset - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void>)(lpVtbl[16]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - pQueryHeap, - Type, - StartIndex, - NumQueries, - pDestinationBuffer, - AlignedDestinationBufferOffset - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetPredication( - ID3D12Resource* pBuffer, - [NativeTypeName("UINT64")] ulong AlignedBufferOffset, - D3D12_PREDICATION_OP Operation - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void>)(lpVtbl[17]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - pBuffer, - AlignedBufferOffset, - Operation - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void SetMarker(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[18] - ) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void BeginEvent(uint Metadata, [NativeTypeName("const void *")] void* pData, uint Size) - { - ( - (delegate* unmanaged)( - lpVtbl[19] - ) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void EndEvent() - { - ((delegate* unmanaged)(lpVtbl[20]))( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void ProcessFrames( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void>)(lpVtbl[21]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void WriteBufferImmediate( - uint Count, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *")] - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER* pParams, - [NativeTypeName("const D3D12_WRITEBUFFERIMMEDIATE_MODE *")] - D3D12_WRITEBUFFERIMMEDIATE_MODE* pModes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void>)(lpVtbl[22]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void ProcessFrames1( - ID3D12VideoProcessor* pVideoProcessor, - [NativeTypeName("const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *")] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS* pOutputArguments, - uint NumInputStreams, - [NativeTypeName("const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *")] - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1* pInputArguments - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1*, - void>)(lpVtbl[23]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - pVideoProcessor, - pOutputArguments, - NumInputStreams, - pInputArguments - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetProtectedResourceSession( - ID3D12ProtectedResourceSession* pProtectedResourceSession - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12ProtectedResourceSession*, - void>)(lpVtbl[24]) - )((ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void InitializeExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pInitializationParameters, - [NativeTypeName("SIZE_T")] nuint InitializationParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[25]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pInitializationParameters, - InitializationParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ExecuteExtensionCommand( - ID3D12VideoExtensionCommand* pExtensionCommand, - [NativeTypeName("const void *")] void* pExecutionParameters, - [NativeTypeName("SIZE_T")] nuint ExecutionParametersSizeInBytes - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void>)(lpVtbl[26]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - pExtensionCommand, - pExecutionParameters, - ExecutionParametersSizeInBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ) - { - ( - (delegate* unmanaged< - ID3D12VideoProcessCommandList3*, - uint, - D3D12_BARRIER_GROUP*, - void>)(lpVtbl[27]) - )( - (ID3D12VideoProcessCommandList3*)Unsafe.AsPointer(ref this), - NumBarrierGroups, - pBarrierGroups - ); - } - - public interface Interface : ID3D12VideoProcessCommandList2.Interface - { - [VtblIndex(27)] - void Barrier( - [NativeTypeName("UINT32")] uint NumBarrierGroups, - [NativeTypeName("const D3D12_BARRIER_GROUP *")] D3D12_BARRIER_GROUP* pBarrierGroups - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("D3D12_COMMAND_LIST_TYPE () __attribute__((stdcall))")] - public new delegate* unmanaged GetType; - - [NativeTypeName("HRESULT () __attribute__((stdcall))")] - public delegate* unmanaged Close; - - [NativeTypeName("HRESULT (ID3D12CommandAllocator *) __attribute__((stdcall))")] - public delegate* unmanaged Reset; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged ClearState; - - [NativeTypeName("void (UINT, const D3D12_RESOURCE_BARRIER *) __attribute__((stdcall))")] - public delegate* unmanaged ResourceBarrier; - - [NativeTypeName( - "void (ID3D12Resource *, const D3D12_DISCARD_REGION *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - D3D12_DISCARD_REGION*, - void> DiscardResource; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - void> BeginQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT) __attribute__((stdcall))" - )] - public delegate* unmanaged EndQuery; - - [NativeTypeName( - "void (ID3D12QueryHeap *, D3D12_QUERY_TYPE, UINT, UINT, ID3D12Resource *, UINT64) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12QueryHeap*, - D3D12_QUERY_TYPE, - uint, - uint, - ID3D12Resource*, - ulong, - void> ResolveQueryData; - - [NativeTypeName( - "void (ID3D12Resource *, UINT64, D3D12_PREDICATION_OP) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Resource*, - ulong, - D3D12_PREDICATION_OP, - void> SetPredication; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged SetMarker; - - [NativeTypeName("void (UINT, const void *, UINT) __attribute__((stdcall))")] - public delegate* unmanaged BeginEvent; - - [NativeTypeName("void () __attribute__((stdcall))")] - public delegate* unmanaged EndEvent; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS*, - void> ProcessFrames; - - [NativeTypeName( - "void (UINT, const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *, const D3D12_WRITEBUFFERIMMEDIATE_MODE *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_WRITEBUFFERIMMEDIATE_PARAMETER*, - D3D12_WRITEBUFFERIMMEDIATE_MODE*, - void> WriteBufferImmediate; - - [NativeTypeName( - "void (ID3D12VideoProcessor *, const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *, UINT, const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1*, - void> ProcessFrames1; - - [NativeTypeName("void (ID3D12ProtectedResourceSession *) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - ID3D12ProtectedResourceSession*, - void> SetProtectedResourceSession; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> InitializeExtensionCommand; - - [NativeTypeName( - "void (ID3D12VideoExtensionCommand *, const void *, SIZE_T) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12VideoExtensionCommand*, - void*, - nuint, - void> ExecuteExtensionCommand; - - [NativeTypeName("void (UINT32, const D3D12_BARRIER_GROUP *) __attribute__((stdcall))")] - public delegate* unmanaged Barrier; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor.gen.cs deleted file mode 100644 index 0679828366..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor.gen.cs +++ /dev/null @@ -1,261 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("304FDB32-BEDE-410A-8545-943AC6A46138")] -[NativeTypeName("struct ID3D12VideoProcessor : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12VideoProcessor : ID3D12VideoProcessor.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessor)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public uint GetNodeMask() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public uint GetNumInputStreamDescs() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT GetInputStreamDescs( - uint NumInputStreamDescs, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoProcessor*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - int>)(lpVtbl[10]) - )( - (ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), - NumInputStreamDescs, - pInputStreamDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC GetOutputStreamDesc() - { - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoProcessor*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*>)(lpVtbl[11]) - )((ID3D12VideoProcessor*)Unsafe.AsPointer(ref this), &result); - } - - public interface Interface : ID3D12Pageable.Interface - { - [VtblIndex(8)] - uint GetNodeMask(); - - [VtblIndex(9)] - uint GetNumInputStreamDescs(); - - [VtblIndex(10)] - HRESULT GetInputStreamDescs( - uint NumInputStreamDescs, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs - ); - - [VtblIndex(11)] - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC GetOutputStreamDesc(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeMask; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNumInputStreamDescs; - - [NativeTypeName( - "HRESULT (UINT, D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - int> GetInputStreamDescs; - - [NativeTypeName("D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*> GetOutputStreamDesc; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor1.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor1.gen.cs deleted file mode 100644 index dffe94bb20..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor1.gen.cs +++ /dev/null @@ -1,271 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("F3CFE615-553F-425C-86D8-EE8C1B1FB01C")] -[NativeTypeName("struct ID3D12VideoProcessor1 : ID3D12VideoProcessor")] -[NativeInheritance("ID3D12VideoProcessor")] -public unsafe partial struct ID3D12VideoProcessor1 : ID3D12VideoProcessor1.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VideoProcessor1)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint* pDataSize, - void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - guid, - pDataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT SetPrivateData( - [NativeTypeName("const GUID &")] Guid* guid, - uint DataSize, - [NativeTypeName("const void *")] void* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - guid, - DataSize, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HRESULT SetPrivateDataInterface( - [NativeTypeName("const GUID &")] Guid* guid, - [NativeTypeName("const IUnknown *")] IUnknown* pData - ) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - guid, - pData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT SetName([NativeTypeName("LPCWSTR")] ushort* Name) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - Name - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetDevice([NativeTypeName("const IID &")] Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - riid, - ppvDevice - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public uint GetNodeMask() - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public uint GetNumInputStreamDescs() - { - return ((delegate* unmanaged)(lpVtbl[9]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HRESULT GetInputStreamDescs( - uint NumInputStreamDescs, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC* pInputStreamDescs - ) - { - return ( - (delegate* unmanaged< - ID3D12VideoProcessor1*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - int>)(lpVtbl[10]) - )( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - NumInputStreamDescs, - pInputStreamDescs - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC GetOutputStreamDesc() - { - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC result; - return *( - (delegate* unmanaged< - ID3D12VideoProcessor1*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*>)(lpVtbl[11]) - )((ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), &result); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ) - { - return ((delegate* unmanaged)(lpVtbl[12]))( - (ID3D12VideoProcessor1*)Unsafe.AsPointer(ref this), - riid, - ppProtectedSession - ); - } - - public interface Interface : ID3D12VideoProcessor.Interface - { - [VtblIndex(12)] - HRESULT GetProtectedResourceSession( - [NativeTypeName("const IID &")] Guid* riid, - void** ppProtectedSession - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (const GUID &, UINT *, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, UINT, const void *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateData; - - [NativeTypeName("HRESULT (const GUID &, const IUnknown *) __attribute__((stdcall))")] - public delegate* unmanaged SetPrivateDataInterface; - - [NativeTypeName("HRESULT (LPCWSTR) __attribute__((stdcall))")] - public delegate* unmanaged SetName; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetDevice; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNodeMask; - - [NativeTypeName("UINT () __attribute__((stdcall))")] - public delegate* unmanaged GetNumInputStreamDescs; - - [NativeTypeName( - "HRESULT (UINT, D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC*, - int> GetInputStreamDescs; - - [NativeTypeName("D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC () __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*, - D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC*> GetOutputStreamDesc; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetProtectedResourceSession; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3d12video/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3d12video/IID.gen.cs deleted file mode 100644 index 27844b2b4d..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3d12video/IID.gen.cs +++ /dev/null @@ -1,336 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecoderHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xC9, 0xB7, 0x46, 0x09, 0xF6, 0xEB, 0x47, 0x40, 0xBB, 0x73, 0x86, 0x83, 0xE2, 0x7D, 0xBB, 0x1F]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x07, 0x28, 0x05, 0x1F, 0x46, 0x0B, 0xCC, 0x4A, 0x8A, 0x89, 0x36, 0x4F, 0x79, 0x37, 0x18, 0xA4]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xDC, 0x6B, 0x9B, 0xC5, 0x20, 0x77, 0x74, 0x40, 0xA1, 0x36, 0x17, 0xA1, 0x56, 0x03, 0x74, 0x70]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoProcessor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x32, 0xDB, 0x4F, 0x30, 0xDE, 0xBE, 0x0A, 0x41, 0x85, 0x45, 0x94, 0x3A, 0xC6, 0xA4, 0x61, 0x38]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecodeCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x6E, 0x53, 0x60, 0x3B, 0x29, 0xAD, 0x64, 0x4E, 0xA2, 0x69, 0xF8, 0x53, 0x83, 0x7E, 0x5E, 0x53]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoProcessCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3A, 0x54, 0xB2, 0xAE, 0x7F, 0x16, 0x82, 0x46, 0xAC, 0xC8, 0xD1, 0x59, 0xED, 0x4A, 0x62, 0x09]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecodeCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x1B, 0x01, 0x2F, 0xD5, 0x6E, 0xB5, 0x3C, 0x45, 0xA0, 0x5A, 0xA7, 0xF3, 0x11, 0xC8, 0xF4, 0x72]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoProcessCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x4D, 0x5C, 0x2C, 0x54, 0x96, 0x75, 0x4F, 0x43, 0x8C, 0x93, 0x4E, 0xFA, 0x67, 0x66, 0xF2, 0x67]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoMotionEstimator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x0E, 0xAE, 0xFD, 0x33, 0x8B, 0x09, 0x8F, 0x42, 0x87, 0xBB, 0x34, 0xB6, 0x95, 0xDE, 0x08, 0xF8]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoMotionVectorHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x87, 0x79, 0xE1, 0x5B, 0x3A, 0x74, 0x61, 0x40, 0x83, 0x4B, 0x23, 0xD2, 0x2D, 0xAE, 0xA5, 0x05]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDevice1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xAD, 0x11, 0x16, 0x98, 0x44, 0xA1, 0x83, 0x4C, 0x98, 0x90, 0xF3, 0x0E, 0x26, 0xD6, 0x58, 0xAB]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoEncodeCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3A, 0x29, 0x55, 0x84, 0xBD, 0x0C, 0x31, 0x48, 0x9B, 0x39, 0xFB, 0xDB, 0xAB, 0x72, 0x47, 0x23]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecoder1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xFB, 0xE5, 0xA2, 0x79, 0xD2, 0xCC, 0x9A, 0x46, 0x9F, 0xDE, 0x19, 0x5D, 0x10, 0x95, 0x1F, 0x7E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecoderHeap1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xC5, 0x98, 0x1D, 0xDA, 0x9F, 0x53, 0xB2, 0x41, 0xBF, 0x6B, 0x11, 0x98, 0xA0, 0x3B, 0x6D, 0x26]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoProcessor1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x15, 0xE6, 0xCF, 0xF3, 0x3F, 0x55, 0x5C, 0x42, 0x86, 0xD8, 0xEE, 0x8C, 0x1B, 0x1F, 0xB0, 0x1C]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoExtensionCommand - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xE8, 0x41, 0x4E, 0x55, 0x8E, 0xAE, 0x8C, 0x4A, 0xB7, 0xD2, 0x5B, 0x4F, 0x27, 0x4A, 0x30, 0xE4]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDevice2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x49, 0xAC, 0x19, 0xF0, 0x38, 0xF8, 0x95, 0x4A, 0x9B, 0x17, 0x57, 0x94, 0x37, 0xC8, 0xF5, 0x13]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecodeCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x80, 0x08, 0x12, 0x6E, 0x14, 0xC1, 0x53, 0x41, 0x80, 0x36, 0xD2, 0x47, 0x05, 0x1E, 0x17, 0x29]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDecodeCommandList3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x37, 0x8C, 0xEE, 0x2A, 0x62, 0x95, 0xDA, 0x42, 0x8A, 0xBF, 0x61, 0xEF, 0xEB, 0x2E, 0x45, 0x13]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoProcessCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xE4, 0x5A, 0x52, 0xDB, 0xD6, 0x6A, 0x3C, 0x47, 0xBA, 0xA7, 0x59, 0xB2, 0xE3, 0x70, 0x82, 0xE4]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoProcessCommandList3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xA4, 0x4C, 0x0A, 0x1A, 0x08, 0x9F, 0xCE, 0x40, 0x95, 0x58, 0xB4, 0x11, 0xFD, 0x26, 0x66, 0xFF]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoEncodeCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xCA, 0x1E, 0x97, 0x94, 0xDB, 0x2B, 0x69, 0x47, 0x88, 0xCF, 0x36, 0x75, 0xEA, 0x75, 0x7E, 0xBC]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoEncoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x2D, 0x21, 0x0D, 0x2E, 0xF9, 0x8D, 0xA6, 0x44, 0xA7, 0x70, 0xBB, 0x28, 0x9B, 0x18, 0x27, 0x37]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoEncoderHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x96, 0x5D, 0xB3, 0x22, 0x6A, 0x87, 0xC0, 0x44, 0xB2, 0x5E, 0xFB, 0x8C, 0x9C, 0x7F, 0x1C, 0x4A]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoDevice3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xB4, 0xAD, 0x43, 0x42, 0x32, 0x3A, 0x66, 0x46, 0x97, 0x3C, 0x0C, 0xCC, 0x56, 0x25, 0xDC, 0x44]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoEncodeCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xE2, 0x91, 0x54, 0x89, 0x01, 0xE7, 0xA9, 0x46, 0x9A, 0x1F, 0x8D, 0x34, 0x80, 0xED, 0x86, 0x7A]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12VideoEncodeCommandList3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x22, 0x7B, 0x02, 0x7F, 0x15, 0x15, 0x85, 0x4E, 0xAA, 0x0D, 0x02, 0x64, 0x86, 0x58, 0x05, 0x76]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D.gen.cs deleted file mode 100644 index 67a5d7968e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D.gen.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class D3D -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D_TEXTURE_LAYOUT_ROW_MAJOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x4F, 0x23, 0xDC, 0xB5, 0xBB, 0x72, 0xEC, 0x4B, 0x97, 0x05, 0x8C, 0xF2, 0x58, 0xDF, 0x6B, 0x6C]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xE3, 0x29, 0x0F, 0x4C, 0x5F, 0x3F, 0x35, 0x4D, 0x84, 0xC9, 0xBC, 0x09, 0x83, 0xB6, 0x2C, 0x28]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048")] - public const int D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION = 2048; - [NativeTypeName("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096")] - public const int D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION = 4096; - [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048")] - public const int D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION = 2048; - [NativeTypeName("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096")] - public const int D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION = 4096; - [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512")] - public const int D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION = 512; - [NativeTypeName("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096")] - public const int D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION = 4096; - [NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256")] - public const int D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 256; - [NativeTypeName("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2")] - public const int D3D_FL9_1_DEFAULT_MAX_ANISOTROPY = 2; - [NativeTypeName("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535")] - public const int D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT = 65535; - [NativeTypeName("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575")] - public const int D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT = 1048575; - [NativeTypeName("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1")] - public const int D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT = 1; - [NativeTypeName("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4")] - public const int D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT = 4; - [NativeTypeName("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128")] - public const int D3D_FL9_1_MAX_TEXTURE_REPEAT = 128; - [NativeTypeName("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048")] - public const int D3D_FL9_2_MAX_TEXTURE_REPEAT = 2048; - [NativeTypeName("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192")] - public const int D3D_FL9_3_MAX_TEXTURE_REPEAT = 8192; - [NativeTypeName("#define D3D_SHADER_FEATURE_DOUBLES 0x00001")] - public const int D3D_SHADER_FEATURE_DOUBLES = 0x00001; - [NativeTypeName("#define D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X 0x00002")] - public const int D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X = 0x00002; - [NativeTypeName("#define D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE 0x00004")] - public const int D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE = 0x00004; - [NativeTypeName("#define D3D_SHADER_FEATURE_64_UAVS 0x00008")] - public const int D3D_SHADER_FEATURE_64_UAVS = 0x00008; - [NativeTypeName("#define D3D_SHADER_FEATURE_MINIMUM_PRECISION 0x00010")] - public const int D3D_SHADER_FEATURE_MINIMUM_PRECISION = 0x00010; - [NativeTypeName("#define D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS 0x00020")] - public const int D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS = 0x00020; - [NativeTypeName("#define D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS 0x00040")] - public const int D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS = 0x00040; - [NativeTypeName("#define D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING 0x00080")] - public const int D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING = 0x00080; - [NativeTypeName("#define D3D_SHADER_FEATURE_TILED_RESOURCES 0x00100")] - public const int D3D_SHADER_FEATURE_TILED_RESOURCES = 0x00100; - [NativeTypeName("#define D3D_SHADER_FEATURE_STENCIL_REF 0x00200")] - public const int D3D_SHADER_FEATURE_STENCIL_REF = 0x00200; - [NativeTypeName("#define D3D_SHADER_FEATURE_INNER_COVERAGE 0x00400")] - public const int D3D_SHADER_FEATURE_INNER_COVERAGE = 0x00400; - [NativeTypeName("#define D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00800")] - public const int D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS = 0x00800; - [NativeTypeName("#define D3D_SHADER_FEATURE_ROVS 0x01000")] - public const int D3D_SHADER_FEATURE_ROVS = 0x01000; - [NativeTypeName("#define D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x02000")] - public const int D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER = 0x02000; - [NativeTypeName("#define D3D_SHADER_FEATURE_WAVE_OPS 0x04000")] - public const int D3D_SHADER_FEATURE_WAVE_OPS = 0x04000; - [NativeTypeName("#define D3D_SHADER_FEATURE_INT64_OPS 0x08000")] - public const int D3D_SHADER_FEATURE_INT64_OPS = 0x08000; - [NativeTypeName("#define D3D_SHADER_FEATURE_VIEW_ID 0x10000")] - public const int D3D_SHADER_FEATURE_VIEW_ID = 0x10000; - [NativeTypeName("#define D3D_SHADER_FEATURE_BARYCENTRICS 0x20000")] - public const int D3D_SHADER_FEATURE_BARYCENTRICS = 0x20000; - [NativeTypeName("#define D3D_SHADER_FEATURE_NATIVE_16BIT_OPS 0x40000")] - public const int D3D_SHADER_FEATURE_NATIVE_16BIT_OPS = 0x40000; - [NativeTypeName("#define D3D_SHADER_FEATURE_SHADING_RATE 0x80000")] - public const int D3D_SHADER_FEATURE_SHADING_RATE = 0x80000; - [NativeTypeName("#define D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 0x100000")] - public const int D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 = 0x100000; - [NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLER_FEEDBACK 0x200000")] - public const int D3D_SHADER_FEATURE_SAMPLER_FEEDBACK = 0x200000; - [NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE 0x400000")] - public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE = 0x400000; - [NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED 0x800000")] - public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED = 0x800000; - [NativeTypeName("#define D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x1000000")] - public const int D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS = 0x1000000; - [NativeTypeName("#define D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x2000000")] - public const int D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING = 0x2000000; - [NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x4000000")] - public const int D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING = 0x4000000; - [NativeTypeName("#define D3D_SHADER_FEATURE_WAVE_MMA 0x8000000")] - public const int D3D_SHADER_FEATURE_WAVE_MMA = 0x8000000; - [NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000")] - public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 0x10000000; - [NativeTypeName("#define D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS 0x20000000")] - public const int D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS = 0x20000000; - [NativeTypeName("#define D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES 0x40000000")] - public const int D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES = 0x40000000; - [NativeTypeName("#define D3D_COMPONENT_MASK_X 1")] - public const int D3D_COMPONENT_MASK_X = 1; - [NativeTypeName("#define D3D_COMPONENT_MASK_Y 2")] - public const int D3D_COMPONENT_MASK_Y = 2; - [NativeTypeName("#define D3D_COMPONENT_MASK_Z 4")] - public const int D3D_COMPONENT_MASK_Z = 4; - [NativeTypeName("#define D3D_COMPONENT_MASK_W 8")] - public const int D3D_COMPONENT_MASK_W = 8; -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_REGISTER_COMPONENT_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_REGISTER_COMPONENT_TYPE.gen.cs deleted file mode 100644 index 6a2f954651..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/D3D_REGISTER_COMPONENT_TYPE.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum D3D_REGISTER_COMPONENT_TYPE -{ - /// - - D3D_REGISTER_COMPONENT_UNKNOWN = 0, - - /// - - D3D_REGISTER_COMPONENT_UINT32 = 1, - - /// - - D3D_REGISTER_COMPONENT_SINT32 = 2, - - /// - - D3D_REGISTER_COMPONENT_FLOAT32 = 3, - - /// - - D3D10_REGISTER_COMPONENT_UNKNOWN = D3D_REGISTER_COMPONENT_UNKNOWN, - - /// - - D3D10_REGISTER_COMPONENT_UINT32 = D3D_REGISTER_COMPONENT_UINT32, - - /// - - D3D10_REGISTER_COMPONENT_SINT32 = D3D_REGISTER_COMPONENT_SINT32, - - /// - - D3D10_REGISTER_COMPONENT_FLOAT32 = D3D_REGISTER_COMPONENT_FLOAT32, -} diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/DirectX.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/DirectX.gen.cs deleted file mode 100644 index 07c040cc33..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/DirectX.gen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class DirectX -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid WKPDID_D3DDebugObjectName - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x22, 0x8C, 0x9B, 0x42, 0x88, 0x91, 0x0C, 0x4B, 0x87, 0x42, 0xAC, 0xB0, 0xBF, 0x85, 0xC2, 0x00]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid WKPDID_D3DDebugObjectNameW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xD8, 0x5F, 0xCA, 0x4C, 0x1F, 0x92, 0xC8, 0x42, 0x85, 0x66, 0x70, 0xCA, 0xF2, 0xA9, 0xB7, 0x41]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid WKPDID_CommentStringW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xC0, 0x9D, 0x14, 0xD0, 0xE8, 0x90, 0xC8, 0x4E, 0x81, 0x44, 0xE9, 0x00, 0xAD, 0x26, 0x6B, 0xB2]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid WKPDID_D3D12UniqueObjectId - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x15, 0xDE, 0x39, 0x1B, 0x04, 0xEC, 0xAE, 0x4B, 0xBA, 0x4D, 0x8C, 0xEF, 0x79, 0xFC, 0x04, 0xC1]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DBlob.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DBlob.gen.cs deleted file mode 100644 index f26eb379b8..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DBlob.gen.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("8BA5FB08-5195-40E2-AC58-0D989C3A0102")] -[NativeTypeName("struct ID3D10Blob : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3DBlob : ID3DBlob.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D10Blob)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3DBlob*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3DBlob*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3DBlob*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - [return: NativeTypeName("LPVOID")] - public void* GetBufferPointer() - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (ID3DBlob*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - [return: NativeTypeName("SIZE_T")] - public nuint GetBufferSize() - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3DBlob*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - [return: NativeTypeName("LPVOID")] - void* GetBufferPointer(); - - [VtblIndex(4)] - [return: NativeTypeName("SIZE_T")] - nuint GetBufferSize(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("LPVOID () __attribute__((stdcall))")] - public delegate* unmanaged GetBufferPointer; - - [NativeTypeName("SIZE_T () __attribute__((stdcall))")] - public delegate* unmanaged GetBufferSize; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DDestructionNotifier.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DDestructionNotifier.gen.cs deleted file mode 100644 index 2250f89a0c..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DDestructionNotifier.gen.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("A06EB39A-50DA-425B-8C31-4EECD6C270F3")] -[NativeTypeName("struct ID3DDestructionNotifier : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3DDestructionNotifier - : ID3DDestructionNotifier.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDestructionNotifier)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3DDestructionNotifier*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3DDestructionNotifier*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT RegisterDestructionCallback( - [NativeTypeName("PFN_DESTRUCTION_CALLBACK")] delegate* unmanaged callbackFn, - void* pData, - uint* pCallbackID - ) - { - return ( - (delegate* unmanaged< - ID3DDestructionNotifier*, - delegate* unmanaged, - void*, - uint*, - int>)(lpVtbl[3]) - )((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackFn, pData, pCallbackID); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT UnregisterDestructionCallback(uint callbackID) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), - callbackID - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(4)] - HRESULT UnregisterDestructionCallback(uint callbackID); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (PFN_DESTRUCTION_CALLBACK, void *, UINT *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - delegate* unmanaged, - void*, - uint*, - int> RegisterDestructionCallback; - - [NativeTypeName("HRESULT (UINT) __attribute__((stdcall))")] - public delegate* unmanaged UnregisterDestructionCallback; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DInclude.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DInclude.gen.cs deleted file mode 100644 index 1d9c1ddad0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/ID3DInclude.gen.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct ID3DInclude : ID3DInclude.Interface -{ - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT Open( - D3D_INCLUDE_TYPE IncludeType, - [NativeTypeName("LPCSTR")] sbyte* pFileName, - [NativeTypeName("LPCVOID")] void* pParentData, - [NativeTypeName("LPCVOID *")] void** ppData, - uint* pBytes - ) - { - return ( - (delegate* unmanaged< - ID3DInclude*, - D3D_INCLUDE_TYPE, - sbyte*, - void*, - void**, - uint*, - int>)(lpVtbl[0]) - )( - (ID3DInclude*)Unsafe.AsPointer(ref this), - IncludeType, - pFileName, - pParentData, - ppData, - pBytes - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public HRESULT Close([NativeTypeName("LPCVOID")] void* pData) - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3DInclude*)Unsafe.AsPointer(ref this), - pData - ); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT Open( - D3D_INCLUDE_TYPE IncludeType, - [NativeTypeName("LPCSTR")] sbyte* pFileName, - [NativeTypeName("LPCVOID")] void* pParentData, - [NativeTypeName("LPCVOID *")] void** ppData, - uint* pBytes - ); - - [VtblIndex(1)] - HRESULT Close([NativeTypeName("LPCVOID")] void* pData); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (D3D_INCLUDE_TYPE, LPCSTR, LPCVOID, LPCVOID *, UINT *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - D3D_INCLUDE_TYPE, - sbyte*, - void*, - void**, - uint*, - int> Open; - - [NativeTypeName("HRESULT (LPCVOID) __attribute__((nothrow)) __attribute__((stdcall))")] - public delegate* unmanaged Close; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3dcommon/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dcommon/IID.gen.cs deleted file mode 100644 index bd94998da9..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dcommon/IID.gen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D10Blob - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x08, 0xFB, 0xA5, 0x8B, 0x95, 0x51, 0xE2, 0x40, 0xAC, 0x58, 0x0D, 0x98, 0x9C, 0x3A, 0x01, 0x02]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("#define IID_ID3DBlob IID_ID3D10Blob")] - public static ref readonly Guid IID_ID3DBlob => ref IID_ID3D10Blob; - - public static ref readonly Guid IID_ID3DDestructionNotifier - { - get - { - ReadOnlySpan data = [0x9A, 0xB3, 0x6E, 0xA0, 0xDA, 0x50, 0x5B, 0x42, 0x8C, 0x31, 0x4E, 0xEC, 0xD6, 0xC2, 0x70, 0xF3]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.gen.cs deleted file mode 100644 index c9678a8431..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.gen.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dx12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct D3DX12_MESH_SHADER_PIPELINE_STATE_DESC -{ - /// - - public ID3D12RootSignature* pRootSignature; - - /// - - public D3D12_SHADER_BYTECODE AS; - - /// - - public D3D12_SHADER_BYTECODE MS; - - /// - - public D3D12_SHADER_BYTECODE PS; - - /// - - public D3D12_BLEND_DESC BlendState; - - /// - - public uint SampleMask; - - /// - - public D3D12_RASTERIZER_DESC RasterizerState; - - /// - - public D3D12_DEPTH_STENCIL_DESC DepthStencilState; - - /// - - public D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType; - - /// - - public uint NumRenderTargets; - - /// - - [NativeTypeName("DXGI_FORMAT[8]")] - public _RTVFormats_e__FixedBuffer RTVFormats; - - /// - - public DXGI_FORMAT DSVFormat; - - /// - - public DXGI_SAMPLE_DESC SampleDesc; - - /// - - public uint NodeMask; - - /// - - public D3D12_CACHED_PIPELINE_STATE CachedPSO; - - /// - - public D3D12_PIPELINE_STATE_FLAGS Flags; - - /// - - [InlineArray(8)] - public partial struct _RTVFormats_e__FixedBuffer - { - public DXGI_FORMAT e0; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3dx12/DirectX.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dx12/DirectX.gen.cs deleted file mode 100644 index 897446bd82..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dx12/DirectX.gen.cs +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dx12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System.Runtime.InteropServices; -using static Silk.NET.DirectX.D3D12_FEATURE; -using static Silk.NET.DirectX.D3D12_RESOURCE_DIMENSION; -using static Silk.NET.DirectX.D3D12_TEXTURE_LAYOUT; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -public static unsafe partial class DirectX -{ - /// - - public static uint D3D12CalcSubresource( - uint MipSlice, - uint ArraySlice, - uint PlaneSlice, - uint MipLevels, - uint ArraySize - ) - { - return MipSlice + ArraySlice * MipLevels + PlaneSlice * MipLevels * ArraySize; - } - - /// - - [return: NativeTypeName("UINT8")] - public static byte D3D12GetFormatPlaneCount(ID3D12Device* pDevice, DXGI_FORMAT Format) - { - D3D12_FEATURE_DATA_FORMAT_INFO formatInfo = new D3D12_FEATURE_DATA_FORMAT_INFO - { - Format = Format, - PlaneCount = 0, - }; - if ( - ( - ( - (HRESULT)( - pDevice->CheckFeatureSupport( - D3D12_FEATURE_FORMAT_INFO, - &formatInfo, - (uint)(sizeof(D3D12_FEATURE_DATA_FORMAT_INFO)) - ) - ) - ) < 0 - ) - ) - { - return 0; - } - return formatInfo.PlaneCount; - } - - /// - - public static void MemcpySubresource( - [NativeTypeName("const D3D12_MEMCPY_DEST *")] D3D12_MEMCPY_DEST* pDest, - [NativeTypeName("const void *")] void* pResourceData, - [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] D3D12_SUBRESOURCE_INFO* pSrc, - [NativeTypeName("SIZE_T")] nuint RowSizeInBytes, - uint NumRows, - uint NumSlices - ) - { - for (uint z = 0; z < NumSlices; ++z) - { - byte* pDestSlice = (byte*)(pDest->pData) + pDest->SlicePitch * z; - byte* pSrcSlice = - ((byte*)(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * (nuint)(z); - for (uint y = 0; y < NumRows; ++y) - { - NativeMemory.Copy( - pDestSlice + pDest->RowPitch * y, - pSrcSlice + pSrc->RowPitch * (nuint)(y), - RowSizeInBytes - ); - } - } - } - - /// - - [return: NativeTypeName("UINT64")] - public static ulong UpdateSubresources( - ID3D12GraphicsCommandList* pCmdList, - ID3D12Resource* pDestinationResource, - ID3D12Resource* pIntermediate, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong RequiredSize, - [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT *")] - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - [NativeTypeName("const UINT *")] uint* pNumRows, - [NativeTypeName("const UINT64 *")] ulong* pRowSizesInBytes, - [NativeTypeName("const D3D12_SUBRESOURCE_DATA *")] D3D12_SUBRESOURCE_DATA* pSrcData - ) - { - D3D12_RESOURCE_DESC IntermediateDesc = pIntermediate->GetDesc(); - D3D12_RESOURCE_DESC DestinationDesc = pDestinationResource->GetDesc(); - if ( - unchecked( - IntermediateDesc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER - || IntermediateDesc.Width < RequiredSize + pLayouts[0].Offset - || RequiredSize > (nuint)(-1) - ) - || ( - DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER - && (FirstSubresource != 0 || NumSubresources != 1) - ) - ) - { - return 0; - } - byte* pData; - HRESULT hr = pIntermediate->Map(0, null, (void**)(&pData)); - if ((((HRESULT)(hr)) < 0)) - { - return 0; - } - for (uint i = 0; i < NumSubresources; ++i) - { - if (pRowSizesInBytes[i] > unchecked((nuint)(-1))) - { - return 0; - } - D3D12_MEMCPY_DEST DestData = new D3D12_MEMCPY_DEST - { - pData = pData + pLayouts[i].Offset, - RowPitch = pLayouts[i].Footprint.RowPitch, - SlicePitch = unchecked( - (nuint)(pLayouts[i].Footprint.RowPitch) * (nuint)(pNumRows[i]) - ), - }; - MemcpySubresource( - &DestData, - &pSrcData[i], - unchecked((nuint)(pRowSizesInBytes[i])), - pNumRows[i], - pLayouts[i].Footprint.Depth - ); - } - pIntermediate->Unmap(0, null); - if (DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) - { - pCmdList->CopyBufferRegion( - pDestinationResource, - 0, - pIntermediate, - pLayouts[0].Offset, - pLayouts[0].Footprint.Width - ); - } - else - { - for (uint i = 0; i < NumSubresources; ++i) - { - D3D12_TEXTURE_COPY_LOCATION Dst = new D3D12_TEXTURE_COPY_LOCATION( - pDestinationResource, - i + FirstSubresource - ); - D3D12_TEXTURE_COPY_LOCATION Src = new D3D12_TEXTURE_COPY_LOCATION( - pIntermediate, - pLayouts[i] - ); - pCmdList->CopyTextureRegion(&Dst, 0, 0, 0, &Src, null); - } - } - return RequiredSize; - } - - /// - - [return: NativeTypeName("UINT64")] - public static ulong UpdateSubresources( - ID3D12GraphicsCommandList* pCmdList, - ID3D12Resource* pDestinationResource, - ID3D12Resource* pIntermediate, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("UINT64")] ulong RequiredSize, - [NativeTypeName("const D3D12_PLACED_SUBRESOURCE_FOOTPRINT *")] - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, - [NativeTypeName("const UINT *")] uint* pNumRows, - [NativeTypeName("const UINT64 *")] ulong* pRowSizesInBytes, - [NativeTypeName("const void *")] void* pResourceData, - [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] D3D12_SUBRESOURCE_INFO* pSrcData - ) - { - D3D12_RESOURCE_DESC IntermediateDesc = pIntermediate->GetDesc(); - D3D12_RESOURCE_DESC DestinationDesc = pDestinationResource->GetDesc(); - if ( - unchecked( - IntermediateDesc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER - || IntermediateDesc.Width < RequiredSize + pLayouts[0].Offset - || RequiredSize > (nuint)(-1) - ) - || ( - DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER - && (FirstSubresource != 0 || NumSubresources != 1) - ) - ) - { - return 0; - } - byte* pData; - HRESULT hr = pIntermediate->Map(0, null, (void**)(&pData)); - if ((((HRESULT)(hr)) < 0)) - { - return 0; - } - for (uint i = 0; i < NumSubresources; ++i) - { - if (pRowSizesInBytes[i] > unchecked((nuint)(-1))) - { - return 0; - } - D3D12_MEMCPY_DEST DestData = new D3D12_MEMCPY_DEST - { - pData = pData + pLayouts[i].Offset, - RowPitch = pLayouts[i].Footprint.RowPitch, - SlicePitch = unchecked( - (nuint)(pLayouts[i].Footprint.RowPitch) * (nuint)(pNumRows[i]) - ), - }; - MemcpySubresource( - &DestData, - pResourceData, - &pSrcData[i], - unchecked((nuint)(pRowSizesInBytes[i])), - pNumRows[i], - pLayouts[i].Footprint.Depth - ); - } - pIntermediate->Unmap(0, null); - if (DestinationDesc.Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) - { - pCmdList->CopyBufferRegion( - pDestinationResource, - 0, - pIntermediate, - pLayouts[0].Offset, - pLayouts[0].Footprint.Width - ); - } - else - { - for (uint i = 0; i < NumSubresources; ++i) - { - D3D12_TEXTURE_COPY_LOCATION Dst = new D3D12_TEXTURE_COPY_LOCATION( - pDestinationResource, - i + FirstSubresource - ); - D3D12_TEXTURE_COPY_LOCATION Src = new D3D12_TEXTURE_COPY_LOCATION( - pIntermediate, - pLayouts[i] - ); - pCmdList->CopyTextureRegion(&Dst, 0, 0, 0, &Src, null); - } - } - return RequiredSize; - } - - /// - - [return: NativeTypeName("UINT64")] - public static ulong UpdateSubresources( - ID3D12GraphicsCommandList* pCmdList, - ID3D12Resource* pDestinationResource, - ID3D12Resource* pIntermediate, - [NativeTypeName("UINT64")] ulong IntermediateOffset, - uint FirstSubresource, - uint NumSubresources, - [NativeTypeName("const void *")] void* pResourceData, - [NativeTypeName("const D3D12_SUBRESOURCE_INFO *")] D3D12_SUBRESOURCE_INFO* pSrcData - ) - { - ulong RequiredSize = 0; - ulong MemToAlloc = (ulong)(32 + 4 + 8) * NumSubresources; - if (unchecked(MemToAlloc) > 0xffffffffffffffffUL) - { - return 0; - } - void* pMem = HeapAlloc(GetProcessHeap(), 0, (nuint)(MemToAlloc)); - if (pMem == null) - { - return 0; - } - D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts = (D3D12_PLACED_SUBRESOURCE_FOOTPRINT*)(pMem); - ulong* pRowSizesInBytes = (ulong*)(pLayouts + NumSubresources); - uint* pNumRows = (uint*)(pRowSizesInBytes + NumSubresources); - D3D12_RESOURCE_DESC Desc = pDestinationResource->GetDesc(); - ID3D12Device* pDevice = null; - _ = pDestinationResource->GetDevice(&IID_ID3D12Device, (void**)(&pDevice)); - pDevice->GetCopyableFootprints( - &Desc, - FirstSubresource, - NumSubresources, - IntermediateOffset, - unchecked(pLayouts), - unchecked(pNumRows), - unchecked(pRowSizesInBytes), - &RequiredSize - ); - _ = pDevice->Release(); - ulong Result = UpdateSubresources( - pCmdList, - pDestinationResource, - pIntermediate, - FirstSubresource, - NumSubresources, - RequiredSize, - pLayouts, - pNumRows, - pRowSizesInBytes, - pResourceData, - pSrcData - ); - _ = HeapFree(GetProcessHeap(), 0, pMem); - return Result; - } - - /// - - public static bool D3D12IsLayoutOpaque(D3D12_TEXTURE_LAYOUT Layout) - { - return Layout == D3D12_TEXTURE_LAYOUT_UNKNOWN - || Layout == D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/d3dx12/ID3DX12PipelineParserCallbacks.gen.cs b/sources/Win32/Win32/DirectX/headers/d3dx12/ID3DX12PipelineParserCallbacks.gen.cs deleted file mode 100644 index a50d3e1aeb..0000000000 --- a/sources/Win32/Win32/DirectX/headers/d3dx12/ID3DX12PipelineParserCallbacks.gen.cs +++ /dev/null @@ -1,654 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dx12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct ID3DX12PipelineParserCallbacks - : ID3DX12PipelineParserCallbacks.Interface -{ - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public void FlagsCb(D3D12_PIPELINE_STATE_FLAGS param0) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_PIPELINE_STATE_FLAGS, - void>)(lpVtbl[0]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public void NodeMaskCb(uint param0) - { - ((delegate* unmanaged)(lpVtbl[1]))( - (ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), - param0 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public void RootSignatureCb(ID3D12RootSignature* param0) - { - ( - (delegate* unmanaged)( - lpVtbl[2] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void InputLayoutCb( - [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] D3D12_INPUT_LAYOUT_DESC* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void IBStripCutValueCb(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE param0) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_INDEX_BUFFER_STRIP_CUT_VALUE, - void>)(lpVtbl[4]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void PrimitiveTopologyTypeCb(D3D12_PRIMITIVE_TOPOLOGY_TYPE param0) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_PRIMITIVE_TOPOLOGY_TYPE, - void>)(lpVtbl[5]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void VSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[6] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[7] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void StreamOutputCb( - [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] D3D12_STREAM_OUTPUT_DESC* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[8] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void HSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[9] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void DSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[10] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void PSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[11] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void CSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[12] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ASCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[13] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void MSCb( - [NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[14] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void BlendStateCb([NativeTypeName("const D3D12_BLEND_DESC &")] D3D12_BLEND_DESC* param0) - { - ( - (delegate* unmanaged)( - lpVtbl[15] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void DepthStencilStateCb( - [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] D3D12_DEPTH_STENCIL_DESC* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[16] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void DepthStencilState1Cb( - [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] D3D12_DEPTH_STENCIL_DESC1* param0 - ) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_DEPTH_STENCIL_DESC1*, - void>)(lpVtbl[17]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void DepthStencilState2Cb( - [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] D3D12_DEPTH_STENCIL_DESC2* param0 - ) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_DEPTH_STENCIL_DESC2*, - void>)(lpVtbl[18]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DSVFormatCb(DXGI_FORMAT param0) - { - ((delegate* unmanaged)(lpVtbl[19]))( - (ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), - param0 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void RasterizerStateCb( - [NativeTypeName("const D3D12_RASTERIZER_DESC &")] D3D12_RASTERIZER_DESC* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[20] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RTVFormatsCb( - [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] D3D12_RT_FORMAT_ARRAY* param0 - ) - { - ( - (delegate* unmanaged)( - lpVtbl[21] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void SampleDescCb([NativeTypeName("const DXGI_SAMPLE_DESC &")] DXGI_SAMPLE_DESC* param0) - { - ( - (delegate* unmanaged)( - lpVtbl[22] - ) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void SampleMaskCb(uint param0) - { - ((delegate* unmanaged)(lpVtbl[23]))( - (ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), - param0 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void ViewInstancingCb( - [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] D3D12_VIEW_INSTANCING_DESC* param0 - ) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_VIEW_INSTANCING_DESC*, - void>)(lpVtbl[24]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void CachedPSOCb( - [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] D3D12_CACHED_PIPELINE_STATE* param0 - ) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_CACHED_PIPELINE_STATE*, - void>)(lpVtbl[25]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ErrorBadInputParameter(uint param0) - { - ((delegate* unmanaged)(lpVtbl[26]))( - (ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), - param0 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ErrorDuplicateSubobject(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE param0) - { - ( - (delegate* unmanaged< - ID3DX12PipelineParserCallbacks*, - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE, - void>)(lpVtbl[27]) - )((ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), param0); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void ErrorUnknownSubobject(uint param0) - { - ((delegate* unmanaged)(lpVtbl[28]))( - (ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this), - param0 - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void Dispose() - { - ((delegate* unmanaged)(lpVtbl[29]))( - (ID3DX12PipelineParserCallbacks*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface - { - [VtblIndex(0)] - void FlagsCb(D3D12_PIPELINE_STATE_FLAGS param0); - - [VtblIndex(1)] - void NodeMaskCb(uint param0); - - [VtblIndex(2)] - void RootSignatureCb(ID3D12RootSignature* param0); - - [VtblIndex(3)] - void InputLayoutCb( - [NativeTypeName("const D3D12_INPUT_LAYOUT_DESC &")] D3D12_INPUT_LAYOUT_DESC* param0 - ); - - [VtblIndex(4)] - void IBStripCutValueCb(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE param0); - - [VtblIndex(5)] - void PrimitiveTopologyTypeCb(D3D12_PRIMITIVE_TOPOLOGY_TYPE param0); - - [VtblIndex(6)] - void VSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(7)] - void GSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(8)] - void StreamOutputCb( - [NativeTypeName("const D3D12_STREAM_OUTPUT_DESC &")] D3D12_STREAM_OUTPUT_DESC* param0 - ); - - [VtblIndex(9)] - void HSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(10)] - void DSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(11)] - void PSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(12)] - void CSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(13)] - void ASCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(14)] - void MSCb([NativeTypeName("const D3D12_SHADER_BYTECODE &")] D3D12_SHADER_BYTECODE* param0); - - [VtblIndex(15)] - void BlendStateCb([NativeTypeName("const D3D12_BLEND_DESC &")] D3D12_BLEND_DESC* param0); - - [VtblIndex(16)] - void DepthStencilStateCb( - [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC &")] D3D12_DEPTH_STENCIL_DESC* param0 - ); - - [VtblIndex(17)] - void DepthStencilState1Cb( - [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC1 &")] D3D12_DEPTH_STENCIL_DESC1* param0 - ); - - [VtblIndex(18)] - void DepthStencilState2Cb( - [NativeTypeName("const D3D12_DEPTH_STENCIL_DESC2 &")] D3D12_DEPTH_STENCIL_DESC2* param0 - ); - - [VtblIndex(19)] - void DSVFormatCb(DXGI_FORMAT param0); - - [VtblIndex(20)] - void RasterizerStateCb( - [NativeTypeName("const D3D12_RASTERIZER_DESC &")] D3D12_RASTERIZER_DESC* param0 - ); - - [VtblIndex(21)] - void RTVFormatsCb( - [NativeTypeName("const D3D12_RT_FORMAT_ARRAY &")] D3D12_RT_FORMAT_ARRAY* param0 - ); - - [VtblIndex(22)] - void SampleDescCb([NativeTypeName("const DXGI_SAMPLE_DESC &")] DXGI_SAMPLE_DESC* param0); - - [VtblIndex(23)] - void SampleMaskCb(uint param0); - - [VtblIndex(24)] - void ViewInstancingCb( - [NativeTypeName("const D3D12_VIEW_INSTANCING_DESC &")] - D3D12_VIEW_INSTANCING_DESC* param0 - ); - - [VtblIndex(25)] - void CachedPSOCb( - [NativeTypeName("const D3D12_CACHED_PIPELINE_STATE &")] - D3D12_CACHED_PIPELINE_STATE* param0 - ); - - [VtblIndex(26)] - void ErrorBadInputParameter(uint param0); - - [VtblIndex(27)] - void ErrorDuplicateSubobject(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE param0); - - [VtblIndex(28)] - void ErrorUnknownSubobject(uint param0); - - [VtblIndex(29)] - void Dispose(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("void (D3D12_PIPELINE_STATE_FLAGS)")] - public delegate* unmanaged FlagsCb; - - [NativeTypeName("void (UINT)")] - public delegate* unmanaged NodeMaskCb; - - [NativeTypeName("void (ID3D12RootSignature *)")] - public delegate* unmanaged RootSignatureCb; - - [NativeTypeName("void (const D3D12_INPUT_LAYOUT_DESC &)")] - public delegate* unmanaged InputLayoutCb; - - [NativeTypeName("void (D3D12_INDEX_BUFFER_STRIP_CUT_VALUE)")] - public delegate* unmanaged< - TSelf*, - D3D12_INDEX_BUFFER_STRIP_CUT_VALUE, - void> IBStripCutValueCb; - - [NativeTypeName("void (D3D12_PRIMITIVE_TOPOLOGY_TYPE)")] - public delegate* unmanaged< - TSelf*, - D3D12_PRIMITIVE_TOPOLOGY_TYPE, - void> PrimitiveTopologyTypeCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged VSCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged GSCb; - - [NativeTypeName("void (const D3D12_STREAM_OUTPUT_DESC &)")] - public delegate* unmanaged StreamOutputCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged HSCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged DSCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged PSCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged CSCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged ASCb; - - [NativeTypeName("void (const D3D12_SHADER_BYTECODE &)")] - public delegate* unmanaged MSCb; - - [NativeTypeName("void (const D3D12_BLEND_DESC &)")] - public delegate* unmanaged BlendStateCb; - - [NativeTypeName("void (const D3D12_DEPTH_STENCIL_DESC &)")] - public delegate* unmanaged DepthStencilStateCb; - - [NativeTypeName("void (const D3D12_DEPTH_STENCIL_DESC1 &)")] - public delegate* unmanaged DepthStencilState1Cb; - - [NativeTypeName("void (const D3D12_DEPTH_STENCIL_DESC2 &)")] - public delegate* unmanaged DepthStencilState2Cb; - - [NativeTypeName("void (DXGI_FORMAT)")] - public delegate* unmanaged DSVFormatCb; - - [NativeTypeName("void (const D3D12_RASTERIZER_DESC &)")] - public delegate* unmanaged RasterizerStateCb; - - [NativeTypeName("void (const D3D12_RT_FORMAT_ARRAY &)")] - public delegate* unmanaged RTVFormatsCb; - - [NativeTypeName("void (const DXGI_SAMPLE_DESC &)")] - public delegate* unmanaged SampleDescCb; - - [NativeTypeName("void (UINT)")] - public delegate* unmanaged SampleMaskCb; - - [NativeTypeName("void (const D3D12_VIEW_INSTANCING_DESC &)")] - public delegate* unmanaged ViewInstancingCb; - - [NativeTypeName("void (const D3D12_CACHED_PIPELINE_STATE &)")] - public delegate* unmanaged CachedPSOCb; - - [NativeTypeName("void (UINT)")] - public delegate* unmanaged ErrorBadInputParameter; - - [NativeTypeName("void (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE)")] - public delegate* unmanaged< - TSelf*, - D3D12_PIPELINE_STATE_SUBOBJECT_TYPE, - void> ErrorDuplicateSubobject; - - [NativeTypeName("void (UINT)")] - public delegate* unmanaged ErrorUnknownSubobject; - - [NativeTypeName("void () noexcept")] - public delegate* unmanaged Dispose; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore/DirectX.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore/DirectX.gen.cs deleted file mode 100644 index 61e6e83ef4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore/DirectX.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -public static unsafe partial class DirectX -{ - /// - - [DllImport("dxcore", ExactSpelling = true)] - [SupportedOSPlatform("windows10.0.19041.0")] - public static extern HRESULT DXCoreCreateAdapterFactory( - [NativeTypeName("const IID &")] Guid* riid, - void** ppvFactory - ); -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudget.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudget.gen.cs deleted file mode 100644 index bb3a603995..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudget.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct DXCoreAdapterMemoryBudget -{ - /// - - [NativeTypeName("uint64_t")] - public ulong budget; - - /// - - [NativeTypeName("uint64_t")] - public ulong currentUsage; - - /// - - [NativeTypeName("uint64_t")] - public ulong availableForReservation; - - /// - - [NativeTypeName("uint64_t")] - public ulong currentReservation; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetNodeSegmentGroup.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetNodeSegmentGroup.gen.cs deleted file mode 100644 index bcb916fa76..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetNodeSegmentGroup.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct DXCoreAdapterMemoryBudgetNodeSegmentGroup -{ - /// - - [NativeTypeName("uint32_t")] - public uint nodeIndex; - - /// - - public DXCoreSegmentGroup segmentGroup; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterPreference.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterPreference.gen.cs deleted file mode 100644 index 6d91a5d57b..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterPreference.gen.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[NativeTypeName("uint32_t")] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum DXCoreAdapterPreference : uint -{ - /// - - Hardware = 0, - - /// - - MinimumPower = 1, - - /// - - HighPerformance = 2, -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterProperty.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterProperty.gen.cs deleted file mode 100644 index c9bdaf8c02..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterProperty.gen.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[NativeTypeName("uint32_t")] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum DXCoreAdapterProperty : uint -{ - /// - - InstanceLuid = 0, - - /// - - DriverVersion = 1, - - /// - - DriverDescription = 2, - - /// - - HardwareID = 3, - - /// - - KmdModelVersion = 4, - - /// - - ComputePreemptionGranularity = 5, - - /// - - GraphicsPreemptionGranularity = 6, - - /// - - DedicatedAdapterMemory = 7, - - /// - - DedicatedSystemMemory = 8, - - /// - - SharedSystemMemory = 9, - - /// - - AcgCompatible = 10, - - /// - - IsHardware = 11, - - /// - - IsIntegrated = 12, - - /// - - IsDetachable = 13, - - /// - - HardwareIDParts = 14, -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterState.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterState.gen.cs deleted file mode 100644 index 28b45f60c0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterState.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[NativeTypeName("uint32_t")] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum DXCoreAdapterState : uint -{ - /// - - IsDriverUpdateInProgress = 0, - - /// - - AdapterMemoryBudget = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareID.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareID.gen.cs deleted file mode 100644 index 95b69ff190..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareID.gen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0.19041.0")] -public partial struct DXCoreHardwareID -{ - /// - - [NativeTypeName("uint32_t")] - public uint vendorID; - - /// - - [NativeTypeName("uint32_t")] - public uint deviceID; - - /// - - [NativeTypeName("uint32_t")] - public uint subSysID; - - /// - - [NativeTypeName("uint32_t")] - public uint revision; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDParts.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDParts.gen.cs deleted file mode 100644 index b37aa0baf3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDParts.gen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct DXCoreHardwareIDParts -{ - /// - - [NativeTypeName("uint32_t")] - public uint vendorID; - - /// - - [NativeTypeName("uint32_t")] - public uint deviceID; - - /// - - [NativeTypeName("uint32_t")] - public uint subSystemID; - - /// - - [NativeTypeName("uint32_t")] - public uint subVendorID; - - /// - - [NativeTypeName("uint32_t")] - public uint revisionID; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreNotificationType.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreNotificationType.gen.cs deleted file mode 100644 index 2766b0782e..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreNotificationType.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[NativeTypeName("uint32_t")] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum DXCoreNotificationType : uint -{ - /// - - AdapterListStale = 0, - - /// - - AdapterNoLongerValid = 1, - - /// - - AdapterBudgetChange = 2, - - /// - - AdapterHardwareContentProtectionTeardown = 3, -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreSegmentGroup.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreSegmentGroup.gen.cs deleted file mode 100644 index 231e79c9e3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreSegmentGroup.gen.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[NativeTypeName("uint32_t")] -[SupportedOSPlatform("windows10.0.19041.0")] -public enum DXCoreSegmentGroup : uint -{ - /// - - Local = 0, - - /// - - NonLocal = 1, -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DirectX.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/DirectX.gen.cs deleted file mode 100644 index a5cc0b8cbf..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/DirectX.gen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX; -public static partial class DirectX -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x6B, 0x86, 0x47, 0x8C, 0x83, 0x75, 0x0D, 0x45, 0xF0, 0xF0, 0x6B, 0xAD, 0xA8, 0x95, 0xAF, 0x4B]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x4D, 0xCE, 0x9E, 0x0C, 0x6E, 0x2F, 0x01, 0x4F, 0x8C, 0x96, 0xE8, 0x9E, 0x33, 0x1B, 0x47, 0xB1]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x00, 0x28, 0x8E, 0x24, 0x93, 0xA7, 0x24, 0x47, 0xAB, 0xAA, 0x23, 0xA6, 0xDE, 0x1B, 0xE0, 0x90]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("#define _FACDXCORE 0x880")] - public const int _FACDXCORE = 0x880; -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapter.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapter.gen.cs deleted file mode 100644 index e6cd87cdc1..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapter.gen.cs +++ /dev/null @@ -1,338 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("F0DB4C7F-FE5A-42A2-BD62-F2A6CF6FC83E")] -[NativeTypeName("struct IDXCoreAdapter : IUnknown")] -[NativeInheritance("IUnknown")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IDXCoreAdapter : IDXCoreAdapter.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXCoreAdapter)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public bool IsValid() - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this) - ) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public bool IsAttributeSupported([NativeTypeName("const GUID &")] Guid* attributeGUID) - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - attributeGUID - ) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public bool IsPropertySupported(DXCoreAdapterProperty property) - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - property - ) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT GetProperty( - DXCoreAdapterProperty property, - [NativeTypeName("size_t")] nuint bufferSize, - void* propertyData - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[6] - ) - )((IDXCoreAdapter*)Unsafe.AsPointer(ref this), property, bufferSize, propertyData); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT GetPropertySize( - DXCoreAdapterProperty property, - [NativeTypeName("size_t *")] nuint* bufferSize - ) - { - return ( - (delegate* unmanaged)(lpVtbl[7]) - )((IDXCoreAdapter*)Unsafe.AsPointer(ref this), property, bufferSize); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public bool IsQueryStateSupported(DXCoreAdapterState property) - { - return ((delegate* unmanaged)(lpVtbl[8]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - property - ) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HRESULT QueryState( - DXCoreAdapterState state, - [NativeTypeName("size_t")] nuint inputStateDetailsSize, - [NativeTypeName("const void *")] void* inputStateDetails, - [NativeTypeName("size_t")] nuint outputBufferSize, - void* outputBuffer - ) - { - return ( - (delegate* unmanaged< - IDXCoreAdapter*, - DXCoreAdapterState, - nuint, - void*, - nuint, - void*, - int>)(lpVtbl[9]) - )( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - state, - inputStateDetailsSize, - inputStateDetails, - outputBufferSize, - outputBuffer - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public bool IsSetStateSupported(DXCoreAdapterState property) - { - return ((delegate* unmanaged)(lpVtbl[10]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - property - ) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HRESULT SetState( - DXCoreAdapterState state, - [NativeTypeName("size_t")] nuint inputStateDetailsSize, - [NativeTypeName("const void *")] void* inputStateDetails, - [NativeTypeName("size_t")] nuint inputDataSize, - [NativeTypeName("const void *")] void* inputData - ) - { - return ( - (delegate* unmanaged< - IDXCoreAdapter*, - DXCoreAdapterState, - nuint, - void*, - nuint, - void*, - int>)(lpVtbl[11]) - )( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - state, - inputStateDetailsSize, - inputStateDetails, - inputDataSize, - inputData - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HRESULT GetFactory([NativeTypeName("const IID &")] Guid* riid, void** ppvFactory) - { - return ((delegate* unmanaged)(lpVtbl[12]))( - (IDXCoreAdapter*)Unsafe.AsPointer(ref this), - riid, - ppvFactory - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - bool IsValid(); - - [VtblIndex(4)] - bool IsAttributeSupported([NativeTypeName("const GUID &")] Guid* attributeGUID); - - [VtblIndex(5)] - bool IsPropertySupported(DXCoreAdapterProperty property); - - [VtblIndex(6)] - HRESULT GetProperty( - DXCoreAdapterProperty property, - [NativeTypeName("size_t")] nuint bufferSize, - void* propertyData - ); - - [VtblIndex(7)] - HRESULT GetPropertySize( - DXCoreAdapterProperty property, - [NativeTypeName("size_t *")] nuint* bufferSize - ); - - [VtblIndex(8)] - bool IsQueryStateSupported(DXCoreAdapterState property); - - [VtblIndex(9)] - HRESULT QueryState( - DXCoreAdapterState state, - [NativeTypeName("size_t")] nuint inputStateDetailsSize, - [NativeTypeName("const void *")] void* inputStateDetails, - [NativeTypeName("size_t")] nuint outputBufferSize, - void* outputBuffer - ); - - [VtblIndex(10)] - bool IsSetStateSupported(DXCoreAdapterState property); - - [VtblIndex(11)] - HRESULT SetState( - DXCoreAdapterState state, - [NativeTypeName("size_t")] nuint inputStateDetailsSize, - [NativeTypeName("const void *")] void* inputStateDetails, - [NativeTypeName("size_t")] nuint inputDataSize, - [NativeTypeName("const void *")] void* inputData - ); - - [VtblIndex(12)] - HRESULT GetFactory([NativeTypeName("const IID &")] Guid* riid, void** ppvFactory); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("bool () __attribute__((stdcall))")] - public delegate* unmanaged IsValid; - - [NativeTypeName("bool (const GUID &) __attribute__((stdcall))")] - public delegate* unmanaged IsAttributeSupported; - - [NativeTypeName("bool (DXCoreAdapterProperty) __attribute__((stdcall))")] - public delegate* unmanaged IsPropertySupported; - - [NativeTypeName("HRESULT (DXCoreAdapterProperty, size_t, void *) __attribute__((stdcall))")] - public delegate* unmanaged GetProperty; - - [NativeTypeName("HRESULT (DXCoreAdapterProperty, size_t *) __attribute__((stdcall))")] - public delegate* unmanaged GetPropertySize; - - [NativeTypeName("bool (DXCoreAdapterState) __attribute__((stdcall))")] - public delegate* unmanaged IsQueryStateSupported; - - [NativeTypeName( - "HRESULT (DXCoreAdapterState, size_t, const void *, size_t, void *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - DXCoreAdapterState, - nuint, - void*, - nuint, - void*, - int> QueryState; - - [NativeTypeName("bool (DXCoreAdapterState) __attribute__((stdcall))")] - public delegate* unmanaged IsSetStateSupported; - - [NativeTypeName( - "HRESULT (DXCoreAdapterState, size_t, const void *, size_t, const void *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - DXCoreAdapterState, - nuint, - void*, - nuint, - void*, - int> SetState; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetFactory; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterFactory.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterFactory.gen.cs deleted file mode 100644 index 0bb96b1db6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterFactory.gen.cs +++ /dev/null @@ -1,222 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("78EE5945-C36E-4B13-A669-005DD11C0F06")] -[NativeTypeName("struct IDXCoreAdapterFactory : IUnknown")] -[NativeInheritance("IUnknown")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IDXCoreAdapterFactory : IDXCoreAdapterFactory.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXCoreAdapterFactory)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT CreateAdapterList( - [NativeTypeName("uint32_t")] uint numAttributes, - [NativeTypeName("const GUID *")] Guid* filterAttributes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvAdapterList - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )( - (IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this), - numAttributes, - filterAttributes, - riid, - ppvAdapterList - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HRESULT GetAdapterByLuid( - [NativeTypeName("const LUID &")] LUID* adapterLUID, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvAdapter - ) - { - return ( - (delegate* unmanaged)(lpVtbl[4]) - )((IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this), adapterLUID, riid, ppvAdapter); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public bool IsNotificationTypeSupported(DXCoreNotificationType notificationType) - { - return ( - (delegate* unmanaged)( - lpVtbl[5] - ) - )((IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this), notificationType) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT RegisterEventNotification( - IUnknown* dxCoreObject, - DXCoreNotificationType notificationType, - [NativeTypeName("PFN_DXCORE_NOTIFICATION_CALLBACK")] - delegate* unmanaged callbackFunction, - void* callbackContext, - [NativeTypeName("uint32_t *")] uint* eventCookie - ) - { - return ( - (delegate* unmanaged< - IDXCoreAdapterFactory*, - IUnknown*, - DXCoreNotificationType, - delegate* unmanaged, - void*, - uint*, - int>)(lpVtbl[6]) - )( - (IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this), - dxCoreObject, - notificationType, - callbackFunction, - callbackContext, - eventCookie - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT UnregisterEventNotification([NativeTypeName("uint32_t")] uint eventCookie) - { - return ((delegate* unmanaged)(lpVtbl[7]))( - (IDXCoreAdapterFactory*)Unsafe.AsPointer(ref this), - eventCookie - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT CreateAdapterList( - [NativeTypeName("uint32_t")] uint numAttributes, - [NativeTypeName("const GUID *")] Guid* filterAttributes, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvAdapterList - ); - - [VtblIndex(4)] - HRESULT GetAdapterByLuid( - [NativeTypeName("const LUID &")] LUID* adapterLUID, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvAdapter - ); - - [VtblIndex(5)] - bool IsNotificationTypeSupported(DXCoreNotificationType notificationType); - - [VtblIndex(7)] - HRESULT UnregisterEventNotification([NativeTypeName("uint32_t")] uint eventCookie); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (uint32_t, const GUID *, const IID &, void **) __attribute__((stdcall))" - )] - public delegate* unmanaged CreateAdapterList; - - [NativeTypeName("HRESULT (const LUID &, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterByLuid; - - [NativeTypeName("bool (DXCoreNotificationType) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - DXCoreNotificationType, - byte> IsNotificationTypeSupported; - - [NativeTypeName( - "HRESULT (IUnknown *, DXCoreNotificationType, PFN_DXCORE_NOTIFICATION_CALLBACK, void *, uint32_t *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - IUnknown*, - DXCoreNotificationType, - delegate* unmanaged, - void*, - uint*, - int> RegisterEventNotification; - - [NativeTypeName("HRESULT (uint32_t) __attribute__((stdcall))")] - public delegate* unmanaged UnregisterEventNotification; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterList.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterList.gen.cs deleted file mode 100644 index ab2d84c2b0..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterList.gen.cs +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("526C7776-40E9-459B-B711-F32AD76DFC28")] -[NativeTypeName("struct IDXCoreAdapterList : IUnknown")] -[NativeInheritance("IUnknown")] -[SupportedOSPlatform("windows10.0.19041.0")] -public unsafe partial struct IDXCoreAdapterList : IDXCoreAdapterList.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXCoreAdapterList)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetAdapter( - [NativeTypeName("uint32_t")] uint index, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvAdapter - ) - { - return ((delegate* unmanaged)(lpVtbl[3]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this), - index, - riid, - ppvAdapter - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - [return: NativeTypeName("uint32_t")] - public uint GetAdapterCount() - { - return ((delegate* unmanaged)(lpVtbl[4]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public bool IsStale() - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this) - ) != 0; - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HRESULT GetFactory([NativeTypeName("const IID &")] Guid* riid, void** ppvFactory) - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (IDXCoreAdapterList*)Unsafe.AsPointer(ref this), - riid, - ppvFactory - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HRESULT Sort( - [NativeTypeName("uint32_t")] uint numPreferences, - [NativeTypeName("const DXCoreAdapterPreference *")] DXCoreAdapterPreference* preferences - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[7] - ) - )((IDXCoreAdapterList*)Unsafe.AsPointer(ref this), numPreferences, preferences); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public bool IsAdapterPreferenceSupported(DXCoreAdapterPreference preference) - { - return ( - (delegate* unmanaged)(lpVtbl[8]) - )((IDXCoreAdapterList*)Unsafe.AsPointer(ref this), preference) != 0; - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT GetAdapter( - [NativeTypeName("uint32_t")] uint index, - [NativeTypeName("const IID &")] Guid* riid, - void** ppvAdapter - ); - - [VtblIndex(4)] - [return: NativeTypeName("uint32_t")] - uint GetAdapterCount(); - - [VtblIndex(5)] - bool IsStale(); - - [VtblIndex(6)] - HRESULT GetFactory([NativeTypeName("const IID &")] Guid* riid, void** ppvFactory); - - [VtblIndex(7)] - HRESULT Sort( - [NativeTypeName("uint32_t")] uint numPreferences, - [NativeTypeName("const DXCoreAdapterPreference *")] DXCoreAdapterPreference* preferences - ); - - [VtblIndex(8)] - bool IsAdapterPreferenceSupported(DXCoreAdapterPreference preference); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName("HRESULT (uint32_t, const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetAdapter; - - [NativeTypeName("uint32_t () __attribute__((stdcall))")] - public delegate* unmanaged GetAdapterCount; - - [NativeTypeName("bool () __attribute__((stdcall))")] - public delegate* unmanaged IsStale; - - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged GetFactory; - - [NativeTypeName( - "HRESULT (uint32_t, const DXCoreAdapterPreference *) __attribute__((stdcall))" - )] - public delegate* unmanaged Sort; - - [NativeTypeName("bool (DXCoreAdapterPreference) __attribute__((stdcall))")] - public delegate* unmanaged< - TSelf*, - DXCoreAdapterPreference, - byte> IsAdapterPreferenceSupported; - } -} diff --git a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IID.gen.cs b/sources/Win32/Win32/DirectX/headers/dxcore_interface/IID.gen.cs deleted file mode 100644 index b4b219a634..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxcore_interface/IID.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_IDXCoreAdapterFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x45, 0x59, 0xEE, 0x78, 0x6E, 0xC3, 0x13, 0x4B, 0xA6, 0x69, 0x00, 0x5D, 0xD1, 0x1C, 0x0F, 0x06]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_IDXCoreAdapterList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x76, 0x77, 0x6C, 0x52, 0xE9, 0x40, 0x9B, 0x45, 0xB7, 0x11, 0xF3, 0x2A, 0xD7, 0x6D, 0xFC, 0x28]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_IDXCoreAdapter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x7F, 0x4C, 0xDB, 0xF0, 0x5A, 0xFE, 0xA2, 0x42, 0xBD, 0x62, 0xF2, 0xA6, 0xCF, 0x6F, 0xC8, 0x3E]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI.gen.cs b/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI.gen.cs deleted file mode 100644 index a757b63ca6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI.gen.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -public static partial class DXGI -{ - [NativeTypeName("#define DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN 0xffffffff")] - public const uint DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN = 0xffffffff; - - [NativeTypeName("#define DXGI_CENTER_MULTISAMPLE_QUALITY_PATTERN 0xfffffffe")] - public const uint DXGI_CENTER_MULTISAMPLE_QUALITY_PATTERN = 0xfffffffe; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_COLOR_SPACE_TYPE.gen.cs b/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_COLOR_SPACE_TYPE.gen.cs deleted file mode 100644 index ea94d0dbff..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_COLOR_SPACE_TYPE.gen.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX; - -/// -[SupportedOSPlatform("windows10.0")] -public enum DXGI_COLOR_SPACE_TYPE -{ - /// - - DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 = 0, - - /// - - DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 = 1, - - /// - - DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P709 = 2, - - /// - - DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P2020 = 3, - - /// - - DXGI_COLOR_SPACE_RESERVED = 4, - - /// - - DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 = 5, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 = 6, - - /// - - DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P601 = 7, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 = 8, - - /// - - DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P709 = 9, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 = 10, - - /// - - DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 = 11, - - /// - - DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 = 12, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_LEFT_P2020 = 13, - - /// - - DXGI_COLOR_SPACE_RGB_STUDIO_G2084_NONE_P2020 = 14, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_TOPLEFT_P2020 = 15, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_TOPLEFT_P2020 = 16, - - /// - - DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P2020 = 17, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_GHLG_TOPLEFT_P2020 = 18, - - /// - - DXGI_COLOR_SPACE_YCBCR_FULL_GHLG_TOPLEFT_P2020 = 19, - - /// - - DXGI_COLOR_SPACE_RGB_STUDIO_G24_NONE_P709 = 20, - - /// - - DXGI_COLOR_SPACE_RGB_STUDIO_G24_NONE_P2020 = 21, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_LEFT_P709 = 22, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_LEFT_P2020 = 23, - - /// - - DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_TOPLEFT_P2020 = 24, - - /// - - DXGI_COLOR_SPACE_CUSTOM = unchecked((int)(0xFFFFFFFF)), -} diff --git a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_RATIONAL.gen.cs b/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_RATIONAL.gen.cs deleted file mode 100644 index 2210c3c313..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_RATIONAL.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct DXGI_RATIONAL -{ - /// - - public uint Numerator; - - /// - - public uint Denominator; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_SAMPLE_DESC.gen.cs b/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_SAMPLE_DESC.gen.cs deleted file mode 100644 index 49aa3370e6..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxgicommon/DXGI_SAMPLE_DESC.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public partial struct DXGI_SAMPLE_DESC -{ - /// - - public uint Count; - - /// - - public uint Quality; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxgiformat/DXGI.gen.cs b/sources/Win32/Win32/DirectX/headers/dxgiformat/DXGI.gen.cs deleted file mode 100644 index 864d059bf3..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxgiformat/DXGI.gen.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgiformat.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -public static partial class DXGI -{ - [NativeTypeName("#define DXGI_FORMAT_DEFINED 1")] - public const int DXGI_FORMAT_DEFINED = 1; -} diff --git a/sources/Win32/Win32/DirectX/headers/dxgiformat/DXGI_FORMAT.gen.cs b/sources/Win32/Win32/DirectX/headers/dxgiformat/DXGI_FORMAT.gen.cs deleted file mode 100644 index e31024fac4..0000000000 --- a/sources/Win32/Win32/DirectX/headers/dxgiformat/DXGI_FORMAT.gen.cs +++ /dev/null @@ -1,496 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgiformat.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -namespace Silk.NET.DirectX; - -/// -public enum DXGI_FORMAT -{ - /// - - DXGI_FORMAT_UNKNOWN = 0, - - /// - - DXGI_FORMAT_R32G32B32A32_TYPELESS = 1, - - /// - - DXGI_FORMAT_R32G32B32A32_FLOAT = 2, - - /// - - DXGI_FORMAT_R32G32B32A32_UINT = 3, - - /// - - DXGI_FORMAT_R32G32B32A32_SINT = 4, - - /// - - DXGI_FORMAT_R32G32B32_TYPELESS = 5, - - /// - - DXGI_FORMAT_R32G32B32_FLOAT = 6, - - /// - - DXGI_FORMAT_R32G32B32_UINT = 7, - - /// - - DXGI_FORMAT_R32G32B32_SINT = 8, - - /// - - DXGI_FORMAT_R16G16B16A16_TYPELESS = 9, - - /// - - DXGI_FORMAT_R16G16B16A16_FLOAT = 10, - - /// - - DXGI_FORMAT_R16G16B16A16_UNORM = 11, - - /// - - DXGI_FORMAT_R16G16B16A16_UINT = 12, - - /// - - DXGI_FORMAT_R16G16B16A16_SNORM = 13, - - /// - - DXGI_FORMAT_R16G16B16A16_SINT = 14, - - /// - - DXGI_FORMAT_R32G32_TYPELESS = 15, - - /// - - DXGI_FORMAT_R32G32_FLOAT = 16, - - /// - - DXGI_FORMAT_R32G32_UINT = 17, - - /// - - DXGI_FORMAT_R32G32_SINT = 18, - - /// - - DXGI_FORMAT_R32G8X24_TYPELESS = 19, - - /// - - DXGI_FORMAT_D32_FLOAT_S8X24_UINT = 20, - - /// - - DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS = 21, - - /// - - DXGI_FORMAT_X32_TYPELESS_G8X24_UINT = 22, - - /// - - DXGI_FORMAT_R10G10B10A2_TYPELESS = 23, - - /// - - DXGI_FORMAT_R10G10B10A2_UNORM = 24, - - /// - - DXGI_FORMAT_R10G10B10A2_UINT = 25, - - /// - - DXGI_FORMAT_R11G11B10_FLOAT = 26, - - /// - - DXGI_FORMAT_R8G8B8A8_TYPELESS = 27, - - /// - - DXGI_FORMAT_R8G8B8A8_UNORM = 28, - - /// - - DXGI_FORMAT_R8G8B8A8_UNORM_SRGB = 29, - - /// - - DXGI_FORMAT_R8G8B8A8_UINT = 30, - - /// - - DXGI_FORMAT_R8G8B8A8_SNORM = 31, - - /// - - DXGI_FORMAT_R8G8B8A8_SINT = 32, - - /// - - DXGI_FORMAT_R16G16_TYPELESS = 33, - - /// - - DXGI_FORMAT_R16G16_FLOAT = 34, - - /// - - DXGI_FORMAT_R16G16_UNORM = 35, - - /// - - DXGI_FORMAT_R16G16_UINT = 36, - - /// - - DXGI_FORMAT_R16G16_SNORM = 37, - - /// - - DXGI_FORMAT_R16G16_SINT = 38, - - /// - - DXGI_FORMAT_R32_TYPELESS = 39, - - /// - - DXGI_FORMAT_D32_FLOAT = 40, - - /// - - DXGI_FORMAT_R32_FLOAT = 41, - - /// - - DXGI_FORMAT_R32_UINT = 42, - - /// - - DXGI_FORMAT_R32_SINT = 43, - - /// - - DXGI_FORMAT_R24G8_TYPELESS = 44, - - /// - - DXGI_FORMAT_D24_UNORM_S8_UINT = 45, - - /// - - DXGI_FORMAT_R24_UNORM_X8_TYPELESS = 46, - - /// - - DXGI_FORMAT_X24_TYPELESS_G8_UINT = 47, - - /// - - DXGI_FORMAT_R8G8_TYPELESS = 48, - - /// - - DXGI_FORMAT_R8G8_UNORM = 49, - - /// - - DXGI_FORMAT_R8G8_UINT = 50, - - /// - - DXGI_FORMAT_R8G8_SNORM = 51, - - /// - - DXGI_FORMAT_R8G8_SINT = 52, - - /// - - DXGI_FORMAT_R16_TYPELESS = 53, - - /// - - DXGI_FORMAT_R16_FLOAT = 54, - - /// - - DXGI_FORMAT_D16_UNORM = 55, - - /// - - DXGI_FORMAT_R16_UNORM = 56, - - /// - - DXGI_FORMAT_R16_UINT = 57, - - /// - - DXGI_FORMAT_R16_SNORM = 58, - - /// - - DXGI_FORMAT_R16_SINT = 59, - - /// - - DXGI_FORMAT_R8_TYPELESS = 60, - - /// - - DXGI_FORMAT_R8_UNORM = 61, - - /// - - DXGI_FORMAT_R8_UINT = 62, - - /// - - DXGI_FORMAT_R8_SNORM = 63, - - /// - - DXGI_FORMAT_R8_SINT = 64, - - /// - - DXGI_FORMAT_A8_UNORM = 65, - - /// - - DXGI_FORMAT_R1_UNORM = 66, - - /// - - DXGI_FORMAT_R9G9B9E5_SHAREDEXP = 67, - - /// - - DXGI_FORMAT_R8G8_B8G8_UNORM = 68, - - /// - - DXGI_FORMAT_G8R8_G8B8_UNORM = 69, - - /// - - DXGI_FORMAT_BC1_TYPELESS = 70, - - /// - - DXGI_FORMAT_BC1_UNORM = 71, - - /// - - DXGI_FORMAT_BC1_UNORM_SRGB = 72, - - /// - - DXGI_FORMAT_BC2_TYPELESS = 73, - - /// - - DXGI_FORMAT_BC2_UNORM = 74, - - /// - - DXGI_FORMAT_BC2_UNORM_SRGB = 75, - - /// - - DXGI_FORMAT_BC3_TYPELESS = 76, - - /// - - DXGI_FORMAT_BC3_UNORM = 77, - - /// - - DXGI_FORMAT_BC3_UNORM_SRGB = 78, - - /// - - DXGI_FORMAT_BC4_TYPELESS = 79, - - /// - - DXGI_FORMAT_BC4_UNORM = 80, - - /// - - DXGI_FORMAT_BC4_SNORM = 81, - - /// - - DXGI_FORMAT_BC5_TYPELESS = 82, - - /// - - DXGI_FORMAT_BC5_UNORM = 83, - - /// - - DXGI_FORMAT_BC5_SNORM = 84, - - /// - - DXGI_FORMAT_B5G6R5_UNORM = 85, - - /// - - DXGI_FORMAT_B5G5R5A1_UNORM = 86, - - /// - - DXGI_FORMAT_B8G8R8A8_UNORM = 87, - - /// - - DXGI_FORMAT_B8G8R8X8_UNORM = 88, - - /// - - DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = 89, - - /// - - DXGI_FORMAT_B8G8R8A8_TYPELESS = 90, - - /// - - DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = 91, - - /// - - DXGI_FORMAT_B8G8R8X8_TYPELESS = 92, - - /// - - DXGI_FORMAT_B8G8R8X8_UNORM_SRGB = 93, - - /// - - DXGI_FORMAT_BC6H_TYPELESS = 94, - - /// - - DXGI_FORMAT_BC6H_UF16 = 95, - - /// - - DXGI_FORMAT_BC6H_SF16 = 96, - - /// - - DXGI_FORMAT_BC7_TYPELESS = 97, - - /// - - DXGI_FORMAT_BC7_UNORM = 98, - - /// - - DXGI_FORMAT_BC7_UNORM_SRGB = 99, - - /// - - DXGI_FORMAT_AYUV = 100, - - /// - - DXGI_FORMAT_Y410 = 101, - - /// - - DXGI_FORMAT_Y416 = 102, - - /// - - DXGI_FORMAT_NV12 = 103, - - /// - - DXGI_FORMAT_P010 = 104, - - /// - - DXGI_FORMAT_P016 = 105, - - /// - - DXGI_FORMAT_420_OPAQUE = 106, - - /// - - DXGI_FORMAT_YUY2 = 107, - - /// - - DXGI_FORMAT_Y210 = 108, - - /// - - DXGI_FORMAT_Y216 = 109, - - /// - - DXGI_FORMAT_NV11 = 110, - - /// - - DXGI_FORMAT_AI44 = 111, - - /// - - DXGI_FORMAT_IA44 = 112, - - /// - - DXGI_FORMAT_P8 = 113, - - /// - - DXGI_FORMAT_A8P8 = 114, - - /// - - DXGI_FORMAT_B4G4R4A4_UNORM = 115, - - /// - - DXGI_FORMAT_P208 = 130, - - /// - - DXGI_FORMAT_V208 = 131, - - /// - - DXGI_FORMAT_V408 = 132, - - /// - - DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE = 189, - - /// - - DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE = 190, - - /// - - DXGI_FORMAT_FORCE_UINT = unchecked((int)(0xffffffff)), -} diff --git a/sources/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7.gen.cs b/sources/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7.gen.cs deleted file mode 100644 index 3e3734645a..0000000000 --- a/sources/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7.gen.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D11On12On7.h in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("00000000-0000-0000-0000-000000000000")] -[NativeTypeName("struct ID3D11On12On7 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11On12On7 : ID3D11On12On7.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11On12On7)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D11On12On7*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D11On12On7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D11On12On7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetThreadDeviceCreationParams( - ID3D12Device* pDevice, - ID3D12CommandQueue* pGraphicsQueue - ) - { - ( - (delegate* unmanaged)( - lpVtbl[3] - ) - )((ID3D11On12On7*)Unsafe.AsPointer(ref this), pDevice, pGraphicsQueue); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetThreadResourceCreationParams(ID3D12Resource* pResource) - { - ((delegate* unmanaged)(lpVtbl[4]))( - (ID3D11On12On7*)Unsafe.AsPointer(ref this), - pResource - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D11On12On7Device* GetThreadLastCreatedDevice() - { - return ((delegate* unmanaged)(lpVtbl[5]))( - (ID3D11On12On7*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - [return: NativeTypeName("ID3D11On12On7Resource*")] - public void* GetThreadLastCreatedResource() - { - return ((delegate* unmanaged)(lpVtbl[6]))( - (ID3D11On12On7*)Unsafe.AsPointer(ref this) - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - void SetThreadDeviceCreationParams( - ID3D12Device* pDevice, - ID3D12CommandQueue* pGraphicsQueue - ); - - [VtblIndex(4)] - void SetThreadResourceCreationParams(ID3D12Resource* pResource); - - [VtblIndex(5)] - ID3D11On12On7Device* GetThreadLastCreatedDevice(); - - [VtblIndex(6)] - [return: NativeTypeName("ID3D11On12On7Resource*")] - void* GetThreadLastCreatedResource(); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "void (ID3D12Device *, ID3D12CommandQueue *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12Device*, - ID3D12CommandQueue*, - void> SetThreadDeviceCreationParams; - - [NativeTypeName( - "void (ID3D12Resource *) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged SetThreadResourceCreationParams; - - [NativeTypeName( - "ID3D11On12On7Device *() __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetThreadLastCreatedDevice; - - [NativeTypeName( - "ID3D11On12On7Resource *() __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged GetThreadLastCreatedResource; - } -} diff --git a/sources/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7Device.gen.cs b/sources/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7Device.gen.cs deleted file mode 100644 index 7eafb0c0b5..0000000000 --- a/sources/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7Device.gen.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D11On12On7.h in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using Silk.NET.Windows; -using System.Runtime.CompilerServices; - -namespace Silk.NET.DirectX; - -/// -public unsafe partial struct ID3D11On12On7Device : ID3D11On12On7Device.Interface -{ - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT AcquireResource( - [NativeTypeName("ID3D11On12On7Resource*")] void* pResource, - D3D12_RESOURCE_STATES state - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[0] - ) - )((ID3D11On12On7Device*)Unsafe.AsPointer(ref this), pResource, state); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public HRESULT ReleaseResource( - [NativeTypeName("ID3D11On12On7Resource*")] void* pResource, - D3D12_RESOURCE_STATES state - ) - { - return ( - (delegate* unmanaged)( - lpVtbl[1] - ) - )((ID3D11On12On7Device*)Unsafe.AsPointer(ref this), pResource, state); - } - - public interface Interface - { - [VtblIndex(0)] - HRESULT AcquireResource( - [NativeTypeName("ID3D11On12On7Resource*")] void* pResource, - D3D12_RESOURCE_STATES state - ); - - [VtblIndex(1)] - HRESULT ReleaseResource( - [NativeTypeName("ID3D11On12On7Resource*")] void* pResource, - D3D12_RESOURCE_STATES state - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName( - "HRESULT (ID3D11On12On7Resource *, D3D12_RESOURCE_STATES) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged AcquireResource; - - [NativeTypeName( - "HRESULT (ID3D11On12On7Resource *, D3D12_RESOURCE_STATES) __attribute__((nothrow)) __attribute__((stdcall))" - )] - public delegate* unmanaged ReleaseResource; - } -} diff --git a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/D3D12_DOWNLEVEL_PRESENT_FLAGS.gen.cs b/sources/Win32/Win32/DirectX/other/D3D12Downlevel/D3D12_DOWNLEVEL_PRESENT_FLAGS.gen.cs deleted file mode 100644 index 8d1625ad41..0000000000 --- a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/D3D12_DOWNLEVEL_PRESENT_FLAGS.gen.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using System; - -namespace Silk.NET.DirectX; - -/// -[Flags] -public enum D3D12_DOWNLEVEL_PRESENT_FLAGS -{ - /// - - D3D12_DOWNLEVEL_PRESENT_FLAG_NONE = 0, - - /// - - D3D12_DOWNLEVEL_PRESENT_FLAG_WAIT_FOR_VBLANK = (D3D12_DOWNLEVEL_PRESENT_FLAG_NONE + 1), -} diff --git a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.gen.cs b/sources/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.gen.cs deleted file mode 100644 index a15ea5d91c..0000000000 --- a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevel.gen.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("38A8C5EF-7CCB-4E81-914F-A6E9D072C494")] -[NativeTypeName("struct ID3D12CommandQueueDownlevel : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12CommandQueueDownlevel - : ID3D12CommandQueueDownlevel.Interface, - INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandQueueDownlevel)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12CommandQueueDownlevel*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12CommandQueueDownlevel*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12CommandQueueDownlevel*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT Present( - ID3D12GraphicsCommandList* pOpenCommandList, - ID3D12Resource* pSourceTex2D, - HWND hWindow, - D3D12_DOWNLEVEL_PRESENT_FLAGS Flags - ) - { - return ( - (delegate* unmanaged< - ID3D12CommandQueueDownlevel*, - ID3D12GraphicsCommandList*, - ID3D12Resource*, - HWND, - D3D12_DOWNLEVEL_PRESENT_FLAGS, - int>)(lpVtbl[3]) - )( - (ID3D12CommandQueueDownlevel*)Unsafe.AsPointer(ref this), - pOpenCommandList, - pSourceTex2D, - hWindow, - Flags - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT Present( - ID3D12GraphicsCommandList* pOpenCommandList, - ID3D12Resource* pSourceTex2D, - HWND hWindow, - D3D12_DOWNLEVEL_PRESENT_FLAGS Flags - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (ID3D12GraphicsCommandList *, ID3D12Resource *, HWND, D3D12_DOWNLEVEL_PRESENT_FLAGS) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - ID3D12GraphicsCommandList*, - ID3D12Resource*, - HWND, - D3D12_DOWNLEVEL_PRESENT_FLAGS, - int> Present; - } -} diff --git a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.gen.cs b/sources/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.gen.cs deleted file mode 100644 index f2907c8d48..0000000000 --- a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevel.gen.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using Silk.NET.Windows; -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX; - -/// -[Guid("74EAEE3F-2F4B-476D-82BA-2B85CB49E310")] -[NativeTypeName("struct ID3D12DeviceDownlevel : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DeviceDownlevel : ID3D12DeviceDownlevel.Interface, INativeGuid -{ - static Guid* INativeGuid.NativeGuid => - (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceDownlevel)); - public void** lpVtbl; - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged)(lpVtbl[0]))( - (ID3D12DeviceDownlevel*)Unsafe.AsPointer(ref this), - riid, - ppvObject - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged)(lpVtbl[1]))( - (ID3D12DeviceDownlevel*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged)(lpVtbl[2]))( - (ID3D12DeviceDownlevel*)Unsafe.AsPointer(ref this) - ); - } - - /// - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT QueryVideoMemoryInfo( - uint NodeIndex, - DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup, - DXGI_QUERY_VIDEO_MEMORY_INFO* pVideoMemoryInfo - ) - { - return ( - (delegate* unmanaged< - ID3D12DeviceDownlevel*, - uint, - DXGI_MEMORY_SEGMENT_GROUP, - DXGI_QUERY_VIDEO_MEMORY_INFO*, - int>)(lpVtbl[3]) - )( - (ID3D12DeviceDownlevel*)Unsafe.AsPointer(ref this), - NodeIndex, - MemorySegmentGroup, - pVideoMemoryInfo - ); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HRESULT QueryVideoMemoryInfo( - uint NodeIndex, - DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup, - DXGI_QUERY_VIDEO_MEMORY_INFO* pVideoMemoryInfo - ); - } - - public partial struct Vtbl - where TSelf : unmanaged, Interface - { - [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] - public delegate* unmanaged QueryInterface; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged AddRef; - - [NativeTypeName("ULONG () __attribute__((stdcall))")] - public delegate* unmanaged Release; - - [NativeTypeName( - "HRESULT (UINT, DXGI_MEMORY_SEGMENT_GROUP, DXGI_QUERY_VIDEO_MEMORY_INFO *) __attribute__((stdcall))" - )] - public delegate* unmanaged< - TSelf*, - uint, - DXGI_MEMORY_SEGMENT_GROUP, - DXGI_QUERY_VIDEO_MEMORY_INFO*, - int> QueryVideoMemoryInfo; - } -} diff --git a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/IID.gen.cs b/sources/Win32/Win32/DirectX/other/D3D12Downlevel/IID.gen.cs deleted file mode 100644 index 468d6ad205..0000000000 --- a/sources/Win32/Win32/DirectX/other/D3D12Downlevel/IID.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using Silk.NET.DirectX; -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; -public static partial class IID -{ - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12CommandQueueDownlevel - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0xEF, 0xC5, 0xA8, 0x38, 0xCB, 0x7C, 0x81, 0x4E, 0x91, 0x4F, 0xA6, 0xE9, 0xD0, 0x72, 0xC4, 0x94]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid IID_ID3D12DeviceDownlevel - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = [0x3F, 0xEE, 0xEA, 0x74, 0x4B, 0x2F, 0x6D, 0x47, 0x82, 0xBA, 0x2B, 0x85, 0xCB, 0x49, 0xE3, 0x10]; - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } -} \ No newline at end of file diff --git a/sources/Win32/Win32/DirectX/shared/d3d9/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/shared/d3d9/DirectX.Manual.cs new file mode 100644 index 0000000000..1fe1865c4b --- /dev/null +++ b/sources/Win32/Win32/DirectX/shared/d3d9/DirectX.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/d3d9.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static HRESULT MAKE_D3DHRESULT(int code) + { + return MAKE_HRESULT(1, _FACD3D, code); + } + + public static HRESULT MAKE_D3DSTATUS(int code) + { + return MAKE_HRESULT(0, _FACD3D, code); + } +} diff --git a/sources/Win32/Win32/DirectX/shared/dxgi/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/shared/dxgi/DirectX.Manual.cs new file mode 100644 index 0000000000..5c41cf52b2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/shared/dxgi/DirectX.Manual.cs @@ -0,0 +1,107 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/dxgi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using Silk.NET.Win32; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static HRESULT D3D_SET_OBJECT_NAME_A(TDXGIObject* pObject, sbyte* pName) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + return D3D_SET_OBJECT_NAME_N_A(pObject, (uint)lstrlenA(pName), pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D_SET_OBJECT_NAME_A( + Ref pObject, + Ref pName + ) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + fixed (sbyte* __dsl_pName = pName) + fixed (TDXGIObject* __dsl_pObject = pObject) + { + return (HRESULT)D3D_SET_OBJECT_NAME_A(__dsl_pObject, __dsl_pName); + } + } + + public static HRESULT D3D_SET_OBJECT_NAME_N_A( + TDXGIObject* pObject, + uint Chars, + sbyte* pName + ) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + var guid = WKPDID_D3DDebugObjectName; + return pObject->SetPrivateData(&guid, Chars, pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D_SET_OBJECT_NAME_N_A( + Ref pObject, + uint Chars, + Ref pName + ) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + fixed (sbyte* __dsl_pName = pName) + fixed (TDXGIObject* __dsl_pObject = pObject) + { + return (HRESULT)D3D_SET_OBJECT_NAME_N_A(__dsl_pObject, Chars, __dsl_pName); + } + } + + public static HRESULT D3D_SET_OBJECT_NAME_N_W( + TDXGIObject* pObject, + uint Chars, + char* pName + ) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + var guid = WKPDID_D3DDebugObjectNameW; + return pObject->SetPrivateData(&guid, Chars * 2, pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D_SET_OBJECT_NAME_N_W( + Ref pObject, + uint Chars, + Ref pName + ) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + fixed (char* __dsl_pName = pName) + fixed (TDXGIObject* __dsl_pObject = pObject) + { + return (HRESULT)D3D_SET_OBJECT_NAME_N_W(__dsl_pObject, Chars, __dsl_pName); + } + } + + public static HRESULT D3D_SET_OBJECT_NAME_W(TDXGIObject* pObject, char* pName) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + return D3D_SET_OBJECT_NAME_N_W(pObject, (uint)lstrlenW(pName), pName); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT D3D_SET_OBJECT_NAME_W( + Ref pObject, + Ref pName + ) + where TDXGIObject : unmanaged, IDXGIObject.Interface + { + fixed (char* __dsl_pName = pName) + fixed (TDXGIObject* __dsl_pObject = pObject) + { + return (HRESULT)D3D_SET_OBJECT_NAME_W(__dsl_pObject, __dsl_pName); + } + } +} diff --git a/sources/Win32/Win32/DirectX/shared/dxgitype/DXGI_RGB.Manual.cs b/sources/Win32/Win32/DirectX/shared/dxgitype/DXGI_RGB.Manual.cs new file mode 100644 index 0000000000..7112e823e3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/shared/dxgitype/DXGI_RGB.Manual.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/dxgitype.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct DXGI_RGB +{ + public DXGI_RGB(float red, float green, float blue) + { + Red = red; + Green = green; + Blue = blue; + } +} diff --git a/sources/Win32/Win32/DirectX/shared/dxgitype/DXGI_RGBA.Manual.cs b/sources/Win32/Win32/DirectX/shared/dxgitype/DXGI_RGBA.Manual.cs new file mode 100644 index 0000000000..29b84ca8fd --- /dev/null +++ b/sources/Win32/Win32/DirectX/shared/dxgitype/DXGI_RGBA.Manual.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/dxgitype.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct DXGI_RGBA +{ + public DXGI_RGBA([NativeTypeName("UINT32")] uint rgb, float a = 1.0f) + { + r = (float)((rgb & sc_redMask) >> (int)sc_redShift) / 255.0f; + g = (float)((rgb & sc_greenMask) >> (int)sc_greenShift) / 255.0f; + b = (float)((rgb & sc_blueMask) >> (int)sc_blueShift) / 255.0f; + this.a = a; + } + + public DXGI_RGBA(ColorF knownColor, float a = 1.0f) + : this((uint)knownColor, a) { } + + public DXGI_RGBA(float red, float green, float blue, float alpha = 1.0f) + { + r = red; + g = green; + b = blue; + a = alpha; + } + + private const uint sc_redShift = 16; + private const uint sc_greenShift = 8; + private const uint sc_blueShift = 0; + private const uint sc_redMask = 0xff << (int)sc_redShift; + private const uint sc_greenMask = 0xff << (int)sc_greenShift; + private const uint sc_blueMask = 0xff << (int)sc_blueShift; +} diff --git a/sources/Win32/Win32/DirectX/shared/dxgitype/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/shared/dxgitype/DirectX.Manual.cs new file mode 100644 index 0000000000..ba542ddd0b --- /dev/null +++ b/sources/Win32/Win32/DirectX/shared/dxgitype/DirectX.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/dxgitype.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static HRESULT MAKE_DXGI_HRESULT(int code) => MAKE_HRESULT(1, _FACDXGI, code); + + public static HRESULT MAKE_DXGI_STATUS(int code) => MAKE_HRESULT(0, _FACDXGI, code); +} diff --git a/sources/Win32/Win32/DirectX/um/D2DErr/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/D2DErr/DirectX.Manual.cs new file mode 100644 index 0000000000..0ab9a40213 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/D2DErr/DirectX.Manual.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2derr.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.Win32.FACILITY; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static HRESULT MAKE_D2DHR(int sev, int code) => MAKE_HRESULT(sev, FACILITY_D2D, code); + + public static HRESULT MAKE_D2DHR_ERR(int code) => MAKE_D2DHR(1, code); +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1.Manual.cs new file mode 100644 index 0000000000..e6bb70d075 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class D2D1 +{ + public const ulong D2D1_INVALID_TAG = ulong.MaxValue; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR = 0; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR = 1; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC = 2; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR = 3; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC = 4; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC = 5; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_FANT = 6; + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_MIPMAP_LINEAR = 7; +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ARC_SEGMENT.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ARC_SEGMENT.Manual.cs new file mode 100644 index 0000000000..1d90ef02db --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ARC_SEGMENT.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_ARC_SEGMENT +{ + public D2D1_ARC_SEGMENT( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point, + [NativeTypeName("const D2D1_SIZE_F &")] in D2D_SIZE_F size, + float rotationAngle, + D2D1_SWEEP_DIRECTION sweepDirection, + D2D1_ARC_SIZE arcSize + ) + { + this = ArcSegment(point, size, rotationAngle, sweepDirection, arcSize); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BEZIER_SEGMENT.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BEZIER_SEGMENT.Manual.cs new file mode 100644 index 0000000000..0f01ea52f9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BEZIER_SEGMENT.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_BEZIER_SEGMENT +{ + public D2D1_BEZIER_SEGMENT( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point1, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point2, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point3 + ) + { + this = BezierSegment(point1, point2, point3); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BITMAP_BRUSH_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BITMAP_BRUSH_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..4db3866b61 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BITMAP_BRUSH_PROPERTIES.Manual.cs @@ -0,0 +1,51 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D2D1_BITMAP_INTERPOLATION_MODE; +using static Silk.NET.DirectX.D2D1_EXTEND_MODE; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_BITMAP_BRUSH_PROPERTIES +{ + public static ref readonly D2D1_BITMAP_BRUSH_PROPERTIES DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D2D1_BITMAP_BRUSH_PROPERTIES( + D2D1_EXTEND_MODE extendModeX = D2D1_EXTEND_MODE_CLAMP, + D2D1_EXTEND_MODE extendModeY = D2D1_EXTEND_MODE_CLAMP, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR + ) + { + this = BitmapBrushProperties(extendModeX, extendModeY, interpolationMode); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BITMAP_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BITMAP_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..109fa1bfda --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BITMAP_PROPERTIES.Manual.cs @@ -0,0 +1,53 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_BITMAP_PROPERTIES +{ + public static ref readonly D2D1_BITMAP_PROPERTIES DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xC0, + 0x42, + 0x00, + 0x00, + 0xC0, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D2D1_BITMAP_PROPERTIES( + [NativeTypeName("const D2D1_PIXEL_FORMAT &")] in D2D1_PIXEL_FORMAT pixelFormat = default, + float dpiX = 96.0f, + float dpiY = 96.0f + ) + { + this = BitmapProperties(pixelFormat, dpiX, dpiY); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BRUSH_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BRUSH_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..102bcbba3b --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_BRUSH_PROPERTIES.Manual.cs @@ -0,0 +1,65 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_BRUSH_PROPERTIES +{ + public static ref readonly D2D1_BRUSH_PROPERTIES DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D2D1_BRUSH_PROPERTIES(float opacity = 1.0f) + : this(opacity, IdentityMatrix) { } + + public D2D1_BRUSH_PROPERTIES( + [Optional, DefaultParameterValue(1.0f)] float opacity, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F transform + ) + { + this = BrushProperties(opacity, transform); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_DRAWING_STATE_DESCRIPTION.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_DRAWING_STATE_DESCRIPTION.Manual.cs new file mode 100644 index 0000000000..830ff65c39 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_DRAWING_STATE_DESCRIPTION.Manual.cs @@ -0,0 +1,97 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D2D1_ANTIALIAS_MODE; +using static Silk.NET.DirectX.D2D1_TEXT_ANTIALIAS_MODE; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_DRAWING_STATE_DESCRIPTION +{ + public static ref readonly D2D1_DRAWING_STATE_DESCRIPTION DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D2D1_DRAWING_STATE_DESCRIPTION( + D2D1_ANTIALIAS_MODE antialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode = D2D1_TEXT_ANTIALIAS_MODE_DEFAULT, + [NativeTypeName("D2D1_TAG")] ulong tag1 = 0, + [NativeTypeName("D2D1_TAG")] ulong tag2 = 0 + ) + : this(antialiasMode, textAntialiasMode, tag1, tag2, IdentityMatrix) { } + + public D2D1_DRAWING_STATE_DESCRIPTION( + [Optional] D2D1_ANTIALIAS_MODE antialiasMode, + [Optional] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode, + [NativeTypeName("D2D1_TAG"), Optional] ulong tag1, + [NativeTypeName("D2D1_TAG"), Optional] ulong tag2, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] D2D_MATRIX_3X2_F transform + ) + { + this = DrawingStateDescription(antialiasMode, textAntialiasMode, tag1, tag2, transform); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ELLIPSE.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ELLIPSE.Manual.cs new file mode 100644 index 0000000000..5e171dd61d --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ELLIPSE.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_ELLIPSE +{ + public D2D1_ELLIPSE( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F center, + float radiusX, + float radiusY + ) + { + this = Ellipse(center, radiusX, radiusY); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_GRADIENT_STOP.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_GRADIENT_STOP.Manual.cs new file mode 100644 index 0000000000..b42d5bd7ba --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_GRADIENT_STOP.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_GRADIENT_STOP +{ + public D2D1_GRADIENT_STOP( + float position, + [NativeTypeName("const D2D1_COLOR_F &")] in DXGI_RGBA color + ) + { + this = GradientStop(position, color); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_HWND_RENDER_TARGET_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_HWND_RENDER_TARGET_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..cd3490478d --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_HWND_RENDER_TARGET_PROPERTIES.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.DirectX.D2D1_PRESENT_OPTIONS; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_HWND_RENDER_TARGET_PROPERTIES +{ + public D2D1_HWND_RENDER_TARGET_PROPERTIES( + HWND hwnd, + [NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U pixelSize = default, + D2D1_PRESENT_OPTIONS presentOptions = D2D1_PRESENT_OPTIONS_NONE + ) + { + this = HwndRenderTargetProperties(hwnd, pixelSize, presentOptions); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_LAYER_PARAMETERS.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_LAYER_PARAMETERS.Manual.cs new file mode 100644 index 0000000000..83004a79e2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_LAYER_PARAMETERS.Manual.cs @@ -0,0 +1,243 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D2D1_LAYER_OPTIONS; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D2D1_LAYER_PARAMETERS +{ + public static ref readonly D2D1_LAYER_PARAMETERS DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data; + if (Environment.Is64BitProcess) + { + data = + [ + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + else + { + data = + [ + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + } + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D2D1_LAYER_PARAMETERS( + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + : this( + InfiniteRect, + geometricMask, + maskAntialiasMode, + IdentityMatrix, + opacity, + opacityBrush, + layerOptions + ) { } + + public D2D1_LAYER_PARAMETERS( + [NativeTypeName("const D2D1_RECT_F")] in D2D_RECT_F contentBounds, + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + : this( + contentBounds, + geometricMask, + maskAntialiasMode, + IdentityMatrix, + opacity, + opacityBrush, + layerOptions + ) { } + + public D2D1_LAYER_PARAMETERS( + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + [NativeTypeName("D2D1_MATRIX_3X2_F")] D2D_MATRIX_3X2_F maskTransform, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + : this( + InfiniteRect, + geometricMask, + maskAntialiasMode, + maskTransform, + opacity, + opacityBrush, + layerOptions + ) { } + + public D2D1_LAYER_PARAMETERS( + [NativeTypeName("const D2D1_RECT_F")] in D2D_RECT_F contentBounds, + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + [NativeTypeName("D2D1_MATRIX_3X2_F")] D2D_MATRIX_3X2_F maskTransform, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + { + this = LayerParameters( + contentBounds, + geometricMask, + maskAntialiasMode, + maskTransform, + opacity, + opacityBrush, + layerOptions + ); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..44078f16c8 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES +{ + public D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F startPoint, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F endPoint + ) + { + this = LinearGradientBrushProperties(startPoint, endPoint); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_QUADRATIC_BEZIER_SEGMENT.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_QUADRATIC_BEZIER_SEGMENT.Manual.cs new file mode 100644 index 0000000000..e033792668 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_QUADRATIC_BEZIER_SEGMENT.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_QUADRATIC_BEZIER_SEGMENT +{ + public D2D1_QUADRATIC_BEZIER_SEGMENT( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point1, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point2 + ) + { + this = QuadraticBezierSegment(point1, point2); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..c1b8541a79 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES +{ + public D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F center, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F gradientOriginOffset, + float radiusX, + float radiusY + ) + { + this = RadialGradientBrushProperties(center, gradientOriginOffset, radiusX, radiusY); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_RENDER_TARGET_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_RENDER_TARGET_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..0a26a1db9f --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_RENDER_TARGET_PROPERTIES.Manual.cs @@ -0,0 +1,71 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D2D1_FEATURE_LEVEL; +using static Silk.NET.DirectX.D2D1_RENDER_TARGET_TYPE; +using static Silk.NET.DirectX.D2D1_RENDER_TARGET_USAGE; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_RENDER_TARGET_PROPERTIES +{ + public static ref readonly D2D1_RENDER_TARGET_PROPERTIES DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D2D1_RENDER_TARGET_PROPERTIES( + D2D1_RENDER_TARGET_TYPE type = D2D1_RENDER_TARGET_TYPE_DEFAULT, + [NativeTypeName("const D2D1_PIXEL_FORMAT &")] in D2D1_PIXEL_FORMAT pixelFormat = default, + float dpiX = 0.0f, + float dpiY = 0.0f, + D2D1_RENDER_TARGET_USAGE usage = D2D1_RENDER_TARGET_USAGE_NONE, + D2D1_FEATURE_LEVEL minLevel = D2D1_FEATURE_LEVEL_DEFAULT + ) + { + this = RenderTargetProperties(type, pixelFormat, dpiX, dpiY, usage, minLevel); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ROUNDED_RECT.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ROUNDED_RECT.Manual.cs new file mode 100644 index 0000000000..b6ad7f3b8e --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_ROUNDED_RECT.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_ROUNDED_RECT +{ + public D2D1_ROUNDED_RECT( + [NativeTypeName("const D2D1_RECT_F")] in D2D_RECT_F rect, + float radiusX, + float radiusY + ) + { + this = RoundedRect(rect, radiusX, radiusY); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1/D2D1_STROKE_STYLE_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_STROKE_STYLE_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..b958730983 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1/D2D1_STROKE_STYLE_PROPERTIES.Manual.cs @@ -0,0 +1,80 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D2D1_CAP_STYLE; +using static Silk.NET.DirectX.D2D1_DASH_STYLE; +using static Silk.NET.DirectX.D2D1_LINE_JOIN; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_STROKE_STYLE_PROPERTIES +{ + public static ref readonly D2D1_STROKE_STYLE_PROPERTIES DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x20, + 0x41, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D2D1_STROKE_STYLE_PROPERTIES( + D2D1_CAP_STYLE startCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE endCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE dashCap = D2D1_CAP_STYLE_FLAT, + D2D1_LINE_JOIN lineJoin = D2D1_LINE_JOIN_MITER, + float miterLimit = 10.0f, + D2D1_DASH_STYLE dashStyle = D2D1_DASH_STYLE_SOLID, + float dashOffset = 0.0f + ) + { + this = StrokeStyleProperties( + startCap, + endCap, + dashCap, + lineJoin, + miterLimit, + dashStyle, + dashOffset + ); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_2helper/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_2helper/DirectX.Manual.cs new file mode 100644 index 0000000000..7f6ee14a85 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_2helper/DirectX.Manual.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_2helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.Versioning; +using static Silk.NET.DirectX.D2D1; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + [SupportedOSPlatform("windows6.3")] + public static float ComputeFlatteningTolerance( + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F matrix, + float dpiX = 96.0f, + float dpiY = 96.0f, + float maxZoomFactor = 1.0f + ) + { + D2D_MATRIX_3X2_F dpiDependentTransform = + matrix * D2D_MATRIX_3X2_F.Scale(dpiX / 96.0f, dpiY / 96.0f); + float absMaxZoomFactor = (maxZoomFactor > 0) ? maxZoomFactor : -maxZoomFactor; + return D2D1_DEFAULT_FLATTENING_TOLERANCE + / (absMaxZoomFactor * D2D1ComputeMaximumScaleFactor(&dpiDependentTransform)); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_GRADIENT_MESH_PATCH.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_GRADIENT_MESH_PATCH.Manual.cs new file mode 100644 index 0000000000..a16bbda274 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_GRADIENT_MESH_PATCH.Manual.cs @@ -0,0 +1,111 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_GRADIENT_MESH_PATCH +{ + public D2D1_GRADIENT_MESH_PATCH( + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point00, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point01, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point02, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point03, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point10, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point11, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point12, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point13, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point20, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point21, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point22, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point23, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point30, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point31, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point32, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point33, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color00, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color03, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color30, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color33, + D2D1_PATCH_EDGE_MODE topEdgeMode, + D2D1_PATCH_EDGE_MODE leftEdgeMode, + D2D1_PATCH_EDGE_MODE bottomEdgeMode, + D2D1_PATCH_EDGE_MODE rightEdgeMode + ) + { + this = GradientMeshPatch( + point00, + point01, + point02, + point03, + point10, + point11, + point12, + point13, + point20, + point21, + point22, + point23, + point30, + point31, + point32, + point33, + color00, + color03, + color30, + color33, + topEdgeMode, + leftEdgeMode, + bottomEdgeMode, + rightEdgeMode + ); + } + + public static D2D1_GRADIENT_MESH_PATCH FromCoonsPatch( + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point0, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point1, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point2, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point3, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point4, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point5, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point6, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point7, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point8, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point9, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point10, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point11, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color0, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color1, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color2, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color3, + D2D1_PATCH_EDGE_MODE topEdgeMode, + D2D1_PATCH_EDGE_MODE leftEdgeMode, + D2D1_PATCH_EDGE_MODE bottomEdgeMode, + D2D1_PATCH_EDGE_MODE rightEdgeMode + ) + { + return GradientMeshPatchFromCoonsPatch( + point0, + point1, + point2, + point3, + point4, + point5, + point6, + point7, + point8, + point9, + point10, + point11, + color0, + color1, + color2, + color3, + topEdgeMode, + leftEdgeMode, + bottomEdgeMode, + rightEdgeMode + ); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_BEZIER_SEGMENT.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_BEZIER_SEGMENT.Manual.cs new file mode 100644 index 0000000000..6a44cbb66d --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_BEZIER_SEGMENT.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_INK_BEZIER_SEGMENT +{ + public D2D1_INK_BEZIER_SEGMENT( + [NativeTypeName("const D2D1_INK_POINT &")] in D2D1_INK_POINT point1, + [NativeTypeName("const D2D1_INK_POINT &")] in D2D1_INK_POINT point2, + [NativeTypeName("const D2D1_INK_POINT &")] in D2D1_INK_POINT point3 + ) + { + this = InkBezierSegment(point1, point2, point3); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_POINT.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_POINT.Manual.cs new file mode 100644 index 0000000000..ef17e6964a --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_POINT.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_INK_POINT +{ + public D2D1_INK_POINT( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point, + float radius + ) + { + this = InkPoint(point, radius); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_STYLE_PROPERTIES.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_STYLE_PROPERTIES.Manual.cs new file mode 100644 index 0000000000..c6e8e7477e --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_INK_STYLE_PROPERTIES.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_INK_STYLE_PROPERTIES +{ + public D2D1_INK_STYLE_PROPERTIES( + D2D1_INK_NIB_SHAPE nibShape, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F nibTransform + ) + { + this = InkStyleProperties(nibShape, nibTransform); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_SIMPLE_COLOR_PROFILE.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_SIMPLE_COLOR_PROFILE.Manual.cs new file mode 100644 index 0000000000..84d4f4a799 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_3/D2D1_SIMPLE_COLOR_PROFILE.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_SIMPLE_COLOR_PROFILE +{ + public D2D1_SIMPLE_COLOR_PROFILE( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F redPrimary, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F greenPrimary, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F bluePrimary, + [NativeTypeName("const D2D1_GAMMA1")] D2D1_GAMMA1 gamma, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F whitePointXZ + ) + { + this = SimpleColorProfile(redPrimary, greenPrimary, bluePrimary, gamma, whitePointXZ); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1_3helper/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1_3helper/DirectX.Manual.cs new file mode 100644 index 0000000000..ddfcef896c --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1_3helper/DirectX.Manual.cs @@ -0,0 +1,200 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.Versioning; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static D2D_RECT_U InfiniteRectU + { + [return: NativeTypeName("D2D1_RECT_U")] + get + { + D2D_RECT_U rect = new D2D_RECT_U + { + left = 0u, + top = 0u, + right = uint.MaxValue, + bottom = uint.MaxValue, + }; + return rect; + } + } + + [SupportedOSPlatform("windows10.0")] + public static D2D1_GRADIENT_MESH_PATCH GradientMeshPatch( + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point00, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point01, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point02, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point03, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point10, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point11, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point12, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point13, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point20, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point21, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point22, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point23, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point30, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point31, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point32, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point33, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color00, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color03, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color30, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color33, + D2D1_PATCH_EDGE_MODE topEdgeMode, + D2D1_PATCH_EDGE_MODE leftEdgeMode, + D2D1_PATCH_EDGE_MODE bottomEdgeMode, + D2D1_PATCH_EDGE_MODE rightEdgeMode + ) + { + D2D1_GRADIENT_MESH_PATCH newPatch; + newPatch.point00 = point00; + newPatch.point01 = point01; + newPatch.point02 = point02; + newPatch.point03 = point03; + newPatch.point10 = point10; + newPatch.point11 = point11; + newPatch.point12 = point12; + newPatch.point13 = point13; + newPatch.point20 = point20; + newPatch.point21 = point21; + newPatch.point22 = point22; + newPatch.point23 = point23; + newPatch.point30 = point30; + newPatch.point31 = point31; + newPatch.point32 = point32; + newPatch.point33 = point33; + newPatch.color00 = color00; + newPatch.color03 = color03; + newPatch.color30 = color30; + newPatch.color33 = color33; + newPatch.topEdgeMode = topEdgeMode; + newPatch.leftEdgeMode = leftEdgeMode; + newPatch.bottomEdgeMode = bottomEdgeMode; + newPatch.rightEdgeMode = rightEdgeMode; + return newPatch; + } + + [SupportedOSPlatform("windows10.0")] + public static D2D1_GRADIENT_MESH_PATCH GradientMeshPatchFromCoonsPatch( + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point0, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point1, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point2, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point3, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point4, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point5, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point6, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point7, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point8, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point9, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point10, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point11, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color0, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color1, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color2, + [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color3, + D2D1_PATCH_EDGE_MODE topEdgeMode, + D2D1_PATCH_EDGE_MODE leftEdgeMode, + D2D1_PATCH_EDGE_MODE bottomEdgeMode, + D2D1_PATCH_EDGE_MODE rightEdgeMode + ) + { + D2D1_GRADIENT_MESH_PATCH newPatch; + newPatch.point00 = point0; + newPatch.point01 = point1; + newPatch.point02 = point2; + newPatch.point03 = point3; + newPatch.point13 = point4; + newPatch.point23 = point5; + newPatch.point33 = point6; + newPatch.point32 = point7; + newPatch.point31 = point8; + newPatch.point30 = point9; + newPatch.point20 = point10; + newPatch.point10 = point11; + D2D1GetGradientMeshInteriorPointsFromCoonsPatch( + &point0, + &point1, + &point2, + &point3, + &point4, + &point5, + &point6, + &point7, + &point8, + &point9, + &point10, + &point11, + &newPatch.point11, + &newPatch.point12, + &newPatch.point21, + &newPatch.point22 + ); + newPatch.color00 = color0; + newPatch.color03 = color1; + newPatch.color33 = color2; + newPatch.color30 = color3; + newPatch.topEdgeMode = topEdgeMode; + newPatch.leftEdgeMode = leftEdgeMode; + newPatch.bottomEdgeMode = bottomEdgeMode; + newPatch.rightEdgeMode = rightEdgeMode; + return newPatch; + } + + public static D2D1_INK_BEZIER_SEGMENT InkBezierSegment( + [NativeTypeName("const D2D1_INK_POINT &")] in D2D1_INK_POINT point1, + [NativeTypeName("const D2D1_INK_POINT &")] in D2D1_INK_POINT point2, + [NativeTypeName("const D2D1_INK_POINT &")] in D2D1_INK_POINT point3 + ) + { + D2D1_INK_BEZIER_SEGMENT inkBezierSegment; + inkBezierSegment.point1 = point1; + inkBezierSegment.point2 = point2; + inkBezierSegment.point3 = point3; + return inkBezierSegment; + } + + public static D2D1_INK_POINT InkPoint( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point, + float radius + ) + { + D2D1_INK_POINT inkPoint; + inkPoint.x = point.x; + inkPoint.y = point.y; + inkPoint.radius = radius; + return inkPoint; + } + + public static D2D1_INK_STYLE_PROPERTIES InkStyleProperties( + D2D1_INK_NIB_SHAPE nibShape, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F nibTransform + ) + { + D2D1_INK_STYLE_PROPERTIES inkStyleProperties; + inkStyleProperties.nibShape = nibShape; + inkStyleProperties.nibTransform = nibTransform; + return inkStyleProperties; + } + + public static D2D1_SIMPLE_COLOR_PROFILE SimpleColorProfile( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F redPrimary, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F greenPrimary, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F bluePrimary, + [NativeTypeName("const D2D1_GAMMA1")] D2D1_GAMMA1 gamma, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F whitePointXZ + ) + { + D2D1_SIMPLE_COLOR_PROFILE simpleColorProfile; + simpleColorProfile.redPrimary = redPrimary; + simpleColorProfile.greenPrimary = greenPrimary; + simpleColorProfile.bluePrimary = bluePrimary; + simpleColorProfile.gamma = gamma; + simpleColorProfile.whitePointXZ = whitePointXZ; + return simpleColorProfile; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1helper/ColorF.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1helper/ColorF.Manual.cs new file mode 100644 index 0000000000..e0d73d4a24 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1helper/ColorF.Manual.cs @@ -0,0 +1,149 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public enum ColorF +{ + AliceBlue = 0xF0F8FF, + AntiqueWhite = 0xFAEBD7, + Aqua = 0x00FFFF, + Aquamarine = 0x7FFFD4, + Azure = 0xF0FFFF, + Beige = 0xF5F5DC, + Bisque = 0xFFE4C4, + Black = 0x000000, + BlanchedAlmond = 0xFFEBCD, + Blue = 0x0000FF, + BlueViolet = 0x8A2BE2, + Brown = 0xA52A2A, + BurlyWood = 0xDEB887, + CadetBlue = 0x5F9EA0, + Chartreuse = 0x7FFF00, + Chocolate = 0xD2691E, + Coral = 0xFF7F50, + CornflowerBlue = 0x6495ED, + Cornsilk = 0xFFF8DC, + Crimson = 0xDC143C, + Cyan = 0x00FFFF, + DarkBlue = 0x00008B, + DarkCyan = 0x008B8B, + DarkGoldenrod = 0xB8860B, + DarkGray = 0xA9A9A9, + DarkGreen = 0x006400, + DarkKhaki = 0xBDB76B, + DarkMagenta = 0x8B008B, + DarkOliveGreen = 0x556B2F, + DarkOrange = 0xFF8C00, + DarkOrchid = 0x9932CC, + DarkRed = 0x8B0000, + DarkSalmon = 0xE9967A, + DarkSeaGreen = 0x8FBC8F, + DarkSlateBlue = 0x483D8B, + DarkSlateGray = 0x2F4F4F, + DarkTurquoise = 0x00CED1, + DarkViolet = 0x9400D3, + DeepPink = 0xFF1493, + DeepSkyBlue = 0x00BFFF, + DimGray = 0x696969, + DodgerBlue = 0x1E90FF, + Firebrick = 0xB22222, + FloralWhite = 0xFFFAF0, + ForestGreen = 0x228B22, + Fuchsia = 0xFF00FF, + Gainsboro = 0xDCDCDC, + GhostWhite = 0xF8F8FF, + Gold = 0xFFD700, + Goldenrod = 0xDAA520, + Gray = 0x808080, + Green = 0x008000, + GreenYellow = 0xADFF2F, + Honeydew = 0xF0FFF0, + HotPink = 0xFF69B4, + IndianRed = 0xCD5C5C, + Indigo = 0x4B0082, + Ivory = 0xFFFFF0, + Khaki = 0xF0E68C, + Lavender = 0xE6E6FA, + LavenderBlush = 0xFFF0F5, + LawnGreen = 0x7CFC00, + LemonChiffon = 0xFFFACD, + LightBlue = 0xADD8E6, + LightCoral = 0xF08080, + LightCyan = 0xE0FFFF, + LightGoldenrodYellow = 0xFAFAD2, + LightGreen = 0x90EE90, + LightGray = 0xD3D3D3, + LightPink = 0xFFB6C1, + LightSalmon = 0xFFA07A, + LightSeaGreen = 0x20B2AA, + LightSkyBlue = 0x87CEFA, + LightSlateGray = 0x778899, + LightSteelBlue = 0xB0C4DE, + LightYellow = 0xFFFFE0, + Lime = 0x00FF00, + LimeGreen = 0x32CD32, + Linen = 0xFAF0E6, + Magenta = 0xFF00FF, + Maroon = 0x800000, + MediumAquamarine = 0x66CDAA, + MediumBlue = 0x0000CD, + MediumOrchid = 0xBA55D3, + MediumPurple = 0x9370DB, + MediumSeaGreen = 0x3CB371, + MediumSlateBlue = 0x7B68EE, + MediumSpringGreen = 0x00FA9A, + MediumTurquoise = 0x48D1CC, + MediumVioletRed = 0xC71585, + MidnightBlue = 0x191970, + MintCream = 0xF5FFFA, + MistyRose = 0xFFE4E1, + Moccasin = 0xFFE4B5, + NavajoWhite = 0xFFDEAD, + Navy = 0x000080, + OldLace = 0xFDF5E6, + Olive = 0x808000, + OliveDrab = 0x6B8E23, + Orange = 0xFFA500, + OrangeRed = 0xFF4500, + Orchid = 0xDA70D6, + PaleGoldenrod = 0xEEE8AA, + PaleGreen = 0x98FB98, + PaleTurquoise = 0xAFEEEE, + PaleVioletRed = 0xDB7093, + PapayaWhip = 0xFFEFD5, + PeachPuff = 0xFFDAB9, + Peru = 0xCD853F, + Pink = 0xFFC0CB, + Plum = 0xDDA0DD, + PowderBlue = 0xB0E0E6, + Purple = 0x800080, + Red = 0xFF0000, + RosyBrown = 0xBC8F8F, + RoyalBlue = 0x4169E1, + SaddleBrown = 0x8B4513, + Salmon = 0xFA8072, + SandyBrown = 0xF4A460, + SeaGreen = 0x2E8B57, + SeaShell = 0xFFF5EE, + Sienna = 0xA0522D, + Silver = 0xC0C0C0, + SkyBlue = 0x87CEEB, + SlateBlue = 0x6A5ACD, + SlateGray = 0x708090, + Snow = 0xFFFAFA, + SpringGreen = 0x00FF7F, + SteelBlue = 0x4682B4, + Tan = 0xD2B48C, + Teal = 0x008080, + Thistle = 0xD8BFD8, + Tomato = 0xFF6347, + Turquoise = 0x40E0D0, + Violet = 0xEE82EE, + Wheat = 0xF5DEB3, + White = 0xFFFFFF, + WhiteSmoke = 0xF5F5F5, + Yellow = 0xFFFF00, + YellowGreen = 0x9ACD32, +} diff --git a/sources/Win32/Win32/DirectX/um/d2d1helper/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d2d1helper/DirectX.Manual.cs new file mode 100644 index 0000000000..422827a119 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d2d1helper/DirectX.Manual.cs @@ -0,0 +1,433 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.D2D1_ALPHA_MODE; +using static Silk.NET.DirectX.D2D1_ANTIALIAS_MODE; +using static Silk.NET.DirectX.D2D1_BITMAP_INTERPOLATION_MODE; +using static Silk.NET.DirectX.D2D1_CAP_STYLE; +using static Silk.NET.DirectX.D2D1_DASH_STYLE; +using static Silk.NET.DirectX.D2D1_EXTEND_MODE; +using static Silk.NET.DirectX.D2D1_FEATURE_LEVEL; +using static Silk.NET.DirectX.D2D1_LAYER_OPTIONS; +using static Silk.NET.DirectX.D2D1_LINE_JOIN; +using static Silk.NET.DirectX.D2D1_PRESENT_OPTIONS; +using static Silk.NET.DirectX.D2D1_RENDER_TARGET_TYPE; +using static Silk.NET.DirectX.D2D1_RENDER_TARGET_USAGE; +using static Silk.NET.DirectX.D2D1_TEXT_ANTIALIAS_MODE; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public const float FloatMax = float.MaxValue; + + [NativeTypeName("D2D1_RECT_F")] + public static ref readonly D2D_RECT_F InfiniteRect => ref D2D_RECT_F.Infinite; + + [NativeTypeName("D2D1_MATRIX_3X2_F")] + public static ref readonly D2D_MATRIX_3X2_F IdentityMatrix => ref D2D_MATRIX_3X2_F.Identity; + + public static D2D1_ARC_SEGMENT ArcSegment( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point, + [NativeTypeName("const D2D1_SIZE_F &")] in D2D_SIZE_F size, + float rotationAngle, + D2D1_SWEEP_DIRECTION sweepDirection, + D2D1_ARC_SIZE arcSize + ) + { + D2D1_ARC_SEGMENT arcSegment = new D2D1_ARC_SEGMENT + { + point = point, + size = size, + rotationAngle = rotationAngle, + sweepDirection = sweepDirection, + arcSize = arcSize, + }; + return arcSegment; + } + + public static D2D1_BEZIER_SEGMENT BezierSegment( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point1, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point2, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point3 + ) + { + D2D1_BEZIER_SEGMENT bezierSegment = new D2D1_BEZIER_SEGMENT + { + point1 = point1, + point2 = point2, + point3 = point3, + }; + return bezierSegment; + } + + public static D2D1_BITMAP_BRUSH_PROPERTIES BitmapBrushProperties( + D2D1_EXTEND_MODE extendModeX = D2D1_EXTEND_MODE_CLAMP, + D2D1_EXTEND_MODE extendModeY = D2D1_EXTEND_MODE_CLAMP, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR + ) + { + D2D1_BITMAP_BRUSH_PROPERTIES bitmapBrushProperties; + bitmapBrushProperties.extendModeX = extendModeX; + bitmapBrushProperties.extendModeY = extendModeY; + bitmapBrushProperties.interpolationMode = interpolationMode; + return bitmapBrushProperties; + } + + public static D2D1_BITMAP_PROPERTIES BitmapProperties( + [NativeTypeName("const D2D1_PIXEL_FORMAT &")] in D2D1_PIXEL_FORMAT pixelFormat = default, + float dpiX = 96.0f, + float dpiY = 96.0f + ) + { + D2D1_BITMAP_PROPERTIES bitmapProperties; + bitmapProperties.pixelFormat = pixelFormat; + bitmapProperties.dpiX = dpiX; + bitmapProperties.dpiY = dpiY; + return bitmapProperties; + } + + public static D2D1_BRUSH_PROPERTIES BrushProperties(float opacity = 1.0f) + { + return BrushProperties(opacity, IdentityMatrix); + } + + public static D2D1_BRUSH_PROPERTIES BrushProperties( + [Optional, DefaultParameterValue(1.0f)] float opacity, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F transform + ) + { + D2D1_BRUSH_PROPERTIES brushProperties; + brushProperties.opacity = opacity; + brushProperties.transform = transform; + return brushProperties; + } + + public static D2D1_DRAWING_STATE_DESCRIPTION DrawingStateDescription( + D2D1_ANTIALIAS_MODE antialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode = D2D1_TEXT_ANTIALIAS_MODE_DEFAULT, + [NativeTypeName("D2D1_TAG")] ulong tag1 = 0, + [NativeTypeName("D2D1_TAG")] ulong tag2 = 0 + ) + { + return DrawingStateDescription( + antialiasMode, + textAntialiasMode, + tag1, + tag2, + IdentityMatrix + ); + } + + public static D2D1_DRAWING_STATE_DESCRIPTION DrawingStateDescription( + [Optional] D2D1_ANTIALIAS_MODE antialiasMode, + [Optional] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode, + [NativeTypeName("D2D1_TAG"), Optional] ulong tag1, + [NativeTypeName("D2D1_TAG"), Optional] ulong tag2, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] D2D_MATRIX_3X2_F transform + ) + { + D2D1_DRAWING_STATE_DESCRIPTION drawingStateDescription; + drawingStateDescription.antialiasMode = antialiasMode; + drawingStateDescription.textAntialiasMode = textAntialiasMode; + drawingStateDescription.tag1 = tag1; + drawingStateDescription.tag2 = tag2; + drawingStateDescription.transform = transform; + return drawingStateDescription; + } + + public static D2D1_ELLIPSE Ellipse( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F center, + float radiusX, + float radiusY + ) + { + D2D1_ELLIPSE ellipse; + ellipse.point = center; + ellipse.radiusX = radiusX; + ellipse.radiusY = radiusY; + return ellipse; + } + + public static D2D1_GRADIENT_STOP GradientStop( + float position, + [NativeTypeName("const D2D1_COLOR_F &")] in DXGI_RGBA color + ) + { + D2D1_GRADIENT_STOP gradientStop = new D2D1_GRADIENT_STOP + { + position = position, + color = color, + }; + return gradientStop; + } + + public static D2D1_HWND_RENDER_TARGET_PROPERTIES HwndRenderTargetProperties( + HWND hwnd, + [NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U pixelSize = default, + D2D1_PRESENT_OPTIONS presentOptions = D2D1_PRESENT_OPTIONS_NONE + ) + { + D2D1_HWND_RENDER_TARGET_PROPERTIES hwndRenderTargetProperties; + hwndRenderTargetProperties.hwnd = hwnd; + hwndRenderTargetProperties.pixelSize = pixelSize; + hwndRenderTargetProperties.presentOptions = presentOptions; + return hwndRenderTargetProperties; + } + + public static D2D1_LAYER_PARAMETERS LayerParameters( + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + { + return LayerParameters( + InfiniteRect, + geometricMask, + maskAntialiasMode, + IdentityMatrix, + opacity, + opacityBrush, + layerOptions + ); + } + + public static D2D1_LAYER_PARAMETERS LayerParameters( + [NativeTypeName("const D2D1_RECT_F")] in D2D_RECT_F contentBounds, + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + { + return LayerParameters( + contentBounds, + geometricMask, + maskAntialiasMode, + IdentityMatrix, + opacity, + opacityBrush, + layerOptions + ); + } + + public static D2D1_LAYER_PARAMETERS LayerParameters( + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + [NativeTypeName("D2D1_MATRIX_3X2_F")] D2D_MATRIX_3X2_F maskTransform, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + { + return LayerParameters( + InfiniteRect, + geometricMask, + maskAntialiasMode, + maskTransform, + opacity, + opacityBrush, + layerOptions + ); + } + + public static D2D1_LAYER_PARAMETERS LayerParameters( + [NativeTypeName("const D2D1_RECT_F")] in D2D_RECT_F contentBounds, + [Optional] ID2D1Geometry geometricMask, + [Optional] D2D1_ANTIALIAS_MODE maskAntialiasMode, + [NativeTypeName("D2D1_MATRIX_3X2_F")] D2D_MATRIX_3X2_F maskTransform, + float opacity = 1.0f, + ID2D1Brush opacityBrush = default, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + { + D2D1_LAYER_PARAMETERS layerParameters = default; + layerParameters.contentBounds = contentBounds; + layerParameters.geometricMask = geometricMask; + layerParameters.maskAntialiasMode = maskAntialiasMode; + layerParameters.maskTransform = maskTransform; + layerParameters.opacity = opacity; + layerParameters.opacityBrush = opacityBrush; + layerParameters.layerOptions = layerOptions; + return layerParameters; + } + + public static D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES LinearGradientBrushProperties( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F startPoint, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F endPoint + ) + { + D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES linearGradientBrushProperties; + linearGradientBrushProperties.startPoint = startPoint; + linearGradientBrushProperties.endPoint = endPoint; + return linearGradientBrushProperties; + } + + public static D2D1_PIXEL_FORMAT PixelFormat( + DXGI_FORMAT dxgiFormat = DXGI_FORMAT_UNKNOWN, + D2D1_ALPHA_MODE alphaMode = D2D1_ALPHA_MODE_UNKNOWN + ) + { + D2D1_PIXEL_FORMAT pixelFormat; + pixelFormat.format = dxgiFormat; + pixelFormat.alphaMode = alphaMode; + return pixelFormat; + } + + [return: NativeTypeName("D2D1_POINT_2F")] + public static D2D_POINT_2F Point2F(float x = 0.0f, float y = 0.0f) + { + D2D_POINT_2F point = new D2D_POINT_2F { x = x, y = y }; + return point; + } + + [return: NativeTypeName("D2D1_POINT_2U")] + public static D2D_POINT_2U Point2U( + [NativeTypeName("UINT32")] uint x = 0, + [NativeTypeName("UINT32")] uint y = 0 + ) + { + D2D_POINT_2U point = new D2D_POINT_2U { x = x, y = y }; + return point; + } + + public static D2D1_QUADRATIC_BEZIER_SEGMENT QuadraticBezierSegment( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point1, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point2 + ) + { + D2D1_QUADRATIC_BEZIER_SEGMENT quadraticBezier = new D2D1_QUADRATIC_BEZIER_SEGMENT + { + point1 = point1, + point2 = point2, + }; + return quadraticBezier; + } + + public static D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES RadialGradientBrushProperties( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F center, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F gradientOriginOffset, + float radiusX, + float radiusY + ) + { + D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES radialGradientBrushProperties; + radialGradientBrushProperties.center = center; + radialGradientBrushProperties.gradientOriginOffset = gradientOriginOffset; + radialGradientBrushProperties.radiusX = radiusX; + radialGradientBrushProperties.radiusY = radiusY; + return radialGradientBrushProperties; + } + + [return: NativeTypeName("D2D1_RECT_F")] + public static D2D_RECT_F RectF( + float left = 0.0f, + float top = 0.0f, + float right = 0.0f, + float bottom = 0.0f + ) + { + D2D_RECT_F rect = new D2D_RECT_F + { + left = left, + top = top, + right = right, + bottom = bottom, + }; + return rect; + } + + [return: NativeTypeName("D2D1_RECT_U")] + public static D2D_RECT_U RectU( + [NativeTypeName("UINT32")] uint left = 0, + [NativeTypeName("UINT32")] uint top = 0, + [NativeTypeName("UINT32")] uint right = 0, + [NativeTypeName("UINT32")] uint bottom = 0 + ) + { + D2D_RECT_U rect = new D2D_RECT_U + { + left = left, + top = top, + right = right, + bottom = bottom, + }; + return rect; + } + + public static D2D1_RENDER_TARGET_PROPERTIES RenderTargetProperties( + D2D1_RENDER_TARGET_TYPE type = D2D1_RENDER_TARGET_TYPE_DEFAULT, + [NativeTypeName("const D2D1_PIXEL_FORMAT &")] in D2D1_PIXEL_FORMAT pixelFormat = default, + float dpiX = 0.0f, + float dpiY = 0.0f, + D2D1_RENDER_TARGET_USAGE usage = D2D1_RENDER_TARGET_USAGE_NONE, + D2D1_FEATURE_LEVEL minLevel = D2D1_FEATURE_LEVEL_DEFAULT + ) + { + D2D1_RENDER_TARGET_PROPERTIES renderTargetProperties; + renderTargetProperties.type = type; + renderTargetProperties.pixelFormat = pixelFormat; + renderTargetProperties.dpiX = dpiX; + renderTargetProperties.dpiY = dpiY; + renderTargetProperties.usage = usage; + renderTargetProperties.minLevel = minLevel; + return renderTargetProperties; + } + + public static D2D1_ROUNDED_RECT RoundedRect( + [NativeTypeName("const D2D1_RECT_F")] in D2D_RECT_F rect, + float radiusX, + float radiusY + ) + { + D2D1_ROUNDED_RECT roundedRect; + roundedRect.rect = rect; + roundedRect.radiusX = radiusX; + roundedRect.radiusY = radiusY; + return roundedRect; + } + + [return: NativeTypeName("D2D1_SIZE_F")] + public static D2D_SIZE_F SizeF(float width = 0.0f, float height = 0.0f) + { + D2D_SIZE_F size = new D2D_SIZE_F { width = width, height = height }; + return size; + } + + [return: NativeTypeName("D2D1_SIZE_U")] + public static D2D_SIZE_U SizeU( + [NativeTypeName("UINT32")] uint width = 0, + [NativeTypeName("UINT32")] uint height = 0 + ) + { + D2D_SIZE_U size = new D2D_SIZE_U { width = width, height = height }; + return size; + } + + public static D2D1_STROKE_STYLE_PROPERTIES StrokeStyleProperties( + D2D1_CAP_STYLE startCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE endCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE dashCap = D2D1_CAP_STYLE_FLAT, + D2D1_LINE_JOIN lineJoin = D2D1_LINE_JOIN_MITER, + float miterLimit = 10.0f, + D2D1_DASH_STYLE dashStyle = D2D1_DASH_STYLE_SOLID, + float dashOffset = 0.0f + ) + { + D2D1_STROKE_STYLE_PROPERTIES strokeStyleProperties; + strokeStyleProperties.startCap = startCap; + strokeStyleProperties.endCap = endCap; + strokeStyleProperties.dashCap = dashCap; + strokeStyleProperties.lineJoin = lineJoin; + strokeStyleProperties.miterLimit = miterLimit; + strokeStyleProperties.dashStyle = dashStyle; + strokeStyleProperties.dashOffset = dashOffset; + return strokeStyleProperties; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10/D3D10_BUFFER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_BUFFER_DESC.Manual.cs new file mode 100644 index 0000000000..e78038f5d3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_BUFFER_DESC.Manual.cs @@ -0,0 +1,24 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D10_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D10_BUFFER_DESC +{ + public D3D10_BUFFER_DESC( + uint byteWidth, + uint bindFlags, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0 + ) + { + ByteWidth = byteWidth; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE1D_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE1D_DESC.Manual.cs new file mode 100644 index 0000000000..c62f71bcc1 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE1D_DESC.Manual.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D10_BIND_FLAG; +using static Silk.NET.DirectX.D3D10_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D10_TEXTURE1D_DESC +{ + public D3D10_TEXTURE1D_DESC( + DXGI_FORMAT format, + uint width, + uint arraySize = 1, + uint mipLevels = 0, + uint bindFlags = (uint)D3D10_BIND_SHADER_RESOURCE, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0 + ) + { + Width = width; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE2D_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE2D_DESC.Manual.cs new file mode 100644 index 0000000000..ae4b5e47e3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE2D_DESC.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D10_BIND_FLAG; +using static Silk.NET.DirectX.D3D10_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D10_TEXTURE2D_DESC +{ + public D3D10_TEXTURE2D_DESC( + DXGI_FORMAT format, + uint width, + uint height, + uint arraySize = 1, + uint mipLevels = 0, + uint bindFlags = (uint)D3D10_BIND_SHADER_RESOURCE, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint sampleCount = 1, + uint sampleQuality = 0, + uint miscFlags = 0 + ) + { + Width = width; + Height = height; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + SampleDesc.Count = sampleCount; + SampleDesc.Quality = sampleQuality; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE3D_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE3D_DESC.Manual.cs new file mode 100644 index 0000000000..fb8f44e574 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10/D3D10_TEXTURE3D_DESC.Manual.cs @@ -0,0 +1,33 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D10_BIND_FLAG; +using static Silk.NET.DirectX.D3D10_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D10_TEXTURE3D_DESC +{ + public D3D10_TEXTURE3D_DESC( + DXGI_FORMAT format, + uint width, + uint height, + uint depth, + uint mipLevels = 0, + uint bindFlags = (uint)D3D10_BIND_SHADER_RESOURCE, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0 + ) + { + Width = width; + Height = height; + Depth = depth; + MipLevels = mipLevels; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10/DirectX.Manual.cs new file mode 100644 index 0000000000..b82b8c590f --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10/DirectX.Manual.cs @@ -0,0 +1,84 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D10_FILTER_TYPE; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static bool D3D10_DECODE_IS_ANISOTROPIC_FILTER(D3D10_FILTER d3d10Filter) + { + return ( + ((int)(d3d10Filter) & (0x40)) != 0 + && (D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MIN_FILTER(d3d10Filter)) + && (D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MAG_FILTER(d3d10Filter)) + && (D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MIP_FILTER(d3d10Filter)) + ); + } + + public static bool D3D10_DECODE_IS_COMPARISON_FILTER(D3D10_FILTER d3d10Filter) + { + return ((int)(d3d10Filter) & (0x80)) != 0; + } + + public static bool D3D10_DECODE_IS_TEXT_1BIT_FILTER(D3D10_FILTER d3d10Filter) + { + return ((uint)(d3d10Filter) == (0x80000000)); + } + + public static D3D10_FILTER_TYPE D3D10_DECODE_MAG_FILTER(D3D10_FILTER d3d10Filter) + { + return ((D3D10_FILTER_TYPE)(((int)(d3d10Filter) >> (2)) & (0x3))); + } + + public static D3D10_FILTER_TYPE D3D10_DECODE_MIN_FILTER(D3D10_FILTER d3d10Filter) + { + return ((D3D10_FILTER_TYPE)(((int)(d3d10Filter) >> (4)) & (0x3))); + } + + public static D3D10_FILTER_TYPE D3D10_DECODE_MIP_FILTER(D3D10_FILTER d3d10Filter) + { + return ((D3D10_FILTER_TYPE)(((int)(d3d10Filter) >> (0)) & (0x3))); + } + + public static D3D10_FILTER D3D10_ENCODE_ANISOTROPIC_FILTER(bool bComparison) + { + return ( + (D3D10_FILTER)( + ( + (0x40) + | (int)D3D10_ENCODE_BASIC_FILTER( + (int)(D3D10_FILTER_TYPE_LINEAR), + (int)(D3D10_FILTER_TYPE_LINEAR), + (int)(D3D10_FILTER_TYPE_LINEAR), + bComparison + ) + ) + ) + ); + } + + public static D3D10_FILTER D3D10_ENCODE_BASIC_FILTER( + int min, + int mag, + int mip, + bool bComparison + ) + { + return ( + (D3D10_FILTER)( + ((bComparison) ? (0x80) : 0) + | (((min) & (0x3)) << (4)) + | (((mag) & (0x3)) << (2)) + | (((mip) & (0x3)) << (0)) + ) + ); + } + + public static HRESULT MAKE_D3D10_HRESULT(int code) => MAKE_HRESULT(1, _FACD3D10, code); + + public static HRESULT MAKE_D3D10_STATUS(int code) => MAKE_HRESULT(0, _FACD3D10, code); +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10effect/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10effect/DirectX.Manual.cs new file mode 100644 index 0000000000..3a2be8fdd5 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10effect/DirectX.Manual.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10effect.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static int D3D10_BYTES_FROM_BITS(int x) + { + return (((x) + 7) / 8); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d10shader/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d10shader/DirectX.Manual.cs new file mode 100644 index 0000000000..94c2f4b662 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d10shader/DirectX.Manual.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d10shader.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static int D3D10_TX_VERSION(int _Major, int _Minor) + { + return (('T' << 24) | ('X' << 16) | ((_Major) << 8) | (_Minor)); + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11.Manual.cs new file mode 100644 index 0000000000..185ee3db49 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class D3D11 +{ + public const int D3D11_OMAC_SIZE = 16; + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2AND1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x12, + 0x5F, + 0x69, + 0x86, + 0x0E, + 0x34, + 0x04, + 0x4F, + 0x9F, + 0xD3, + 0x92, + 0x53, + 0xDD, + 0x32, + 0x74, + 0x60, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BLEND_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BLEND_DESC.Manual.cs new file mode 100644 index 0000000000..4315a650fa --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BLEND_DESC.Manual.cs @@ -0,0 +1,289 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_BLEND_DESC +{ + public static ref readonly D3D11_BLEND_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BOX.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BOX.Manual.cs new file mode 100644 index 0000000000..835149eb80 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BOX.Manual.cs @@ -0,0 +1,38 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_BOX : IEquatable +{ + public D3D11_BOX(int Left, int Top, int Front, int Right, int Bottom, int Back) + { + left = (uint)Left; + top = (uint)Top; + front = (uint)Front; + right = (uint)Right; + bottom = (uint)Bottom; + back = (uint)Back; + } + + public static bool operator ==(D3D11_BOX l, D3D11_BOX r) + { + return (l.left == r.left) + && (l.top == r.top) + && (l.front == r.front) + && (l.right == r.right) + && (l.bottom == r.bottom) + && (l.back == r.back); + } + + public static bool operator !=(D3D11_BOX l, D3D11_BOX r) => !(l == r); + + public override readonly bool Equals(object? obj) => (obj is D3D11_BOX other) && Equals(other); + + public readonly bool Equals(D3D11_BOX other) => this == other; + + public override readonly int GetHashCode() => + HashCode.Combine(left, top, front, right, bottom, back); +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BUFFER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BUFFER_DESC.Manual.cs new file mode 100644 index 0000000000..79ca9882a8 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_BUFFER_DESC.Manual.cs @@ -0,0 +1,26 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_BUFFER_DESC +{ + public D3D11_BUFFER_DESC( + uint byteWidth, + uint bindFlags, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0, + uint structureByteStride = 0 + ) + { + ByteWidth = byteWidth; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + StructureByteStride = structureByteStride; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_COUNTER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_COUNTER_DESC.Manual.cs new file mode 100644 index 0000000000..954389eeda --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_COUNTER_DESC.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_COUNTER_DESC +{ + public D3D11_COUNTER_DESC(D3D11_COUNTER counter, uint miscFlags = 0) + { + Counter = counter; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCILOP_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCILOP_DESC.Manual.cs new file mode 100644 index 0000000000..d16cc0dc50 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCILOP_DESC.Manual.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_DEPTH_STENCILOP_DESC +{ + public static ref readonly D3D11_DEPTH_STENCILOP_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_DESC.Manual.cs new file mode 100644 index 0000000000..ee00134456 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_DESC.Manual.cs @@ -0,0 +1,113 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_DEPTH_STENCIL_DESC +{ + public static ref readonly D3D11_DEPTH_STENCIL_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x08, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D11_DEPTH_STENCIL_DESC( + BOOL depthEnable, + D3D11_DEPTH_WRITE_MASK depthWriteMask, + D3D11_COMPARISON_FUNC depthFunc, + BOOL stencilEnable, + [NativeTypeName("UINT8")] byte stencilReadMask, + [NativeTypeName("UINT8")] byte stencilWriteMask, + D3D11_STENCIL_OP frontStencilFailOp, + D3D11_STENCIL_OP frontStencilDepthFailOp, + D3D11_STENCIL_OP frontStencilPassOp, + D3D11_COMPARISON_FUNC frontStencilFunc, + D3D11_STENCIL_OP backStencilFailOp, + D3D11_STENCIL_OP backStencilDepthFailOp, + D3D11_STENCIL_OP backStencilPassOp, + D3D11_COMPARISON_FUNC backStencilFunc + ) + { + DepthEnable = depthEnable; + DepthWriteMask = depthWriteMask; + DepthFunc = depthFunc; + StencilEnable = stencilEnable; + StencilReadMask = stencilReadMask; + StencilWriteMask = stencilWriteMask; + FrontFace.StencilFailOp = frontStencilFailOp; + FrontFace.StencilDepthFailOp = frontStencilDepthFailOp; + FrontFace.StencilPassOp = frontStencilPassOp; + FrontFace.StencilFunc = frontStencilFunc; + BackFace.StencilFailOp = backStencilFailOp; + BackFace.StencilDepthFailOp = backStencilDepthFailOp; + BackFace.StencilPassOp = backStencilPassOp; + BackFace.StencilFunc = backStencilFunc; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.Manual.cs new file mode 100644 index 0000000000..c60c7a5437 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_DEPTH_STENCIL_VIEW_DESC.Manual.cs @@ -0,0 +1,187 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_DSV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_DEPTH_STENCIL_VIEW_DESC +{ + public D3D11_DEPTH_STENCIL_VIEW_DESC( + D3D11_DSV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0 + ) + { + Format = format; + ViewDimension = viewDimension; + Flags = flags; + Anonymous = default; + switch (viewDimension) + { + case D3D11_DSV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_DEPTH_STENCIL_VIEW_DESC( + ID3D11Texture1D pTex1D, + D3D11_DSV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0 + ) + { + ViewDimension = viewDimension; + Flags = flags; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_DSV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1 == arraySize)) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_DSV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_DEPTH_STENCIL_VIEW_DESC( + ID3D11Texture2D pTex2D, + D3D11_DSV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0 + ) + { + ViewDimension = viewDimension; + Flags = flags; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && ( + (D3D11_DSV_DIMENSION_TEXTURE2DARRAY == viewDimension) + || (D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY == viewDimension) + ) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1 == arraySize)) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_DSV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_QUERY_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_QUERY_DESC.Manual.cs new file mode 100644 index 0000000000..187fd3e1ac --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_QUERY_DESC.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_QUERY_DESC +{ + public D3D11_QUERY_DESC(D3D11_QUERY query, uint miscFlags = 0) + { + Query = query; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RASTERIZER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RASTERIZER_DESC.Manual.cs new file mode 100644 index 0000000000..5fa1b535c7 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RASTERIZER_DESC.Manual.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_RASTERIZER_DESC +{ + public static ref readonly D3D11_RASTERIZER_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D3D11_RASTERIZER_DESC( + D3D11_FILL_MODE fillMode, + D3D11_CULL_MODE cullMode, + BOOL frontCounterClockwise, + int depthBias, + float depthBiasClamp, + float slopeScaledDepthBias, + BOOL depthClipEnable, + BOOL scissorEnable, + BOOL multisampleEnable, + BOOL antialiasedLineEnable + ) + { + FillMode = fillMode; + CullMode = cullMode; + FrontCounterClockwise = frontCounterClockwise; + DepthBias = depthBias; + DepthBiasClamp = depthBiasClamp; + SlopeScaledDepthBias = slopeScaledDepthBias; + DepthClipEnable = depthClipEnable; + ScissorEnable = scissorEnable; + MultisampleEnable = multisampleEnable; + AntialiasedLineEnable = antialiasedLineEnable; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RENDER_TARGET_BLEND_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RENDER_TARGET_BLEND_DESC.Manual.cs new file mode 100644 index 0000000000..ce692356a4 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RENDER_TARGET_BLEND_DESC.Manual.cs @@ -0,0 +1,59 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_RENDER_TARGET_BLEND_DESC +{ + public static ref readonly D3D11_RENDER_TARGET_BLEND_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.Manual.cs new file mode 100644 index 0000000000..531428f0c2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_RENDER_TARGET_VIEW_DESC.Manual.cs @@ -0,0 +1,237 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_RTV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_RENDER_TARGET_VIEW_DESC +{ + public D3D11_RENDER_TARGET_VIEW_DESC( + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + Format = format; + ViewDimension = viewDimension; + Anonymous = default; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_BUFFER: + { + Anonymous.Buffer.Anonymous1.FirstElement = mipSlice; + Anonymous.Buffer.Anonymous2.NumElements = firstArraySlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE3D: + { + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstArraySlice; + Anonymous.Texture3D.WSize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_RENDER_TARGET_VIEW_DESC( + ID3D11Buffer param0, + DXGI_FORMAT format, + uint firstElement, + uint numElements + ) + { + Format = format; + ViewDimension = D3D11_RTV_DIMENSION_BUFFER; + Anonymous = default; + Anonymous.Buffer.Anonymous1.FirstElement = firstElement; + Anonymous.Buffer.Anonymous2.NumElements = numElements; + } + + public D3D11_RENDER_TARGET_VIEW_DESC( + ID3D11Texture1D pTex1D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_RTV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_RENDER_TARGET_VIEW_DESC( + ID3D11Texture2D pTex2D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && ( + (D3D11_RTV_DIMENSION_TEXTURE2DARRAY == viewDimension) + || (D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY == viewDimension) + ) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_RENDER_TARGET_VIEW_DESC( + ID3D11Texture3D pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstWSlice = 0, + uint wSize = unchecked((uint)-1) + ) + { + ViewDimension = D3D11_RTV_DIMENSION_TEXTURE3D; + if ((DXGI_FORMAT_UNKNOWN == format) || (unchecked((uint)-1) == wSize)) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == wSize) + { + wSize = TexDesc.Depth - firstWSlice; + } + } + Format = format; + Anonymous = default; + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstWSlice; + Anonymous.Texture3D.WSize = wSize; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_SAMPLER_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_SAMPLER_DESC.Manual.cs new file mode 100644 index 0000000000..ae83893447 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_SAMPLER_DESC.Manual.cs @@ -0,0 +1,110 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_SAMPLER_DESC +{ + public static ref readonly D3D11_SAMPLER_DESC DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x15, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x80, + 0x3F, + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D3D11_SAMPLER_DESC( + D3D11_FILTER filter, + D3D11_TEXTURE_ADDRESS_MODE addressU, + D3D11_TEXTURE_ADDRESS_MODE addressV, + D3D11_TEXTURE_ADDRESS_MODE addressW, + float mipLODBias, + uint maxAnisotropy, + D3D11_COMPARISON_FUNC comparisonFunc, + [NativeTypeName("FLOAT [4]")] float* borderColor, + float minLOD, + float maxLOD + ) + { + Filter = filter; + AddressU = addressU; + AddressV = addressV; + AddressW = addressW; + MipLODBias = mipLODBias; + MaxAnisotropy = maxAnisotropy; + ComparisonFunc = comparisonFunc; + var defaultColor = stackalloc float[4] { 1.0f, 1.0f, 1.0f, 1.0f }; + if (borderColor == null) + { + borderColor = defaultColor; + } + BorderColor[0] = borderColor[0]; + BorderColor[1] = borderColor[1]; + BorderColor[2] = borderColor[2]; + BorderColor[3] = borderColor[3]; + MinLOD = minLOD; + MaxLOD = maxLOD; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.Manual.cs new file mode 100644 index 0000000000..45897a00a2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_SHADER_RESOURCE_VIEW_DESC.Manual.cs @@ -0,0 +1,302 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D_SRV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_SHADER_RESOURCE_VIEW_DESC +{ + public D3D11_SHADER_RESOURCE_VIEW_DESC( + D3D_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1), + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0 + ) + { + Format = format; + ViewDimension = viewDimension; + Anonymous = default; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_BUFFER: + { + Anonymous.Buffer.Anonymous1.FirstElement = mostDetailedMip; + Anonymous.Buffer.Anonymous2.NumElements = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1DArray.MipLevels = mipLevels; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2DArray.MipLevels = mipLevels; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE3D: + { + Anonymous.Texture3D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture3D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBE: + { + Anonymous.TextureCube.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCube.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + { + Anonymous.TextureCubeArray.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCubeArray.MipLevels = mipLevels; + Anonymous.TextureCubeArray.First2DArrayFace = firstArraySlice; + Anonymous.TextureCubeArray.NumCubes = arraySize; + break; + } + case D3D11_SRV_DIMENSION_BUFFEREX: + { + Anonymous.BufferEx.FirstElement = mostDetailedMip; + Anonymous.BufferEx.NumElements = mipLevels; + Anonymous.BufferEx.Flags = flags; + break; + } + default: + { + break; + } + } + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC( + ID3D11Buffer param0, + DXGI_FORMAT format, + uint firstElement, + uint numElements, + uint flags = 0 + ) + { + Format = format; + ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX; + Anonymous = default; + Anonymous.BufferEx.FirstElement = firstElement; + Anonymous.BufferEx.NumElements = numElements; + Anonymous.BufferEx.Flags = flags; + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC( + ID3D11Texture1D pTex1D, + D3D_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1), + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || (unchecked((uint)-1) == mipLevels) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_SRV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == mipLevels) + { + mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1DArray.MipLevels = mipLevels; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC( + ID3D11Texture2D pTex2D, + D3D_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1), + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == mipLevels) + && (D3D11_SRV_DIMENSION_TEXTURE2DMS != viewDimension) + && (D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY != viewDimension) + ) + || ( + (unchecked((uint)-1) == arraySize) + && ( + (D3D11_SRV_DIMENSION_TEXTURE2DARRAY == viewDimension) + || (D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY == viewDimension) + || (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) + ) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == mipLevels) + { + mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + if (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) + { + arraySize /= 6; + } + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2DArray.MipLevels = mipLevels; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBE: + { + Anonymous.TextureCube.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCube.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + { + Anonymous.TextureCubeArray.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCubeArray.MipLevels = mipLevels; + Anonymous.TextureCubeArray.First2DArrayFace = firstArraySlice; + Anonymous.TextureCubeArray.NumCubes = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC( + ID3D11Texture3D pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1) + ) + { + ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D; + if ((DXGI_FORMAT_UNKNOWN == format) || (unchecked((uint)-1) == mipLevels)) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == mipLevels) + { + mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + } + Format = format; + Anonymous = default; + Anonymous.Texture3D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture3D.MipLevels = mipLevels; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE1D_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE1D_DESC.Manual.cs new file mode 100644 index 0000000000..daa3fc9689 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE1D_DESC.Manual.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_BIND_FLAG; +using static Silk.NET.DirectX.D3D11_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_TEXTURE1D_DESC +{ + public D3D11_TEXTURE1D_DESC( + DXGI_FORMAT format, + uint width, + uint arraySize = 1, + uint mipLevels = 0, + uint bindFlags = (uint)D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0 + ) + { + Width = width; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE2D_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE2D_DESC.Manual.cs new file mode 100644 index 0000000000..7b5aeae8b1 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE2D_DESC.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_BIND_FLAG; +using static Silk.NET.DirectX.D3D11_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_TEXTURE2D_DESC +{ + public D3D11_TEXTURE2D_DESC( + DXGI_FORMAT format, + uint width, + uint height, + uint arraySize = 1, + uint mipLevels = 0, + uint bindFlags = (uint)D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint sampleCount = 1, + uint sampleQuality = 0, + uint miscFlags = 0 + ) + { + Width = width; + Height = height; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + SampleDesc.Count = sampleCount; + SampleDesc.Quality = sampleQuality; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE3D_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE3D_DESC.Manual.cs new file mode 100644 index 0000000000..f828a9ac21 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_TEXTURE3D_DESC.Manual.cs @@ -0,0 +1,33 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_BIND_FLAG; +using static Silk.NET.DirectX.D3D11_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_TEXTURE3D_DESC +{ + public D3D11_TEXTURE3D_DESC( + DXGI_FORMAT format, + uint width, + uint height, + uint depth, + uint mipLevels = 0, + uint bindFlags = (uint)D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0 + ) + { + Width = width; + Height = height; + Depth = depth; + MipLevels = mipLevels; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.Manual.cs new file mode 100644 index 0000000000..2157af6300 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_UNORDERED_ACCESS_VIEW_DESC.Manual.cs @@ -0,0 +1,218 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_UAV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_UNORDERED_ACCESS_VIEW_DESC +{ + public D3D11_UNORDERED_ACCESS_VIEW_DESC( + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0 + ) + { + Format = format; + ViewDimension = viewDimension; + Anonymous = default; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_BUFFER: + { + Anonymous.Buffer.FirstElement = mipSlice; + Anonymous.Buffer.NumElements = firstArraySlice; + Anonymous.Buffer.Flags = flags; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE3D: + { + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstArraySlice; + Anonymous.Texture3D.WSize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC( + ID3D11Buffer param0, + DXGI_FORMAT format, + uint firstElement, + uint numElements, + uint flags = 0 + ) + { + Format = format; + ViewDimension = D3D11_UAV_DIMENSION_BUFFER; + Anonymous = default; + Anonymous.Buffer.FirstElement = firstElement; + Anonymous.Buffer.NumElements = numElements; + Anonymous.Buffer.Flags = flags; + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC( + ID3D11Texture1D pTex1D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_UAV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC( + ID3D11Texture2D pTex2D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_UAV_DIMENSION_TEXTURE2DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC( + ID3D11Texture3D pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstWSlice = 0, + uint wSize = unchecked((uint)-1) + ) + { + ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D; + if ((DXGI_FORMAT_UNKNOWN == format) || (unchecked((uint)-1) == wSize)) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == wSize) + { + wSize = TexDesc.Depth - firstWSlice; + } + } + Format = format; + Anonymous = default; + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstWSlice; + Anonymous.Texture3D.WSize = wSize; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs new file mode 100644 index 0000000000..835dbcdb6a --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs @@ -0,0 +1,200 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using static Silk.NET.DirectX.D3D11; +using static Silk.NET.DirectX.D3D11_RTV_DIMENSION; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_VIEWPORT : IEquatable +{ + public D3D11_VIEWPORT( + float topLeftX, + float topLeftY, + float width, + float height, + float minDepth = D3D11_MIN_DEPTH, + float maxDepth = D3D11_MAX_DEPTH + ) + { + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = width; + Height = height; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + + public D3D11_VIEWPORT( + ID3D11Buffer param0, + ID3D11RenderTargetView pRTView, + float topLeftX = 0.0f, + float minDepth = D3D11_MIN_DEPTH, + float maxDepth = D3D11_MAX_DEPTH + ) + { + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView.GetDesc(&RTVDesc); + uint NumElements = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_BUFFER: + { + NumElements = RTVDesc.Anonymous.Buffer.Anonymous2.NumElements; + break; + } + default: + { + break; + } + } + TopLeftX = topLeftX; + TopLeftY = 0.0f; + Width = NumElements - topLeftX; + Height = 1.0f; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + + public D3D11_VIEWPORT( + ID3D11Texture1D pTex1D, + ID3D11RenderTargetView pRTView, + float topLeftX = 0.0f, + float minDepth = D3D11_MIN_DEPTH, + float maxDepth = D3D11_MAX_DEPTH + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView.GetDesc(&RTVDesc); + uint MipSlice = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE1D: + { + MipSlice = RTVDesc.Anonymous.Texture1D.MipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + { + MipSlice = RTVDesc.Anonymous.Texture1DArray.MipSlice; + break; + } + default: + { + break; + } + } + var SubResourceWidth = TexDesc.Width / (1u << unchecked((int)MipSlice)); + TopLeftX = topLeftX; + TopLeftY = 0.0f; + Width = ((SubResourceWidth != 0) ? SubResourceWidth : 1) - topLeftX; + Height = 1.0f; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + + public D3D11_VIEWPORT( + ID3D11Texture2D pTex2D, + ID3D11RenderTargetView pRTView, + float topLeftX = 0.0f, + float topLeftY = 0.0f, + float minDepth = D3D11_MIN_DEPTH, + float maxDepth = D3D11_MAX_DEPTH + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView.GetDesc(&RTVDesc); + uint MipSlice = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE2D: + { + MipSlice = RTVDesc.Anonymous.Texture2D.MipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + { + MipSlice = RTVDesc.Anonymous.Texture2DArray.MipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + { + break; + } + default: + { + break; + } + } + var SubResourceWidth = TexDesc.Width / (1u << unchecked((int)MipSlice)); + var SubResourceHeight = TexDesc.Height / (1u << unchecked((int)MipSlice)); + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = ((SubResourceWidth != 0) ? SubResourceWidth : 1) - topLeftX; + Height = ((SubResourceHeight != 0) ? SubResourceHeight : 1) - topLeftY; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + + public D3D11_VIEWPORT( + ID3D11Texture3D pTex3D, + ID3D11RenderTargetView pRTView, + float topLeftX = 0.0f, + float topLeftY = 0.0f, + float minDepth = D3D11_MIN_DEPTH, + float maxDepth = D3D11_MAX_DEPTH + ) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView.GetDesc(&RTVDesc); + uint MipSlice = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE3D: + { + MipSlice = RTVDesc.Anonymous.Texture3D.MipSlice; + break; + } + default: + { + break; + } + } + var SubResourceWidth = TexDesc.Width / (1u << unchecked((int)MipSlice)); + var SubResourceHeight = TexDesc.Height / (1u << unchecked((int)MipSlice)); + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = ((SubResourceWidth != 0) ? SubResourceWidth : 1) - topLeftX; + Height = ((SubResourceHeight != 0) ? SubResourceHeight : 1) - topLeftY; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + + public static bool operator ==(in D3D11_VIEWPORT l, in D3D11_VIEWPORT r) + { + return (l.TopLeftX == r.TopLeftX) + && (l.TopLeftY == r.TopLeftY) + && (l.Width == r.Width) + && (l.Height == r.Height) + && (l.MinDepth == r.MinDepth) + && (l.MaxDepth == r.MaxDepth); + } + + public static bool operator !=(in D3D11_VIEWPORT l, in D3D11_VIEWPORT r) => !(l == r); + + public override readonly bool Equals(object? obj) => + (obj is D3D11_VIEWPORT other) && Equals(other); + + public readonly bool Equals(D3D11_VIEWPORT other) => this == other; + + public override readonly int GetHashCode() => + HashCode.Combine(TopLeftX, TopLeftY, Width, Height, MinDepth, MaxDepth); +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11/DirectX.Manual.cs new file mode 100644 index 0000000000..dbb12207d4 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11/DirectX.Manual.cs @@ -0,0 +1,96 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.DirectX.D3D11; +using static Silk.NET.DirectX.D3D11_FILTER_REDUCTION_TYPE; +using static Silk.NET.DirectX.D3D11_FILTER_TYPE; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static D3D11_FILTER_REDUCTION_TYPE D3D11_DECODE_FILTER_REDUCTION( + D3D11_FILTER D3D11Filter + ) + { + return (D3D11_FILTER_REDUCTION_TYPE)( + ((int)D3D11Filter >> D3D11_FILTER_REDUCTION_TYPE_SHIFT) + & D3D11_FILTER_REDUCTION_TYPE_MASK + ); + } + + public static bool D3D11_DECODE_IS_ANISOTROPIC_FILTER(D3D11_FILTER D3D11Filter) + { + return (((int)D3D11Filter & D3D11_ANISOTROPIC_FILTERING_BIT) != 0) + && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(D3D11Filter)) + && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(D3D11Filter)) + && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(D3D11Filter)); + } + + public static bool D3D11_DECODE_IS_COMPARISON_FILTER(D3D11_FILTER D3D11Filter) + { + return D3D11_DECODE_FILTER_REDUCTION(D3D11Filter) == D3D11_FILTER_REDUCTION_TYPE_COMPARISON; + } + + public static D3D11_FILTER_TYPE D3D11_DECODE_MAG_FILTER(D3D11_FILTER D3D11Filter) + { + return (D3D11_FILTER_TYPE)( + ((int)D3D11Filter >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK + ); + } + + public static D3D11_FILTER_TYPE D3D11_DECODE_MIN_FILTER(D3D11_FILTER D3D11Filter) + { + return (D3D11_FILTER_TYPE)( + ((int)D3D11Filter >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK + ); + } + + public static D3D11_FILTER_TYPE D3D11_DECODE_MIP_FILTER(D3D11_FILTER D3D11Filter) + { + return (D3D11_FILTER_TYPE)( + ((int)D3D11Filter >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK + ); + } + + public static D3D11_FILTER D3D11_ENCODE_ANISOTROPIC_FILTER( + D3D11_FILTER_REDUCTION_TYPE reduction + ) + { + return (D3D11_FILTER)( + D3D11_ANISOTROPIC_FILTERING_BIT + | (int)D3D11_ENCODE_BASIC_FILTER( + D3D11_FILTER_TYPE_LINEAR, + D3D11_FILTER_TYPE_LINEAR, + D3D11_FILTER_TYPE_LINEAR, + reduction + ) + ); + } + + public static D3D11_FILTER D3D11_ENCODE_BASIC_FILTER( + D3D11_FILTER_TYPE min, + D3D11_FILTER_TYPE mag, + D3D11_FILTER_TYPE mip, + D3D11_FILTER_REDUCTION_TYPE reduction + ) + { + return (D3D11_FILTER)( + (((int)min & D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) + | (((int)mag & D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) + | (((int)mip & D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT) + | ( + ((int)reduction & D3D11_FILTER_REDUCTION_TYPE_MASK) + << D3D11_FILTER_REDUCTION_TYPE_SHIFT + ) + ); + } + + public static HRESULT MAKE_D3D11_HRESULT(int code) => + MAKE_HRESULT(1, unchecked((int)_FACD3D11), code); + + public static HRESULT MAKE_D3D11_STATUS(int code) => + MAKE_HRESULT(0, unchecked((int)_FACD3D11), code); +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.Manual.cs new file mode 100644 index 0000000000..a0da3d0ec1 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_BLEND_DESC1.Manual.cs @@ -0,0 +1,353 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_1.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_BLEND_DESC1 +{ + public static ref readonly D3D11_BLEND_DESC1 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_RASTERIZER_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_RASTERIZER_DESC1.Manual.cs new file mode 100644 index 0000000000..acb69dd1d4 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_RASTERIZER_DESC1.Manual.cs @@ -0,0 +1,99 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_1.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_RASTERIZER_DESC1 +{ + public static ref readonly D3D11_RASTERIZER_DESC1 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D11_RASTERIZER_DESC1( + D3D11_FILL_MODE fillMode, + D3D11_CULL_MODE cullMode, + BOOL frontCounterClockwise, + int depthBias, + float depthBiasClamp, + float slopeScaledDepthBias, + BOOL depthClipEnable, + BOOL scissorEnable, + BOOL multisampleEnable, + BOOL antialiasedLineEnable, + uint forcedSampleCount + ) + { + FillMode = fillMode; + CullMode = cullMode; + FrontCounterClockwise = frontCounterClockwise; + DepthBias = depthBias; + DepthBiasClamp = depthBiasClamp; + SlopeScaledDepthBias = slopeScaledDepthBias; + DepthClipEnable = depthClipEnable; + ScissorEnable = scissorEnable; + MultisampleEnable = multisampleEnable; + AntialiasedLineEnable = antialiasedLineEnable; + ForcedSampleCount = forcedSampleCount; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_RENDER_TARGET_BLEND_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_RENDER_TARGET_BLEND_DESC1.Manual.cs new file mode 100644 index 0000000000..9998ec4da0 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_1/D3D11_RENDER_TARGET_BLEND_DESC1.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_1.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_RENDER_TARGET_BLEND_DESC1 +{ + public static ref readonly D3D11_RENDER_TARGET_BLEND_DESC1 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x02, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x04, + 0x00, + 0x00, + 0x00, + 0x0F, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_QUERY_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_QUERY_DESC1.Manual.cs new file mode 100644 index 0000000000..5f879c23e3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_QUERY_DESC1.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_CONTEXT_TYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_QUERY_DESC1 +{ + public D3D11_QUERY_DESC1( + D3D11_QUERY query, + uint miscFlags = 0, + D3D11_CONTEXT_TYPE contextType = D3D11_CONTEXT_TYPE_ALL + ) + { + Query = query; + MiscFlags = miscFlags; + ContextType = contextType; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_RASTERIZER_DESC2.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_RASTERIZER_DESC2.Manual.cs new file mode 100644 index 0000000000..ff287c19f3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_RASTERIZER_DESC2.Manual.cs @@ -0,0 +1,105 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D3D11_RASTERIZER_DESC2 +{ + public static ref readonly D3D11_RASTERIZER_DESC2 DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x03, + 0x00, + 0x00, + 0x00, + 0x03, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + + public D3D11_RASTERIZER_DESC2( + D3D11_FILL_MODE fillMode, + D3D11_CULL_MODE cullMode, + BOOL frontCounterClockwise, + int depthBias, + float depthBiasClamp, + float slopeScaledDepthBias, + BOOL depthClipEnable, + BOOL scissorEnable, + BOOL multisampleEnable, + BOOL antialiasedLineEnable, + uint forcedSampleCount, + D3D11_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster + ) + { + FillMode = fillMode; + CullMode = cullMode; + FrontCounterClockwise = frontCounterClockwise; + DepthBias = depthBias; + DepthBiasClamp = depthBiasClamp; + SlopeScaledDepthBias = slopeScaledDepthBias; + DepthClipEnable = depthClipEnable; + ScissorEnable = scissorEnable; + MultisampleEnable = multisampleEnable; + AntialiasedLineEnable = antialiasedLineEnable; + ForcedSampleCount = forcedSampleCount; + ConservativeRaster = conservativeRaster; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.Manual.cs new file mode 100644 index 0000000000..2428a730dd --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_RENDER_TARGET_VIEW_DESC1.Manual.cs @@ -0,0 +1,243 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_RTV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_RENDER_TARGET_VIEW_DESC1 +{ + public D3D11_RENDER_TARGET_VIEW_DESC1( + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint planeSlice = 0 + ) + { + Format = format; + ViewDimension = viewDimension; + Anonymous = default; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_BUFFER: + { + Anonymous.Buffer.Anonymous1.FirstElement = mipSlice; + Anonymous.Buffer.Anonymous2.NumElements = firstArraySlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + Anonymous.Texture2D.PlaneSlice = planeSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + Anonymous.Texture2DArray.PlaneSlice = planeSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE3D: + { + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstArraySlice; + Anonymous.Texture3D.WSize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_RENDER_TARGET_VIEW_DESC1( + ID3D11Buffer param0, + DXGI_FORMAT format, + uint firstElement, + uint numElements + ) + { + Format = format; + ViewDimension = D3D11_RTV_DIMENSION_BUFFER; + Anonymous = default; + Anonymous.Buffer.Anonymous1.FirstElement = firstElement; + Anonymous.Buffer.Anonymous2.NumElements = numElements; + } + + public D3D11_RENDER_TARGET_VIEW_DESC1( + ID3D11Texture1D pTex1D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_RTV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_RENDER_TARGET_VIEW_DESC1( + ID3D11Texture2D pTex2D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint planeSlice = 0 + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && ( + (D3D11_RTV_DIMENSION_TEXTURE2DARRAY == viewDimension) + || (D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY == viewDimension) + ) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + Anonymous.Texture2D.PlaneSlice = planeSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + Anonymous.Texture2DArray.PlaneSlice = planeSlice; + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_RENDER_TARGET_VIEW_DESC1( + ID3D11Texture3D pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstWSlice = 0, + uint wSize = unchecked((uint)-1) + ) + { + ViewDimension = D3D11_RTV_DIMENSION_TEXTURE3D; + if ((DXGI_FORMAT_UNKNOWN == format) || (unchecked((uint)-1) == wSize)) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == wSize) + { + wSize = TexDesc.Depth - firstWSlice; + } + } + Format = format; + Anonymous = default; + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstWSlice; + Anonymous.Texture3D.WSize = wSize; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.Manual.cs new file mode 100644 index 0000000000..9b7020194e --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_SHADER_RESOURCE_VIEW_DESC1.Manual.cs @@ -0,0 +1,308 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D_SRV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_SHADER_RESOURCE_VIEW_DESC1 +{ + public D3D11_SHADER_RESOURCE_VIEW_DESC1( + D3D_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1), + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0, + uint planeSlice = 0 + ) + { + Format = format; + ViewDimension = viewDimension; + Anonymous = default; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_BUFFER: + { + Anonymous.Buffer.Anonymous1.FirstElement = mostDetailedMip; + Anonymous.Buffer.Anonymous2.NumElements = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1DArray.MipLevels = mipLevels; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2D.MipLevels = mipLevels; + Anonymous.Texture2D.PlaneSlice = planeSlice; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2DArray.MipLevels = mipLevels; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + Anonymous.Texture2DArray.PlaneSlice = planeSlice; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE3D: + { + Anonymous.Texture3D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture3D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBE: + { + Anonymous.TextureCube.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCube.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + { + Anonymous.TextureCubeArray.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCubeArray.MipLevels = mipLevels; + Anonymous.TextureCubeArray.First2DArrayFace = firstArraySlice; + Anonymous.TextureCubeArray.NumCubes = arraySize; + break; + } + case D3D11_SRV_DIMENSION_BUFFEREX: + { + Anonymous.BufferEx.FirstElement = mostDetailedMip; + Anonymous.BufferEx.NumElements = mipLevels; + Anonymous.BufferEx.Flags = flags; + break; + } + default: + { + break; + } + } + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC1( + ID3D11Buffer param0, + DXGI_FORMAT format, + uint firstElement, + uint numElements, + uint flags = 0 + ) + { + Format = format; + ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX; + Anonymous = default; + Anonymous.BufferEx.FirstElement = firstElement; + Anonymous.BufferEx.NumElements = numElements; + Anonymous.BufferEx.Flags = flags; + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC1( + ID3D11Texture1D pTex1D, + D3D_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1), + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || (unchecked((uint)-1) == mipLevels) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_SRV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == mipLevels) + { + mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1D.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture1DArray.MipLevels = mipLevels; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC1( + ID3D11Texture2D pTex2D, + D3D_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1), + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint planeSlice = 0 + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == mipLevels) + && (D3D11_SRV_DIMENSION_TEXTURE2DMS != viewDimension) + && (D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY != viewDimension) + ) + || ( + (unchecked((uint)-1) == arraySize) + && ( + (D3D11_SRV_DIMENSION_TEXTURE2DARRAY == viewDimension) + || (D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY == viewDimension) + || (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) + ) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == mipLevels) + { + mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + if (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) + { + arraySize /= 6; + } + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2D.MipLevels = mipLevels; + Anonymous.Texture2D.PlaneSlice = planeSlice; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MostDetailedMip = mostDetailedMip; + Anonymous.Texture2DArray.MipLevels = mipLevels; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + Anonymous.Texture2DArray.PlaneSlice = planeSlice; + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + { + break; + } + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + { + Anonymous.Texture2DMSArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DMSArray.ArraySize = arraySize; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBE: + { + Anonymous.TextureCube.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCube.MipLevels = mipLevels; + break; + } + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + { + Anonymous.TextureCubeArray.MostDetailedMip = mostDetailedMip; + Anonymous.TextureCubeArray.MipLevels = mipLevels; + Anonymous.TextureCubeArray.First2DArrayFace = firstArraySlice; + Anonymous.TextureCubeArray.NumCubes = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_SHADER_RESOURCE_VIEW_DESC1( + ID3D11Texture3D pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mostDetailedMip = 0, + uint mipLevels = unchecked((uint)-1) + ) + { + ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D; + if ((DXGI_FORMAT_UNKNOWN == format) || (unchecked((uint)-1) == mipLevels)) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == mipLevels) + { + mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + } + Format = format; + Anonymous = default; + Anonymous.Texture3D.MostDetailedMip = mostDetailedMip; + Anonymous.Texture3D.MipLevels = mipLevels; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_TEXTURE2D_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_TEXTURE2D_DESC1.Manual.cs new file mode 100644 index 0000000000..4c8dbafc1d --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_TEXTURE2D_DESC1.Manual.cs @@ -0,0 +1,59 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_BIND_FLAG; +using static Silk.NET.DirectX.D3D11_TEXTURE_LAYOUT; +using static Silk.NET.DirectX.D3D11_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_TEXTURE2D_DESC1 +{ + public D3D11_TEXTURE2D_DESC1( + DXGI_FORMAT format, + uint width, + uint height, + uint arraySize = 1, + uint mipLevels = 0, + uint bindFlags = (uint)D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint sampleCount = 1, + uint sampleQuality = 0, + uint miscFlags = 0, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED + ) + { + Width = width; + Height = height; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + SampleDesc.Count = sampleCount; + SampleDesc.Quality = sampleQuality; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + TextureLayout = textureLayout; + } + + public D3D11_TEXTURE2D_DESC1( + [NativeTypeName("const D3D11_TEXTURE2D_DESC &")] D3D11_TEXTURE2D_DESC* desc, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED + ) + { + Width = desc->Width; + Height = desc->Height; + MipLevels = desc->MipLevels; + ArraySize = desc->ArraySize; + Format = desc->Format; + SampleDesc.Count = desc->SampleDesc.Count; + SampleDesc.Quality = desc->SampleDesc.Quality; + Usage = desc->Usage; + BindFlags = desc->BindFlags; + CPUAccessFlags = desc->CPUAccessFlags; + MiscFlags = desc->MiscFlags; + TextureLayout = textureLayout; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_TEXTURE3D_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_TEXTURE3D_DESC1.Manual.cs new file mode 100644 index 0000000000..a160d984d9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_TEXTURE3D_DESC1.Manual.cs @@ -0,0 +1,53 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_BIND_FLAG; +using static Silk.NET.DirectX.D3D11_TEXTURE_LAYOUT; +using static Silk.NET.DirectX.D3D11_USAGE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_TEXTURE3D_DESC1 +{ + public D3D11_TEXTURE3D_DESC1( + DXGI_FORMAT format, + uint width, + uint height, + uint depth, + uint mipLevels = 0, + uint bindFlags = (uint)D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + uint cpuaccessFlags = 0, + uint miscFlags = 0, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED + ) + { + Width = width; + Height = height; + Depth = depth; + MipLevels = mipLevels; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + TextureLayout = textureLayout; + } + + public D3D11_TEXTURE3D_DESC1( + [NativeTypeName("const D3D11_TEXTURE3D_DESC &")] D3D11_TEXTURE3D_DESC* desc, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED + ) + { + Width = desc->Width; + Height = desc->Height; + Depth = desc->Depth; + MipLevels = desc->MipLevels; + Format = desc->Format; + Usage = desc->Usage; + BindFlags = desc->BindFlags; + CPUAccessFlags = desc->CPUAccessFlags; + MiscFlags = desc->MiscFlags; + TextureLayout = textureLayout; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.Manual.cs new file mode 100644 index 0000000000..a52d4b84bb --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11_3/D3D11_UNORDERED_ACCESS_VIEW_DESC1.Manual.cs @@ -0,0 +1,224 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.D3D11_UAV_DIMENSION; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D3D11_UNORDERED_ACCESS_VIEW_DESC1 +{ + public D3D11_UNORDERED_ACCESS_VIEW_DESC1( + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint flags = 0, + uint planeSlice = 0 + ) + { + Format = format; + ViewDimension = viewDimension; + Anonymous = default; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_BUFFER: + { + Anonymous.Buffer.FirstElement = mipSlice; + Anonymous.Buffer.NumElements = firstArraySlice; + Anonymous.Buffer.Flags = flags; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + Anonymous.Texture2D.PlaneSlice = planeSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + Anonymous.Texture2DArray.PlaneSlice = planeSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE3D: + { + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstArraySlice; + Anonymous.Texture3D.WSize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC1( + ID3D11Buffer param0, + DXGI_FORMAT format, + uint firstElement, + uint numElements, + uint flags = 0 + ) + { + Format = format; + ViewDimension = D3D11_UAV_DIMENSION_BUFFER; + Anonymous = default; + Anonymous.Buffer.FirstElement = firstElement; + Anonymous.Buffer.NumElements = numElements; + Anonymous.Buffer.Flags = flags; + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC1( + ID3D11Texture1D pTex1D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1) + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_UAV_DIMENSION_TEXTURE1DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE1D: + { + Anonymous.Texture1D.MipSlice = mipSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + { + Anonymous.Texture1DArray.MipSlice = mipSlice; + Anonymous.Texture1DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture1DArray.ArraySize = arraySize; + break; + } + default: + { + break; + } + } + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC1( + ID3D11Texture2D pTex2D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstArraySlice = 0, + uint arraySize = unchecked((uint)-1), + uint planeSlice = 0 + ) + { + ViewDimension = viewDimension; + if ( + (DXGI_FORMAT_UNKNOWN == format) + || ( + (unchecked((uint)-1) == arraySize) + && (D3D11_UAV_DIMENSION_TEXTURE2DARRAY == viewDimension) + ) + ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + } + } + Format = format; + Anonymous = default; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE2D: + { + Anonymous.Texture2D.MipSlice = mipSlice; + Anonymous.Texture2D.PlaneSlice = planeSlice; + break; + } + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + { + Anonymous.Texture2DArray.MipSlice = mipSlice; + Anonymous.Texture2DArray.FirstArraySlice = firstArraySlice; + Anonymous.Texture2DArray.ArraySize = arraySize; + Anonymous.Texture2DArray.PlaneSlice = planeSlice; + break; + } + default: + { + break; + } + } + } + + public D3D11_UNORDERED_ACCESS_VIEW_DESC1( + ID3D11Texture3D pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + uint mipSlice = 0, + uint firstWSlice = 0, + uint wSize = unchecked((uint)-1) + ) + { + ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D; + if ((DXGI_FORMAT_UNKNOWN == format) || (unchecked((uint)-1) == wSize)) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D.GetDesc(&TexDesc); + if (DXGI_FORMAT_UNKNOWN == format) + { + format = TexDesc.Format; + } + if (unchecked((uint)-1) == wSize) + { + wSize = TexDesc.Depth - firstWSlice; + } + } + Format = format; + Anonymous = default; + Anonymous.Texture3D.MipSlice = mipSlice; + Anonymous.Texture3D.FirstWSlice = firstWSlice; + Anonymous.Texture3D.WSize = wSize; + } +} diff --git a/sources/Win32/Win32/DirectX/um/d3d11shader/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/d3d11shader/DirectX.Manual.cs new file mode 100644 index 0000000000..57b05c1e0e --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/d3d11shader/DirectX.Manual.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static int D3D11_SHVER_GET_MAJOR(int _Version) => (_Version >> 4) & 0xF; + + public static int D3D11_SHVER_GET_MINOR(int _Version) => (_Version >> 0) & 0xF; + + public static D3D11_SHADER_VERSION_TYPE D3D11_SHVER_GET_TYPE(int _Version) => + (D3D11_SHADER_VERSION_TYPE)((_Version >> 16) & 0xFFFF); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D1_PIXEL_FORMAT.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D1_PIXEL_FORMAT.Manual.cs new file mode 100644 index 0000000000..04697afd1a --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D1_PIXEL_FORMAT.Manual.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.D2D1_ALPHA_MODE; +using static Silk.NET.DirectX.DXGI_FORMAT; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D1_PIXEL_FORMAT +{ + public static ref readonly D2D1_PIXEL_FORMAT DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D2D1_PIXEL_FORMAT( + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + D2D1_ALPHA_MODE alphaMode = D2D1_ALPHA_MODE_UNKNOWN + ) + { + this.format = format; + this.alphaMode = alphaMode; + } +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_3X2_F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_3X2_F.Manual.cs new file mode 100644 index 0000000000..855b0083d9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_3X2_F.Manual.cs @@ -0,0 +1,214 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D2D_MATRIX_3X2_F : IEquatable +{ + public D2D_MATRIX_3X2_F(float m11, float m12, float m21, float m22, float dx, float dy) + { + Unsafe.SkipInit(out this); + this.m11 = m11; + this.m12 = m12; + this.m21 = m21; + this.m22 = m22; + this.dx = dx; + this.dy = dy; + } + + public static ref readonly D2D_MATRIX_3X2_F Identity + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public readonly float Determinant => + (Anonymous.Anonymous1.m11 * Anonymous.Anonymous1.m22) + - (Anonymous.Anonymous1.m12 * Anonymous.Anonymous1.m21); + public readonly bool IsInvertible + { + get + { + fixed (D2D_MATRIX_3X2_F* matrix = &this) + { + return D2D1IsMatrixInvertible(matrix) != 0; + } + } + } + public readonly bool IsIdentity + { + get + { + return (Anonymous.Anonymous1.m11 == 1.0f) + && (Anonymous.Anonymous1.m12 == 0.0f) + && (Anonymous.Anonymous1.m21 == 0.0f) + && (Anonymous.Anonymous1.m22 == 1.0f) + && (Anonymous.Anonymous1.dx == 0.0f) + && (Anonymous.Anonymous1.dy == 0.0f); + } + } + + public static D2D_MATRIX_3X2_F operator *( + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F a, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F b + ) + { + D2D_MATRIX_3X2_F result = default; + result.SetProduct(a, b); + return result; + } + + public static D2D_POINT_2F operator *( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F point, + [NativeTypeName("const D2D1_MATRIX_3X2_F &")] in D2D_MATRIX_3X2_F matrix + ) => matrix.TransformPoint(point); + + public static bool operator ==(D2D_MATRIX_3X2_F l, D2D_MATRIX_3X2_F r) + { + return (l.m11 == r.m11) + && (l.m12 == r.m12) + && (l.m21 == r.m21) + && (l.m22 == r.m22) + && (l.dx == r.dx) + && (l.dy == r.dy); + } + + public static bool operator !=(D2D_MATRIX_3X2_F l, D2D_MATRIX_3X2_F r) => !(l == r); + + public readonly bool Equals(D2D_MATRIX_3X2_F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_MATRIX_3X2_F other) && this == other; + + public override int GetHashCode() => HashCode.Combine(m11, m12, m21, m22, dx, dy); + + public bool Invert() + { + fixed (D2D_MATRIX_3X2_F* matrix = &this) + { + return D2D1InvertMatrix(matrix) != 0; + } + } + + public static D2D_MATRIX_3X2_F Rotation(float angle, D2D_POINT_2F center = default) + { + D2D_MATRIX_3X2_F rotation; + D2D1MakeRotateMatrix(angle, center, &rotation); + return rotation; + } + + public static D2D_MATRIX_3X2_F Scale( + [NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F size, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F center = default + ) + { + D2D_MATRIX_3X2_F scale = default; + scale.m11 = size.width; + scale.m12 = 0.0f; + scale.m21 = 0.0f; + scale.m22 = size.height; + scale.dx = center.x - size.width * center.x; + scale.dy = center.y - size.height * center.y; + return scale; + } + + public static D2D_MATRIX_3X2_F Scale( + float x, + float y, + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F center = default + ) + { + return Scale(new D2D_SIZE_F(x, y), center); + } + + public void SetProduct( + [NativeTypeName("const D2D1_MATRIX_3X2 &")] in D2D_MATRIX_3X2_F a, + [NativeTypeName("const D2D1_MATRIX_3X2 &")] in D2D_MATRIX_3X2_F b + ) + { + m11 = (a.m11 * b.m11) + (a.m12 * b.m21); + m12 = (a.m11 * b.m12) + (a.m12 * b.m22); + m21 = (a.m21 * b.m11) + (a.m22 * b.m21); + m22 = (a.m21 * b.m12) + (a.m22 * b.m22); + dx = (a.dx * b.m11) + (a.dy * b.m21) + b.dx; + dy = (a.dx * b.m12) + (a.dy * b.m22) + b.dy; + } + + public static D2D_MATRIX_3X2_F Skew(float angleX, float angleY, D2D_POINT_2F center = default) + { + D2D_MATRIX_3X2_F skew; + D2D1MakeSkewMatrix(angleX, angleY, center, &skew); + return skew; + } + + public readonly D2D_POINT_2F TransformPoint( + [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point + ) + { + D2D_POINT_2F result = new D2D_POINT_2F + { + x = + (point.x * Anonymous.Anonymous1.m11) + + (point.y * Anonymous.Anonymous1.m21) + + Anonymous.Anonymous1.dx, + y = + (point.x * Anonymous.Anonymous1.m12) + + (point.y * Anonymous.Anonymous1.m22) + + Anonymous.Anonymous1.dy, + }; + return result; + } + + public static D2D_MATRIX_3X2_F Translation([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F size) + { + D2D_MATRIX_3X2_F translation = default; + translation.m11 = 1.0f; + translation.m12 = 0.0f; + translation.m21 = 0.0f; + translation.m22 = 1.0f; + translation.dx = size.width; + translation.dy = size.height; + return translation; + } + + public static D2D_MATRIX_3X2_F Translation(float x, float y) + { + return Translation(new D2D_SIZE_F(x, y)); + } +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_4X3_F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_4X3_F.Manual.cs new file mode 100644 index 0000000000..5d5962c5fa --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_4X3_F.Manual.cs @@ -0,0 +1,152 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License._d in the repository root for more information. +// Ported from um/d2d1_1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_MATRIX_4X3_F : IEquatable +{ + public D2D_MATRIX_4X3_F( + float m11, + float m12, + float m13, + float m21, + float m22, + float m23, + float m31, + float m32, + float m33, + float m41, + float m42, + float m43 + ) + { + Unsafe.SkipInit(out this); + _11 = m11; + _12 = m12; + _13 = m13; + _21 = m21; + _22 = m22; + _23 = m23; + _31 = m31; + _32 = m32; + _33 = m33; + _41 = m41; + _42 = m42; + _43 = m43; + } + + public static ref readonly D2D_MATRIX_4X3_F Identity + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static bool operator ==( + [NativeTypeName("const D2D_MATRIX_4X3_F &")] in D2D_MATRIX_4X3_F l, + [NativeTypeName("const D2D_MATRIX_4X3_F &")] in D2D_MATRIX_4X3_F r + ) + { + return (l._11 == r._11) + && (l._12 == r._12) + && (l._13 == r._13) + && (l._21 == r._21) + && (l._22 == r._22) + && (l._23 == r._23) + && (l._31 == r._31) + && (l._32 == r._32) + && (l._33 == r._33) + && (l._41 == r._41) + && (l._42 == r._42) + && (l._43 == r._43); + } + + public static bool operator !=( + [NativeTypeName("const D2D_MATRIX_4X3_F &")] in D2D_MATRIX_4X3_F l, + [NativeTypeName("const D2D_MATRIX_4X3_F &")] in D2D_MATRIX_4X3_F r + ) => !(l == r); + + public readonly bool Equals(D2D_MATRIX_4X3_F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_MATRIX_4X3_F other) && this == other; + + public override int GetHashCode() + { + var hashCode = new HashCode(); + { + hashCode.Add(_11); + hashCode.Add(_12); + hashCode.Add(_13); + hashCode.Add(_21); + hashCode.Add(_22); + hashCode.Add(_23); + hashCode.Add(_31); + hashCode.Add(_32); + hashCode.Add(_33); + hashCode.Add(_41); + hashCode.Add(_42); + hashCode.Add(_43); + } + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_4X4_F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_4X4_F.Manual.cs new file mode 100644 index 0000000000..87cb6039d9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_4X4_F.Manual.cs @@ -0,0 +1,511 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License._d in the repository root for more information. +// Ported from um/d2d1_1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public unsafe partial struct D2D_MATRIX_4X4_F : IEquatable +{ + public D2D_MATRIX_4X4_F( + float m11, + float m12, + float m13, + float m14, + float m21, + float m22, + float m23, + float m24, + float m31, + float m32, + float m33, + float m34, + float m41, + float m42, + float m43, + float m44 + ) + { + Unsafe.SkipInit(out this); + _11 = m11; + _12 = m12; + _13 = m13; + _14 = m14; + _21 = m21; + _22 = m22; + _23 = m23; + _24 = m24; + _31 = m31; + _32 = m32; + _33 = m33; + _34 = m34; + _41 = m41; + _42 = m42; + _43 = m43; + _44 = m44; + } + + public static ref readonly D2D_MATRIX_4X4_F Identity + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static bool operator ==( + [NativeTypeName("const D2D1_MATRIX_4X4_F &")] in D2D_MATRIX_4X4_F l, + [NativeTypeName("const D2D1_MATRIX_4X4_F &")] in D2D_MATRIX_4X4_F r + ) + { + return (l._11 == r._11) + && (l._12 == r._12) + && (l._13 == r._13) + && (l._14 == r._14) + && (l._21 == r._21) + && (l._22 == r._22) + && (l._23 == r._23) + && (l._24 == r._24) + && (l._31 == r._31) + && (l._32 == r._32) + && (l._33 == r._33) + && (l._34 == r._34) + && (l._41 == r._41) + && (l._42 == r._42) + && (l._43 == r._43) + && (l._44 == r._44); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_MATRIX_4X4_F &")] in D2D_MATRIX_4X4_F l, + [NativeTypeName("const D2D1_MATRIX_4X4_F &")] in D2D_MATRIX_4X4_F r + ) => !(l == r); + + public float Determinant + { + get + { + float minor1 = + _41 + * ( + _12 * (_23 * _34 - _33 * _24) + - _13 * (_22 * _34 - _24 * _32) + + _14 * (_22 * _33 - _23 * _32) + ); + float minor2 = + _42 + * ( + _11 * (_21 * _34 - _31 * _24) + - _13 * (_21 * _34 - _24 * _31) + + _14 * (_21 * _33 - _23 * _31) + ); + float minor3 = + _43 + * ( + _11 * (_22 * _34 - _32 * _24) + - _12 * (_21 * _34 - _24 * _31) + + _14 * (_21 * _32 - _22 * _31) + ); + float minor4 = + _44 + * ( + _11 * (_22 * _33 - _32 * _23) + - _12 * (_21 * _33 - _23 * _31) + + _13 * (_21 * _32 - _22 * _31) + ); + return minor1 - minor2 + minor3 - minor4; + } + } + public bool IsIdentity + { + get + { + return (_11 == 1.0f) + && (_12 == 0.0f) + && (_13 == 0.0f) + && (_14 == 0.0f) + && (_21 == 0.0f) + && (_22 == 1.0f) + && (_23 == 0.0f) + && (_24 == 0.0f) + && (_31 == 0.0f) + && (_32 == 0.0f) + && (_33 == 1.0f) + && (_34 == 0.0f) + && (_41 == 0.0f) + && (_42 == 0.0f) + && (_43 == 0.0f) + && (_44 == 1.0f); + } + } + + public static D2D_MATRIX_4X4_F operator *( + [NativeTypeName("const D2D1_MATRIX_4x4_F &")] in D2D_MATRIX_4X4_F a, + [NativeTypeName("const D2D1_MATRIX_4x4_F &")] in D2D_MATRIX_4X4_F b + ) + { + D2D_MATRIX_4X4_F result = default; + result.SetProduct(a, b); + return result; + } + + public readonly bool Equals(D2D_MATRIX_4X4_F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_MATRIX_4X4_F other) && this == other; + + public override int GetHashCode() + { + var hashCode = new HashCode(); + { + hashCode.Add(_11); + hashCode.Add(_12); + hashCode.Add(_13); + hashCode.Add(_14); + hashCode.Add(_21); + hashCode.Add(_22); + hashCode.Add(_23); + hashCode.Add(_24); + hashCode.Add(_31); + hashCode.Add(_32); + hashCode.Add(_33); + hashCode.Add(_34); + hashCode.Add(_41); + hashCode.Add(_42); + hashCode.Add(_43); + hashCode.Add(_44); + } + return hashCode.ToHashCode(); + } + + public static D2D_MATRIX_4X4_F PerspectiveProjection(float depth) + { + float proj = 0; + if (depth > 0) + { + proj = -1 / depth; + } + D2D_MATRIX_4X4_F projection = new D2D_MATRIX_4X4_F( + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + proj, + 0, + 0, + 0, + 1 + ); + return projection; + } + + public static D2D_MATRIX_4X4_F RotationArbitraryAxis(float x, float y, float z, float degree) + { + float magnitude = D2D1Vec3Length(x, y, z); + x /= magnitude; + y /= magnitude; + z /= magnitude; + float angleInRadian = degree * (3.141592654f / 180.0f); + float sinAngle = 0.0f; + float cosAngle = 0.0f; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + float oneMinusCosAngle = 1 - cosAngle; + D2D_MATRIX_4X4_F rotationArb = new D2D_MATRIX_4X4_F( + 1 + oneMinusCosAngle * (x * x - 1), + z * sinAngle + oneMinusCosAngle * x * y, + -y * sinAngle + oneMinusCosAngle * x * z, + 0, + -z * sinAngle + oneMinusCosAngle * y * x, + 1 + oneMinusCosAngle * (y * y - 1), + x * sinAngle + oneMinusCosAngle * y * z, + 0, + y * sinAngle + oneMinusCosAngle * z * x, + -x * sinAngle + oneMinusCosAngle * z * y, + 1 + oneMinusCosAngle * (z * z - 1), + 0, + 0, + 0, + 0, + 1 + ); + return rotationArb; + } + + public static D2D_MATRIX_4X4_F RotationX(float degreeX) + { + float angleInRadian = degreeX * (MathF.PI / 180.0f); + float sinAngle = 0.0f; + float cosAngle = 0.0f; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + D2D_MATRIX_4X4_F rotationX = new D2D_MATRIX_4X4_F( + 1, + 0, + 0, + 0, + 0, + cosAngle, + sinAngle, + 0, + 0, + -sinAngle, + cosAngle, + 0, + 0, + 0, + 0, + 1 + ); + return rotationX; + } + + public static D2D_MATRIX_4X4_F RotationY(float degreeY) + { + float angleInRadian = degreeY * (MathF.PI / 180.0f); + float sinAngle = 0.0f; + float cosAngle = 0.0f; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + D2D_MATRIX_4X4_F rotationY = new D2D_MATRIX_4X4_F( + cosAngle, + 0, + -sinAngle, + 0, + 0, + 1, + 0, + 0, + sinAngle, + 0, + cosAngle, + 0, + 0, + 0, + 0, + 1 + ); + return rotationY; + } + + public static D2D_MATRIX_4X4_F RotationZ(float degreeZ) + { + float angleInRadian = degreeZ * (MathF.PI / 180.0f); + float sinAngle = 0.0f; + float cosAngle = 0.0f; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + D2D_MATRIX_4X4_F rotationZ = new D2D_MATRIX_4X4_F( + cosAngle, + sinAngle, + 0, + 0, + -sinAngle, + cosAngle, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1 + ); + return rotationZ; + } + + public static D2D_MATRIX_4X4_F Scale(float x, float y, float z) + { + D2D_MATRIX_4X4_F scale = default; + scale._11 = x; + scale._12 = 0.0f; + scale._13 = 0.0f; + scale._14 = 0.0f; + scale._21 = 0.0f; + scale._22 = y; + scale._23 = 0.0f; + scale._24 = 0.0f; + scale._31 = 0.0f; + scale._32 = 0.0f; + scale._33 = z; + scale._34 = 0.0f; + scale._41 = 0.0f; + scale._42 = 0.0f; + scale._43 = 0.0f; + scale._44 = 1.0f; + return scale; + } + + public void SetProduct( + [NativeTypeName("const D2D1_MATRIX_4x4_F &")] in D2D_MATRIX_4X4_F a, + [NativeTypeName("const D2D1_MATRIX_4x4_F &")] in D2D_MATRIX_4X4_F b + ) + { + _11 = a._11 * b._11 + a._12 * b._21 + a._13 * b._31 + a._14 * b._41; + _12 = a._11 * b._12 + a._12 * b._22 + a._13 * b._32 + a._14 * b._42; + _13 = a._11 * b._13 + a._12 * b._23 + a._13 * b._33 + a._14 * b._43; + _14 = a._11 * b._14 + a._12 * b._24 + a._13 * b._34 + a._14 * b._44; + _21 = a._21 * b._11 + a._22 * b._21 + a._23 * b._31 + a._24 * b._41; + _22 = a._21 * b._12 + a._22 * b._22 + a._23 * b._32 + a._24 * b._42; + _23 = a._21 * b._13 + a._22 * b._23 + a._23 * b._33 + a._24 * b._43; + _24 = a._21 * b._14 + a._22 * b._24 + a._23 * b._34 + a._24 * b._44; + _31 = a._31 * b._11 + a._32 * b._21 + a._33 * b._31 + a._34 * b._41; + _32 = a._31 * b._12 + a._32 * b._22 + a._33 * b._32 + a._34 * b._42; + _33 = a._31 * b._13 + a._32 * b._23 + a._33 * b._33 + a._34 * b._43; + _34 = a._31 * b._14 + a._32 * b._24 + a._33 * b._34 + a._34 * b._44; + _41 = a._41 * b._11 + a._42 * b._21 + a._43 * b._31 + a._44 * b._41; + _42 = a._41 * b._12 + a._42 * b._22 + a._43 * b._32 + a._44 * b._42; + _43 = a._41 * b._13 + a._42 * b._23 + a._43 * b._33 + a._44 * b._43; + _44 = a._41 * b._14 + a._42 * b._24 + a._43 * b._34 + a._44 * b._44; + } + + public static D2D_MATRIX_4X4_F SkewX(float degreeX) + { + float angleInRadian = degreeX * (3.141592654f / 180.0f); + float tanAngle = D2D1Tan(angleInRadian); + D2D_MATRIX_4X4_F skewX = new D2D_MATRIX_4X4_F( + 1, + 0, + 0, + 0, + tanAngle, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1 + ); + return skewX; + } + + public static D2D_MATRIX_4X4_F SkewY(float degreeY) + { + float angleInRadian = degreeY * (3.141592654f / 180.0f); + float tanAngle = D2D1Tan(angleInRadian); + D2D_MATRIX_4X4_F skewY = new D2D_MATRIX_4X4_F( + 1, + tanAngle, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1 + ); + return skewY; + } + + public static D2D_MATRIX_4X4_F Translation(float x, float y, float z) + { + D2D_MATRIX_4X4_F translation = default; + translation._11 = 1.0f; + translation._12 = 0.0f; + translation._13 = 0.0f; + translation._14 = 0.0f; + translation._21 = 0.0f; + translation._22 = 1.0f; + translation._23 = 0.0f; + translation._24 = 0.0f; + translation._31 = 0.0f; + translation._32 = 0.0f; + translation._33 = 1.0f; + translation._34 = 0.0f; + translation._41 = x; + translation._42 = y; + translation._43 = z; + translation._44 = 1.0f; + return translation; + } +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_5X4_F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_5X4_F.Manual.cs new file mode 100644 index 0000000000..8a4176190b --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_MATRIX_5X4_F.Manual.cs @@ -0,0 +1,216 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1_1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_MATRIX_5X4_F : IEquatable +{ + public static ref readonly D2D_MATRIX_5X4_F Identity + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D2D_MATRIX_5X4_F( + float m11, + float m12, + float m13, + float m14, + float m21, + float m22, + float m23, + float m24, + float m31, + float m32, + float m33, + float m34, + float m41, + float m42, + float m43, + float m44, + float m51, + float m52, + float m53, + float m54 + ) + { + Unsafe.SkipInit(out this); + _11 = m11; + _12 = m12; + _13 = m13; + _14 = m14; + _21 = m21; + _22 = m22; + _23 = m23; + _24 = m24; + _31 = m31; + _32 = m32; + _33 = m33; + _34 = m34; + _41 = m41; + _42 = m42; + _43 = m43; + _44 = m44; + _51 = m51; + _52 = m52; + _53 = m53; + _54 = m54; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_MATRIX_5X4_F &")] in D2D_MATRIX_5X4_F l, + [NativeTypeName("const D2D1_MATRIX_5X4_F &")] in D2D_MATRIX_5X4_F r + ) + { + return (l._11 == r._11) + && (l._12 == r._12) + && (l._13 == r._13) + && (l._14 == r._14) + && (l._21 == r._21) + && (l._22 == r._22) + && (l._23 == r._23) + && (l._24 == r._24) + && (l._31 == r._31) + && (l._32 == r._32) + && (l._33 == r._33) + && (l._34 == r._34) + && (l._41 == r._41) + && (l._42 == r._42) + && (l._43 == r._43) + && (l._44 == r._44) + && (l._51 == r._51) + && (l._52 == r._52) + && (l._53 == r._53) + && (l._54 == r._54); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_MATRIX_5X4_F &")] in D2D_MATRIX_5X4_F l, + [NativeTypeName("const D2D1_MATRIX_5X4_F &")] in D2D_MATRIX_5X4_F r + ) => !(l == r); + + public readonly bool Equals(D2D_MATRIX_5X4_F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_MATRIX_5X4_F other) && this == other; + + public override int GetHashCode() + { + var hashCode = new HashCode(); + { + hashCode.Add(_11); + hashCode.Add(_12); + hashCode.Add(_13); + hashCode.Add(_14); + hashCode.Add(_21); + hashCode.Add(_22); + hashCode.Add(_23); + hashCode.Add(_24); + hashCode.Add(_31); + hashCode.Add(_32); + hashCode.Add(_33); + hashCode.Add(_34); + hashCode.Add(_41); + hashCode.Add(_42); + hashCode.Add(_43); + hashCode.Add(_44); + hashCode.Add(_51); + hashCode.Add(_52); + hashCode.Add(_53); + hashCode.Add(_54); + } + return hashCode.ToHashCode(); + } +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_POINT_2F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_POINT_2F.Manual.cs new file mode 100644 index 0000000000..ccadb32925 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_POINT_2F.Manual.cs @@ -0,0 +1,35 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_POINT_2F : IEquatable +{ + public D2D_POINT_2F(float x = 0.0f, float y = 0.0f) + { + this.x = x; + this.y = y; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F l, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F r + ) + { + return (l.x == r.x) && (l.y == r.y); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F l, + [NativeTypeName("const D2D1_POINT_2F &")] in D2D_POINT_2F r + ) => !(l == r); + + public readonly bool Equals(D2D_POINT_2F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_POINT_2F other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(x, y); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_POINT_2U.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_POINT_2U.Manual.cs new file mode 100644 index 0000000000..6a661fa9fc --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_POINT_2U.Manual.cs @@ -0,0 +1,38 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_POINT_2U : IEquatable +{ + public D2D_POINT_2U( + [NativeTypeName("UINT32")] uint x = 0, + [NativeTypeName("UINT32")] uint y = 0 + ) + { + this.x = x; + this.y = y; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_POINT_2U &")] in D2D_POINT_2U l, + [NativeTypeName("const D2D1_POINT_2U &")] in D2D_POINT_2U r + ) + { + return (l.x == r.x) && (l.y == r.y); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_POINT_2U &")] in D2D_POINT_2U l, + [NativeTypeName("const D2D1_POINT_2U &")] in D2D_POINT_2U r + ) => !(l == r); + + public readonly bool Equals(D2D_POINT_2U other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_POINT_2U other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(x, y); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_RECT_F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_RECT_F.Manual.cs new file mode 100644 index 0000000000..b1b58e9651 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_RECT_F.Manual.cs @@ -0,0 +1,69 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_RECT_F : IEquatable +{ + public static ref readonly D2D_RECT_F Infinite + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0xFF, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + 0xFF, + 0xFF, + 0x7F, + 0x7F, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public D2D_RECT_F(float left = 0.0f, float top = 0.0f, float right = 0.0f, float bottom = 0.0f) + { + this.left = left; + this.top = top; + this.right = right; + this.bottom = bottom; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_RECT_F &")] in D2D_RECT_F l, + [NativeTypeName("const D2D1_RECT_F &")] in D2D_RECT_F r + ) + { + return (l.left == r.left) + && (l.top == r.top) + && (l.right == r.right) + && (l.bottom == r.bottom); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_RECT_F &")] in D2D_RECT_F l, + [NativeTypeName("const D2D1_RECT_F &")] in D2D_RECT_F r + ) => !(l == r); + + public readonly bool Equals(D2D_RECT_F other) => this == other; + + public override readonly bool Equals(object? obj) => (obj is D2D_RECT_F other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(left, top, right, bottom); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_RECT_U.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_RECT_U.Manual.cs new file mode 100644 index 0000000000..6742ce4a4d --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_RECT_U.Manual.cs @@ -0,0 +1,60 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h and um/d2d1_3helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_RECT_U : IEquatable +{ + public D2D_RECT_U( + [NativeTypeName("UINT32")] uint left = 0, + [NativeTypeName("UINT32")] uint top = 0, + [NativeTypeName("UINT32")] uint right = 0, + [NativeTypeName("UINT32")] uint bottom = 0 + ) + { + this.left = left; + this.top = top; + this.right = right; + this.bottom = bottom; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_RECT_U &")] in D2D_RECT_U l, + [NativeTypeName("const D2D1_RECT_U &")] in D2D_RECT_U r + ) + { + return (l.left == r.left) + && (l.top == r.top) + && (l.right == r.right) + && (l.bottom == r.bottom); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_RECT_U &")] in D2D_RECT_U l, + [NativeTypeName("const D2D1_RECT_U &")] in D2D_RECT_U r + ) => !(l == r); + + public static D2D_RECT_U Infinite + { + [return: NativeTypeName("D2D1_RECT_U")] + get + { + D2D_RECT_U rect = new D2D_RECT_U + { + left = 0u, + top = 0u, + right = uint.MaxValue, + bottom = uint.MaxValue, + }; + return rect; + } + } + + public readonly bool Equals(D2D_RECT_U other) => this == other; + + public override readonly bool Equals(object? obj) => (obj is D2D_RECT_U other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(left, top, right, bottom); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_SIZE_F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_SIZE_F.Manual.cs new file mode 100644 index 0000000000..f0e87403b0 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_SIZE_F.Manual.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_SIZE_F : IEquatable +{ + public D2D_SIZE_F(float width = 0.0f, float height = 0.0f) + { + this.width = width; + this.height = height; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_SIZE_F &")] in D2D_SIZE_F l, + [NativeTypeName("const D2D1_SIZE_F &")] in D2D_SIZE_F r + ) + { + return (l.width == r.width) && (l.height == r.height); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_SIZE_F &")] in D2D_SIZE_F l, + [NativeTypeName("const D2D1_SIZE_F &")] in D2D_SIZE_F r + ) => !(l == r); + + public readonly bool Equals(D2D_SIZE_F other) => this == other; + + public override readonly bool Equals(object? obj) => (obj is D2D_SIZE_F other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(width, height); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_SIZE_U.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_SIZE_U.Manual.cs new file mode 100644 index 0000000000..87478488b2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_SIZE_U.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_SIZE_U : IEquatable +{ + public D2D_SIZE_U( + [NativeTypeName("UINT32")] uint width = 0, + [NativeTypeName("UINT32")] uint height = 0 + ) + { + this.width = width; + this.height = height; + } + + public static bool operator ==( + [NativeTypeName("const D2D1_SIZE_U &")] in D2D_SIZE_U l, + [NativeTypeName("const D2D1_SIZE_U &")] in D2D_SIZE_U r + ) + { + return (l.width == r.width) && (l.height == r.height); + } + + public static bool operator !=( + [NativeTypeName("const D2D1_SIZE_U &")] in D2D_SIZE_U l, + [NativeTypeName("const D2D1_SIZE_U &")] in D2D_SIZE_U r + ) => !(l == r); + + public readonly bool Equals(D2D_SIZE_U other) => this == other; + + public override readonly bool Equals(object? obj) => (obj is D2D_SIZE_U other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(width, height); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_2F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_2F.Manual.cs new file mode 100644 index 0000000000..b081b7495e --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_2F.Manual.cs @@ -0,0 +1,35 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_VECTOR_2F : IEquatable +{ + public D2D_VECTOR_2F(float x = 0.0f, float y = 0.0f) + { + this.x = x; + this.y = y; + } + + public static bool operator ==( + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_2F l, + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_2F r + ) + { + return (l.x == r.x) && (l.y == r.y); + } + + public static bool operator !=( + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_2F l, + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_2F r + ) => !(l == r); + + public readonly bool Equals(D2D_VECTOR_2F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_VECTOR_2F other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(x, y); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_3F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_3F.Manual.cs new file mode 100644 index 0000000000..e61010e223 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_3F.Manual.cs @@ -0,0 +1,36 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_VECTOR_3F : IEquatable +{ + public D2D_VECTOR_3F(float x = 0.0f, float y = 0.0f, float z = 0.0f) + { + this.x = x; + this.y = y; + this.z = z; + } + + public static bool operator ==( + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_3F l, + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_3F r + ) + { + return (l.x == r.x) && (l.y == r.y) && (l.z == r.z); + } + + public static bool operator !=( + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_3F l, + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_3F r + ) => !(l == r); + + public readonly bool Equals(D2D_VECTOR_3F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_VECTOR_3F other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(x, y, z); +} diff --git a/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_4F.Manual.cs b/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_4F.Manual.cs new file mode 100644 index 0000000000..a28876dfc9 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dcommon/D2D_VECTOR_4F.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/d2d1helper.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public partial struct D2D_VECTOR_4F : IEquatable +{ + public D2D_VECTOR_4F(float x, float y, float z, float w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + public static bool operator ==( + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_4F l, + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_4F r + ) + { + return (l.x == r.x) && (l.y == r.y) && (l.z == r.z) && (l.w == r.w); + } + + public static bool operator !=( + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_4F l, + [NativeTypeName("const D2D_VECTOR_2F &")] in D2D_VECTOR_4F r + ) => !(l == r); + + public readonly bool Equals(D2D_VECTOR_4F other) => this == other; + + public override readonly bool Equals(object? obj) => + (obj is D2D_VECTOR_4F other) && this == other; + + public override readonly int GetHashCode() => HashCode.Combine(x, y, z, w); +} diff --git a/sources/Win32/Win32/DirectX/um/dinput/DIJOFS.Manual.cs b/sources/Win32/Win32/DirectX/um/dinput/DIJOFS.Manual.cs new file mode 100644 index 0000000000..ad9b94b9b4 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dinput/DIJOFS.Manual.cs @@ -0,0 +1,178 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/dinput.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DIJOFS +{ + [NativeTypeName("#define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX)")] + public static uint DIJOFS_X + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return (uint)(&tmp.lX) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY)")] + public static uint DIJOFS_Y + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return (uint)(&tmp.lY) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ)")] + public static uint DIJOFS_Z + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return (uint)(&tmp.lZ) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx)")] + public static uint DIJOFS_RX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return (uint)(&tmp.lRx) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy)")] + public static uint DIJOFS_RY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return (uint)(&tmp.lRy) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz)")] + public static uint DIJOFS_RZ + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return (uint)(&tmp.lRz) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIJOFS_BUTTON0 DIJOFS_BUTTON(0)")] + public static uint DIJOFS_BUTTON0 => DIJOFS_BUTTON(0); + + [NativeTypeName("#define DIJOFS_BUTTON1 DIJOFS_BUTTON(1)")] + public static uint DIJOFS_BUTTON1 => DIJOFS_BUTTON(1); + + [NativeTypeName("#define DIJOFS_BUTTON2 DIJOFS_BUTTON(2)")] + public static uint DIJOFS_BUTTON2 => DIJOFS_BUTTON(2); + + [NativeTypeName("#define DIJOFS_BUTTON3 DIJOFS_BUTTON(3)")] + public static uint DIJOFS_BUTTON3 => DIJOFS_BUTTON(3); + + [NativeTypeName("#define DIJOFS_BUTTON4 DIJOFS_BUTTON(4)")] + public static uint DIJOFS_BUTTON4 => DIJOFS_BUTTON(4); + + [NativeTypeName("#define DIJOFS_BUTTON5 DIJOFS_BUTTON(5)")] + public static uint DIJOFS_BUTTON5 => DIJOFS_BUTTON(5); + + [NativeTypeName("#define DIJOFS_BUTTON6 DIJOFS_BUTTON(6)")] + public static uint DIJOFS_BUTTON6 => DIJOFS_BUTTON(6); + + [NativeTypeName("#define DIJOFS_BUTTON7 DIJOFS_BUTTON(7)")] + public static uint DIJOFS_BUTTON7 => DIJOFS_BUTTON(7); + + [NativeTypeName("#define DIJOFS_BUTTON8 DIJOFS_BUTTON(8)")] + public static uint DIJOFS_BUTTON8 => DIJOFS_BUTTON(8); + + [NativeTypeName("#define DIJOFS_BUTTON9 DIJOFS_BUTTON(9)")] + public static uint DIJOFS_BUTTON9 => DIJOFS_BUTTON(9); + + [NativeTypeName("#define DIJOFS_BUTTON10 DIJOFS_BUTTON(10)")] + public static uint DIJOFS_BUTTON10 => DIJOFS_BUTTON(10); + + [NativeTypeName("#define DIJOFS_BUTTON11 DIJOFS_BUTTON(11)")] + public static uint DIJOFS_BUTTON11 => DIJOFS_BUTTON(11); + + [NativeTypeName("#define DIJOFS_BUTTON12 DIJOFS_BUTTON(12)")] + public static uint DIJOFS_BUTTON12 => DIJOFS_BUTTON(12); + + [NativeTypeName("#define DIJOFS_BUTTON13 DIJOFS_BUTTON(13)")] + public static uint DIJOFS_BUTTON13 => DIJOFS_BUTTON(13); + + [NativeTypeName("#define DIJOFS_BUTTON14 DIJOFS_BUTTON(14)")] + public static uint DIJOFS_BUTTON14 => DIJOFS_BUTTON(14); + + [NativeTypeName("#define DIJOFS_BUTTON15 DIJOFS_BUTTON(15)")] + public static uint DIJOFS_BUTTON15 => DIJOFS_BUTTON(15); + + [NativeTypeName("#define DIJOFS_BUTTON16 DIJOFS_BUTTON(16)")] + public static uint DIJOFS_BUTTON16 => DIJOFS_BUTTON(16); + + [NativeTypeName("#define DIJOFS_BUTTON17 DIJOFS_BUTTON(17)")] + public static uint DIJOFS_BUTTON17 => DIJOFS_BUTTON(17); + + [NativeTypeName("#define DIJOFS_BUTTON18 DIJOFS_BUTTON(18)")] + public static uint DIJOFS_BUTTON18 => DIJOFS_BUTTON(18); + + [NativeTypeName("#define DIJOFS_BUTTON19 DIJOFS_BUTTON(19)")] + public static uint DIJOFS_BUTTON19 => DIJOFS_BUTTON(19); + + [NativeTypeName("#define DIJOFS_BUTTON20 DIJOFS_BUTTON(20)")] + public static uint DIJOFS_BUTTON20 => DIJOFS_BUTTON(20); + + [NativeTypeName("#define DIJOFS_BUTTON21 DIJOFS_BUTTON(21)")] + public static uint DIJOFS_BUTTON21 => DIJOFS_BUTTON(21); + + [NativeTypeName("#define DIJOFS_BUTTON22 DIJOFS_BUTTON(22)")] + public static uint DIJOFS_BUTTON22 => DIJOFS_BUTTON(22); + + [NativeTypeName("#define DIJOFS_BUTTON23 DIJOFS_BUTTON(23)")] + public static uint DIJOFS_BUTTON23 => DIJOFS_BUTTON(23); + + [NativeTypeName("#define DIJOFS_BUTTON24 DIJOFS_BUTTON(24)")] + public static uint DIJOFS_BUTTON24 => DIJOFS_BUTTON(24); + + [NativeTypeName("#define DIJOFS_BUTTON25 DIJOFS_BUTTON(25)")] + public static uint DIJOFS_BUTTON25 => DIJOFS_BUTTON(25); + + [NativeTypeName("#define DIJOFS_BUTTON26 DIJOFS_BUTTON(26)")] + public static uint DIJOFS_BUTTON26 => DIJOFS_BUTTON(26); + + [NativeTypeName("#define DIJOFS_BUTTON27 DIJOFS_BUTTON(27)")] + public static uint DIJOFS_BUTTON27 => DIJOFS_BUTTON(27); + + [NativeTypeName("#define DIJOFS_BUTTON28 DIJOFS_BUTTON(28)")] + public static uint DIJOFS_BUTTON28 => DIJOFS_BUTTON(28); + + [NativeTypeName("#define DIJOFS_BUTTON29 DIJOFS_BUTTON(29)")] + public static uint DIJOFS_BUTTON29 => DIJOFS_BUTTON(29); + + [NativeTypeName("#define DIJOFS_BUTTON30 DIJOFS_BUTTON(30)")] + public static uint DIJOFS_BUTTON30 => DIJOFS_BUTTON(30); + + [NativeTypeName("#define DIJOFS_BUTTON31 DIJOFS_BUTTON(31)")] + public static uint DIJOFS_BUTTON31 => DIJOFS_BUTTON(31); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DIJOFS_BUTTON(uint n) + { + Unsafe.SkipInit(out DIJOYSTATE tmp); + return ((uint)(&tmp.rgbButtons) - (uint)(&tmp)) + n; + } +} diff --git a/sources/Win32/Win32/DirectX/um/dinput/DIMOFS.Manual.cs b/sources/Win32/Win32/DirectX/um/dinput/DIMOFS.Manual.cs new file mode 100644 index 0000000000..4547007e83 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dinput/DIMOFS.Manual.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/dinput.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DIMOFS +{ + [NativeTypeName("#define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX)")] + public static uint DIMOFS_X + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIMOUSESTATE tmp); + return (uint)(&tmp.lX) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY)")] + public static uint DIMOFS_Y + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIMOUSESTATE tmp); + return (uint)(&tmp.lY) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ)")] + public static uint DIMOFS_Z + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out DIMOUSESTATE tmp); + return (uint)(&tmp.lZ) - (uint)(&tmp); + } + } + + [NativeTypeName("#define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0)")] + public static uint DIMOFS_BUTTON0 => DIMOFS_BUTTON(0); + + [NativeTypeName("#define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1)")] + public static uint DIMOFS_BUTTON1 => DIMOFS_BUTTON(1); + + [NativeTypeName("#define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2)")] + public static uint DIMOFS_BUTTON2 => DIMOFS_BUTTON(2); + + [NativeTypeName("#define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3)")] + public static uint DIMOFS_BUTTON3 => DIMOFS_BUTTON(3); + + [NativeTypeName("#define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4)")] + public static uint DIMOFS_BUTTON4 => DIMOFS_BUTTON(4); + + [NativeTypeName("#define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5)")] + public static uint DIMOFS_BUTTON5 => DIMOFS_BUTTON(5); + + [NativeTypeName("#define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6)")] + public static uint DIMOFS_BUTTON6 => DIMOFS_BUTTON(6); + + [NativeTypeName("#define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7)")] + public static uint DIMOFS_BUTTON7 => DIMOFS_BUTTON(7); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint DIMOFS_BUTTON(uint n) + { + Unsafe.SkipInit(out DIMOUSESTATE tmp); + return ((uint)(&tmp.rgbButtons) - (uint)(&tmp)) + n; + } +} diff --git a/sources/Win32/Win32/DirectX/um/dinput/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/dinput/DirectX.Manual.cs new file mode 100644 index 0000000000..e62a378331 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dinput/DirectX.Manual.cs @@ -0,0 +1,48 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/dinput.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.DirectX.DIMOFS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + [NativeTypeName("#define DIMOUSE_XAXISAB (0x82000200 |DIMOFS_X )")] + public static uint DIMOUSE_XAXISAB => 0x82000200u | DIMOFS_X; + + [NativeTypeName("#define DIMOUSE_YAXISAB (0x82000200 |DIMOFS_Y )")] + public static uint DIMOUSE_YAXISAB => 0x82000200u | DIMOFS_Y; + + [NativeTypeName("#define DIMOUSE_XAXIS (0x82000300 |DIMOFS_X )")] + public static uint DIMOUSE_XAXIS => 0x82000300u | DIMOFS_X; + + [NativeTypeName("#define DIMOUSE_YAXIS (0x82000300 |DIMOFS_Y )")] + public static uint DIMOUSE_YAXIS => 0x82000300u | DIMOFS_Y; + + [NativeTypeName("#define DIMOUSE_WHEEL (0x82000300 |DIMOFS_Z )")] + public static uint DIMOUSE_WHEEL => 0x82000300u | DIMOFS_Z; + + [NativeTypeName("#define DIMOUSE_BUTTON0 (0x82000400 |DIMOFS_BUTTON0)")] + public static uint DIMOUSE_BUTTON0 => 0x82000400u | DIMOFS_BUTTON0; + + [NativeTypeName("#define DIMOUSE_BUTTON1 (0x82000400 |DIMOFS_BUTTON1)")] + public static uint DIMOUSE_BUTTON1 => 0x82000400u | DIMOFS_BUTTON1; + + [NativeTypeName("#define DIMOUSE_BUTTON2 (0x82000400 |DIMOFS_BUTTON2)")] + public static uint DIMOUSE_BUTTON2 => 0x82000400u | DIMOFS_BUTTON2; + + [NativeTypeName("#define DIMOUSE_BUTTON3 (0x82000400 |DIMOFS_BUTTON3)")] + public static uint DIMOUSE_BUTTON3 => 0x82000400u | DIMOFS_BUTTON3; + + [NativeTypeName("#define DIMOUSE_BUTTON4 (0x82000400 |DIMOFS_BUTTON4)")] + public static uint DIMOUSE_BUTTON4 => 0x82000400u | DIMOFS_BUTTON4; + + [NativeTypeName("#define DIMOUSE_BUTTON5 (0x82000400 |DIMOFS_BUTTON5)")] + public static uint DIMOUSE_BUTTON5 => 0x82000400u | DIMOFS_BUTTON5; + + [NativeTypeName("#define DIMOUSE_BUTTON6 (0x82000400 |DIMOFS_BUTTON6)")] + public static uint DIMOUSE_BUTTON6 => 0x82000400u | DIMOFS_BUTTON6; + + [NativeTypeName("#define DIMOUSE_BUTTON7 (0x82000400 |DIMOFS_BUTTON7)")] + public static uint DIMOUSE_BUTTON7 => 0x82000400u | DIMOFS_BUTTON7; +} diff --git a/sources/Win32/Win32/DirectX/um/dwrite/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/dwrite/DirectX.Manual.cs new file mode 100644 index 0000000000..f1945e8ce2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dwrite/DirectX.Manual.cs @@ -0,0 +1,20 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/dwrite.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.DirectX.DWRITE; +using static Silk.NET.Win32.FACILITY; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static uint DWRITE_MAKE_OPENTYPE_TAG(byte a, byte b, byte c, byte d) => + ((uint)d << 24) | ((uint)c << 16) | ((uint)b << 8) | a; + + public static HRESULT MAKE_DWRITE_HR(int severity, int code) => + MAKE_HRESULT(severity, FACILITY_DWRITE, DWRITE_ERR_BASE + code); + + public static HRESULT MAKE_DWRITE_HR_ERR(int code) => MAKE_DWRITE_HR(SEVERITY_ERROR, code); +} diff --git a/sources/Win32/Win32/DirectX/um/dwrite_3/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/dwrite_3/DirectX.Manual.cs new file mode 100644 index 0000000000..d3d47071d3 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/dwrite_3/DirectX.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/dwrite_3.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static partial class DirectX +{ + public static DWRITE_FONT_AXIS_TAG DWRITE_MAKE_FONT_AXIS_TAG(byte a, byte b, byte c, byte d) => + (DWRITE_FONT_AXIS_TAG)DWRITE_MAKE_OPENTYPE_TAG(a, b, c, d); +} diff --git a/sources/Win32/Win32/DirectX/um/x3daudio/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/x3daudio/DirectX.Manual.cs new file mode 100644 index 0000000000..977959aa9f --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/x3daudio/DirectX.Manual.cs @@ -0,0 +1,51 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/x3daudio.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + [NativeTypeName("const X3DAUDIO_DISTANCE_CURVE_POINT[2]")] + public static ReadOnlySpan X3DAudioDefault_LinearCurvePoints + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == (Unsafe.SizeOf() * 2)); + return MemoryMarshal.CreateReadOnlySpan( + ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ), + 2 + ); + } + } + // public static ref readonly X3DAUDIO_DISTANCE_CURVE X3DAudioDefault_LinearCurve => new X3DAUDIO_DISTANCE_CURVE { + // pPoints = &X3DAudioDefault_LinearCurvePoints[0], + // PointsCount = 2, + // }; +} diff --git a/sources/Win32/Win32/DirectX/um/xapo/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/xapo/DirectX.Manual.cs new file mode 100644 index 0000000000..e191bb85a0 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/xapo/DirectX.Manual.cs @@ -0,0 +1,32 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/xapo.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr XAPOAlloc(nuint size) => (void*)XAPOAllocRaw(size); + + /// + + public static void* XAPOAllocRaw(nuint size) => CoTaskMemAllocRaw(size); + + /// + + public static void XAPOFree(void* p) => CoTaskMemFree(p); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void XAPOFree(Ref p) + { + fixed (void* __dsl_p = p) + { + XAPOFree(__dsl_p); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/xaudio2/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/xaudio2/DirectX.Manual.cs new file mode 100644 index 0000000000..027aa037f6 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/xaudio2/DirectX.Manual.cs @@ -0,0 +1,108 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/xaudio2.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +using static Silk.NET.DirectX.XAUDIO2; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + [DllImport("XAudio2_9", ExactSpelling = true)] + private static extern HRESULT _XAudio2Create( + [NativeTypeName("IXAudio2 **")] IXAudio2.Native** ppXAudio2, + [NativeTypeName("UINT32")] uint Flags = 0, + [NativeTypeName("XAUDIO2_PROCESSOR")] uint XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR + ); + + [Transformed] + [NativeFunction("XAudio2_9", EntryPoint = "_XAudio2Create")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + private static HRESULT _XAudio2Create( + [NativeTypeName("IXAudio2 **")] Ref2D ppXAudio2, + [NativeTypeName("UINT32")] uint Flags = 0, + [NativeTypeName("XAUDIO2_PROCESSOR")] uint XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR + ) + { + fixed (IXAudio2.Native** __dsl_ppXAudio2 = ppXAudio2) + { + return (HRESULT)_XAudio2Create(__dsl_ppXAudio2, Flags, XAudio2Processor); + } + } + + public static float XAudio2AmplitudeRatioToDecibels(float Volume) + { + if (Volume == 0) + { + return -3.402823466e+38f; + } + return 20.0f * MathF.Log10(Volume); + } + + public static HRESULT XAudio2Create( + [NativeTypeName("IXAudio2 **")] IXAudio2* ppXAudio2, + [NativeTypeName("UINT32")] uint Flags = 0, + [NativeTypeName("XAUDIO2_PROCESSOR")] uint XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR + ) => _XAudio2Create(&ppXAudio2->lpVtbl, Flags, XAudio2Processor); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT XAudio2Create( + [NativeTypeName("IXAudio2 **")] Ref ppXAudio2, + [NativeTypeName("UINT32")] uint Flags = 0, + [NativeTypeName("XAUDIO2_PROCESSOR")] uint XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR + ) + { + fixed (IXAudio2* __dsl_ppXAudio2 = ppXAudio2) + { + return (HRESULT)XAudio2Create(__dsl_ppXAudio2, Flags, XAudio2Processor); + } + } + + public static float XAudio2CutoffFrequencyToOnePoleCoefficient( + float CutoffFrequency, + [NativeTypeName("UINT32")] uint SampleRate + ) + { + if ((uint)CutoffFrequency >= SampleRate) + { + return 1.0f; + } + return (1.0f - MathF.Pow(1.0f - 2.0f * CutoffFrequency / SampleRate, 2.0f)); + } + + public static float XAudio2CutoffFrequencyToRadians( + float CutoffFrequency, + [NativeTypeName("UINT32")] uint SampleRate + ) + { + if ((uint)(CutoffFrequency * 6.0f) >= SampleRate) + { + return 1.0f; + } + return 2.0f * MathF.Sin((float)3.14159265358979323846 * CutoffFrequency / SampleRate); + } + + public static float XAudio2DecibelsToAmplitudeRatio(float Decibels) + { + return MathF.Pow(10.0f, Decibels / 20.0f); + } + + public static float XAudio2FrequencyRatioToSemitones(float FrequencyRatio) + { + return 39.86313713864835f * MathF.Log10(FrequencyRatio); + } + + public static float XAudio2RadiansToCutoffFrequency(float Radians, float SampleRate) + { + return SampleRate * MathF.Asin(Radians / 2.0f) / (float)3.14159265358979323846; + } + + public static float XAudio2SemitonesToFrequencyRatio(float Semitones) + { + return MathF.Pow(2.0f, Semitones / 12.0f); + } +} diff --git a/sources/Win32/Win32/DirectX/um/xaudio2fx/DirectX.Manual.cs b/sources/Win32/Win32/DirectX/um/xaudio2fx/DirectX.Manual.cs new file mode 100644 index 0000000000..2541c2c0e2 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/xaudio2fx/DirectX.Manual.cs @@ -0,0 +1,145 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/xaudio2fx.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class DirectX +{ + public static void ReverbConvertI3DL2ToNative( + [NativeTypeName("const XAUDIO2FX_REVERB_I3DL2_PARAMETERS *")] + XAUDIO2FX_REVERB_I3DL2_PARAMETERS* pI3DL2, + [NativeTypeName("XAUDIO2FX_REVERB_PARAMETERS *")] XAUDIO2FX_REVERB_PARAMETERS* pNative, + [Optional, DefaultParameterValue(1)] BOOL sevenDotOneReverb + ) + { + float reflectionsDelay; + float reverbDelay; + if (sevenDotOneReverb != 0) + { + pNative->RearDelay = 20; + } + else + { + pNative->RearDelay = 5; + } + pNative->SideDelay = 5; + pNative->PositionLeft = 6; + pNative->PositionRight = 6; + pNative->PositionMatrixLeft = 27; + pNative->PositionMatrixRight = 27; + pNative->RoomSize = 100.0f; + pNative->LowEQCutoff = 4; + pNative->HighEQCutoff = 6; + pNative->RoomFilterMain = (float)pI3DL2->Room / 100.0f; + pNative->RoomFilterHF = (float)pI3DL2->RoomHF / 100.0f; + if (pI3DL2->DecayHFRatio >= 1.0f) + { + int index = (int)(-4.0 * Math.Log10(pI3DL2->DecayHFRatio)); + if (index < -8) + { + index = -8; + } + pNative->LowEQGain = (byte)((index < 0) ? index + 8 : 8); + pNative->HighEQGain = 8; + pNative->DecayTime = pI3DL2->DecayTime * pI3DL2->DecayHFRatio; + } + else + { + int index = (int)(4.0 * Math.Log10(pI3DL2->DecayHFRatio)); + if (index < -8) + { + index = -8; + } + pNative->LowEQGain = 8; + pNative->HighEQGain = (byte)((index < 0) ? index + 8 : 8); + pNative->DecayTime = pI3DL2->DecayTime; + } + reflectionsDelay = pI3DL2->ReflectionsDelay * 1000.0f; + if (reflectionsDelay >= 300) + { + reflectionsDelay = (float)(300 - 1); + } + else if (reflectionsDelay <= 1) + { + reflectionsDelay = 1; + } + pNative->ReflectionsDelay = (uint)reflectionsDelay; + reverbDelay = pI3DL2->ReverbDelay * 1000.0f; + if (reverbDelay >= 85) + { + reverbDelay = (float)(85 - 1); + } + pNative->ReverbDelay = (byte)reverbDelay; + pNative->ReflectionsGain = pI3DL2->Reflections / 100.0f; + pNative->ReverbGain = pI3DL2->Reverb / 100.0f; + pNative->EarlyDiffusion = (byte)(15.0f * pI3DL2->Diffusion / 100.0f); + pNative->LateDiffusion = pNative->EarlyDiffusion; + pNative->Density = pI3DL2->Density; + pNative->RoomFilterFreq = pI3DL2->HFReference; + pNative->WetDryMix = pI3DL2->WetDryMix; + pNative->DisableLateField = 0; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ReverbConvertI3DL2ToNative( + [NativeTypeName("const XAUDIO2FX_REVERB_I3DL2_PARAMETERS *")] + Ref pI3DL2, + [NativeTypeName("XAUDIO2FX_REVERB_PARAMETERS *")] Ref pNative, + [Optional, DefaultParameterValue(true)] MaybeBool sevenDotOneReverb + ) + { + fixed (XAUDIO2FX_REVERB_PARAMETERS* __dsl_pNative = pNative) + fixed (XAUDIO2FX_REVERB_I3DL2_PARAMETERS* __dsl_pI3DL2 = pI3DL2) + { + ReverbConvertI3DL2ToNative(__dsl_pI3DL2, __dsl_pNative, (BOOL)sevenDotOneReverb); + } + } + + public static HRESULT XAudio2CreateReverb( + [NativeTypeName("IUnknown **")] IUnknown* ppApo, + [NativeTypeName("UINT32")] uint Flags = 0 + ) + { + return CreateAudioReverb(ppApo); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT XAudio2CreateReverb( + [NativeTypeName("IUnknown **")] Ref ppApo, + [NativeTypeName("UINT32")] uint Flags = 0 + ) + { + fixed (IUnknown* __dsl_ppApo = ppApo) + { + return (HRESULT)XAudio2CreateReverb(__dsl_ppApo, Flags); + } + } + + public static HRESULT XAudio2CreateVolumeMeter( + [NativeTypeName("IUnknown **")] IUnknown* ppApo, + [NativeTypeName("UINT32")] uint Flags = 0 + ) + { + return CreateAudioVolumeMeter(ppApo); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT XAudio2CreateVolumeMeter( + [NativeTypeName("IUnknown **")] Ref ppApo, + [NativeTypeName("UINT32")] uint Flags = 0 + ) + { + fixed (IUnknown* __dsl_ppApo = ppApo) + { + return (HRESULT)XAudio2CreateVolumeMeter(__dsl_ppApo, Flags); + } + } +} diff --git a/sources/Win32/Win32/DirectX/um/xaudio2fx/XAUDIO2FX.Manual.cs b/sources/Win32/Win32/DirectX/um/xaudio2fx/XAUDIO2FX.Manual.cs new file mode 100644 index 0000000000..ea58203110 --- /dev/null +++ b/sources/Win32/Win32/DirectX/um/xaudio2fx/XAUDIO2FX.Manual.cs @@ -0,0 +1,1962 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/xaudio2fx.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX; + +public static unsafe partial class XAUDIO2FX +{ + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0xF0, + 0xD8, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x80, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x3F, + 0xF0, + 0xD8, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0xF0, + 0xD8, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0x23, + 0x3D, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_GENERIC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x9C, + 0xFF, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0xE1, + 0x7A, + 0x54, + 0x3F, + 0xD6, + 0xF5, + 0xFF, + 0xFF, + 0x42, + 0x60, + 0xE5, + 0x3B, + 0xC8, + 0x00, + 0x00, + 0x00, + 0x58, + 0x39, + 0x34, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PADDEDCELL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x90, + 0xE8, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x7B, + 0x14, + 0x2E, + 0x3E, + 0xCD, + 0xCC, + 0xCC, + 0x3D, + 0x4C, + 0xFB, + 0xFF, + 0xFF, + 0x6F, + 0x12, + 0x83, + 0x3A, + 0xCF, + 0x00, + 0x00, + 0x00, + 0x6F, + 0x12, + 0x03, + 0x3B, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x3A, + 0xFE, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0xCD, + 0xCC, + 0xCC, + 0x3E, + 0xE1, + 0x7A, + 0x54, + 0x3F, + 0x92, + 0xF9, + 0xFF, + 0xFF, + 0x6F, + 0x12, + 0x03, + 0x3B, + 0x35, + 0x00, + 0x00, + 0x00, + 0xA6, + 0x9B, + 0x44, + 0x3B, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_BATHROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x50, + 0xFB, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0x71, + 0x3D, + 0x0A, + 0x3F, + 0x8E, + 0xFE, + 0xFF, + 0xFF, + 0x42, + 0x60, + 0xE5, + 0x3B, + 0x06, + 0x04, + 0x00, + 0x00, + 0x58, + 0x39, + 0x34, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0x70, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LIVINGROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x90, + 0xE8, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x3F, + 0xCD, + 0xCC, + 0xCC, + 0x3D, + 0xA0, + 0xFA, + 0xFF, + 0xFF, + 0xA6, + 0x9B, + 0x44, + 0x3B, + 0xB0, + 0xFB, + 0xFF, + 0xFF, + 0x6F, + 0x12, + 0x83, + 0x3B, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_STONEROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xD4, + 0xFE, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x0A, + 0xD7, + 0x13, + 0x40, + 0x0A, + 0xD7, + 0x23, + 0x3F, + 0x39, + 0xFD, + 0xFF, + 0xFF, + 0xA6, + 0x9B, + 0x44, + 0x3C, + 0x53, + 0x00, + 0x00, + 0x00, + 0x96, + 0x43, + 0x8B, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_AUDITORIUM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x24, + 0xFE, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x71, + 0x3D, + 0x8A, + 0x40, + 0x3D, + 0x0A, + 0x17, + 0x3F, + 0xEB, + 0xFC, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0xDF, + 0xFE, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0xF5, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CONCERTHALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x0C, + 0xFE, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x48, + 0xE1, + 0x7A, + 0x40, + 0x33, + 0x33, + 0x33, + 0x3F, + 0x32, + 0xFB, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0xFE, + 0xFF, + 0xFF, + 0xFF, + 0x68, + 0x91, + 0xED, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CAVE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x71, + 0x3D, + 0x3A, + 0x40, + 0x66, + 0x66, + 0xA6, + 0x3F, + 0xA6, + 0xFD, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0x75, + 0x3C, + 0xD2, + 0xFE, + 0xFF, + 0xFF, + 0x58, + 0x39, + 0xB4, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ARENA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x46, + 0xFD, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x14, + 0xAE, + 0xE7, + 0x40, + 0xC3, + 0xF5, + 0xA8, + 0x3E, + 0x72, + 0xFB, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0x10, + 0x00, + 0x00, + 0x00, + 0x8F, + 0xC2, + 0xF5, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_HANGAR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0xCD, + 0xCC, + 0x20, + 0x41, + 0x1F, + 0x85, + 0x6B, + 0x3E, + 0xA6, + 0xFD, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0xC6, + 0x00, + 0x00, + 0x00, + 0x8F, + 0xC2, + 0xF5, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CARPETEDHALLWAY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x60, + 0xF0, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x9A, + 0x99, + 0x99, + 0x3E, + 0xCD, + 0xCC, + 0xCC, + 0x3D, + 0xD9, + 0xF8, + 0xFF, + 0xFF, + 0x6F, + 0x12, + 0x03, + 0x3B, + 0xA2, + 0xF9, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0xF5, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_HALLWAY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xD4, + 0xFE, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0x3D, + 0x0A, + 0x17, + 0x3F, + 0x3D, + 0xFB, + 0xFF, + 0xFF, + 0x42, + 0x60, + 0xE5, + 0x3B, + 0xB9, + 0x01, + 0x00, + 0x00, + 0x58, + 0x39, + 0x34, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_STONECORRIDOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x13, + 0xFF, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0xCD, + 0xCC, + 0x2C, + 0x40, + 0x71, + 0x3D, + 0x4A, + 0x3F, + 0x42, + 0xFB, + 0xFF, + 0xFF, + 0xF4, + 0xFD, + 0x54, + 0x3C, + 0x8B, + 0x01, + 0x00, + 0x00, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ALLEY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xF2, + 0xFE, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0xF6, + 0x28, + 0x5C, + 0x3F, + 0x4C, + 0xFB, + 0xFF, + 0xFF, + 0x42, + 0x60, + 0xE5, + 0x3B, + 0xFC, + 0xFF, + 0xFF, + 0xFF, + 0x58, + 0x39, + 0x34, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_FOREST + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x1C, + 0xF3, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0x71, + 0x3D, + 0x0A, + 0x3F, + 0x00, + 0xF6, + 0xFF, + 0xFF, + 0x54, + 0xE3, + 0x25, + 0x3E, + 0x9B, + 0xFD, + 0xFF, + 0xFF, + 0x58, + 0x39, + 0xB4, + 0x3D, + 0x00, + 0x00, + 0x9E, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CITY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xE0, + 0xFC, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0x1F, + 0x85, + 0x2B, + 0x3F, + 0x1F, + 0xF7, + 0xFF, + 0xFF, + 0x42, + 0x60, + 0xE5, + 0x3B, + 0x57, + 0xF7, + 0xFF, + 0xFF, + 0x58, + 0x39, + 0x34, + 0x3C, + 0x00, + 0x00, + 0x48, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MOUNTAINS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x3C, + 0xF6, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0x3D, + 0x0A, + 0x57, + 0x3E, + 0x24, + 0xF5, + 0xFF, + 0xFF, + 0x9A, + 0x99, + 0x99, + 0x3E, + 0x22, + 0xF8, + 0xFF, + 0xFF, + 0xCD, + 0xCC, + 0xCC, + 0x3D, + 0x00, + 0x00, + 0xD8, + 0x41, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_QUARRY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0xE1, + 0x7A, + 0x54, + 0x3F, + 0xF0, + 0xD8, + 0xFF, + 0xFF, + 0x23, + 0xDB, + 0x79, + 0x3D, + 0xF4, + 0x01, + 0x00, + 0x00, + 0xCD, + 0xCC, + 0xCC, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PLAIN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x30, + 0xF8, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x3F, + 0x5E, + 0xF6, + 0xFF, + 0xFF, + 0xC7, + 0x4B, + 0x37, + 0x3E, + 0x2E, + 0xF6, + 0xFF, + 0xFF, + 0xCD, + 0xCC, + 0xCC, + 0x3D, + 0x00, + 0x00, + 0xA8, + 0x41, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PARKINGLOT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x33, + 0x33, + 0xD3, + 0x3F, + 0x00, + 0x00, + 0xC0, + 0x3F, + 0xAD, + 0xFA, + 0xFF, + 0xFF, + 0x6F, + 0x12, + 0x03, + 0x3C, + 0x7F, + 0xFB, + 0xFF, + 0xFF, + 0xA6, + 0x9B, + 0x44, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_SEWERPIPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x0A, + 0xD7, + 0x33, + 0x40, + 0x29, + 0x5C, + 0x0F, + 0x3E, + 0xAD, + 0x01, + 0x00, + 0x00, + 0x42, + 0x60, + 0x65, + 0x3C, + 0x88, + 0x02, + 0x00, + 0x00, + 0x31, + 0x08, + 0xAC, + 0x3C, + 0x00, + 0x00, + 0xA0, + 0x42, + 0x00, + 0x00, + 0x70, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_UNDERWATER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x60, + 0xF0, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x52, + 0xB8, + 0xBE, + 0x3F, + 0xCD, + 0xCC, + 0xCC, + 0x3D, + 0x3F, + 0xFE, + 0xFF, + 0xFF, + 0x42, + 0x60, + 0xE5, + 0x3B, + 0xA4, + 0x06, + 0x00, + 0x00, + 0x58, + 0x39, + 0x34, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_SMALLROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xA8, + 0xFD, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0xCD, + 0xCC, + 0x8C, + 0x3F, + 0xE1, + 0x7A, + 0x54, + 0x3F, + 0x70, + 0xFE, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3B, + 0xF4, + 0x01, + 0x00, + 0x00, + 0x0A, + 0xD7, + 0x23, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MEDIUMROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xA8, + 0xFD, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x66, + 0x66, + 0xA6, + 0x3F, + 0xE1, + 0x7A, + 0x54, + 0x3F, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0x23, + 0x3C, + 0x38, + 0xFF, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LARGEROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xA8, + 0xFD, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xC0, + 0x3F, + 0xE1, + 0x7A, + 0x54, + 0x3F, + 0xC0, + 0xF9, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0xA3, + 0x3C, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x0A, + 0xD7, + 0x23, + 0x3D, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MEDIUMHALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xA8, + 0xFD, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x66, + 0x66, + 0xE6, + 0x3F, + 0x33, + 0x33, + 0x33, + 0x3F, + 0xEC, + 0xFA, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0x75, + 0x3C, + 0xE0, + 0xFC, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0xF5, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LARGEHALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0xA8, + 0xFD, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x66, + 0x66, + 0xE6, + 0x3F, + 0x33, + 0x33, + 0x33, + 0x3F, + 0x30, + 0xF8, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0xF5, + 0x3C, + 0x88, + 0xFA, + 0xFF, + 0xFF, + 0x8F, + 0xC2, + 0x75, + 0x3D, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PLATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0xC8, + 0x42, + 0x18, + 0xFC, + 0xFF, + 0xFF, + 0x38, + 0xFF, + 0xFF, + 0xFF, + 0x00, + 0x00, + 0x00, + 0x00, + 0x66, + 0x66, + 0xA6, + 0x3F, + 0x66, + 0x66, + 0x66, + 0x3F, + 0x00, + 0x00, + 0x00, + 0x00, + 0x6F, + 0x12, + 0x03, + 0x3B, + 0x00, + 0x00, + 0x00, + 0x00, + 0x0A, + 0xD7, + 0x23, + 0x3C, + 0x00, + 0x00, + 0xC8, + 0x42, + 0x00, + 0x00, + 0x96, + 0x42, + 0x00, + 0x40, + 0x9C, + 0x45, + ]; + return ref Unsafe.As( + ref MemoryMarshal.GetReference(data) + ); + } + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Blur.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Blur.Manual.cs new file mode 100644 index 0000000000..285675aed6 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Blur.Manual.cs @@ -0,0 +1,27 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct Blur : Blur.Interface +{ + public Blur() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(BlurEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))((Blur*)Unsafe.AsPointer(ref this)); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/BrightnessContrast.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/BrightnessContrast.Manual.cs new file mode 100644 index 0000000000..1b6b7e6b14 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/BrightnessContrast.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct BrightnessContrast : BrightnessContrast.Interface +{ + public BrightnessContrast() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(BrightnessContrastEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (BrightnessContrast*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/CGpEffect.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/CGpEffect.Manual.cs new file mode 100644 index 0000000000..8c19dd7164 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/CGpEffect.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct CGpEffect { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorBalance.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorBalance.Manual.cs new file mode 100644 index 0000000000..86fe0a30c1 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorBalance.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct ColorBalance : ColorBalance.Interface +{ + public ColorBalance() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(ColorBalanceEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (ColorBalance*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorCurve.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorCurve.Manual.cs new file mode 100644 index 0000000000..1602424be2 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorCurve.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct ColorCurve : ColorCurve.Interface +{ + public ColorCurve() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(ColorCurveEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (ColorCurve*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorLUT.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorLUT.Manual.cs new file mode 100644 index 0000000000..b611786286 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorLUT.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct ColorLUT : ColorLUT.Interface +{ + public ColorLUT() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(ColorLUTEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (ColorLUT*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorMatrixEffect.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorMatrixEffect.Manual.cs new file mode 100644 index 0000000000..4cd00a148e --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/ColorMatrixEffect.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct ColorMatrixEffect : ColorMatrixEffect.Interface +{ + public ColorMatrixEffect() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(ColorMatrixEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (ColorMatrixEffect*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Effect.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Effect.Manual.cs new file mode 100644 index 0000000000..d352dc60d6 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Effect.Manual.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct Effect : Effect.Interface +{ + private static readonly void** s_vtbl = InitVtblRaw(); + + public Effect() + { + lpVtbl = s_vtbl; + auxDataSize = 0; + auxData = null; + nativeEffect = null; + useAuxData = 0; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + private static Ptr2D InitVtbl() => (void**)InitVtblRaw(); + + private static void** InitVtblRaw() + { + var lpVtbl = (void**) + RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Effect), sizeof(void*) * 1); + { + lpVtbl[0] = (void*)(delegate* unmanaged)&Dispose; + } + return lpVtbl; + [UnmanagedCallersOnly] + static void Dispose(Effect* pThis) + { + pThis->Dispose(); + } + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/HueSaturationLightness.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/HueSaturationLightness.Manual.cs new file mode 100644 index 0000000000..3d918373b0 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/HueSaturationLightness.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct HueSaturationLightness : HueSaturationLightness.Interface +{ + public HueSaturationLightness() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(HueSaturationLightnessEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (HueSaturationLightness*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Levels.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Levels.Manual.cs new file mode 100644 index 0000000000..74b217bf35 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Levels.Manual.cs @@ -0,0 +1,27 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct Levels : Levels.Interface +{ + public Levels() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(LevelsEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))((Levels*)Unsafe.AsPointer(ref this)); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/RedEyeCorrection.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/RedEyeCorrection.Manual.cs new file mode 100644 index 0000000000..60009d3c78 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/RedEyeCorrection.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct RedEyeCorrection : RedEyeCorrection.Interface +{ + public RedEyeCorrection() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(RedEyeCorrectionEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (RedEyeCorrection*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Sharpen.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Sharpen.Manual.cs new file mode 100644 index 0000000000..5b80221028 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Sharpen.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct Sharpen : Sharpen.Interface +{ + public Sharpen() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(SharpenEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))( + (Sharpen*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Tint.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Tint.Manual.cs new file mode 100644 index 0000000000..a4cb238217 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluseffects/Tint.Manual.cs @@ -0,0 +1,27 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluseffects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Gdiplus.Gdiplus; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public unsafe partial struct Tint : Tint.Interface +{ + public Tint() + { + Base = new Effect(); + CGpEffect* nativeEffect; + _ = GdipCreateEffect(TintEffectGuid, &nativeEffect); + Base.nativeEffect = nativeEffect; + } + + public interface Interface : Effect.Interface { } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void Dispose() + { + ((delegate* unmanaged)(Base.lpVtbl[0]))((Tint*)Unsafe.AsPointer(ref this)); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusenums/Gdiplus.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusenums/Gdiplus.Manual.cs new file mode 100644 index 0000000000..41d9d4eba1 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusenums/Gdiplus.Manual.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplusenums.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.Gdiplus.ObjectType; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public static partial class Gdiplus +{ + [Transformed] + public static MaybeBool ObjectTypeIsValid( + [NativeTypeName("Gdiplus::ObjectType")] ObjectType type + ) => (MaybeBool)(BOOL)ObjectTypeIsValidRaw(type); + + /// + + public static BOOL ObjectTypeIsValidRaw([NativeTypeName("Gdiplus::ObjectType")] ObjectType type) + { + return (type >= ObjectTypeMin) && (type <= ObjectTypeMax); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpAdjustableArrowCap.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpAdjustableArrowCap.Manual.cs new file mode 100644 index 0000000000..b76a166263 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpAdjustableArrowCap.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpAdjustableArrowCap : GpCustomLineCap")] +[NativeInheritance("GpCustomLineCap")] +public partial struct GpAdjustableArrowCap : GpAdjustableArrowCap.Interface +{ + public interface Interface : GpCustomLineCap.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpBitmap.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpBitmap.Manual.cs new file mode 100644 index 0000000000..38699e62e6 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpBitmap.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpBitmap : GpImage")] +[NativeInheritance("GpImage")] +public partial struct GpBitmap : GpBitmap.Interface +{ + public interface Interface : GpImage.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpBrush.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpBrush.Manual.cs new file mode 100644 index 0000000000..084949741e --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpBrush.Manual.cs @@ -0,0 +1,8 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpBrush : GpBrush.Interface +{ + public interface Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpCachedBitmap.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpCachedBitmap.Manual.cs new file mode 100644 index 0000000000..40b6203348 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpCachedBitmap.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpCachedBitmap { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpCustomLineCap.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpCustomLineCap.Manual.cs new file mode 100644 index 0000000000..d4e16d64ac --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpCustomLineCap.Manual.cs @@ -0,0 +1,8 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpCustomLineCap : GpCustomLineCap.Interface +{ + public interface Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFont.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFont.Manual.cs new file mode 100644 index 0000000000..4c71f18886 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFont.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpFont { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFontCollection.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFontCollection.Manual.cs new file mode 100644 index 0000000000..afc826a73b --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFontCollection.Manual.cs @@ -0,0 +1,8 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpFontCollection : GpFontCollection.Interface +{ + public interface Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFontFamily.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFontFamily.Manual.cs new file mode 100644 index 0000000000..e4ef1c9aa6 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpFontFamily.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpFontFamily { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpGraphics.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpGraphics.Manual.cs new file mode 100644 index 0000000000..4412aab78d --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpGraphics.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpGraphics { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpHatch.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpHatch.Manual.cs new file mode 100644 index 0000000000..ee3047e9a0 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpHatch.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpHatch : GpBrush")] +[NativeInheritance("GpBrush")] +public partial struct GpHatch : GpHatch.Interface +{ + public interface Interface : GpBrush.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpImage.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpImage.Manual.cs new file mode 100644 index 0000000000..0d3d588c9b --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpImage.Manual.cs @@ -0,0 +1,8 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpImage : GpImage.Interface +{ + public interface Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpImageAttributes.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpImageAttributes.Manual.cs new file mode 100644 index 0000000000..12ec04d6d4 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpImageAttributes.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpImageAttributes { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpInstalledFontCollection.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpInstalledFontCollection.Manual.cs new file mode 100644 index 0000000000..17f99d203b --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpInstalledFontCollection.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpInstalledFontCollection : GpFontCollection")] +[NativeInheritance("GpFontCollection")] +public partial struct GpInstalledFontCollection : GpInstalledFontCollection.Interface +{ + public interface Interface : GpFontCollection.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpLineGradient.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpLineGradient.Manual.cs new file mode 100644 index 0000000000..1325829659 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpLineGradient.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpLineGradient : GpBrush")] +[NativeInheritance("GpBrush")] +public partial struct GpLineGradient : GpLineGradient.Interface +{ + public interface Interface : GpBrush.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpMatrix.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpMatrix.Manual.cs new file mode 100644 index 0000000000..217f03a14d --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpMatrix.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpMatrix { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpMetafile.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpMetafile.Manual.cs new file mode 100644 index 0000000000..3f5583c063 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpMetafile.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpMetafile : GpImage")] +[NativeInheritance("GpImage")] +public partial struct GpMetafile : GpMetafile.Interface +{ + public interface Interface : GpImage.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPath.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPath.Manual.cs new file mode 100644 index 0000000000..d30ee79417 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPath.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpPath { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPathGradient.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPathGradient.Manual.cs new file mode 100644 index 0000000000..eede047113 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPathGradient.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpPathGradient : GpBrush")] +[NativeInheritance("GpBrush")] +public partial struct GpPathGradient : GpPathGradient.Interface +{ + public interface Interface : GpBrush.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPathIterator.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPathIterator.Manual.cs new file mode 100644 index 0000000000..f282394134 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPathIterator.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpPathIterator { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPen.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPen.Manual.cs new file mode 100644 index 0000000000..b228a958e4 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPen.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpPen { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPrivateFontCollection.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPrivateFontCollection.Manual.cs new file mode 100644 index 0000000000..bc6112649e --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpPrivateFontCollection.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpPrivateFontCollection : GpFontCollection")] +[NativeInheritance("GpFontCollection")] +public partial struct GpPrivateFontCollection : GpPrivateFontCollection.Interface +{ + public interface Interface : GpFontCollection.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpRegion.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpRegion.Manual.cs new file mode 100644 index 0000000000..85f96efbf2 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpRegion.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpRegion { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpSolidFill.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpSolidFill.Manual.cs new file mode 100644 index 0000000000..f9d6caefdd --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpSolidFill.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpSolidFill : GpBrush")] +[NativeInheritance("GpBrush")] +public partial struct GpSolidFill : GpSolidFill.Interface +{ + public interface Interface : GpBrush.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpStringFormat.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpStringFormat.Manual.cs new file mode 100644 index 0000000000..e4c88f440d --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpStringFormat.Manual.cs @@ -0,0 +1,5 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpStringFormat { } diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpTexture.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpTexture.Manual.cs new file mode 100644 index 0000000000..6442ec2163 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusgpstubs/GpTexture.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +[NativeTypeName("struct GpTexture : GpBrush")] +[NativeInheritance("GpBrush")] +public partial struct GpTexture : GpTexture.Interface +{ + public interface Interface : GpBrush.Interface { } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplusmetaheader/MetafileHeader.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplusmetaheader/MetafileHeader.Manual.cs new file mode 100644 index 0000000000..d29c28ab50 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplusmetaheader/MetafileHeader.Manual.cs @@ -0,0 +1,26 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplusmetaheader.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using Silk.NET.Win32; +using static Silk.NET.Gdiplus.MetafileType; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct MetafileHeader +{ + [Transformed] + public readonly MaybeBool IsEmfOrEmfPlus() => (MaybeBool)(BOOL)IsEmfOrEmfPlusRaw(); + + public readonly BOOL IsEmfOrEmfPlusRaw() + { + return Type >= MetafileTypeEmf; + } + + [Transformed] + public readonly MaybeBool IsEmfPlus() => (MaybeBool)(BOOL)IsEmfPlusRaw(); + + public readonly BOOL IsEmfPlusRaw() + { + return Type >= MetafileTypeEmfPlusOnly; + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdipluspixelformats/Gdiplus.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdipluspixelformats/Gdiplus.Manual.cs new file mode 100644 index 0000000000..a2d1307717 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdipluspixelformats/Gdiplus.Manual.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdipluspixelformats.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public static partial class Gdiplus +{ + /// + + public static uint GetPixelFormatSize([NativeTypeName("Gdiplus::PixelFormat")] int pixfmt) + { + return (uint)((pixfmt >> 8) & 0xff); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplustypes/Gdiplus.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/Gdiplus.Manual.cs new file mode 100644 index 0000000000..6a3d66cafe --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/Gdiplus.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplustypes.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public static partial class Gdiplus +{ + [NativeTypeName("#define REAL_MAX FLT_MAX")] + public const float REAL_MAX = float.MaxValue; + + [NativeTypeName("#define REAL_MIN FLT_MIN")] + public const float REAL_MIN = float.MinValue; + + [NativeTypeName("#define REAL_TOLERANCE (FLT_MIN * 100)")] + public const float REAL_TOLERANCE = (float.MinValue * 100); +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpPoint.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpPoint.Manual.cs new file mode 100644 index 0000000000..93db5fb17d --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpPoint.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplustypes.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpPoint +{ + public static GpPoint operator +(in GpPoint self, in GpPoint point) + { + return new GpPoint(self.X + point.X, self.Y + point.Y); + } + + public static GpPoint operator -(in GpPoint self, in GpPoint point) + { + return new GpPoint(self.X - point.X, self.Y - point.Y); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpPointF.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpPointF.Manual.cs new file mode 100644 index 0000000000..7e893803f0 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpPointF.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplustypes.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpPointF +{ + public static GpPointF operator +(in GpPointF self, in GpPointF point) + { + return new GpPointF(self.X + point.X, self.Y + point.Y); + } + + public static GpPointF operator -(in GpPointF self, in GpPointF point) + { + return new GpPointF(self.X - point.X, self.Y - point.Y); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpSizeF.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpSizeF.Manual.cs new file mode 100644 index 0000000000..849386e2ee --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/GpSizeF.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplustypes.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct GpSizeF +{ + public static GpSizeF operator +(in GpSizeF self, in GpSizeF sz) + { + return new GpSizeF(self.Width + sz.Width, self.Height + sz.Height); + } + + public static GpSizeF operator -(in GpSizeF self, in GpSizeF sz) + { + return new GpSizeF(self.Width - sz.Width, self.Height - sz.Height); + } +} diff --git a/sources/Win32/Win32/Gdiplus/um/gdiplustypes/Size.Manual.cs b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/Size.Manual.cs new file mode 100644 index 0000000000..859cb94eb9 --- /dev/null +++ b/sources/Win32/Win32/Gdiplus/um/gdiplustypes/Size.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/gdiplustypes.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Gdiplus; + +public partial struct Size +{ + public static Size operator +(in Size self, in Size sz) + { + return new Size(self.Width + sz.Width, self.Height + sz.Height); + } + + public static Size operator -(in Size self, in Size sz) + { + return new Size(self.Width - sz.Width, self.Height - sz.Height); + } +} diff --git a/sources/Win32/Win32/Silk.NET.Win32.csproj b/sources/Win32/Win32/Silk.NET.Win32.csproj index ae96d056eb..8fbf4abbc1 100644 --- a/sources/Win32/Win32/Silk.NET.Win32.csproj +++ b/sources/Win32/Win32/Silk.NET.Win32.csproj @@ -8,5 +8,14 @@ + + + + + + + True + + diff --git a/sources/Win32/Win32/WinRT/um/windows.data.pdf.interop/WinRT.Manual.cs b/sources/Win32/Win32/WinRT/um/windows.data.pdf.interop/WinRT.Manual.cs new file mode 100644 index 0000000000..ff323588a0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/um/windows.data.pdf.interop/WinRT.Manual.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/windows.data.pdf.interop.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using System.Runtime.Versioning; +using Silk.NET.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +public static partial class WinRT +{ + [SupportedOSPlatform("windows6.3")] + public static unsafe PDF_RENDER_PARAMS PdfRenderParams( + [NativeTypeName("const D2D_RECT_F &")] D2D_RECT_F* srcRect, + [NativeTypeName("UINT32")] uint destinationWidth, + [NativeTypeName("UINT32")] uint destinationHeight, + [NativeTypeName("const D2D_COLOR_F &")] DXGI_RGBA* bkColor, + [NativeTypeName("BOOLEAN")] byte ignoreHighContrast + ) + { + PDF_RENDER_PARAMS p = new PDF_RENDER_PARAMS + { + SourceRect = *srcRect, + DestinationWidth = destinationWidth, + DestinationHeight = destinationHeight, + BackgroundColor = *bkColor, + IgnoreHighContrast = ignoreHighContrast, + }; + return p; + } + + [SupportedOSPlatform("windows6.3")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static unsafe PDF_RENDER_PARAMS PdfRenderParams( + [NativeTypeName("const D2D_RECT_F &")] Ref srcRect, + [NativeTypeName("UINT32")] uint destinationWidth, + [NativeTypeName("UINT32")] uint destinationHeight, + [NativeTypeName("const D2D_COLOR_F &")] Ref bkColor, + [NativeTypeName("BOOLEAN")] byte ignoreHighContrast + ) + { + fixed (DXGI_RGBA* __dsl_bkColor = bkColor) + fixed (D2D_RECT_F* __dsl_srcRect = srcRect) + { + return (PDF_RENDER_PARAMS)PdfRenderParams( + __dsl_srcRect, + destinationWidth, + destinationHeight, + __dsl_bkColor, + ignoreHighContrast + ); + } + } +} diff --git a/sources/Win32/Win32/WinRT/um/windows.graphics.directx.direct3d11.interop/WinRT.Manual.cs b/sources/Win32/Win32/WinRT/um/windows.graphics.directx.direct3d11.interop/WinRT.Manual.cs new file mode 100644 index 0000000000..5ac0599464 --- /dev/null +++ b/sources/Win32/Win32/WinRT/um/windows.graphics.directx.direct3d11.interop/WinRT.Manual.cs @@ -0,0 +1,78 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/windows.graphics.directx.direct3d11.interop.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using Silk.NET.DirectX; +using Silk.NET.Win32; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +public static unsafe partial class WinRT +{ + public static IInspectable CreateDirect3DDevice(IDXGISurface dxgiSurface) + { + IInspectable inspectableSurface; + Marshal.ThrowExceptionForHR( + CreateDirect3D11SurfaceFromDXGISurface(dxgiSurface, &inspectableSurface) + ); + return inspectableSurface; + } + + [SupportedOSPlatform("windows10.0.19043.0")] + public static HRESULT GetDXGIInterface(IInspectable @object, out DXGI_TYPE dxgi) + where DXGI_TYPE : unmanaged, IComInterface + { + dxgi = default; + return GetDXGIInterfaceFromObject(@object, __uuidof(), dxgi.GetAddressOf()); + } + + [SupportedOSPlatform("windows10.0.19043.0")] + public static HRESULT GetDXGIInterfaceFromObject(IInspectable @object, Guid* iid, void** p) + { + IDirect3DDxgiInterfaceAccess dxgiInterfaceAccess; + HRESULT hr = @object.QueryInterface( + __uuidof(), + (void**)&dxgiInterfaceAccess + ); + if (SUCCEEDED(hr)) + { + hr = dxgiInterfaceAccess.GetInterface(iid, p); + } + _ = dxgiInterfaceAccess.Release(); + return hr; + } + + [SupportedOSPlatform("windows10.0.19043.0")] + public static HRESULT GetDXGIInterfaceFromObject(IInspectable @object, out TCom p) + where TCom : unmanaged, IComInterface + { + p = default; + IDirect3DDxgiInterfaceAccess dxgiInterfaceAccess; + HRESULT hr = @object.QueryInterface( + __uuidof(), + (void**)&dxgiInterfaceAccess + ); + if (SUCCEEDED(hr)) + { + hr = dxgiInterfaceAccess.GetInterface(TCom.NativeGuid, p.GetAddressOf()); + } + _ = dxgiInterfaceAccess.Release(); + return hr; + } + + [SupportedOSPlatform("windows10.0.19043.0")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT GetDXGIInterfaceFromObject(IInspectable @object, Ref iid, Ref2D p) + { + fixed (void** __dsl_p = p) + fixed (Guid* __dsl_iid = iid) + { + return (HRESULT)GetDXGIInterfaceFromObject(@object, __dsl_iid, __dsl_p); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/hstring/HSTRING_HEADER.Manual.cs b/sources/Win32/Win32/WinRT/winrt/hstring/HSTRING_HEADER.Manual.cs new file mode 100644 index 0000000000..0146331fc1 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/hstring/HSTRING_HEADER.Manual.cs @@ -0,0 +1,30 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/hstring.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +public partial struct HSTRING_HEADER +{ + [NativeTypeName( + "union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/winrt/hstring.h:80:5)" + )] + public _Reserved_e__Union Reserved; + + // The definition of this anonymous union in hstring.h is different on 64 bit compared to 32 bit. + // On 64 bit, Reserved1 is a 24 byte buffer. On 32 bit, Reserved1 is only a 20 byte buffer. + // To avoid producing multiple builds of the managed bindings, we use a 16 byte buffer and a native int instead, preserving the same layout. + // Using this strategy, trying to match the native definition of this union would be too contrived. + // Since the contents of this structure are undefined, it is not important to provide the same definitions. + public unsafe partial struct _Reserved_e__Union + { + internal fixed byte Reserved1_0[16]; + internal nuint Reserved1_1; + public ref byte this[int index] => ref AsSpan()[index]; + + public Span AsSpan() => + MemoryMarshal.CreateSpan(ref Reserved1_0[0], sizeof(_Reserved_e__Union)); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/roapi/WinRT.Manual.cs b/sources/Win32/Win32/WinRT/winrt/roapi/WinRT.Manual.cs new file mode 100644 index 0000000000..f85381f53b --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/roapi/WinRT.Manual.cs @@ -0,0 +1,86 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/roapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using System.Runtime.Versioning; +using Silk.NET.Win32; +using static Silk.NET.Win32.IID; +using static Silk.NET.Win32.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +public static unsafe partial class WinRT +{ + [SupportedOSPlatform("windows6.2")] + public static HRESULT ActivateInstance(HSTRING activatableClassId, T* instance) + where T : unmanaged, IComInterface + { + IInspectable pInspectable; + HRESULT hr = RoActivateInstance(activatableClassId, &pInspectable); + if (SUCCEEDED(hr)) + { + if (__uuidof() == IID_IInspectable) + { + void** address = instance->GetAddressOf(); + *address = pInspectable.lpVtbl; + } + else + { + hr = pInspectable.QueryInterface(__uuidof(), instance->GetAddressOf()); + _ = pInspectable.Release(); + } + } + return hr; + } + + [SupportedOSPlatform("windows6.2")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT ActivateInstance(HSTRING activatableClassId, out T instance) + where T : unmanaged, IComInterface + { + instance = default; + return ActivateInstance(activatableClassId, (T*)instance.GetAddressOf()); + } + + [SupportedOSPlatform("windows6.2")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT ActivateInstance(HSTRING activatableClassId, Ref instance) + where T : unmanaged, IComInterface + { + fixed (T* __dsl_instance = instance) + { + return (HRESULT)ActivateInstance(activatableClassId, __dsl_instance); + } + } + + [SupportedOSPlatform("windows6.2")] + public static HRESULT GetActivationFactory(HSTRING activatableClassId, T* factory) + where T : unmanaged, IComInterface + { + return RoGetActivationFactory(activatableClassId, __uuidof(), (void**)factory); + } + + [SupportedOSPlatform("windows6.2")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT GetActivationFactory(HSTRING activatableClassId, Ref factory) + where T : unmanaged, IComInterface + { + fixed (T* __dsl_factory = factory) + { + return (HRESULT)GetActivationFactory(activatableClassId, __dsl_factory); + } + } + + [SupportedOSPlatform("windows6.2")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT GetActivationFactory(HSTRING activatableClassId, out T factory) + where T : unmanaged, IComInterface + { + factory = default; + return GetActivationFactory(activatableClassId, (T*)factory.GetAddressOf()); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.activation/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.activation/IID.Manual.cs new file mode 100644 index 0000000000..299a014707 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.activation/IID.Manual.cs @@ -0,0 +1,1741 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.activation.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x17, + 0x65, + 0xCF, + 0x08, + 0xCD, + 0xD8, + 0x4F, + 0xB6, + 0x97, + 0xA2, + 0x81, + 0xB6, + 0x54, + 0x4E, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivatedEventArgsWithUser + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x9B, + 0xF0, + 0x1C, + 0x62, + 0x99, + 0x36, + 0x49, + 0x80, + 0xFF, + 0xAF, + 0xC8, + 0xE8, + 0xAE, + 0x5C, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xEF, + 0x0C, + 0x93, + 0x29, + 0xB8, + 0xFC, + 0x40, + 0x88, + 0xF4, + 0x85, + 0x13, + 0xE8, + 0xA6, + 0x47, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0xC4, + 0x64, + 0x33, + 0x3C, + 0x93, + 0x7D, + 0x4E, + 0xA0, + 0x34, + 0x50, + 0x0F, + 0xB8, + 0xDC, + 0xD9, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderAddAppointmentActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x13, + 0x86, + 0xA2, + 0xE5, + 0xCE, + 0x4D, + 0x4E, + 0x9E, + 0xD7, + 0x41, + 0xC3, + 0x4E, + 0xC1, + 0x8B, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderRemoveAppointmentActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x3A, + 0x1F, + 0x75, + 0x8E, + 0x0B, + 0x1C, + 0x45, + 0x9F, + 0x15, + 0x96, + 0x6E, + 0x69, + 0x9B, + 0xAC, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderReplaceAppointmentActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0xB7, + 0x51, + 0x15, + 0x81, + 0xA9, + 0x67, + 0x40, + 0x8A, + 0x62, + 0x05, + 0x24, + 0xE4, + 0xAD, + 0xE1, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xF0, + 0x58, + 0x39, + 0x41, + 0x98, + 0xA5, + 0x4C, + 0x99, + 0x9B, + 0x88, + 0x51, + 0x98, + 0xB9, + 0xEF, + 0x2A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderShowTimeFrameActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0xAB, + 0xAE, + 0x9B, + 0x0B, + 0x0E, + 0xAA, + 0x49, + 0xBA, + 0xBC, + 0x12, + 0xB1, + 0xDC, + 0x77, + 0x49, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xBE, + 0x14, + 0xAB, + 0x60, + 0xE7, + 0x0E, + 0x44, + 0xA9, + 0x1C, + 0x44, + 0x79, + 0x6D, + 0xE3, + 0xA9, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarcodeScannerPreviewActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0x79, + 0x72, + 0x67, + 0xBF, + 0x99, + 0x49, + 0x43, + 0xAF, + 0x22, + 0xE4, + 0x12, + 0x35, + 0x60, + 0x37, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileUpdaterActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xB1, + 0x6E, + 0xD0, + 0x05, + 0x38, + 0xCB, + 0x4E, + 0xB7, + 0x57, + 0x6C, + 0xF1, + 0x5E, + 0x26, + 0xFE, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraSettingsActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0xA5, + 0x67, + 0xFB, + 0xAD, + 0x2D, + 0x0A, + 0x49, + 0x91, + 0x70, + 0xDC, + 0xA0, + 0x36, + 0xEB, + 0x11, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICommandLineActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x47, + 0x06, + 0x45, + 0x6A, + 0x00, + 0xEB, + 0x48, + 0x8A, + 0xFB, + 0xD0, + 0x7A, + 0xB2, + 0x5E, + 0x33, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICommandLineActivationOperation + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x28, + 0x4B, + 0x99, + 0x9E, + 0xC5, + 0x69, + 0x4F, + 0xBC, + 0xFD, + 0xB6, + 0x1E, + 0xD4, + 0xE6, + 0x22, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xA1, + 0x27, + 0xD6, + 0x25, + 0xC0, + 0x41, + 0x4C, + 0x9D, + 0xEF, + 0xF1, + 0xEA, + 0xFA, + 0xD0, + 0x75, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactCallActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x14, + 0xDF, + 0xC2, + 0xEB, + 0x30, + 0xC6, + 0x41, + 0xB3, + 0xBC, + 0x5B, + 0x16, + 0x94, + 0xF9, + 0xDA, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactMapActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xF8, + 0x2B, + 0xB3, + 0xE7, + 0xEE, + 0xD2, + 0x4A, + 0xAA, + 0xF1, + 0xA8, + 0x7E, + 0xFF, + 0xCF, + 0x00, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactMessageActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x8D, + 0x59, + 0xDE, + 0x03, + 0x0E, + 0xB0, + 0x43, + 0xBF, + 0x56, + 0xBC, + 0xC4, + 0x0B, + 0x31, + 0x62, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPanelActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x63, + 0xBB, + 0x52, + 0xD4, + 0xD3, + 0x63, + 0x4B, + 0x80, + 0x51, + 0x4A, + 0xF2, + 0x08, + 0x2C, + 0xAB, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPickerActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xAA, + 0x57, + 0xCE, + 0x49, + 0x64, + 0xA7, + 0x45, + 0x97, + 0x1F, + 0xD1, + 0x13, + 0xBE, + 0x7A, + 0x89, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPostActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x3C, + 0x5A, + 0xB3, + 0xE7, + 0xF1, + 0x55, + 0x46, + 0xAD, + 0x6E, + 0x48, + 0x57, + 0x58, + 0x8F, + 0x55, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactVideoCallActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x9D, + 0x07, + 0x61, + 0xE7, + 0xE3, + 0x4F, + 0x4B, + 0x85, + 0x8D, + 0x5C, + 0x63, + 0xA9, + 0x6E, + 0xF6, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactsProviderActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0xDC, + 0x80, + 0x45, + 0x50, + 0x57, + 0x16, + 0x49, + 0xAA, + 0x52, + 0xC0, + 0x82, + 0x95, + 0x21, + 0xEB, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContinuationActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0x06, + 0x81, + 0xE5, + 0x5F, + 0x15, + 0x94, + 0x4A, + 0xA7, + 0x42, + 0xC7, + 0xE0, + 0x8F, + 0x4E, + 0x18, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0xB9, + 0x50, + 0xCD, + 0x10, + 0xCE, + 0xD2, + 0x44, + 0x82, + 0x34, + 0xC3, + 0x55, + 0xA0, + 0x73, + 0xEF, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePairingActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xD1, + 0xA0, + 0xEB, + 0xC6, + 0xEC, + 0x48, + 0x41, + 0x94, + 0xED, + 0xF4, + 0xB3, + 0x7E, + 0xC0, + 0x5B, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDialReceiverActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x7E, + 0x77, + 0xFB, + 0xEE, + 0x85, + 0x6E, + 0x45, + 0xA4, + 0x4D, + 0x85, + 0xD7, + 0x30, + 0xE7, + 0x0A, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0xFC, + 0x2A, + 0xBB, + 0xB1, + 0x93, + 0xED, + 0x42, + 0x8B, + 0x26, + 0x23, + 0x6D, + 0xD9, + 0xC7, + 0x84, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileActivatedEventArgsWithCallerPackageFamilyName + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0xF0, + 0x60, + 0x2D, + 0x5F, + 0xD2, + 0x25, + 0x4D, + 0x86, + 0x53, + 0xE1, + 0xC5, + 0xE1, + 0x10, + 0x83, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileActivatedEventArgsWithNeighboringFiles + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0xA1, + 0x3B, + 0x43, + 0xE2, + 0xE1, + 0xFD, + 0x48, + 0xB7, + 0xFC, + 0xB5, + 0xD6, + 0xEE, + 0xE6, + 0x50, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPickerActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x70, + 0x82, + 0x72, + 0x25, + 0x55, + 0xF2, + 0x4B, + 0xBC, + 0x09, + 0x1F, + 0x50, + 0x95, + 0xD4, + 0x96, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPickerActivatedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x1F, + 0x73, + 0x5E, + 0x1F, + 0x8D, + 0xFB, + 0x45, + 0xAF, + 0x1D, + 0x73, + 0x20, + 0x5C, + 0x8F, + 0xC7, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPickerContinuationEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0x3F, + 0xFA, + 0xF0, + 0xE8, + 0xD4, + 0xD3, + 0x4A, + 0x9C, + 0x34, + 0x23, + 0x08, + 0xF3, + 0x2F, + 0xCE, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePickerActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x9C, + 0xC1, + 0x81, + 0xE6, + 0x74, + 0x87, + 0x43, + 0x82, + 0xEB, + 0xBB, + 0x8F, + 0xD6, + 0x4B, + 0x43, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePickerActivatedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0xFE, + 0x73, + 0x6B, + 0xF2, + 0x2C, + 0x48, + 0x4D, + 0x8C, + 0xBC, + 0xAF, + 0x67, + 0xD2, + 0x3F, + 0x1C, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePickerContinuationEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x6F, + 0x84, + 0x2C, + 0xAD, + 0x3B, + 0x33, + 0x4F, + 0x8C, + 0x8B, + 0xE4, + 0x6F, + 0xAE, + 0x82, + 0x4B, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFolderPickerContinuationEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x23, + 0x88, + 0x51, + 0x4B, + 0x9F, + 0x8F, + 0x49, + 0xBE, + 0xB0, + 0x42, + 0x68, + 0x4F, + 0x6E, + 0x1C, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILaunchActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x3E, + 0xC9, + 0xFB, + 0x4A, + 0xA1, + 0x4F, + 0x4B, + 0x82, + 0xB0, + 0x33, + 0xBE, + 0xD9, + 0x20, + 0xAF, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILaunchActivatedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x7E, + 0xD3, + 0x0F, + 0xC9, + 0x9D, + 0xB5, + 0x46, + 0x9A, + 0xCE, + 0xBD, + 0x95, + 0xD4, + 0x56, + 0x53, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILockScreenActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x79, + 0xA7, + 0x3C, + 0x08, + 0x61, + 0x41, + 0x4A, + 0x82, + 0x20, + 0xEE, + 0x7D, + 0x13, + 0x3C, + 0x85, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILockScreenCallActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x7F, + 0xF3, + 0x06, + 0xF2, + 0xB5, + 0x8B, + 0x44, + 0xB1, + 0x3E, + 0xE3, + 0x28, + 0xAC, + 0x1C, + 0x51, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x52, + 0x61, + 0x54, + 0xC1, + 0xA3, + 0xED, + 0x4C, + 0xB6, + 0x2F, + 0x8C, + 0x60, + 0x52, + 0x36, + 0x19, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPickerReturnedActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xEF, + 0x0D, + 0x36, + 0xD3, + 0xA9, + 0x84, + 0x49, + 0xA4, + 0xED, + 0x9E, + 0xC7, + 0x34, + 0x60, + 0x49, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrelaunchActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x71, + 0x44, + 0x0C, + 0xF7, + 0x19, + 0xD6, + 0x48, + 0xB0, + 0x46, + 0xCF, + 0x22, + 0x82, + 0x6E, + 0xAA, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrint3DWorkflowActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0xE7, + 0x57, + 0x3F, + 0xAC, + 0xF2, + 0x19, + 0x46, + 0x83, + 0x02, + 0xEF, + 0x85, + 0x5E, + 0x1C, + 0x9B, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskSettingsActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0xA0, + 0x30, + 0xEE, + 0x56, + 0xCE, + 0x65, + 0x48, + 0xBA, + 0x8E, + 0x89, + 0x54, + 0xAC, + 0x27, + 0x11, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtocolActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0xF4, + 0x95, + 0x60, + 0xC0, + 0xB7, + 0xAB, + 0x46, + 0x81, + 0xFE, + 0xD9, + 0x0F, + 0x36, + 0xD0, + 0x0D, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x0C, + 0x4A, + 0xD8, + 0x8F, + 0x5C, + 0x8C, + 0x43, + 0x83, + 0xCB, + 0xC2, + 0x8F, + 0xCC, + 0x0B, + 0x2F, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtocolForResultsActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x32, + 0x51, + 0xE7, + 0xE7, + 0x7A, + 0x17, + 0x45, + 0x80, + 0xAC, + 0xDB, + 0xE8, + 0xD7, + 0xCC, + 0x5B, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRestrictedLaunchActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0xAC, + 0xB7, + 0xE0, + 0xC3, + 0xBF, + 0x44, + 0x43, + 0xA5, + 0xDA, + 0x19, + 0xFD, + 0x5A, + 0x27, + 0xBA, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x69, + 0xB3, + 0x8C, + 0xC8, + 0x58, + 0xE3, + 0x43, + 0x94, + 0xBC, + 0x41, + 0xD3, + 0x3F, + 0x8B, + 0x63, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchActivatedEventArgsWithLinguisticDetails + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x33, + 0x9F, + 0xC0, + 0xAB, + 0x08, + 0x31, + 0x49, + 0x9B, + 0x7C, + 0x45, + 0x10, + 0x25, + 0xF2, + 0x1F, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareTargetActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0xF9, + 0xDA, + 0x4B, + 0xB2, + 0xCD, + 0xCB, + 0x4A, + 0xBF, + 0xC3, + 0x66, + 0x48, + 0x56, + 0x33, + 0x78, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISplashScreen + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x97, + 0x4D, + 0xCA, + 0xD6, + 0xD4, + 0xF0, + 0x43, + 0x97, + 0xC0, + 0x08, + 0x33, + 0xC6, + 0x39, + 0x1C, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStartupTaskActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0x1A, + 0xB1, + 0x03, + 0x76, + 0x52, + 0x91, + 0x4D, + 0x86, + 0x21, + 0x54, + 0x61, + 0x18, + 0x64, + 0xD5, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileActivatedInfo + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xA3, + 0xE4, + 0x80, + 0x80, + 0x39, + 0x17, + 0x4F, + 0xB7, + 0x38, + 0x89, + 0x19, + 0x4E, + 0x0B, + 0x8F, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x6F, + 0xA8, + 0x92, + 0x90, + 0x52, + 0x1D, + 0x43, + 0xBE, + 0x85, + 0xC4, + 0xAA, + 0xEE, + 0xB8, + 0x68, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountProviderActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xF7, + 0xC9, + 0x1B, + 0xF1, + 0x8E, + 0x51, + 0x4A, + 0xA6, + 0x3A, + 0xFE, + 0x71, + 0x1E, + 0xEA, + 0xB6, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IViewSwitcherProvider + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x88, + 0xF2, + 0x33, + 0x2C, + 0x5C, + 0x27, + 0x4D, + 0xBA, + 0xC7, + 0x75, + 0x36, + 0x08, + 0x8F, + 0x12, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoiceCommandActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0xDC, + 0x92, + 0xAB, + 0x43, + 0x8D, + 0xE6, + 0x4D, + 0x97, + 0x75, + 0x20, + 0x70, + 0x4B, + 0x58, + 0x1B, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletActionActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x02, + 0xFC, + 0xFC, + 0x1A, + 0x1A, + 0x22, + 0x4D, + 0x92, + 0x3F, + 0xAE, + 0x6F, + 0x45, + 0xFA, + 0x52, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x17, + 0xB7, + 0x72, + 0xEA, + 0x98, + 0xCF, + 0x4C, + 0x97, + 0x52, + 0x46, + 0xD9, + 0x05, + 0x10, + 0x04, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAuthenticationBrokerContinuationEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0xA3, + 0xDD, + 0x75, + 0x14, + 0x77, + 0x3D, + 0x45, + 0xB7, + 0xFF, + 0xB9, + 0x5E, + 0x3A, + 0x17, + 0x09, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appointments.appointmentsprovider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appointments.appointmentsprovider/IID.Manual.cs new file mode 100644 index 0000000000..48968c2000 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appointments.appointmentsprovider/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.appointments.appointmentsprovider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAddAppointmentOperation + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x9A, + 0x4A, + 0xEC, + 0x0D, + 0x62, + 0x69, + 0x4C, + 0xAD, + 0xD7, + 0x97, + 0x94, + 0xE9, + 0x18, + 0x08, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderLaunchActionVerbsStatics + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0xBA, + 0xDB, + 0x36, + 0x2E, + 0x9E, + 0xC6, + 0x49, + 0x8E, + 0xF7, + 0x3A, + 0xB7, + 0xA5, + 0xDC, + 0xC8, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentsProviderLaunchActionVerbsStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x49, + 0x90, + 0xEF, + 0x21, + 0xAF, + 0x3C, + 0x47, + 0x88, + 0xDC, + 0x76, + 0xCD, + 0x89, + 0xF6, + 0x0C, + 0xA5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoveAppointmentOperation + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x6A, + 0xB6, + 0x08, + 0x33, + 0xFE, + 0xCD, + 0x46, + 0xA5, + 0x0C, + 0xA8, + 0xFF, + 0xB3, + 0x26, + 0x05, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IReplaceAppointmentOperation + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x3D, + 0x90, + 0xF4, + 0x61, + 0x9E, + 0xE2, + 0x4D, + 0xA7, + 0x32, + 0x26, + 0x87, + 0xC0, + 0x7D, + 0x1D, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appointments/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appointments/IID.Manual.cs new file mode 100644 index 0000000000..3ce5f5611e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appointments/IID.Manual.cs @@ -0,0 +1,904 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.appointments.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAppointment + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x2F, + 0x00, + 0xDD, + 0xDD, + 0x2B, + 0x76, + 0x40, + 0x90, + 0xA3, + 0x22, + 0xC2, + 0x75, + 0x31, + 0x29, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointment2 + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x98, + 0x85, + 0x5E, + 0x0F, + 0x54, + 0x52, + 0x34, + 0x9B, + 0x5C, + 0x0D, + 0xD7, + 0xAD, + 0x4C, + 0x65, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointment3 + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x45, + 0xCC, + 0xBF, + 0x61, + 0x89, + 0x91, + 0x49, + 0x93, + 0x4B, + 0xC4, + 0x87, + 0x68, + 0xE5, + 0xA9, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentCalendar + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x81, + 0x73, + 0x52, + 0x39, + 0x83, + 0x4F, + 0x3D, + 0xA0, + 0x2F, + 0x64, + 0x08, + 0x44, + 0x52, + 0xBB, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentCalendar2 + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0xE4, + 0xE7, + 0x18, + 0x67, + 0x24, + 0x1C, + 0x4E, + 0xA4, + 0x59, + 0xD8, + 0xA2, + 0x93, + 0x03, + 0xD0, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentCalendar3 + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0xD2, + 0x23, + 0xEB, + 0x85, + 0xA6, + 0xAE, + 0x42, + 0x84, + 0x95, + 0xB3, + 0x11, + 0x9A, + 0xDB, + 0x41, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentCalendarSyncManager + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0xB3, + 0x21, + 0x2B, + 0xFF, + 0x4A, + 0x92, + 0x43, + 0xBC, + 0x5F, + 0x56, + 0x45, + 0xFF, + 0xCF, + 0xFB, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentCalendarSyncManager2 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x28, + 0x75, + 0x64, + 0x29, + 0x0D, + 0x7C, + 0x4C, + 0xAA, + 0xA7, + 0xBF, + 0x99, + 0x68, + 0x05, + 0x53, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentConflictResult + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0xF0, + 0xCD, + 0xD5, + 0x2F, + 0x2F, + 0x7D, + 0x3B, + 0xAF, + 0x0A, + 0xA7, + 0xE2, + 0x0F, + 0x3A, + 0x46, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentException + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x67, + 0x07, + 0xA2, + 0xF6, + 0x16, + 0xCE, + 0x4B, + 0x9F, + 0x5A, + 0x86, + 0x00, + 0xB8, + 0x01, + 0x9F, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentInvitee + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x07, + 0xBF, + 0x13, + 0x42, + 0x98, + 0x5B, + 0x49, + 0xB0, + 0xE7, + 0xEF, + 0x8F, + 0x79, + 0xC0, + 0x70, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x14, + 0x26, + 0x70, + 0xCC, + 0x73, + 0x60, + 0x46, + 0xB3, + 0x18, + 0xB0, + 0x13, + 0x65, + 0x30, + 0x2A, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xFA, + 0x30, + 0x3A, + 0x40, + 0x5C, + 0x9D, + 0x49, + 0xB3, + 0x3F, + 0xA4, + 0x30, + 0x50, + 0xF7, + 0x4F, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xF6, + 0x81, + 0x0A, + 0x4F, + 0xD0, + 0x34, + 0x40, + 0xAF, + 0x72, + 0xA3, + 0x65, + 0x73, + 0xB4, + 0x5F, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xE0, + 0x9A, + 0x2F, + 0x4C, + 0xB3, + 0xC7, + 0x4D, + 0xA3, + 0x5D, + 0xCA, + 0xFD, + 0x88, + 0xAE, + 0x3E, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentParticipant + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x29, + 0x5E, + 0x61, + 0x18, + 0x97, + 0x7B, + 0x46, + 0x83, + 0xFB, + 0xB2, + 0x93, + 0xA1, + 0x91, + 0x21, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x1F, + 0x14, + 0x25, + 0xAE, + 0x68, + 0xAE, + 0x3A, + 0x85, + 0x5F, + 0xBC, + 0x44, + 0x41, + 0xCA, + 0xA2, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentPropertiesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x43, + 0xFC, + 0xDF, + 0x17, + 0xB0, + 0xDD, + 0x45, + 0x8A, + 0xF5, + 0xD1, + 0x63, + 0xD1, + 0x08, + 0x01, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentRecurrence + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x3E, + 0x7B, + 0xD8, + 0xA6, + 0x15, + 0x7B, + 0x48, + 0xB9, + 0x59, + 0x0C, + 0x36, + 0x1E, + 0x60, + 0xE9, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentRecurrence2 + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xA2, + 0xF3, + 0x3D, + 0xA7, + 0x05, + 0x50, + 0x4F, + 0x9F, + 0x86, + 0xB0, + 0x3F, + 0x94, + 0x36, + 0x25, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentRecurrence3 + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x96, + 0xFF, + 0x89, + 0x4D, + 0xDA, + 0x17, + 0x4A, + 0x8D, + 0xD2, + 0x1C, + 0xEB, + 0xC2, + 0xB5, + 0xFF, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStore + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x91, + 0x61, + 0xA4, + 0x47, + 0x7A, + 0x96, + 0x4D, + 0x96, + 0xC9, + 0x15, + 0xCD, + 0x8A, + 0x05, + 0xA7, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStore2 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x8C, + 0xC4, + 0x25, + 0x41, + 0x1C, + 0x4F, + 0x42, + 0x80, + 0x84, + 0x67, + 0xC1, + 0xCF, + 0xE0, + 0xA8, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStore3 + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x94, + 0x51, + 0x42, + 0x78, + 0xB0, + 0x0A, + 0x47, + 0x9A, + 0x40, + 0xC2, + 0xE0, + 0x17, + 0x61, + 0xF7, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChange + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0xE0, + 0xA6, + 0xA5, + 0x33, + 0x0A, + 0x54, + 0x36, + 0x84, + 0x63, + 0xB5, + 0x43, + 0xE9, + 0x0C, + 0x3B, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChange2 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x0D, + 0x7D, + 0xB3, + 0x11, + 0x52, + 0x02, + 0x44, + 0xA6, + 0x08, + 0xA9, + 0x6F, + 0xE7, + 0x0B, + 0x8E, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChangeReader + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x09, + 0x24, + 0x8B, + 0xF3, + 0x65, + 0xA0, + 0x42, + 0x96, + 0x1D, + 0x4C, + 0x20, + 0x9B, + 0xF3, + 0x03, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChangeTracker + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xF4, + 0x25, + 0x1B, + 0xCE, + 0x8E, + 0x17, + 0x4F, + 0x93, + 0xC8, + 0xE6, + 0x41, + 0x24, + 0x58, + 0xFD, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChangeTracker2 + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0xAF, + 0x6A, + 0xB6, + 0x42, + 0x95, + 0xF7, + 0x4C, + 0x85, + 0x50, + 0xEB, + 0x37, + 0x0E, + 0x0C, + 0x08, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChangedDeferral + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x20, + 0xB8, + 0x4C, + 0xDB, + 0xFE, + 0xC3, + 0x4B, + 0x96, + 0x62, + 0x95, + 0xA9, + 0xBE, + 0xFD, + 0xF4, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xF8, + 0x85, + 0x22, + 0x91, + 0x07, + 0x7E, + 0x41, + 0xBF, + 0xEA, + 0xCC, + 0x6D, + 0x41, + 0x63, + 0x6C, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreNotificationTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0xCB, + 0x33, + 0x9B, + 0x01, + 0xC3, + 0x1E, + 0x42, + 0xAF, + 0xEF, + 0x04, + 0x7E, + 0xCF, + 0xA7, + 0x6A, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFindAppointmentsOptions + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0xDC, + 0xF7, + 0x55, + 0x42, + 0x99, + 0x86, + 0x30, + 0x82, + 0xB5, + 0x2C, + 0xB2, + 0x9F, + 0x64, + 0xD5, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appservice/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appservice/IID.Manual.cs new file mode 100644 index 0000000000..3434a057da --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.appservice/IID.Manual.cs @@ -0,0 +1,391 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.appservice.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAppServiceCatalogStatics + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x25, + 0x0D, + 0xEF, + 0x32, + 0xD1, + 0x85, + 0x4C, + 0x83, + 0x95, + 0x3C, + 0x31, + 0xD5, + 0xA1, + 0xE9, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceClosedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x16, + 0x60, + 0xDE, + 0x03, + 0xCB, + 0x35, + 0x4D, + 0xAC, + 0x8D, + 0xCC, + 0x63, + 0x03, + 0x23, + 0x97, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceConnection + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x74, + 0xD4, + 0x9D, + 0x1F, + 0x87, + 0x52, + 0x4D, + 0x89, + 0xA9, + 0x9E, + 0x09, + 0x05, + 0x31, + 0xBD, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceConnection2 + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xCD, + 0xDF, + 0x8B, + 0x02, + 0x23, + 0xBD, + 0x4F, + 0x80, + 0x61, + 0x52, + 0x51, + 0x1C, + 0x2F, + 0x8B, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceConnectionStatics + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x6C, + 0xC5, + 0xAD, + 0x08, + 0xD4, + 0x73, + 0x56, + 0x86, + 0x37, + 0x82, + 0x7A, + 0x4B, + 0x27, + 0x41, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceDeferral + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x53, + 0x1B, + 0x7E, + 0xB0, + 0xEA, + 0x48, + 0x42, + 0xAE, + 0x04, + 0xFD, + 0xF9, + 0x38, + 0x38, + 0xE4, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceRequest + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x8D, + 0xE5, + 0x20, + 0xDE, + 0x18, + 0x01, + 0x4B, + 0x80, + 0xBA, + 0x90, + 0xA7, + 0x62, + 0x04, + 0xE3, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceRequestReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0x23, + 0x12, + 0x6E, + 0x65, + 0xFF, + 0xAE, + 0x44, + 0x9E, + 0x45, + 0x85, + 0x7F, + 0xE4, + 0x18, + 0x06, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceResponse + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0x3C, + 0x50, + 0x8D, + 0xA3, + 0x9A, + 0x68, + 0x4E, + 0x95, + 0x59, + 0x9D, + 0xE6, + 0x3E, + 0x37, + 0x2C, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0xDC, + 0xA2, + 0x88, + 0x28, + 0xAD, + 0xB8, + 0x41, + 0x80, + 0xBB, + 0xBD, + 0xF1, + 0xB2, + 0x16, + 0x9E, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceTriggerDetails2 + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x54, + 0x3D, + 0xE8, + 0xCC, + 0x28, + 0xF2, + 0x43, + 0xB4, + 0x65, + 0xC0, + 0x48, + 0x2E, + 0x59, + 0xE2, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceTriggerDetails3 + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x1E, + 0xD7, + 0xFB, + 0x39, + 0x79, + 0x68, + 0x4E, + 0x9E, + 0x3C, + 0x77, + 0x80, + 0x14, + 0x7A, + 0xAB, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppServiceTriggerDetails4 + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0xB1, + 0x85, + 0x11, + 0x61, + 0x88, + 0x30, + 0x5E, + 0xAB, + 0x55, + 0x1C, + 0xF4, + 0xD0, + 0x8B, + 0xBF, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStatelessAppServiceResponse + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x4A, + 0x75, + 0x43, + 0xEC, + 0xA9, + 0xFE, + 0x52, + 0x82, + 0xE7, + 0x93, + 0x9B, + 0x68, + 0xDC, + 0x93, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.background/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.background/IID.2.Manual.cs new file mode 100644 index 0000000000..d4a0e02cee --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.background/IID.2.Manual.cs @@ -0,0 +1,123 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBackgroundTaskBuilder6 + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0xb4, + 0x7b, + 0x17, + 0xec, + 0x8b, + 0x56, + 0x53, + 0x85, + 0x0b, + 0x75, + 0x08, + 0xa0, + 0x1f, + 0x52, + 0xe7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IBackgroundTaskBuilderStatics + { + get + { + ReadOnlySpan data = + [ + 0xd1, + 0xeb, + 0x50, + 0x46, + 0x06, + 0xf2, + 0x55, + 0xb4, + 0x9b, + 0xb7, + 0xa6, + 0x45, + 0x7e, + 0xbf, + 0x33, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IBackgroundTaskRegistration4 + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x9c, + 0x09, + 0xc9, + 0xb0, + 0xde, + 0x55, + 0x76, + 0xa0, + 0x5b, + 0xa0, + 0x20, + 0x67, + 0x98, + 0x98, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IBackgroundWorkCostStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xd8, + 0x68, + 0xc9, + 0x76, + 0x81, + 0xf6, + 0x57, + 0xc8, + 0xab, + 0x2b, + 0x40, + 0x0b, + 0x74, + 0x9e, + 0x21, + 0xd6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.background/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.background/IID.Manual.cs new file mode 100644 index 0000000000..c34b879b43 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.background/IID.Manual.cs @@ -0,0 +1,2686 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.background.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBackgroundTaskCanceledEventHandler + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0xBA, + 0xC4, + 0xA6, + 0xF8, + 0x51, + 0x57, + 0x4C, + 0xAC, + 0x3F, + 0x15, + 0x6D, + 0xD1, + 0x68, + 0x0C, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskCompletedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xE9, + 0x38, + 0x5B, + 0x86, + 0xA0, + 0xA7, + 0x46, + 0xA6, + 0x78, + 0x43, + 0x91, + 0x35, + 0x82, + 0x2B, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskProgressEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x68, + 0xE0, + 0x46, + 0x88, + 0x8A, + 0x99, + 0x4C, + 0x80, + 0x4C, + 0x76, + 0x89, + 0x7F, + 0x62, + 0x77, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorTrigger + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x43, + 0xDD, + 0xD0, + 0x7B, + 0xE3, + 0x23, + 0x48, + 0xA5, + 0xFE, + 0x6B, + 0x31, + 0xDF, + 0xEF, + 0xDE, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x91, + 0x26, + 0xA7, + 0x37, + 0x38, + 0xF7, + 0x44, + 0x83, + 0x1B, + 0x01, + 0x32, + 0xCC, + 0x87, + 0x2B, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAlarmApplicationManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xFA, + 0x03, + 0xCA, + 0xE6, + 0xCC, + 0xE2, + 0x4D, + 0xB0, + 0x9B, + 0x96, + 0x28, + 0xBD, + 0x33, + 0xBB, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastTrigger + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0xF4, + 0xD4, + 0x74, + 0x37, + 0x8D, + 0xEC, + 0x44, + 0x94, + 0x81, + 0x2A, + 0x0B, + 0x98, + 0x54, + 0xEB, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x9F, + 0x0B, + 0x28, + 0xF4, + 0x22, + 0x18, + 0x46, + 0xA0, + 0x2E, + 0xE7, + 0xE4, + 0x11, + 0xEB, + 0x72, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastTriggerProviderInfo + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x35, + 0x19, + 0xF2, + 0xE8, + 0x9D, + 0x20, + 0x44, + 0x9C, + 0xE2, + 0x5E, + 0xFF, + 0x8F, + 0x17, + 0x37, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x86, + 0x46, + 0x0B, + 0x74, + 0x95, + 0x2C, + 0x49, + 0x9E, + 0x93, + 0x1A, + 0x3A, + 0xE6, + 0x33, + 0x5F, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x6A, + 0xDC, + 0x97, + 0x19, + 0x22, + 0x9E, + 0x4A, + 0x9C, + 0x5E, + 0x41, + 0xD0, + 0x47, + 0xF7, + 0x6E, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppointmentStoreNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x04, + 0xD4, + 0x64, + 0x01, + 0xC2, + 0xAD, + 0x42, + 0xAA, + 0x2A, + 0xE2, + 0x1B, + 0xA3, + 0x42, + 0x5B, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundCondition + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0xA1, + 0x48, + 0xAE, + 0x51, + 0x89, + 0x0A, + 0x40, + 0x83, + 0x02, + 0x9C, + 0x9C, + 0x9A, + 0x2A, + 0x3A, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundExecutionManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xEA, + 0x26, + 0xE8, + 0xA9, + 0x66, + 0x41, + 0x4D, + 0x83, + 0xD4, + 0xB4, + 0xC1, + 0x8C, + 0x87, + 0xB8, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundExecutionManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x24, + 0x9B, + 0x46, + 0xBB, + 0x9B, + 0x18, + 0x4E, + 0x99, + 0x9A, + 0xFD, + 0x65, + 0x12, + 0x93, + 0x1B, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundExecutionManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0xD3, + 0xA5, + 0x98, + 0x25, + 0x5A, + 0x6C, + 0x5B, + 0x91, + 0x92, + 0xD7, + 0x7A, + 0x43, + 0xDF, + 0xED, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTask + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0xD5, + 0x13, + 0x7D, + 0x12, + 0xFD, + 0xCE, + 0x43, + 0x8C, + 0x22, + 0xEA, + 0x1F, + 0xF1, + 0x3C, + 0x06, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskBuilder + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x55, + 0x51, + 0x03, + 0x64, + 0x3E, + 0x72, + 0x45, + 0xA9, + 0x3A, + 0x84, + 0x07, + 0x5A, + 0x37, + 0xC9, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskBuilder2 + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xCF, + 0xE7, + 0x6A, + 0x4F, + 0x10, + 0x6D, + 0x40, + 0x8D, + 0xB6, + 0x84, + 0x4A, + 0x57, + 0x0F, + 0x42, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskBuilder3 + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x4F, + 0xC7, + 0x28, + 0xA9, + 0x8B, + 0x09, + 0x4C, + 0xA2, + 0x4F, + 0x19, + 0x68, + 0x3E, + 0x2C, + 0x92, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskBuilder4 + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0xE5, + 0x55, + 0x47, + 0xA2, + 0xCB, + 0x35, + 0x4E, + 0xBD, + 0x16, + 0xA6, + 0xDA, + 0x7F, + 0x1C, + 0x19, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskBuilder5 + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x03, + 0x71, + 0x07, + 0xF5, + 0x99, + 0xF4, + 0x4A, + 0xBC, + 0xAD, + 0x47, + 0x31, + 0xD0, + 0x33, + 0x0D, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x25, + 0x5D, + 0x56, + 0x09, + 0xF2, + 0xF4, + 0x48, + 0x99, + 0x67, + 0x2B, + 0x18, + 0x4F, + 0x7B, + 0xFB, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskDeferral + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x15, + 0xCC, + 0x93, + 0x27, + 0xAF, + 0xD3, + 0x4D, + 0x84, + 0x6E, + 0x24, + 0xEE, + 0x40, + 0xCA, + 0xDD, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskInstance + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0xDA, + 0x5B, + 0x86, + 0xD8, + 0x21, + 0x73, + 0x45, + 0x8F, + 0x32, + 0x92, + 0x8A, + 0x1B, + 0x06, + 0x41, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskInstance2 + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x01, + 0x7D, + 0x4F, + 0x76, + 0x0C, + 0xB4, + 0x4F, + 0x89, + 0x6D, + 0x5D, + 0xE1, + 0x86, + 0x41, + 0x22, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskInstance4 + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0xF2, + 0x29, + 0x7F, + 0x04, + 0xAA, + 0x08, + 0x4B, + 0x97, + 0xB0, + 0x06, + 0xD8, + 0x74, + 0xCD, + 0xAB, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskProgressEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x68, + 0x14, + 0xFB, + 0x32, + 0x83, + 0x0A, + 0x4D, + 0x95, + 0x32, + 0x03, + 0xEA, + 0xE6, + 0x84, + 0xDA, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistration + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x4C, + 0x65, + 0x10, + 0x6E, + 0xA2, + 0xBF, + 0x43, + 0x8C, + 0x12, + 0x1F, + 0xB4, + 0x0D, + 0xBF, + 0xBF, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistration2 + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0xC7, + 0x38, + 0x61, + 0x86, + 0xBB, + 0x12, + 0x41, + 0xAF, + 0xC3, + 0x7F, + 0x93, + 0x9B, + 0x16, + 0x6E, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistration3 + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x81, + 0x33, + 0xFE, + 0x23, + 0x94, + 0x8B, + 0x4D, + 0x83, + 0x0D, + 0xB1, + 0xDD, + 0x2C, + 0x7B, + 0xAD, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistrationGroup + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x91, + 0xB1, + 0x2A, + 0x1B, + 0x87, + 0x67, + 0x41, + 0x8A, + 0x76, + 0x05, + 0x5C, + 0xD6, + 0x7B, + 0x5B, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistrationGroupFactory + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0x2B, + 0xD9, + 0x83, + 0xCF, + 0x44, + 0x31, + 0x46, + 0x97, + 0x40, + 0x03, + 0xC7, + 0xD8, + 0x74, + 0x1B, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistrationStatics + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0x2F, + 0x54, + 0x4C, + 0x00, + 0xB0, + 0xBA, + 0x42, + 0xA0, + 0x93, + 0x6A, + 0x56, + 0x3C, + 0x65, + 0xE3, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTaskRegistrationStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x67, + 0x4B, + 0x17, + 0x0D, + 0xB2, + 0xA9, + 0x4F, + 0xAD, + 0x9A, + 0xE9, + 0x3A, + 0xD6, + 0xC7, + 0x1E, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTrigger + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xA0, + 0xB3, + 0x84, + 0x27, + 0x60, + 0x87, + 0x4B, + 0x97, + 0x90, + 0xBD, + 0xF3, + 0xF7, + 0x57, + 0xDB, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundWorkCostStatics + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0xA6, + 0x40, + 0xC7, + 0x10, + 0xC3, + 0x82, + 0x4B, + 0xB3, + 0xE3, + 0x3B, + 0xCF, + 0xB9, + 0xE4, + 0xC7, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherTrigger + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x26, + 0x3E, + 0xAB, + 0xD3, + 0x25, + 0xAE, + 0x48, + 0x87, + 0x24, + 0xD8, + 0x18, + 0x77, + 0xAE, + 0x61, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherTrigger2 + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0xD0, + 0x28, + 0xAA, + 0xF4, + 0x38, + 0x7D, + 0x59, + 0xB5, + 0x97, + 0x4E, + 0x55, + 0x58, + 0x8C, + 0x65, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcherTrigger + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x18, + 0xAB, + 0x1A, + 0xE1, + 0xBC, + 0xEB, + 0x48, + 0xA8, + 0x27, + 0x59, + 0xFB, + 0x7C, + 0xEE, + 0x52, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcherTrigger2 + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0x67, + 0xB5, + 0x39, + 0x39, + 0xEB, + 0xB6, + 0x5A, + 0x99, + 0x32, + 0xAA, + 0x9E, + 0x45, + 0x49, + 0x60, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileUpdaterTrigger + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0xAE, + 0x1C, + 0xE2, + 0xF2, + 0x32, + 0x31, + 0x4D, + 0xB5, + 0x53, + 0xB9, + 0xE0, + 0x1B, + 0xDE, + 0x37, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileUpdaterTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x8C, + 0x83, + 0x71, + 0x14, + 0x13, + 0xB4, + 0x47, + 0x95, + 0x97, + 0xDC, + 0x7E, + 0x24, + 0x8C, + 0x17, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IChatMessageNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x43, + 0x3B, + 0x51, + 0x40, + 0x1D, + 0x5D, + 0x5C, + 0x78, + 0xF5, + 0xC9, + 0x23, + 0xFE, + 0xE3, + 0x73, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IChatMessageReceivedNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x76, + 0xA3, + 0x3E, + 0xF5, + 0xBA, + 0x77, + 0x40, + 0x88, + 0xE9, + 0x06, + 0x0C, + 0xF6, + 0xF0, + 0xC6, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICommunicationBlockingAppSetAsActiveTrigger + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0xF2, + 0x91, + 0xFB, + 0xA5, + 0x16, + 0x6D, + 0x48, + 0x97, + 0x4C, + 0x78, + 0x35, + 0xA8, + 0x47, + 0x7B, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactStoreNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x41, + 0x33, + 0xC8, + 0x05, + 0x47, + 0x71, + 0x45, + 0x9A, + 0x16, + 0x06, + 0xB9, + 0x97, + 0xBF, + 0x9C, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentPrefetchTrigger + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x27, + 0x06, + 0x71, + 0xFA, + 0x04, + 0x0B, + 0x44, + 0x80, + 0xC0, + 0x17, + 0x32, + 0x02, + 0x19, + 0x9E, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentPrefetchTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x3E, + 0x64, + 0xC2, + 0x03, + 0x8A, + 0x9E, + 0x40, + 0xB8, + 0xC4, + 0x88, + 0x81, + 0x4C, + 0x28, + 0xCC, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICustomSystemEventTrigger + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0x67, + 0x59, + 0xF3, + 0x6B, + 0xCF, + 0xF4, + 0x4E, + 0xA0, + 0xCA, + 0x29, + 0xCF, + 0x4A, + 0x27, + 0x8C, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICustomSystemEventTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0x16, + 0xCB, + 0x6B, + 0xDC, + 0xF2, + 0xB2, + 0x41, + 0x9E, + 0xFD, + 0xB9, + 0x6B, + 0xDC, + 0xD1, + 0x3C, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceConnectionChangeTrigger + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x5E, + 0x87, + 0x90, + 0xDD, + 0x3C, + 0xFB, + 0x4E, + 0xAB, + 0x1C, + 0x5B, + 0x3B, + 0x6A, + 0x60, + 0xCE, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceConnectionChangeTriggerStatics + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x24, + 0xEA, + 0xC3, + 0xFD, + 0x4E, + 0x98, + 0x44, + 0xAA, + 0x60, + 0xA4, + 0xE4, + 0xE3, + 0xB1, + 0x7A, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceManufacturerNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0x8A, + 0x27, + 0x81, + 0xAB, + 0x41, + 0xDA, + 0x16, + 0x86, + 0xC2, + 0x7F, + 0x7B, + 0xF0, + 0x91, + 0x2F, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceManufacturerNotificationTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0xDE, + 0x55, + 0x79, + 0xBB, + 0x25, + 0x53, + 0x41, + 0xA1, + 0xA2, + 0x30, + 0x29, + 0xFC, + 0xAB, + 0xB6, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceServicingTrigger + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x17, + 0xB2, + 0x1A, + 0x34, + 0x6E, + 0xD3, + 0x49, + 0x9E, + 0x6F, + 0x17, + 0xF1, + 0xB6, + 0xDF, + 0xA8, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceUseTrigger + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x80, + 0xA6, + 0x0D, + 0x4F, + 0x33, + 0x57, + 0x4D, + 0xB6, + 0xEC, + 0x6D, + 0xCA, + 0x64, + 0xB4, + 0x12, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceWatcherTrigger + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x7F, + 0x61, + 0xA4, + 0x73, + 0x85, + 0x60, + 0x42, + 0xBE, + 0xFC, + 0x5B, + 0xEC, + 0x89, + 0xCB, + 0x69, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailStoreNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x06, + 0x6D, + 0x98, + 0xEB, + 0x47, + 0x68, + 0x42, + 0xA4, + 0xF2, + 0xF3, + 0xF7, + 0x71, + 0x88, + 0x38, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x8F, + 0x5F, + 0xE2, + 0x96, + 0x06, + 0x4F, + 0x47, + 0xA7, + 0x32, + 0xF2, + 0x92, + 0xB0, + 0xCE, + 0xBC, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicNotificationTrigger2 + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xA2, + 0x22, + 0x93, + 0x0E, + 0xAE, + 0xF2, + 0x42, + 0xB2, + 0x8C, + 0xF5, + 0x13, + 0x72, + 0xE6, + 0x92, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicNotificationTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x19, + 0xBA, + 0x57, + 0x43, + 0xB1, + 0x75, + 0x45, + 0x9F, + 0x6B, + 0xFD, + 0x59, + 0xD9, + 0x3A, + 0xCE, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicNotificationTriggerFactory2 + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0xE9, + 0x98, + 0x59, + 0x53, + 0x8A, + 0x9F, + 0x4E, + 0xA3, + 0x2C, + 0x23, + 0xCD, + 0x33, + 0x66, + 0x4C, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderTrigger + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0xA3, + 0xC6, + 0xDD, + 0x57, + 0x15, + 0xD8, + 0x4B, + 0x85, + 0x42, + 0x46, + 0x8A, + 0xA0, + 0xC6, + 0x96, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderTriggerResult + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x91, + 0x46, + 0x3C, + 0x98, + 0xB1, + 0x84, + 0x4E, + 0xBA, + 0xD4, + 0xCF, + 0x4A, + 0xD2, + 0x99, + 0xED, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderTriggerStatics + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xA3, + 0x13, + 0xB4, + 0x94, + 0xE2, + 0x91, + 0x45, + 0xA5, + 0xA6, + 0x64, + 0x89, + 0x1A, + 0x82, + 0x81, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeovisitTrigger + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0xED, + 0x18, + 0x48, + 0xE1, + 0x04, + 0x27, + 0x41, + 0x9A, + 0x4C, + 0x19, + 0x35, + 0x1B, + 0x8A, + 0x80, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILocationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x6A, + 0x66, + 0x47, + 0x77, + 0x68, + 0x1E, + 0x48, + 0x80, + 0x26, + 0xFF, + 0x7E, + 0x14, + 0xA8, + 0x11, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILocationTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xBB, + 0x06, + 0x11, + 0x69, + 0xFF, + 0x09, + 0x4E, + 0xAA, + 0x8B, + 0x13, + 0x84, + 0xEA, + 0x47, + 0x5E, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMaintenanceTrigger + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x4C, + 0x18, + 0x68, + 0x22, + 0xFC, + 0xE5, + 0x4C, + 0x84, + 0x1A, + 0x72, + 0x39, + 0xA9, + 0x81, + 0x00, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMaintenanceTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0xDB, + 0x3D, + 0x4B, + 0xDD, + 0x97, + 0x29, + 0x46, + 0x88, + 0xB0, + 0xB0, + 0x6C, + 0xF9, + 0x48, + 0x2A, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProcessingTrigger + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xBE, + 0x95, + 0x9A, + 0x52, + 0x8A, + 0x30, + 0x4B, + 0x90, + 0x11, + 0xCF, + 0x38, + 0x04, + 0x0E, + 0xA8, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkOperatorHotspotAuthenticationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xC7, + 0x56, + 0xE7, + 0x01, + 0x30, + 0xE5, + 0x4D, + 0x83, + 0xC7, + 0xDE, + 0x61, + 0xD8, + 0x88, + 0x31, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkOperatorNotificationTrigger + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x9C, + 0x08, + 0x90, + 0xCD, + 0x63, + 0x0C, + 0x48, + 0x95, + 0xD1, + 0x6E, + 0x6A, + 0xEF, + 0x80, + 0x1E, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkOperatorNotificationTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x3E, + 0x22, + 0x0A, + 0xD7, + 0x27, + 0x53, + 0x43, + 0xAD, + 0xB9, + 0x92, + 0x65, + 0xAA, + 0xEA, + 0x57, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneTrigger + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xE9, + 0xCF, + 0x8D, + 0xC5, + 0xD4, + 0xF1, + 0x49, + 0xB7, + 0xD3, + 0x82, + 0xE8, + 0x7A, + 0x0E, + 0x9D, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x3C, + 0xD9, + 0xA0, + 0xC1, + 0x5F, + 0xFB, + 0x48, + 0xA5, + 0x46, + 0x32, + 0x26, + 0x20, + 0x40, + 0x15, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPushNotificationTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0xED, + 0xD8, + 0x6D, + 0x8E, + 0x45, + 0xC2, + 0x4F, + 0xBC, + 0x2E, + 0xD5, + 0x66, + 0x4F, + 0x77, + 0xED, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRcsEndUserMessageAvailableTrigger + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x0D, + 0x6D, + 0x98, + 0xF6, + 0xB2, + 0x7F, + 0x46, + 0xA9, + 0x78, + 0xA4, + 0x40, + 0x91, + 0xC1, + 0x1A, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommConnectionTrigger + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0xCA, + 0xC4, + 0xE8, + 0x53, + 0x0B, + 0x64, + 0x44, + 0x93, + 0x94, + 0xFD, + 0x87, + 0x56, + 0x54, + 0xDE, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISecondaryAuthenticationFactorAuthenticationTrigger + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0xF3, + 0x37, + 0xF2, + 0x81, + 0x51, + 0x24, + 0x4F, + 0x96, + 0xA7, + 0x70, + 0x0A, + 0x4E, + 0x5F, + 0xAC, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISensorDataThresholdTrigger + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0xF3, + 0xC0, + 0x5B, + 0x8B, + 0xD4, + 0x7F, + 0x4B, + 0xAB, + 0xEC, + 0x15, + 0xF9, + 0xBA, + 0xCC, + 0x12, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISensorDataThresholdTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0xE6, + 0x1F, + 0x92, + 0xF0, + 0x7D, + 0xA3, + 0x4D, + 0x97, + 0xB3, + 0xE5, + 0x44, + 0xEE, + 0x85, + 0x7F, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardTrigger + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0xC5, + 0x3B, + 0xF5, + 0xCA, + 0x84, + 0x72, + 0x49, + 0x8C, + 0xE9, + 0xE5, + 0x8F, + 0x97, + 0xB3, + 0x7A, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x54, + 0xBF, + 0x63, + 0xC1, + 0x89, + 0x00, + 0x4E, + 0xA9, + 0xD3, + 0x97, + 0xC6, + 0x29, + 0x26, + 0x9D, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageReceivedTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0xD8, + 0x3A, + 0xEA, + 0xA4, + 0x6B, + 0xB2, + 0x4A, + 0x8D, + 0x21, + 0xBC, + 0x6B, + 0x09, + 0xC7, + 0x75, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketActivityTrigger + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0xF8, + 0xBB, + 0xA9, + 0xDE, + 0x9D, + 0x8A, + 0x4F, + 0x83, + 0xE3, + 0xB0, + 0xE0, + 0xE7, + 0xA5, + 0x0D, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeTrackerTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xFF, + 0xB0, + 0x1E, + 0x85, + 0x5A, + 0x9E, + 0x49, + 0xA8, + 0x88, + 0x82, + 0x46, + 0x07, + 0x12, + 0x4F, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryContentChangedTrigger + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0xE0, + 0x37, + 0x16, + 0x9C, + 0x82, + 0xBC, + 0x45, + 0x92, + 0x9B, + 0xA1, + 0xE7, + 0xEA, + 0x78, + 0xD8, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryContentChangedTriggerStatics + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x1B, + 0x9F, + 0x7F, + 0x90, + 0x5F, + 0x12, + 0x4E, + 0x91, + 0x4E, + 0xA7, + 0xD8, + 0xE0, + 0xBB, + 0xFB, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemCondition + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0xB4, + 0x5F, + 0xC1, + 0xC5, + 0x89, + 0x0B, + 0x42, + 0xAB, + 0xD3, + 0xFB, + 0x30, + 0x30, + 0x47, + 0x21, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemConditionFactory + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xD1, + 0x69, + 0xD2, + 0xA7, + 0x05, + 0xAE, + 0x49, + 0x87, + 0xD7, + 0x16, + 0xB2, + 0xB8, + 0xB9, + 0xA5, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemTrigger + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0xC7, + 0x80, + 0x1D, + 0x48, + 0x37, + 0x63, + 0x44, + 0x8D, + 0x7E, + 0x27, + 0x6D, + 0xC1, + 0x39, + 0xAC, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x23, + 0x04, + 0xE8, + 0x91, + 0x87, + 0x79, + 0x45, + 0x81, + 0x26, + 0x87, + 0xEC, + 0x8A, + 0xAA, + 0x40, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimeTrigger + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x55, + 0x6E, + 0x65, + 0x2A, + 0x0B, + 0x77, + 0x43, + 0xBA, + 0x70, + 0x3B, + 0x45, + 0xA9, + 0x35, + 0x54, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimeTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x82, + 0xC6, + 0x38, + 0x54, + 0x9B, + 0xE6, + 0x45, + 0xB2, + 0xF3, + 0x26, + 0x9B, + 0x87, + 0xA6, + 0xF7, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationActionTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0xFC, + 0x9D, + 0xB0, + 0x80, + 0x64, + 0x49, + 0x43, + 0x81, + 0x25, + 0x97, + 0xB3, + 0xEF, + 0xAA, + 0x0A, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationHistoryChangedTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0xFA, + 0xC6, + 0x81, + 0x97, + 0x87, + 0x85, + 0x47, + 0x81, + 0xB4, + 0xB0, + 0xCC, + 0xCB, + 0x73, + 0xD1, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserNotificationChangedTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x43, + 0xD4, + 0xCA, + 0xAB, + 0x69, + 0x18, + 0x4E, + 0xA4, + 0x8A, + 0x5E, + 0xD2, + 0xAC, + 0x43, + 0x59, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.calls.background/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.calls.background/IID.Manual.cs new file mode 100644 index 0000000000..ee66d8ff79 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.calls.background/IID.Manual.cs @@ -0,0 +1,175 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.calls.background.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPhoneCallBlockedTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x90, + 0xA6, + 0xA4, + 0xC1, + 0xE4, + 0x7F, + 0x42, + 0x86, + 0x4E, + 0xE4, + 0x70, + 0x47, + 0x7D, + 0xDB, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallOriginDataRequestTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0x5B, + 0x9B, + 0x6E, + 0x4B, + 0xC5, + 0x82, + 0x4E, + 0x4C, + 0xC9, + 0xE3, + 0x29, + 0xA4, + 0x18, + 0x45, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneIncomingCallDismissedTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x02, + 0xD3, + 0xBA, + 0xB6, + 0x83, + 0x32, + 0x57, + 0x9C, + 0x38, + 0x0C, + 0x20, + 0x65, + 0x46, + 0x19, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneIncomingCallNotificationTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x60, + 0x0E, + 0x2B, + 0x32, + 0x9B, + 0x42, + 0x5D, + 0x82, + 0x22, + 0xD2, + 0x81, + 0x2E, + 0x39, + 0xFB, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineChangedTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0x21, + 0xD3, + 0xC6, + 0x1D, + 0xD1, + 0xD8, + 0x40, + 0xB2, + 0xB7, + 0xE4, + 0x0A, + 0x01, + 0xD6, + 0x62, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneNewVoicemailMessageTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0xC0, + 0xA8, + 0x13, + 0x31, + 0xB8, + 0xD3, + 0x48, + 0x8B, + 0xA9, + 0x8D, + 0x22, + 0xA6, + 0x58, + 0x0D, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.calls/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.calls/IID.Manual.cs new file mode 100644 index 0000000000..86d68101a0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.calls/IID.Manual.cs @@ -0,0 +1,1309 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.calls.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICallAnswerEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x96, + 0x78, + 0xFD, + 0xD7, + 0x2D, + 0x8C, + 0x4C, + 0xB2, + 0xBD, + 0x95, + 0xD1, + 0x7A, + 0x5B, + 0xB7, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICallRejectEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0xFA, + 0x47, + 0xDA, + 0xD4, + 0x13, + 0x92, + 0x4D, + 0xA1, + 0xC2, + 0xB7, + 0x78, + 0x11, + 0xEE, + 0x37, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICallStateChangeEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x34, + 0xB2, + 0xEA, + 0xF5, + 0x66, + 0xF9, + 0x47, + 0x9F, + 0xB5, + 0x45, + 0x9C, + 0x51, + 0x98, + 0xC7, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILockScreenCallEndCallDeferral + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xED, + 0xD7, + 0x2D, + 0xED, + 0x98, + 0x41, + 0x40, + 0x96, + 0x32, + 0x50, + 0xFF, + 0x81, + 0x2B, + 0x77, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILockScreenCallEndRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0xA3, + 0x90, + 0x81, + 0x27, + 0x6F, + 0xE9, + 0x46, + 0xAE, + 0xB6, + 0xC0, + 0xAE, + 0x83, + 0xE4, + 0x7D, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILockScreenCallUI + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0xFD, + 0x96, + 0xC5, + 0xC9, + 0x73, + 0x14, + 0x4A, + 0xB0, + 0x21, + 0xEC, + 0x1C, + 0x50, + 0xA3, + 0xB7, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMuteChangeEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0xE1, + 0x85, + 0x85, + 0x41, + 0x0C, + 0x2C, + 0x43, + 0x81, + 0x4D, + 0xC5, + 0xF1, + 0xFD, + 0xF5, + 0x30, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCall + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0xD0, + 0x4E, + 0xC1, + 0x7D, + 0xC1, + 0xD2, + 0x59, + 0x96, + 0x28, + 0x66, + 0xE5, + 0x45, + 0xB6, + 0xCD, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallBlockingStatics + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0x6F, + 0x64, + 0x19, + 0x79, + 0x2B, + 0xF1, + 0x26, + 0xA4, + 0x6F, + 0x69, + 0x4B, + 0xE0, + 0x43, + 0xF3, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryEntry + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xE1, + 0xB0, + 0xFA, + 0xA4, + 0x32, + 0x85, + 0x4B, + 0x83, + 0xD1, + 0xF9, + 0x0D, + 0x8C, + 0x23, + 0xA8, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryEntryAddress + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x59, + 0xF1, + 0x30, + 0x55, + 0x39, + 0x42, + 0x40, + 0x84, + 0xE6, + 0x66, + 0xEE, + 0xBF, + 0x82, + 0xE6, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryEntryAddressFactory + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0xAD, + 0x0F, + 0xFB, + 0xF0, + 0xC7, + 0xB6, + 0x4B, + 0x9F, + 0x6B, + 0xBA, + 0x5D, + 0x73, + 0x20, + 0x9A, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryEntryQueryOptions + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0xE1, + 0x5F, + 0x9C, + 0xED, + 0x8B, + 0xCA, + 0x40, + 0xB0, + 0x6E, + 0xC4, + 0xCA, + 0x8E, + 0xAE, + 0x5C, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryEntryReader + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0xE4, + 0xEC, + 0x61, + 0x86, + 0x8D, + 0x9F, + 0x47, + 0x84, + 0x04, + 0xA9, + 0x84, + 0x69, + 0x20, + 0xFE, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xC5, + 0x25, + 0xD9, + 0x5F, + 0xF5, + 0x53, + 0x43, + 0x9D, + 0xB4, + 0x02, + 0x05, + 0xA5, + 0x26, + 0x5A, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0xDA, + 0xA6, + 0xF5, + 0x1F, + 0xB3, + 0x45, + 0x4F, + 0xAC, + 0x8E, + 0x1B, + 0x08, + 0x89, + 0x3C, + 0x1B, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x74, + 0xD4, + 0xEF, + 0xDB, + 0xA2, + 0x88, + 0x41, + 0x9E, + 0x92, + 0xBC, + 0x3C, + 0xFA, + 0x68, + 0x13, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallHistoryStore + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x7D, + 0x90, + 0x2F, + 0x0E, + 0xB4, + 0x2B, + 0x42, + 0x85, + 0x45, + 0xCB, + 0x19, + 0x10, + 0xA6, + 0x1C, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallInfo + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x25, + 0xB4, + 0x22, + 0x4D, + 0x3E, + 0xC6, + 0x5D, + 0x89, + 0xC2, + 0x46, + 0x9F, + 0xE5, + 0xFF, + 0xC1, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0xAC, + 0xED, + 0x60, + 0xA6, + 0x78, + 0x72, + 0x48, + 0xA3, + 0xEF, + 0x98, + 0x32, + 0x5E, + 0xC8, + 0xB8, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0xC8, + 0xE3, + 0xC7, + 0x70, + 0x23, + 0x1C, + 0x43, + 0x98, + 0xFD, + 0x43, + 0xBE, + 0x5F, + 0x03, + 0x08, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallStatics + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0xEE, + 0x18, + 0x22, + 0x0B, + 0xF6, + 0xE7, + 0x53, + 0xBA, + 0x13, + 0x5A, + 0xEA, + 0xFB, + 0xC2, + 0x29, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallStore + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x07, + 0x61, + 0x5F, + 0xA6, + 0x18, + 0x73, + 0x41, + 0x86, + 0xD1, + 0x28, + 0xBE, + 0x9D, + 0xC6, + 0x2D, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallVideoCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x27, + 0x38, + 0x02, + 0x6A, + 0xB1, + 0xDB, + 0x4F, + 0xBE, + 0x3B, + 0xC4, + 0x24, + 0x0E, + 0x13, + 0xAD, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallVideoCapabilitiesManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x4B, + 0xC6, + 0xF3, + 0x0B, + 0xF0, + 0x1C, + 0x4A, + 0xA0, + 0xC6, + 0xEE, + 0x19, + 0x10, + 0x74, + 0x9C, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneCallsResult + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xD3, + 0xFA, + 0x1B, + 0xCF, + 0x57, + 0xDD, + 0x57, + 0x98, + 0x6D, + 0xB0, + 0x57, + 0xC9, + 0x1E, + 0xAC, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneDialOptions + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xC4, + 0x39, + 0xB6, + 0x6F, + 0xF0, + 0xCB, + 0x36, + 0xA8, + 0x63, + 0x82, + 0x37, + 0x42, + 0xB5, + 0xF2, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLine + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x6F, + 0xC6, + 0x27, + 0x69, + 0x6A, + 0xCA, + 0x34, + 0xA2, + 0xBA, + 0x65, + 0x30, + 0x25, + 0x30, + 0xC3, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLine2 + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xF5, + 0x67, + 0x01, + 0x44, + 0x53, + 0x64, + 0x5D, + 0x8A, + 0xF3, + 0xA3, + 0x1A, + 0x95, + 0x0E, + 0x91, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLine3 + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x3C, + 0xE3, + 0xE2, + 0x06, + 0x24, + 0xF3, + 0x57, + 0x82, + 0x6A, + 0xE5, + 0xA5, + 0xF4, + 0x0D, + 0x6F, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineCellularDetails + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x01, + 0x26, + 0x19, + 0x7C, + 0x14, + 0x69, + 0x47, + 0xB6, + 0x73, + 0x98, + 0xA5, + 0xEC, + 0x84, + 0x26, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x58, + 0x26, + 0xFE, + 0x4F, + 0xF6, + 0x12, + 0x43, + 0xB2, + 0xA8, + 0x4E, + 0x25, + 0x77, + 0x21, + 0xAA, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineDialResult + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0xA3, + 0x25, + 0xE8, + 0x7F, + 0x5C, + 0x6F, + 0x54, + 0xB9, + 0x18, + 0x3A, + 0xD2, + 0xFE, + 0x70, + 0xFB, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineStatics + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x5F, + 0x8B, + 0xF3, + 0xB0, + 0xCE, + 0x4F, + 0x40, + 0xBC, + 0xF2, + 0xBA, + 0x9F, + 0x69, + 0x7D, + 0x8A, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineTransportDevice + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xF8, + 0xA8, + 0xEF, + 0xFA, + 0xCF, + 0xF4, + 0x59, + 0x97, + 0xE4, + 0x74, + 0x70, + 0x5B, + 0x7D, + 0xC4, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineTransportDevice2 + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x85, + 0xC8, + 0x64, + 0xF4, + 0xEC, + 0x61, + 0x57, + 0x8C, + 0x04, + 0x3C, + 0x24, + 0x8C, + 0xE6, + 0x16, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineTransportDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x21, + 0x31, + 0x0F, + 0x09, + 0xD6, + 0xA1, + 0x51, + 0x96, + 0xF3, + 0xFB, + 0x00, + 0xD1, + 0x81, + 0x92, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineWatcher + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0xCD, + 0x45, + 0x8A, + 0x23, + 0x63, + 0xE0, + 0x44, + 0xA6, + 0xF6, + 0x9F, + 0x21, + 0xF6, + 0x4D, + 0xC9, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneLineWatcherEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x75, + 0x7C, + 0xD0, + 0x12, + 0x9E, + 0x37, + 0x4A, + 0x82, + 0xB7, + 0xAD, + 0x53, + 0x5D, + 0xAD, + 0x6A, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhoneVoicemail + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x77, + 0xCE, + 0xC9, + 0x9F, + 0x6E, + 0x8B, + 0x3A, + 0xB7, + 0x27, + 0x6E, + 0x0C, + 0xF6, + 0x99, + 0x82, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipCallCoordinator + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x8B, + 0x11, + 0x4F, + 0xEF, + 0xE8, + 0x34, + 0x44, + 0x9C, + 0x5F, + 0xA8, + 0xD8, + 0x93, + 0xFA, + 0xFE, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipCallCoordinator2 + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0xA9, + 0xB4, + 0xBE, + 0x04, + 0xC7, + 0x34, + 0x42, + 0x89, + 0xCE, + 0xE8, + 0x8C, + 0xC0, + 0xD2, + 0x8F, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipCallCoordinator3 + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x0C, + 0x8D, + 0x33, + 0x55, + 0x9B, + 0x21, + 0x40, + 0x87, + 0xCA, + 0xE6, + 0x4B, + 0x9B, + 0xD6, + 0x66, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipCallCoordinator4 + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x72, + 0x73, + 0x83, + 0x11, + 0x93, + 0x8F, + 0x46, + 0xBB, + 0x49, + 0x47, + 0xE0, + 0xDF, + 0xB5, + 0xD9, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipCallCoordinatorStatics + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x1F, + 0x5D, + 0x7F, + 0x4A, + 0xE0, + 0x10, + 0x4D, + 0xB3, + 0x1A, + 0xA5, + 0x5C, + 0x92, + 0x2C, + 0xC2, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipPhoneCall + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xF1, + 0xF1, + 0x6C, + 0x94, + 0x77, + 0x5A, + 0x4A, + 0x8C, + 0x68, + 0xAE, + 0x87, + 0x94, + 0x7A, + 0x69, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipPhoneCall2 + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x46, + 0x1B, + 0x74, + 0x5F, + 0x24, + 0xF3, + 0x41, + 0x93, + 0x99, + 0x31, + 0x41, + 0xD2, + 0x5B, + 0x52, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoipPhoneCall3 + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x15, + 0x89, + 0x0D, + 0x58, + 0xE2, + 0xA9, + 0x4A, + 0x90, + 0x7A, + 0x1A, + 0xA4, + 0x13, + 0xC2, + 0x55, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.contacts.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.contacts.provider/IID.Manual.cs new file mode 100644 index 0000000000..6ca44784db --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.contacts.provider/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.contacts.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IContactPickerUI + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x13, + 0xCC, + 0xE2, + 0x66, + 0xCF, + 0xC4, + 0x43, + 0xA9, + 0x6A, + 0xA5, + 0xA1, + 0x12, + 0xDB, + 0x47, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPickerUI2 + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x9E, + 0x44, + 0x6E, + 0x25, + 0x7B, + 0x99, + 0x49, + 0x9B, + 0x0B, + 0x87, + 0x54, + 0x00, + 0xA1, + 0xE8, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0x43, + 0x35, + 0x6F, + 0x02, + 0x33, + 0x13, + 0x4D, + 0xAD, + 0x8D, + 0xAD, + 0xCC, + 0x0F, + 0xF9, + 0xE4, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.contacts/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.contacts/IID.Manual.cs new file mode 100644 index 0000000000..0eb46f739f --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.contacts/IID.Manual.cs @@ -0,0 +1,2038 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.contacts.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAggregateContactManager + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0xD5, + 0x79, + 0x03, + 0x5A, + 0xDB, + 0xD3, + 0x4F, + 0xB5, + 0x4E, + 0x4D, + 0xF1, + 0x79, + 0x17, + 0xA2, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAggregateContactManager2 + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0xC2, + 0x8C, + 0x5E, + 0xCD, + 0xA9, + 0x30, + 0x44, + 0x9C, + 0x4B, + 0x01, + 0x34, + 0x8D, + 0xB2, + 0xCA, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_WinRT_IContact + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x72, + 0x00, + 0xEC, + 0x18, + 0x21, + 0x49, + 0x40, + 0x9E, + 0xBC, + 0x17, + 0xF0, + 0xAB, + 0x69, + 0x2B, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContact2 + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xF3, + 0x12, + 0xF3, + 0x77, + 0xBB, + 0x94, + 0x4C, + 0x80, + 0x2D, + 0x83, + 0x28, + 0xCE, + 0xE4, + 0x0C, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContact3 + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x1E, + 0x20, + 0x48, + 0x8E, + 0xE0, + 0xA4, + 0x42, + 0xB5, + 0x61, + 0x41, + 0xD0, + 0x8C, + 0xA9, + 0x57, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactAddress + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xD3, + 0x39, + 0x97, + 0xCE, + 0x42, + 0x72, + 0x48, + 0x8D, + 0x70, + 0x30, + 0x63, + 0xAA, + 0x58, + 0x4B, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactAnnotation + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0xC2, + 0x1F, + 0x82, + 0x41, + 0x7D, + 0xA2, + 0x44, + 0x84, + 0xC3, + 0x60, + 0xA2, + 0x81, + 0xDD, + 0x7B, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactAnnotation2 + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0xEC, + 0x91, + 0xB6, + 0xB7, + 0x4A, + 0x1F, + 0x4A, + 0x99, + 0x41, + 0x0C, + 0x9C, + 0xF3, + 0x17, + 0x1B, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactAnnotationList + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x86, + 0xA4, + 0x92, + 0x88, + 0x5C, + 0xB9, + 0x45, + 0xAA, + 0xD0, + 0x46, + 0x18, + 0x88, + 0xE6, + 0x8D, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactAnnotationStore + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0xF4, + 0xAC, + 0x23, + 0x77, + 0x7A, + 0x7D, + 0x45, + 0x82, + 0x03, + 0x98, + 0x7F, + 0x4B, + 0x31, + 0xAF, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactAnnotationStore2 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x23, + 0xDE, + 0x7E, + 0xE7, + 0x61, + 0x67, + 0x49, + 0x8E, + 0xC5, + 0xBD, + 0xF2, + 0x80, + 0xA2, + 0x40, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactBatch + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x97, + 0xD1, + 0x35, + 0xCE, + 0xBF, + 0xBB, + 0x46, + 0x93, + 0xF8, + 0xA5, + 0xB0, + 0x6E, + 0xC5, + 0xE2, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactCardDelayedDataLoader + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xF9, + 0x0A, + 0xB6, + 0x46, + 0x15, + 0x4D, + 0x43, + 0x86, + 0x9C, + 0x6E, + 0x35, + 0x20, + 0x76, + 0x0E, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactCardOptions + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x4F, + 0x0A, + 0x8C, + 0xB6, + 0x6A, + 0x3F, + 0x4F, + 0xBE, + 0x72, + 0x81, + 0x72, + 0x36, + 0xEE, + 0xEA, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactCardOptions2 + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0x1B, + 0x27, + 0x8F, + 0x4B, + 0xD7, + 0xC6, + 0x4C, + 0x9F, + 0x53, + 0x1B, + 0x0E, + 0xB5, + 0xD1, + 0x27, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactChange + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x4B, + 0x1D, + 0x95, + 0x59, + 0x6A, + 0x20, + 0x47, + 0xA4, + 0xE1, + 0x36, + 0x3D, + 0x98, + 0xC1, + 0x35, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactChangeReader + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x19, + 0x73, + 0x21, + 0x0C, + 0x2D, + 0xE0, + 0x42, + 0xA9, + 0xDA, + 0x3E, + 0xCD, + 0x56, + 0xA7, + 0x8A, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactChangeTracker + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0x29, + 0x99, + 0x6E, + 0x9B, + 0x30, + 0x4D, + 0x40, + 0x97, + 0x12, + 0xB3, + 0x7B, + 0xD3, + 0x02, + 0x78, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactChangeTracker2 + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xD0, + 0x8A, + 0x7F, + 0x21, + 0x93, + 0x18, + 0x4D, + 0x9C, + 0x09, + 0xD7, + 0x08, + 0xC6, + 0x3F, + 0xCD, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactChangedDeferral + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0x3A, + 0x14, + 0xC5, + 0x03, + 0x1B, + 0xF8, + 0x46, + 0xB6, + 0x94, + 0xA5, + 0x23, + 0xE8, + 0x3C, + 0xFC, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x7F, + 0x5E, + 0x52, + 0xF3, + 0x73, + 0x7D, + 0x4B, + 0xA9, + 0x18, + 0x58, + 0x0B, + 0xE4, + 0x36, + 0x61, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactConnectedServiceAccount + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x35, + 0xF8, + 0xF6, + 0x27, + 0xAA, + 0x31, + 0x47, + 0x8E, + 0x4A, + 0x3D, + 0xEC, + 0x5C, + 0xE9, + 0xEE, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactDate + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0xAE, + 0x98, + 0xFE, + 0x05, + 0xB2, + 0x34, + 0x49, + 0x91, + 0x74, + 0x0F, + 0xF2, + 0xB0, + 0x56, + 0x57, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactEmail + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x19, + 0xA2, + 0x90, + 0xD3, + 0xE3, + 0x63, + 0x4D, + 0x99, + 0x3B, + 0x05, + 0xB9, + 0xA5, + 0x39, + 0x3A, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactField + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x48, + 0x76, + 0xB1, + 0x93, + 0xD2, + 0x2C, + 0x49, + 0xA0, + 0x58, + 0xDB, + 0x57, + 0x5B, + 0x3E, + 0x3C, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactFieldFactory + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0x91, + 0xE2, + 0x85, + 0x4A, + 0x0E, + 0x3E, + 0x4A, + 0x89, + 0x94, + 0x40, + 0x6A, + 0xE7, + 0xED, + 0x64, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactGroup + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xEB, + 0xBD, + 0x59, + 0x9A, + 0x9E, + 0x5D, + 0x47, + 0xBF, + 0xE5, + 0xA3, + 0x7B, + 0x80, + 0x6D, + 0x85, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactInformation + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0xB6, + 0x5E, + 0x27, + 0x2E, + 0x6A, + 0x78, + 0x42, + 0xA9, + 0x14, + 0xE4, + 0x60, + 0xD5, + 0xF0, + 0x88, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactInstantMessageField + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x3B, + 0xE3, + 0xCC, + 0x85, + 0x0D, + 0xFA, + 0x41, + 0xB4, + 0x3D, + 0xDA, + 0x59, + 0x9C, + 0x3E, + 0xB0, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactInstantMessageFieldFactory + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0x67, + 0x0B, + 0xBA, + 0xA3, + 0x91, + 0xB2, + 0x4B, + 0xB1, + 0xB9, + 0x69, + 0xA5, + 0xDF, + 0xF0, + 0xBA, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactJobInfo + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x7B, + 0x11, + 0x6D, + 0x50, + 0xCE, + 0x43, + 0x4B, + 0x9E, + 0x69, + 0xB1, + 0x82, + 0x58, + 0xEA, + 0x53, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactLaunchActionVerbsStatics + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x32, + 0x12, + 0xFB, + 0x73, + 0xEE, + 0xE7, + 0x46, + 0x87, + 0x61, + 0x11, + 0xCD, + 0x01, + 0x57, + 0x72, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactList + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0xEC, + 0xDD, + 0x16, + 0x2C, + 0x39, + 0x45, + 0x48, + 0x9D, + 0xFB, + 0x51, + 0xA3, + 0xE7, + 0xEF, + 0x3E, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactList2 + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x43, + 0x39, + 0xCB, + 0x50, + 0x45, + 0xCB, + 0x4D, + 0x92, + 0x29, + 0x40, + 0xFF, + 0x91, + 0xFB, + 0x02, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactList3 + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xEE, + 0x78, + 0x15, + 0xFC, + 0x26, + 0xE8, + 0x41, + 0xA8, + 0x50, + 0x5A, + 0xA3, + 0x25, + 0x14, + 0xAC, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactListLimitedWriteOperations + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x13, + 0x98, + 0xE1, + 0x0B, + 0x4A, + 0xB8, + 0x44, + 0x9A, + 0x1F, + 0xA0, + 0xF3, + 0xD2, + 0x18, + 0x17, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactListSyncConstraints + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xBF, + 0xB0, + 0xB2, + 0x62, + 0x30, + 0x2E, + 0x4E, + 0x96, + 0x9D, + 0x01, + 0x8D, + 0x19, + 0x87, + 0xF3, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactListSyncManager + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x83, + 0x6E, + 0x14, + 0x25, + 0x79, + 0xCC, + 0x4A, + 0x9D, + 0xE5, + 0x21, + 0xDD, + 0xD0, + 0x6F, + 0x86, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactListSyncManager2 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x12, + 0x59, + 0xA9, + 0x55, + 0xBB, + 0x23, + 0x4E, + 0x81, + 0x28, + 0x37, + 0x01, + 0x34, + 0xA8, + 0x5D, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactLocationField + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x0F, + 0xC0, + 0x9E, + 0x6E, + 0xAB, + 0x36, + 0x4B, + 0x89, + 0xE3, + 0xB2, + 0x3B, + 0xC0, + 0xA1, + 0xDA, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactLocationFieldFactory + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x32, + 0x99, + 0xF7, + 0xDF, + 0x2F, + 0xFE, + 0x43, + 0x8F, + 0x18, + 0x41, + 0x89, + 0x73, + 0x90, + 0xBC, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xBA, + 0x4B, + 0xB7, + 0x76, + 0x10, + 0xEF, + 0x4B, + 0xAE, + 0xF3, + 0x54, + 0x68, + 0x6D, + 0x18, + 0x38, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerForUser2 + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0x9C, + 0x46, + 0x4D, + 0x75, + 0x3B, + 0x73, + 0x4A, + 0xBB, + 0x30, + 0x73, + 0x66, + 0x45, + 0x47, + 0x22, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x1A, + 0xF2, + 0x81, + 0x61, + 0xF6, + 0x08, + 0x47, + 0xBA, + 0x4F, + 0xD3, + 0x86, + 0xBD, + 0x0D, + 0x62, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0xE6, + 0x78, + 0xA1, + 0xD8, + 0x47, + 0xCC, + 0x48, + 0x96, + 0x3C, + 0x95, + 0x92, + 0xB6, + 0xE5, + 0x10, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x3D, + 0xCC, + 0xC4, + 0x86, + 0x75, + 0x2A, + 0x49, + 0x93, + 0x0B, + 0x7B, + 0xC1, + 0x38, + 0xFC, + 0x21, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerStatics4 + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x22, + 0x98, + 0x24, + 0x7B, + 0x34, + 0xDC, + 0x46, + 0x8D, + 0x95, + 0x51, + 0xBD, + 0x41, + 0xE1, + 0x5A, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactManagerStatics5 + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x1A, + 0x59, + 0xF7, + 0xB7, + 0xAC, + 0xAD, + 0x4F, + 0x90, + 0xF2, + 0xA8, + 0xAB, + 0x64, + 0xCD, + 0xBB, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactMatchReason + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x25, + 0x92, + 0xBC, + 0xD8, + 0xE7, + 0x3E, + 0x41, + 0x95, + 0xF4, + 0xB7, + 0x5C, + 0x54, + 0xC7, + 0x40, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactName + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0xE9, + 0x04, + 0xF4, + 0x34, + 0x90, + 0x3C, + 0x45, + 0x8E, + 0xBF, + 0x14, + 0x0A, + 0x38, + 0xC8, + 0x6F, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPanel + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0x12, + 0xBF, + 0x41, + 0xEE, + 0xD2, + 0x97, + 0x4B, + 0xA8, + 0x0A, + 0x7D, + 0x8D, + 0x64, + 0xCC, + 0xA6, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPanelClosingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x74, + 0x21, + 0x22, + 0x4B, + 0xCF, + 0xD7, + 0x46, + 0xB7, + 0x39, + 0x6E, + 0xDC, + 0x16, + 0x11, + 0x0B, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPanelLaunchFullAppRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x1C, + 0xD6, + 0x88, + 0xB4, + 0x23, + 0xE8, + 0x4B, + 0x8A, + 0xFC, + 0x07, + 0x2C, + 0x25, + 0xA4, + 0x19, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPhone + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xAB, + 0x7D, + 0x46, + 0x12, + 0x27, + 0x52, + 0x4F, + 0xB7, + 0x83, + 0x9E, + 0xA8, + 0x11, + 0x1C, + 0x63, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPicker + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xFD, + 0x09, + 0x0E, + 0xF8, + 0x42, + 0x55, + 0x40, + 0x90, + 0xA0, + 0x89, + 0x6F, + 0x96, + 0x73, + 0x89, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPicker2 + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x11, + 0x50, + 0xB3, + 0xEF, + 0x5C, + 0x24, + 0x4D, + 0xAA, + 0x0C, + 0x34, + 0x0C, + 0x52, + 0x08, + 0x72, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPicker3 + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x33, + 0x72, + 0x0E, + 0x43, + 0xB2, + 0xED, + 0x4B, + 0x85, + 0x16, + 0x22, + 0xB1, + 0xA7, + 0xAC, + 0x0A, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactPickerStatics + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xC0, + 0x88, + 0x74, + 0x53, + 0x6A, + 0x58, + 0x42, + 0xA3, + 0xE9, + 0x62, + 0xDF, + 0xF6, + 0x78, + 0x4B, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactQueryOptions + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xCC, + 0x08, + 0x44, + 0x7C, + 0x7D, + 0xF0, + 0x42, + 0x8A, + 0xC7, + 0xF5, + 0x07, + 0x33, + 0xEC, + 0xDB, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactQueryOptionsFactory + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xBA, + 0x3F, + 0x54, + 0xE7, + 0x8C, + 0xCB, + 0x46, + 0x9D, + 0xAC, + 0x9A, + 0xA4, + 0x2A, + 0x1B, + 0xC8, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactQueryTextSearch + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xF9, + 0xE3, + 0xF7, + 0x57, + 0xA9, + 0x9B, + 0x43, + 0xA0, + 0xB7, + 0x1C, + 0x02, + 0xA1, + 0x96, + 0x3F, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactReader + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0xE4, + 0x97, + 0xD3, + 0x88, + 0x14, + 0xF2, + 0x42, + 0xBF, + 0x64, + 0x25, + 0x3F, + 0x48, + 0x84, + 0xBF, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactSignificantOther + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0xB5, + 0x73, + 0x88, + 0xFB, + 0xC5, + 0xD8, + 0x46, + 0x93, + 0xFE, + 0xDA, + 0x3F, + 0xF1, + 0x93, + 0x40, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactSignificantOther2 + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xD4, + 0x7B, + 0x8D, + 0x03, + 0x3F, + 0xF8, + 0x45, + 0xBA, + 0x0F, + 0xC4, + 0xED, + 0x37, + 0xD6, + 0x42, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactStore + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x0B, + 0x22, + 0x2C, + 0x6C, + 0x3A, + 0x93, + 0x42, + 0xB9, + 0xBC, + 0xFE, + 0x98, + 0x7F, + 0x6E, + 0x0D, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactStore2 + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x1C, + 0xCE, + 0x18, + 0xD5, + 0xEB, + 0xFB, + 0x4B, + 0xB6, + 0x90, + 0x5F, + 0x4F, + 0x27, + 0xC4, + 0xF0, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactStore3 + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x2C, + 0x88, + 0xCB, + 0x4E, + 0x00, + 0x50, + 0x40, + 0x87, + 0xF0, + 0x84, + 0x04, + 0x07, + 0xEE, + 0x68, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactStoreNotificationTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x98, + 0xB2, + 0xAB, + 0x8A, + 0x87, + 0x8B, + 0x4F, + 0xA9, + 0xCE, + 0x46, + 0xBB, + 0x7D, + 0x1C, + 0x84, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactWebsite + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x01, + 0x13, + 0x9F, + 0x1B, + 0xDC, + 0x55, + 0x40, + 0xAD, + 0x66, + 0x65, + 0x2F, + 0x39, + 0xD9, + 0x90, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContactWebsite2 + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xE9, + 0x7E, + 0xF8, + 0x47, + 0x56, + 0x68, + 0x40, + 0xBB, + 0x5E, + 0x4B, + 0x6F, + 0x43, + 0x7C, + 0xE3, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFullContactCardOptions + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x43, + 0x44, + 0x87, + 0xF9, + 0x5C, + 0x83, + 0x46, + 0xBD, + 0xCA, + 0xA1, + 0xFD, + 0xEB, + 0xF8, + 0xDB, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownContactFieldStatics + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x1B, + 0x0E, + 0x2E, + 0x27, + 0xD6, + 0xCA, + 0x4F, + 0xBA, + 0xD4, + 0x1F, + 0xAF, + 0x16, + 0x8C, + 0x7D, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPinnedContactIdsQueryResult + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0x25, + 0x9B, + 0x7D, + 0x79, + 0x15, + 0xDC, + 0x4D, + 0x87, + 0x1F, + 0xA3, + 0x0A, + 0x3A, + 0xEA, + 0x9B, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPinnedContactManager + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x74, + 0xBC, + 0xFC, + 0xD6, + 0xE1, + 0xC3, + 0x45, + 0xB8, + 0xB6, + 0xA3, + 0x56, + 0x04, + 0xE1, + 0x67, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPinnedContactManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0xCC, + 0x5C, + 0xF6, + 0xF9, + 0xFD, + 0x6A, + 0x48, + 0xAC, + 0xE9, + 0xBC, + 0x31, + 0x1D, + 0x0A, + 0xE7, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.core/IID.Manual.cs new file mode 100644 index 0000000000..8765a9fd35 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.core/IID.Manual.cs @@ -0,0 +1,661 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAppListEntry + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0xF0, + 0x00, + 0xEF, + 0x08, + 0x21, + 0x0A, + 0x49, + 0x87, + 0x7A, + 0x8A, + 0x9F, + 0x17, + 0xC2, + 0x5F, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppListEntry2 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x18, + 0xA6, + 0xD0, + 0x35, + 0xBF, + 0xAC, + 0x42, + 0xAC, + 0x06, + 0x86, + 0xEE, + 0xEB, + 0x41, + 0xD0, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppListEntry3 + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0xF2, + 0x99, + 0x60, + 0x32, + 0xFC, + 0x0A, + 0x47, + 0xBC, + 0x69, + 0x4B, + 0x06, + 0x1A, + 0x76, + 0xEF, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppListEntry4 + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x1E, + 0x13, + 0x2A, + 0xF5, + 0x56, + 0x7C, + 0x48, + 0x86, + 0x97, + 0x51, + 0x66, + 0xF3, + 0xB3, + 0x3D, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplication + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0xF7, + 0xAC, + 0x0A, + 0x1D, + 0x5E, + 0xDF, + 0x49, + 0x80, + 0x34, + 0xFB, + 0x6A, + 0x68, + 0xBC, + 0x5E, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplication2 + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0x81, + 0x86, + 0x99, + 0xB6, + 0x1A, + 0x7F, + 0x4B, + 0xBE, + 0x4A, + 0x9A, + 0x06, + 0x45, + 0x22, + 0x4C, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplication3 + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x0D, + 0xEC, + 0xFE, + 0x8B, + 0x59, + 0x07, + 0x45, + 0x8A, + 0x67, + 0x77, + 0x26, + 0x32, + 0x58, + 0x0A, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationExit + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x46, + 0x86, + 0xCF, + 0x1E, + 0x26, + 0x72, + 0x4B, + 0x9A, + 0xCD, + 0x44, + 0xED, + 0x2A, + 0xCE, + 0x6A, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationUnhandledError + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x4A, + 0xE2, + 0xF0, + 0x09, + 0xDD, + 0xE1, + 0x42, + 0xB0, + 0xBC, + 0xE0, + 0xE1, + 0x31, + 0xF7, + 0x8D, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationUseCount + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0xC4, + 0x8D, + 0x51, + 0x77, + 0xC0, + 0x5B, + 0x47, + 0x80, + 0x9E, + 0x0B, + 0xC0, + 0xC5, + 0x7E, + 0x4B, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationView + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0xB2, + 0x8B, + 0x63, + 0x1D, + 0x45, + 0x61, + 0x46, + 0xB0, + 0x99, + 0x41, + 0x4F, + 0x34, + 0xFF, + 0xB9, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationView2 + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x7A, + 0xEB, + 0x68, + 0x7F, + 0x91, + 0xEB, + 0x48, + 0x9A, + 0xEB, + 0x7D, + 0xE5, + 0x3E, + 0x08, + 0x6A, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationView3 + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0xE1, + 0xEB, + 0x07, + 0xCF, + 0xA4, + 0x50, + 0x45, + 0xAB, + 0x70, + 0xB0, + 0x7E, + 0x85, + 0x33, + 0x0B, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationView5 + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x95, + 0xC0, + 0x2B, + 0xF0, + 0x8E, + 0x6D, + 0x44, + 0x9E, + 0x60, + 0x3A, + 0x3E, + 0x04, + 0x28, + 0xC6, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationView6 + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xD4, + 0x19, + 0xC1, + 0x79, + 0x06, + 0xBA, + 0x49, + 0x80, + 0x3F, + 0xB7, + 0x9C, + 0x5C, + 0xF3, + 0x4C, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreApplicationViewTitleBar + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x35, + 0x6D, + 0x00, + 0xF1, + 0xE1, + 0x1B, + 0x43, + 0x95, + 0x08, + 0x29, + 0xB9, + 0x69, + 0x26, + 0xAC, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreImmersiveApplication + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x0E, + 0xDA, + 0x1A, + 0xA2, + 0xE4, + 0x23, + 0x41, + 0xB4, + 0x51, + 0xDC, + 0x96, + 0xBF, + 0x80, + 0x04, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreImmersiveApplication2 + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0x1E, + 0x8E, + 0x82, + 0xE3, + 0xE9, + 0xFC, + 0x4C, + 0x9B, + 0x66, + 0x48, + 0xB7, + 0x8E, + 0xA9, + 0xBB, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreImmersiveApplication3 + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x5B, + 0xA0, + 0x34, + 0x0D, + 0xEE, + 0xE5, + 0x41, + 0x83, + 0x14, + 0xCF, + 0x10, + 0xC9, + 0x1B, + 0xF0, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameworkView + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x5C, + 0xAB, + 0xFA, + 0x24, + 0x89, + 0xAC, + 0x45, + 0xAD, + 0x0F, + 0xA0, + 0x8F, + 0xAE, + 0x5D, + 0x03, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameworkViewSource + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0x06, + 0x77, + 0xCD, + 0xC4, + 0x65, + 0x6C, + 0x42, + 0x94, + 0x94, + 0x34, + 0xFC, + 0x43, + 0x55, + 0x48, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHostedViewClosingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x94, + 0x38, + 0xD2, + 0x4E, + 0xB2, + 0x90, + 0x47, + 0xAC, + 0xB5, + 0x3E, + 0x42, + 0x43, + 0xC4, + 0xFF, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUnhandledError + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0xB7, + 0x59, + 0x94, + 0xB5, + 0x53, + 0x86, + 0x46, + 0x9E, + 0xAF, + 0xFA, + 0x81, + 0x62, + 0xDC, + 0x39, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUnhandledErrorDetectedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0xB7, + 0x9A, + 0x67, + 0x36, + 0xB3, + 0x22, + 0x48, + 0xAC, + 0x40, + 0x0D, + 0x75, + 0x0F, + 0x0B, + 0x7A, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.datatransfer.sharetarget/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.datatransfer.sharetarget/IID.Manual.cs new file mode 100644 index 0000000000..7b54a07c93 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.datatransfer.sharetarget/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.datatransfer.sharetarget.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IQuickLink + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x43, + 0x3E, + 0x60, + 0xBE, + 0xF0, + 0xDC, + 0x4A, + 0xAC, + 0xC9, + 0x8B, + 0x27, + 0xAB, + 0x9C, + 0xF5, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareOperation + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xBA, + 0x46, + 0x22, + 0xF8, + 0xD0, + 0xC1, + 0x41, + 0xA8, + 0x2A, + 0x41, + 0x37, + 0xDB, + 0x65, + 0x04, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareOperation2 + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x97, + 0xFB, + 0x0F, + 0x78, + 0x97, + 0x09, + 0x4A, + 0x8E, + 0x5B, + 0xCB, + 0x5E, + 0x48, + 0x2D, + 0x05, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareOperation3 + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0xB3, + 0xF6, + 0x5E, + 0xA7, + 0xB7, + 0x71, + 0x45, + 0xA2, + 0xA6, + 0x99, + 0x4A, + 0x03, + 0x49, + 0x88, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.datatransfer/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.datatransfer/IID.Manual.cs new file mode 100644 index 0000000000..f965c9dba7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.datatransfer/IID.Manual.cs @@ -0,0 +1,1363 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.datatransfer.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDataProviderHandler + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0xD7, + 0xEC, + 0xE7, + 0xF4, + 0xF2, + 0x2D, + 0x4A, + 0x92, + 0x0E, + 0x17, + 0x0A, + 0x2F, + 0x48, + 0x2A, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareProviderHandler + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0xD9, + 0xF9, + 0xE7, + 0xBA, + 0xE1, + 0x4D, + 0x4E, + 0xBD, + 0x65, + 0xD4, + 0x38, + 0x45, + 0xD3, + 0x21, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClipboardContentOptions + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0xA9, + 0x88, + 0xE8, + 0x4B, + 0xAD, + 0x47, + 0x54, + 0xA0, + 0x56, + 0xAB, + 0x35, + 0x56, + 0x27, + 0x6D, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClipboardHistoryChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0x45, + 0xBE, + 0xC0, + 0xA2, + 0x8E, + 0xCE, + 0x53, + 0x9A, + 0xBA, + 0x8D, + 0x22, + 0x12, + 0x57, + 0x34, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClipboardHistoryItem + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0xBD, + 0x73, + 0x01, + 0xFF, + 0xAF, + 0x50, + 0x5C, + 0xAB, + 0x92, + 0x3D, + 0x19, + 0xF4, + 0x81, + 0xEC, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClipboardHistoryItemsResult + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0xDE, + 0xDF, + 0xE6, + 0xE2, + 0x0E, + 0xE3, + 0x52, + 0x85, + 0x2B, + 0xF2, + 0x95, + 0xDB, + 0x65, + 0x93, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClipboardStatics + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xE2, + 0x27, + 0xC6, + 0xE2, + 0x34, + 0x63, + 0x49, + 0x8E, + 0xED, + 0x93, + 0xCB, + 0xB0, + 0xEA, + 0x3D, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClipboardStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x1B, + 0xAC, + 0xD2, + 0x9F, + 0xD2, + 0x4B, + 0x55, + 0xB3, + 0x03, + 0xF0, + 0x45, + 0x23, + 0x45, + 0xFE, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackage + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xF5, + 0xEB, + 0x61, + 0xEA, + 0xEF, + 0x46, + 0x43, + 0x95, + 0x54, + 0x98, + 0x1D, + 0x7E, + 0x19, + 0x8F, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackage2 + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x1F, + 0x1C, + 0x04, + 0x09, + 0x24, + 0xE1, + 0x45, + 0xA5, + 0x38, + 0x4C, + 0x53, + 0xEE, + 0xEE, + 0x04, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackage3 + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x1F, + 0xF3, + 0x88, + 0x7B, + 0x78, + 0x32, + 0x4D, + 0x96, + 0x5A, + 0xA9, + 0x83, + 0x81, + 0x05, + 0xA0, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackage4 + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x4E, + 0xA2, + 0x13, + 0x82, + 0x93, + 0x6F, + 0x53, + 0x85, + 0x2A, + 0x30, + 0x45, + 0xE1, + 0xB2, + 0x9A, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySet + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x93, + 0x1C, + 0xCD, + 0x4C, + 0x4C, + 0x3A, + 0x44, + 0xA8, + 0xD3, + 0xF5, + 0xC2, + 0x41, + 0xE9, + 0x16, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySet2 + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x5D, + 0x50, + 0xEB, + 0x00, + 0x98, + 0xAA, + 0x46, + 0xB1, + 0x81, + 0x7B, + 0x6F, + 0x0F, + 0x2B, + 0x91, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySet3 + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xFD, + 0x87, + 0x9E, + 0x05, + 0x52, + 0x1B, + 0x40, + 0x87, + 0x4A, + 0x45, + 0x56, + 0x53, + 0xBD, + 0x39, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySet4 + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0xEB, + 0x90, + 0x63, + 0x39, + 0x17, + 0x74, + 0x4C, + 0xB2, + 0x2F, + 0x86, + 0x5F, + 0xAB, + 0x5E, + 0x85, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySetView + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xEC, + 0x4C, + 0xB9, + 0x1A, + 0x0C, + 0x57, + 0x4C, + 0xBE, + 0x55, + 0x75, + 0xD0, + 0x12, + 0x89, + 0x73, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySetView2 + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x50, + 0x54, + 0x60, + 0xBE, + 0x8E, + 0xEB, + 0x4F, + 0x9C, + 0x1E, + 0x75, + 0xE6, + 0x9D, + 0xE5, + 0x4B, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySetView3 + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x4C, + 0x76, + 0xDB, + 0x74, + 0xD1, + 0x5C, + 0x49, + 0x84, + 0xFC, + 0x1A, + 0x51, + 0xF6, + 0xAB, + 0x45, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySetView4 + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xC8, + 0x74, + 0x44, + 0x6F, + 0xD1, + 0xAE, + 0x40, + 0x95, + 0x80, + 0x6F, + 0x85, + 0x62, + 0xB9, + 0x42, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackagePropertySetView5 + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x94, + 0x0A, + 0x6F, + 0x60, + 0x37, + 0xBB, + 0x50, + 0x85, + 0x23, + 0xC4, + 0x20, + 0x2D, + 0xED, + 0x7D, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackageView + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x04, + 0x84, + 0x7B, + 0x00, + 0x59, + 0x85, + 0x4D, + 0xA9, + 0x0B, + 0x10, + 0xCB, + 0x85, + 0xFE, + 0x35, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackageView2 + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0xBA, + 0xEC, + 0x40, + 0x50, + 0x24, + 0x1D, + 0x4C, + 0xB6, + 0xB4, + 0xED, + 0x45, + 0x46, + 0x3D, + 0xEE, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackageView3 + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x71, + 0x77, + 0xD3, + 0xAD, + 0xDD, + 0x88, + 0x42, + 0x84, + 0x28, + 0xD1, + 0xCA, + 0xE3, + 0x94, + 0x12, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPackageView4 + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x6F, + 0xE9, + 0xDF, + 0x42, + 0xE0, + 0x33, + 0x44, + 0xA0, + 0x9F, + 0x26, + 0xD6, + 0xFF, + 0xDA, + 0x8B, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataProviderDeferral + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x23, + 0xCF, + 0xC2, + 0x26, + 0x2D, + 0xD9, + 0x43, + 0xB6, + 0x9D, + 0xDC, + 0xB8, + 0x6D, + 0x03, + 0xF6, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataProviderRequest + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x71, + 0xBC, + 0xEB, + 0xC8, + 0xD3, + 0xDA, + 0x47, + 0xAC, + 0xDE, + 0xF8, + 0x23, + 0x88, + 0xD5, + 0xF7, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataRequest + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xAE, + 0x41, + 0x43, + 0x12, + 0xFC, + 0x53, + 0x4E, + 0x8C, + 0x02, + 0xAC, + 0x71, + 0x4C, + 0x41, + 0x5A, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xB8, + 0xC4, + 0x6D, + 0x86, + 0x03, + 0x63, + 0x42, + 0x87, + 0xC1, + 0xED, + 0x7D, + 0xCE, + 0x30, + 0x89, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xA8, + 0x8B, + 0xCB, + 0xC5, + 0x6A, + 0xC9, + 0x43, + 0x8A, + 0xC5, + 0x9B, + 0xA2, + 0x32, + 0x16, + 0x31, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataTransferManager + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xEE, + 0xCA, + 0xA5, + 0x08, + 0x87, + 0xD1, + 0x49, + 0x8D, + 0x36, + 0x67, + 0xD2, + 0x5A, + 0x8D, + 0xA0, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataTransferManager2 + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x7D, + 0xAE, + 0x30, + 0xA8, + 0x8B, + 0x02, + 0x4C, + 0x8E, + 0x3F, + 0xDD, + 0xB2, + 0x3B, + 0x38, + 0x87, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataTransferManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x01, + 0xDA, + 0xA9, + 0x0E, + 0xE0, + 0xFE, + 0x4C, + 0xAA, + 0x44, + 0x2D, + 0xD9, + 0x32, + 0xDC, + 0xA3, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataTransferManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0xC2, + 0x4E, + 0xC5, + 0x97, + 0x9F, + 0x63, + 0x4D, + 0x98, + 0x68, + 0x39, + 0x5E, + 0x27, + 0x1A, + 0xD8, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataTransferManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x54, + 0x84, + 0x05, + 0x82, + 0x6C, + 0x5C, + 0x4F, + 0xAC, + 0x23, + 0x62, + 0xE4, + 0x58, + 0x36, + 0x1F, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHtmlFormatHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0x49, + 0x77, + 0x2E, + 0xE2, + 0x70, + 0xDD, + 0x6F, + 0x44, + 0xAE, + 0xFC, + 0x61, + 0xCE, + 0xE5, + 0x9F, + 0x65, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOperationCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x32, + 0xAF, + 0xE7, + 0x1D, + 0x05, + 0xAB, + 0x4F, + 0xB1, + 0xA9, + 0x47, + 0xFD, + 0x77, + 0xF7, + 0x0A, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOperationCompletedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0xA0, + 0x8F, + 0x85, + 0x19, + 0x1E, + 0x05, + 0x41, + 0xB2, + 0xF7, + 0xC8, + 0x47, + 0x88, + 0x08, + 0xD5, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0xC4, + 0x74, + 0x45, + 0x13, + 0xF9, + 0x60, + 0x4F, + 0x9D, + 0xF7, + 0xCC, + 0x40, + 0x60, + 0xAB, + 0x19, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareProvider + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0xE0, + 0xAB, + 0x2F, + 0x3E, + 0x44, + 0xDA, + 0x4C, + 0xAF, + 0x25, + 0x8D, + 0x81, + 0x07, + 0x0E, + 0xFD, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareProviderFactory + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x17, + 0x2A, + 0x17, + 0x9E, + 0xE7, + 0x6D, + 0x4F, + 0xB0, + 0x7D, + 0x12, + 0x8F, + 0x46, + 0x9E, + 0x02, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareProviderOperation + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0xF9, + 0xCE, + 0x19, + 0x35, + 0xD4, + 0x79, + 0x41, + 0xB6, + 0xAF, + 0x14, + 0xE0, + 0x49, + 0x2B, + 0x69, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareProvidersRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0xF3, + 0x88, + 0xF8, + 0xF8, + 0xA3, + 0xCE, + 0x4F, + 0x85, + 0xE4, + 0x88, + 0x26, + 0xE6, + 0x3B, + 0xE7, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareTargetInfo + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xE6, + 0x5B, + 0x38, + 0xE8, + 0xC6, + 0x14, + 0x41, + 0xB2, + 0x94, + 0x28, + 0xF3, + 0xBB, + 0x6F, + 0x99, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShareUIOptions + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x8A, + 0xFA, + 0x72, + 0x2F, + 0x34, + 0x90, + 0x4D, + 0x95, + 0x51, + 0x2A, + 0xE0, + 0x4E, + 0x37, + 0x68, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISharedStorageAccessManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x2A, + 0x13, + 0xC6, + 0xB1, + 0x34, + 0x49, + 0x48, + 0xBD, + 0x5F, + 0xD0, + 0x9F, + 0xEE, + 0x31, + 0x58, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardDataFormatsStatics + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x81, + 0xD6, + 0x7E, + 0x80, + 0xA8, + 0xC9, + 0x40, + 0xB4, + 0xED, + 0x0B, + 0xEE, + 0x1E, + 0x15, + 0xF5, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardDataFormatsStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x54, + 0xA2, + 0x42, + 0x76, + 0x9D, + 0xE8, + 0x42, + 0x86, + 0x1B, + 0x47, + 0xC2, + 0x5D, + 0xD0, + 0xCF, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardDataFormatsStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xB0, + 0x57, + 0x3B, + 0xD4, + 0x01, + 0x4C, + 0x47, + 0x8B, + 0x5F, + 0xBC, + 0x8E, + 0x27, + 0xF3, + 0x8B, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITargetApplicationChosenEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0xB8, + 0x6F, + 0xCA, + 0x87, + 0x29, + 0xE3, + 0x4E, + 0x9C, + 0x54, + 0xD8, + 0xAF, + 0xBC, + 0xB8, + 0x6C, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.email/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.email/IID.Manual.cs new file mode 100644 index 0000000000..3cfc13d152 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.email/IID.Manual.cs @@ -0,0 +1,1525 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.email.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IEmailAttachment + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0xCA, + 0x53, + 0xF3, + 0xC8, + 0x57, + 0xDB, + 0x4A, + 0xB9, + 0x92, + 0x60, + 0xFC, + 0xEB, + 0x58, + 0x4F, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailAttachment2 + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x10, + 0x5F, + 0x22, + 0xFF, + 0xB0, + 0x71, + 0x45, + 0x9D, + 0x54, + 0xA7, + 0x06, + 0xC4, + 0x8D, + 0x55, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailAttachmentFactory + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0xAC, + 0x6E, + 0x79, + 0x56, + 0xED, + 0x79, + 0x49, + 0x87, + 0x08, + 0xAB, + 0xB8, + 0xBC, + 0x85, + 0x4B, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailAttachmentFactory2 + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x94, + 0x25, + 0x23, + 0xF9, + 0x51, + 0x7D, + 0x42, + 0xAD, + 0xCD, + 0x24, + 0x10, + 0x23, + 0xC8, + 0xCF, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailConversation + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xC2, + 0x18, + 0xDA, + 0xBC, + 0xA0, + 0x49, + 0x43, + 0x90, + 0x2D, + 0x90, + 0xF6, + 0x63, + 0x89, + 0xF5, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailConversationBatch + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0xAB, + 0xC1, + 0xB8, + 0xC5, + 0x01, + 0x2A, + 0x43, + 0x9D, + 0xF1, + 0xFE, + 0x85, + 0xD9, + 0x8A, + 0x27, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailConversationReader + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x0F, + 0x63, + 0xB4, + 0x75, + 0x28, + 0xC8, + 0x44, + 0x9B, + 0x8C, + 0x85, + 0xBE, + 0xB3, + 0xA3, + 0xC6, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailFolder + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x77, + 0x4F, + 0xA2, + 0x6C, + 0x99, + 0x64, + 0x48, + 0xB1, + 0xBA, + 0xED, + 0x12, + 0x40, + 0xE5, + 0x7D, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailIrmInfo + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x21, + 0xF5, + 0x90, + 0xA0, + 0xB1, + 0xBD, + 0x4E, + 0xA6, + 0xB6, + 0xDD, + 0xCA, + 0x55, + 0x60, + 0x6E, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailIrmInfoFactory + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0xB1, + 0x4B, + 0x31, + 0xE6, + 0xE3, + 0x7B, + 0x4D, + 0xBE, + 0x8D, + 0x91, + 0xA9, + 0x63, + 0x11, + 0xB0, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailIrmTemplate + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x75, + 0x27, + 0xF3, + 0x6D, + 0x54, + 0xEA, + 0x4B, + 0xA9, + 0x63, + 0x54, + 0xA3, + 0x8B, + 0x2C, + 0xC0, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailIrmTemplateFactory + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x18, + 0xA3, + 0x3D, + 0x38, + 0x87, + 0x18, + 0x44, + 0xB9, + 0xCB, + 0x47, + 0x1B, + 0x93, + 0x6F, + 0xE7, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailItemCounts + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x33, + 0xD1, + 0x5B, + 0xC8, + 0xFE, + 0xAB, + 0x4B, + 0x83, + 0xBA, + 0x0B, + 0xAF, + 0x3C, + 0x1F, + 0x6C, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailbox + { + get + { + ReadOnlySpan data = + [ + 0x49, + 0x06, + 0x79, + 0xA8, + 0x5B, + 0xCF, + 0x1B, + 0x41, + 0x80, + 0xB1, + 0x4A, + 0x6A, + 0x14, + 0x84, + 0xCE, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailbox2 + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0xE4, + 0xF8, + 0x14, + 0xA2, + 0x6C, + 0xB2, + 0x4A, + 0x92, + 0x41, + 0x79, + 0xCD, + 0x7B, + 0xF4, + 0x63, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailbox3 + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x89, + 0xA5, + 0x3D, + 0x8B, + 0x45, + 0x8A, + 0x40, + 0x8E, + 0x37, + 0xAC, + 0x8B, + 0x05, + 0xD8, + 0xAF, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailbox4 + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x30, + 0x1F, + 0x5D, + 0x22, + 0xF2, + 0xA7, + 0x48, + 0xB7, + 0xB6, + 0x71, + 0x63, + 0x56, + 0xCD, + 0x26, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailbox5 + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x70, + 0x96, + 0x39, + 0x92, + 0x00, + 0xBE, + 0x49, + 0xBD, + 0x0E, + 0x5D, + 0x4D, + 0xC9, + 0xD9, + 0x6D, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxAction + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x89, + 0x98, + 0xAC, + 0xFA, + 0x21, + 0x27, + 0x49, + 0x92, + 0x10, + 0xD4, + 0x10, + 0x58, + 0x2F, + 0xDF, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxAutoReply + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x25, + 0x23, + 0xE2, + 0xB4, + 0x8A, + 0x5B, + 0x48, + 0xB3, + 0x1F, + 0x04, + 0xD1, + 0x54, + 0x76, + 0xBD, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxAutoReplySettings + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x9F, + 0x7A, + 0xA8, + 0xC6, + 0x0A, + 0x77, + 0x4B, + 0xBA, + 0x77, + 0xA6, + 0xB9, + 0x9E, + 0x9A, + 0x27, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxCapabilities + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0xC3, + 0xDE, + 0xEE, + 0xDB, + 0x89, + 0x05, + 0x43, + 0x82, + 0xC4, + 0x43, + 0x9E, + 0x0A, + 0x33, + 0xDA, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxCapabilities2 + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x3E, + 0x72, + 0x69, + 0x21, + 0x2F, + 0xBC, + 0x4C, + 0x88, + 0xAB, + 0x2E, + 0x76, + 0x02, + 0xA4, + 0x80, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxCapabilities3 + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0xE9, + 0x90, + 0xF6, + 0xF2, + 0x56, + 0xAA, + 0x45, + 0x87, + 0x2C, + 0x0C, + 0xE9, + 0xF3, + 0xDB, + 0x0B, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxChange + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xF5, + 0xED, + 0x61, + 0xEF, + 0x11, + 0x0C, + 0x40, + 0xAD, + 0xDE, + 0x8C, + 0xDE, + 0x65, + 0xC8, + 0x5E, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxChangeReader + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x0E, + 0xBD, + 0xBD, + 0x3D, + 0xC5, + 0x31, + 0x43, + 0x97, + 0xBE, + 0xBE, + 0x75, + 0xA2, + 0x14, + 0x6A, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxChangeTracker + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0x86, + 0xE4, + 0x7A, + 0x66, + 0x51, + 0xB7, + 0x42, + 0x88, + 0x82, + 0xFD, + 0x21, + 0xC9, + 0x2B, + 0xDD, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxChangedDeferral + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x74, + 0x9A, + 0x77, + 0xC5, + 0x97, + 0x54, + 0x4B, + 0xB3, + 0x0D, + 0x30, + 0x62, + 0x32, + 0x62, + 0x3E, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x5F, + 0xFD, + 0x3C, + 0xD4, + 0x01, + 0x4A, + 0x4E, + 0xA4, + 0x4C, + 0xB2, + 0x2D, + 0xD4, + 0x2E, + 0xC2, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxCreateFolderResult + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x55, + 0x28, + 0xB2, + 0x85, + 0x28, + 0x98, + 0x49, + 0xB5, + 0x95, + 0x8A, + 0x2D, + 0x37, + 0x4C, + 0xE9, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxPolicies + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0x45, + 0x33, + 0x1F, + 0x3B, + 0x1C, + 0xC7, + 0x4D, + 0xB4, + 0x10, + 0x63, + 0x73, + 0x78, + 0x3E, + 0x54, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxPolicies2 + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0x8A, + 0xB5, + 0xBA, + 0x4B, + 0xA1, + 0x7C, + 0x49, + 0xA8, + 0xE2, + 0x55, + 0xEA, + 0xC2, + 0x9C, + 0xC4, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxPolicies3 + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0xA0, + 0xD4, + 0xBD, + 0x67, + 0x48, + 0x4A, + 0x41, + 0x81, + 0xA2, + 0x80, + 0x39, + 0x19, + 0xC4, + 0x41, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxSyncManager + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0xC5, + 0x7A, + 0x51, + 0x91, + 0x35, + 0x5D, + 0x4B, + 0x85, + 0xBC, + 0xC7, + 0x1D, + 0xDE, + 0x86, + 0x22, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMailboxSyncManager2 + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0xC9, + 0x8D, + 0xCD, + 0xC1, + 0x95, + 0x89, + 0x4F, + 0x81, + 0xB7, + 0xE6, + 0xAE, + 0xCB, + 0x66, + 0x95, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xDE, + 0x73, + 0xF7, + 0xA5, + 0x3C, + 0x0F, + 0x4B, + 0x90, + 0xC1, + 0x15, + 0x6E, + 0x40, + 0x17, + 0x4C, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0x86, + 0x12, + 0xF5, + 0xC5, + 0x55, + 0x90, + 0x48, + 0xA8, + 0x24, + 0x21, + 0x6C, + 0x26, + 0x18, + 0xCE, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x2D, + 0x05, + 0xAC, + 0x94, + 0xB1, + 0x5D, + 0x42, + 0xB6, + 0xD9, + 0xD0, + 0xF0, + 0x41, + 0x35, + 0xED, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x23, + 0x72, + 0x4A, + 0x3E, + 0x84, + 0x45, + 0x49, + 0xB3, + 0xAA, + 0x34, + 0x9E, + 0x07, + 0xA3, + 0x62, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMeetingInfo + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x3F, + 0xC0, + 0x31, + 0x33, + 0x79, + 0x5F, + 0x41, + 0xA2, + 0x75, + 0xD1, + 0x65, + 0xBA, + 0x07, + 0x02, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMeetingInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x38, + 0x59, + 0x7E, + 0xD9, + 0xB0, + 0xE5, + 0x4F, + 0x86, + 0x7C, + 0xE3, + 0x1E, + 0xD2, + 0xB5, + 0x88, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMessage + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x94, + 0x6D, + 0x6C, + 0xB5, + 0x80, + 0xF8, + 0x48, + 0xB0, + 0xB1, + 0xE0, + 0x4E, + 0x43, + 0x0F, + 0x44, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMessage2 + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x24, + 0xC8, + 0xFD, + 0x1A, + 0x9F, + 0xDB, + 0x44, + 0xBD, + 0x3C, + 0x65, + 0xC3, + 0x84, + 0x77, + 0x0F, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMessage3 + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x67, + 0xEA, + 0xA1, + 0x98, + 0xE5, + 0x29, + 0x4D, + 0xA0, + 0x18, + 0xFC, + 0x7B, + 0x7E, + 0xEC, + 0xE0, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMessage4 + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0xF1, + 0x7C, + 0x31, + 0x7F, + 0x3E, + 0x05, + 0x4A, + 0x83, + 0x94, + 0x3E, + 0x10, + 0x33, + 0x6D, + 0xD4, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMessageBatch + { + get + { + ReadOnlySpan data = + [ + 0x8F, + 0xD0, + 0x5C, + 0x60, + 0xD9, + 0x25, + 0x1B, + 0x4F, + 0x9E, + 0x51, + 0x05, + 0x14, + 0xC0, + 0x14, + 0x96, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailMessageReader + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xBE, + 0x4A, + 0x2F, + 0x13, + 0x62, + 0x85, + 0x4A, + 0xA3, + 0xB0, + 0xF9, + 0x2D, + 0x1A, + 0x83, + 0x9D, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailQueryOptions + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x4B, + 0x50, + 0x45, + 0x7F, + 0x3E, + 0x52, + 0x4D, + 0xB6, + 0xDD, + 0xD6, + 0xFD, + 0x4E, + 0x1F, + 0xBD, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailQueryOptionsFactory + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xA1, + 0xF1, + 0x88, + 0xAB, + 0x78, + 0xE8, + 0x4E, + 0xB4, + 0xE3, + 0x04, + 0x6D, + 0x6E, + 0x2F, + 0xE5, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailQueryTextSearch + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xA2, + 0xA0, + 0x9F, + 0x5D, + 0x3C, + 0xA5, + 0x46, + 0xA6, + 0xE2, + 0x31, + 0xD6, + 0xFD, + 0x17, + 0xE5, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailRecipient + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x25, + 0xE8, + 0xCA, + 0x78, + 0x44, + 0x14, + 0x48, + 0xB9, + 0x00, + 0xC9, + 0x02, + 0xB5, + 0xE1, + 0x9B, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailRecipientFactory + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0xB8, + 0x00, + 0x55, + 0x9A, + 0xC7, + 0xF8, + 0x4E, + 0xB9, + 0x09, + 0x72, + 0x2E, + 0x18, + 0xE3, + 0x93, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailRecipientResolutionResult + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x38, + 0x83, + 0x91, + 0x8D, + 0x8D, + 0x73, + 0x45, + 0x80, + 0xD1, + 0x07, + 0x17, + 0x2A, + 0x34, + 0xB9, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailRecipientResolutionResult2 + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x0B, + 0x42, + 0x5E, + 0x5B, + 0xCE, + 0xDE, + 0x4B, + 0xB9, + 0xD4, + 0xE1, + 0x6D, + 0xA0, + 0xB0, + 0x9F, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailStore + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x22, + 0x03, + 0xF8, + 0x37, + 0x91, + 0x8B, + 0x4F, + 0xA4, + 0x70, + 0x27, + 0x9A, + 0xC3, + 0x05, + 0x8E, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmailStoreNotificationTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x56, + 0x17, + 0xCE, + 0xE6, + 0x46, + 0xC9, + 0x43, + 0x96, + 0xF7, + 0xFA, + 0xCF, + 0x7D, + 0xD7, + 0x10, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.search.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.search.core/IID.Manual.cs new file mode 100644 index 0000000000..23473af332 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.search.core/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.search.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IRequestingFocusOnKeyboardInputEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x5F, + 0x19, + 0xA1, + 0xA7, + 0xB1, + 0xA2, + 0x41, + 0x87, + 0x9D, + 0x6A, + 0x68, + 0x68, + 0x7E, + 0x59, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchSuggestion + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x54, + 0x55, + 0x5B, + 0x27, + 0x15, + 0x7B, + 0x43, + 0x95, + 0xC5, + 0x8D, + 0x18, + 0xD2, + 0xB8, + 0xAF, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchSuggestionManager + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x50, + 0x0C, + 0x3F, + 0x9D, + 0xCB, + 0x7B, + 0x49, + 0xB5, + 0x00, + 0x3C, + 0x04, + 0xAC, + 0x95, + 0x9A, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchSuggestionsRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x19, + 0xD5, + 0x6F, + 0x7E, + 0x9E, + 0xB4, + 0x4A, + 0x8B, + 0xE3, + 0xC7, + 0x6B, + 0x1B, + 0xD4, + 0x34, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.search/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.search/IID.Manual.cs new file mode 100644 index 0000000000..1cac122058 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.search/IID.Manual.cs @@ -0,0 +1,499 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.search.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ILocalContentSuggestionSettings + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0xB0, + 0xAE, + 0xEE, + 0x3D, + 0x74, + 0x6E, + 0x45, + 0x84, + 0xA3, + 0x23, + 0xF0, + 0x6F, + 0x2D, + 0x15, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPane + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0xEC, + 0xAC, + 0xFD, + 0x00, + 0x37, + 0x73, + 0x4D, + 0x91, + 0xA1, + 0x2F, + 0x99, + 0x86, + 0x74, + 0x23, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneQueryChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x4F, + 0x06, + 0x3C, + 0x51, + 0x23, + 0x48, + 0x42, + 0xA5, + 0x29, + 0x71, + 0x10, + 0xF4, + 0x64, + 0xA7, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneQueryLinguisticDetails + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x46, + 0xFB, + 0x82, + 0x40, + 0x09, + 0x6D, + 0x4B, + 0xB8, + 0xD0, + 0x64, + 0x2B, + 0x30, + 0x98, + 0x9E, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneQuerySubmittedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xA4, + 0x3B, + 0x14, + 0xC5, + 0xE9, + 0x36, + 0x47, + 0x91, + 0xB2, + 0xE8, + 0xEB, + 0x9C, + 0xB8, + 0x83, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x92, + 0x0C, + 0x46, + 0x32, + 0x4C, + 0x38, + 0x45, + 0xA4, + 0xD4, + 0xB6, + 0xB4, + 0x40, + 0x0D, + 0x14, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneResultSuggestionChosenEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x6C, + 0x31, + 0xC8, + 0xD2, + 0xAE, + 0xE0, + 0x41, + 0xBC, + 0xE0, + 0xC2, + 0x6C, + 0xA7, + 0x4F, + 0x85, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneStatics + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xAD, + 0x72, + 0x95, + 0x1D, + 0x8F, + 0x1F, + 0x48, + 0xA1, + 0x5B, + 0xC6, + 0x16, + 0x55, + 0xF1, + 0x6A, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneStaticsWithHideThisApplication + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x28, + 0x73, + 0x00, + 0xF1, + 0x50, + 0x03, + 0x4D, + 0x99, + 0xAC, + 0xC6, + 0x64, + 0x4C, + 0x8E, + 0xD8, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneSuggestionsRequest + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x0B, + 0xB1, + 0x81, + 0x61, + 0xE5, + 0x93, + 0x40, + 0x9B, + 0x4D, + 0x2A, + 0xD4, + 0x82, + 0x79, + 0x4A, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneSuggestionsRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x09, + 0xD0, + 0xA0, + 0x48, + 0x87, + 0xE2, + 0x4E, + 0xAD, + 0x44, + 0xAF, + 0xA6, + 0xBE, + 0x99, + 0x7C, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneSuggestionsRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x8A, + 0x9B, + 0xC8, + 0x56, + 0xAC, + 0x60, + 0x44, + 0x8D, + 0x2F, + 0x80, + 0x02, + 0x3B, + 0xEC, + 0x4F, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchPaneVisibilityChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x30, + 0x4D, + 0x3C, + 0x4B, + 0xAC, + 0xF2, + 0x49, + 0x97, + 0xD6, + 0x02, + 0x0E, + 0x61, + 0x82, + 0xCB, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchQueryLinguisticDetails + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0x20, + 0xA1, + 0x46, + 0xC9, + 0x69, + 0x45, + 0x47, + 0xB7, + 0x2F, + 0xA8, + 0xA4, + 0xFC, + 0x8F, + 0x24, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchQueryLinguisticDetailsFactory + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xC3, + 0xC6, + 0xCA, + 0x64, + 0x3C, + 0xFD, + 0x4D, + 0xAD, + 0x9F, + 0x47, + 0x9E, + 0x4D, + 0x40, + 0x65, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchSuggestionCollection + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x8A, + 0x3A, + 0x32, + 0xEA, + 0xFB, + 0x46, + 0x44, + 0xAB, + 0xBC, + 0x3D, + 0xA7, + 0x91, + 0x5F, + 0xDD, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchSuggestionsRequest + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x26, + 0x4E, + 0x4E, + 0xE5, + 0x44, + 0x39, + 0x40, + 0x90, + 0x99, + 0x60, + 0x00, + 0xEA, + 0xD1, + 0xF0, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISearchSuggestionsRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x98, + 0x15, + 0xB7, + 0x65, + 0xC0, + 0x6D, + 0x45, + 0xA8, + 0x45, + 0x1E, + 0xCC, + 0xEC, + 0x5D, + 0xC2, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdataaccounts.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdataaccounts.provider/IID.Manual.cs new file mode 100644 index 0000000000..7c7402b734 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdataaccounts.provider/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.userdataaccounts.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IUserDataAccountPartnerAccountInfo + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x00, + 0x20, + 0x5F, + 0xEF, + 0xF6, + 0xC3, + 0x4E, + 0x86, + 0x30, + 0x01, + 0x2C, + 0x59, + 0xC1, + 0x14, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountProviderAddAccountOperation + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x25, + 0xC7, + 0xB9, + 0x84, + 0x3F, + 0x5D, + 0x4B, + 0x8E, + 0xAA, + 0x45, + 0xE9, + 0x7A, + 0xA8, + 0x42, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountProviderOperation + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0xAD, + 0x0A, + 0xA2, + 0x8C, + 0x88, + 0x62, + 0x4A, + 0xA3, + 0xDD, + 0x34, + 0xD0, + 0x7A, + 0x80, + 0x2B, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountProviderResolveErrorsOperation + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0xDC, + 0x35, + 0x62, + 0xCB, + 0xBF, + 0xE1, + 0x41, + 0x99, + 0x57, + 0x97, + 0x59, + 0xA2, + 0x88, + 0x46, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountProviderSettingsOperation + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x4D, + 0x03, + 0x92, + 0x48, + 0x86, + 0x30, + 0x4F, + 0xAC, + 0xFA, + 0x30, + 0x02, + 0x65, + 0x8C, + 0xA8, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdataaccounts/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdataaccounts/IID.Manual.cs new file mode 100644 index 0000000000..0e149c810d --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdataaccounts/IID.Manual.cs @@ -0,0 +1,310 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.userdataaccounts.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IUserDataAccount + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x36, + 0xC4, + 0xB9, + 0x48, + 0xB3, + 0x10, + 0x49, + 0xBE, + 0x94, + 0x4A, + 0xD4, + 0xBB, + 0xA6, + 0xDE, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccount2 + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xD8, + 0x8C, + 0x07, + 0x82, + 0xDE, + 0x4B, + 0x40, + 0x81, + 0x95, + 0xC8, + 0xA3, + 0xAC, + 0x19, + 0x8F, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccount3 + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x38, + 0x53, + 0x01, + 0x43, + 0x6C, + 0x86, + 0x42, + 0x9D, + 0x69, + 0x3E, + 0x17, + 0x09, + 0xA1, + 0xF2, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccount4 + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x52, + 0x31, + 0xC4, + 0xE5, + 0xEA, + 0x0A, + 0x4F, + 0xA8, + 0xB2, + 0x1C, + 0xCA, + 0x11, + 0x5E, + 0x00, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0xE8, + 0xA6, + 0x56, + 0x8F, + 0xDB, + 0xAB, + 0x41, + 0xA6, + 0x5F, + 0x8C, + 0x59, + 0x71, + 0xAA, + 0xC9, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x89, + 0x9B, + 0x0D, + 0x28, + 0x19, + 0x20, + 0x4A, + 0x86, + 0xD5, + 0x3C, + 0x73, + 0x7F, + 0x7D, + 0xC3, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xED, + 0x3D, + 0x6A, + 0x6B, + 0x31, + 0x5E, + 0x43, + 0xB5, + 0x34, + 0xF7, + 0xD4, + 0xB4, + 0xB7, + 0xDB, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountStore + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0xB0, + 0x73, + 0x20, + 0x0A, + 0x7D, + 0x76, + 0x4E, + 0xBF, + 0x45, + 0x23, + 0x68, + 0xF9, + 0x78, + 0xA5, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountStore2 + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0xAE, + 0xE0, + 0xB1, + 0x60, + 0x95, + 0x31, + 0x46, + 0x8A, + 0xF0, + 0x06, + 0x1D, + 0x30, + 0x16, + 0x14, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountStore3 + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0xC0, + 0x42, + 0x81, + 0xC9, + 0xF3, + 0x8B, + 0x47, + 0xB1, + 0x17, + 0x65, + 0x85, + 0xBE, + 0xBB, + 0x67, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataAccountStoreChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0xE2, + 0xE3, + 0x84, + 0x20, + 0x88, + 0x12, + 0x45, + 0xB1, + 0xF6, + 0x2E, + 0x03, + 0x5B, + 0xE1, + 0x07, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdatatasks/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdatatasks/IID.Manual.cs new file mode 100644 index 0000000000..4dbba8ebab --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.userdatatasks/IID.Manual.cs @@ -0,0 +1,337 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.userdatatasks.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IUserDataTask + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x85, + 0x65, + 0x7C, + 0xD4, + 0xE0, + 0x99, + 0x4F, + 0xAE, + 0xE2, + 0xBC, + 0x2D, + 0x5D, + 0xDA, + 0xDF, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskBatch + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0xA5, + 0x2D, + 0x38, + 0xB5, + 0x20, + 0x1C, + 0x43, + 0x8F, + 0x42, + 0xA5, + 0xD2, + 0x92, + 0xEC, + 0x93, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskList + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x2E, + 0x41, + 0x49, + 0x1D, + 0x7C, + 0xF1, + 0x4D, + 0xBE, + 0xD3, + 0x31, + 0x4B, + 0x7C, + 0xBF, + 0x5E, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskListLimitedWriteOperations + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x67, + 0xA2, + 0x7A, + 0x78, + 0x60, + 0x83, + 0x41, + 0x91, + 0x9E, + 0x4F, + 0x29, + 0xF1, + 0x9C, + 0xFA, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskListSyncManager + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x1A, + 0x59, + 0x8E, + 0xCF, + 0x1D, + 0x9F, + 0x46, + 0x93, + 0xEC, + 0xBA, + 0x48, + 0xBB, + 0x55, + 0x3C, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskManager + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xC9, + 0x51, + 0x84, + 0x0B, + 0xE6, + 0xA9, + 0x48, + 0x92, + 0x11, + 0x7F, + 0xB8, + 0xA5, + 0x6C, + 0xB8, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x39, + 0x55, + 0xB3, + 0x02, + 0xC5, + 0xFC, + 0x47, + 0xA8, + 0x1E, + 0x10, + 0x08, + 0x83, + 0x71, + 0x9D, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskQueryOptions + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x27, + 0x9F, + 0x95, + 0x9A, + 0x90, + 0x30, + 0x4D, + 0x8C, + 0x1B, + 0x33, + 0x1D, + 0x8F, + 0xE6, + 0x67, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskReader + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x88, + 0xE6, + 0x03, + 0xCF, + 0x4C, + 0x00, + 0x45, + 0x88, + 0x3B, + 0xE7, + 0x62, + 0x90, + 0xCF, + 0xED, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskRecurrenceProperties + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x80, + 0xDF, + 0x73, + 0xC6, + 0x27, + 0xCE, + 0x40, + 0xB1, + 0x49, + 0x9C, + 0xD4, + 0x14, + 0x85, + 0xA6, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskRegenerationProperties + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x00, + 0xAB, + 0x92, + 0x0E, + 0x09, + 0x04, + 0x47, + 0xBB, + 0x5C, + 0x84, + 0xFC, + 0x0B, + 0x0D, + 0x9C, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataTaskStore + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x9C, + 0x6A, + 0xF0, + 0xDB, + 0xF1, + 0xBA, + 0x45, + 0x8A, + 0x62, + 0x08, + 0x60, + 0x04, + 0xC0, + 0x21, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.wallet/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.wallet/IID.Manual.cs new file mode 100644 index 0000000000..051521fc98 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel.wallet/IID.Manual.cs @@ -0,0 +1,364 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.wallet.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IWalletBarcode + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x7B, + 0x85, + 0x4F, + 0x80, + 0xDE, + 0xA4, + 0x4E, + 0xA1, + 0xCD, + 0x81, + 0xCD, + 0x08, + 0x4D, + 0xAC, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletBarcodeFactory + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x71, + 0x11, + 0x30, + 0x9C, + 0xED, + 0x9E, + 0x46, + 0xBB, + 0xFD, + 0x30, + 0x6C, + 0x95, + 0xEA, + 0x71, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletItem + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0x4B, + 0xB5, + 0x20, + 0x8D, + 0x11, + 0xC4, + 0x4E, + 0x99, + 0x6C, + 0xB9, + 0x63, + 0xE7, + 0xBD, + 0x3E, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletItemCustomProperty + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x40, + 0x4B, + 0xB9, + 0x00, + 0xFA, + 0xFD, + 0x40, + 0x98, + 0xDC, + 0x9D, + 0xE4, + 0x66, + 0x97, + 0xF1, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletItemCustomPropertyFactory + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x6A, + 0x04, + 0xD0, + 0xA1, + 0x61, + 0xAA, + 0x41, + 0xB2, + 0x59, + 0xA5, + 0x61, + 0x0A, + 0xB5, + 0xD5, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletItemFactory + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x74, + 0xE2, + 0x53, + 0x0B, + 0x4F, + 0x3E, + 0x4A, + 0x99, + 0xE5, + 0x0B, + 0xBB, + 0x1E, + 0xAB, + 0x38, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletItemStore + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x48, + 0x60, + 0x71, + 0x49, + 0x6D, + 0xF8, + 0x48, + 0x91, + 0xA9, + 0x40, + 0xA1, + 0xD0, + 0xF1, + 0x3E, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletItemStore2 + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x82, + 0xE6, + 0x65, + 0x09, + 0x70, + 0x15, + 0x4A, + 0xBD, + 0x54, + 0x4F, + 0xFF, + 0x37, + 0x9B, + 0xFF, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xD6, + 0x11, + 0x51, + 0xA4, + 0xC9, + 0x64, + 0x4C, + 0xB4, + 0xDD, + 0xE1, + 0xE5, + 0x48, + 0x00, + 0x1C, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletRelevantLocation + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x78, + 0xD8, + 0x9F, + 0xF9, + 0xE3, + 0xE1, + 0x4D, + 0xBA, + 0xB3, + 0xBB, + 0x19, + 0x2E, + 0x46, + 0xB3, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletTransaction + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0xE9, + 0xE1, + 0x40, + 0x06, + 0x26, + 0x19, + 0x45, + 0x81, + 0xCB, + 0xBF, + 0xF1, + 0xC6, + 0x0D, + 0x1F, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletVerb + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x26, + 0xB8, + 0x17, + 0xC1, + 0xE3, + 0x74, + 0x4C, + 0x8A, + 0x94, + 0x21, + 0x7A, + 0xAD, + 0xBC, + 0x48, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWalletVerbFactory + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x27, + 0x01, + 0x76, + 0x58, + 0xBE, + 0x5E, + 0x4D, + 0x83, + 0xED, + 0x58, + 0xB1, + 0x66, + 0x9C, + 0x7A, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel/IID.Manual.cs new file mode 100644 index 0000000000..f20f668146 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.applicationmodel/IID.Manual.cs @@ -0,0 +1,1633 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.applicationmodel.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAppDisplayInfo + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x11, + 0xEB, + 0x1A, + 0xD4, + 0xE4, + 0xAA, + 0x41, + 0xA4, + 0xF6, + 0xC4, + 0xA2, + 0x76, + 0xE7, + 0x9E, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInfo + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x59, + 0x7F, + 0xCF, + 0x09, + 0x6A, + 0xE8, + 0x4D, + 0xA6, + 0xC0, + 0x57, + 0x92, + 0xD5, + 0x68, + 0x80, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x1F, + 0x4B, + 0xBE, + 0x98, + 0x20, + 0x1B, + 0x43, + 0xBD, + 0x25, + 0xB3, + 0x08, + 0x78, + 0x74, + 0x8D, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInfo3 + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x8E, + 0xA7, + 0x09, + 0xA4, + 0x93, + 0xDE, + 0x46, + 0x93, + 0x97, + 0x08, + 0x43, + 0xB5, + 0x71, + 0x15, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInfo4 + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0xBD, + 0x34, + 0x2F, + 0x09, + 0x16, + 0x54, + 0x45, + 0x9F, + 0x33, + 0x12, + 0xE1, + 0xE8, + 0x03, + 0xE0, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInfoStatics + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x78, + 0x1F, + 0xCF, + 0x8B, + 0xE4, + 0x0C, + 0x4F, + 0x9B, + 0x0B, + 0x79, + 0xC3, + 0xF8, + 0x95, + 0x7D, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInstallerInfo + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x2A, + 0xAB, + 0x29, + 0xF6, + 0xD4, + 0xA3, + 0x42, + 0xAD, + 0xCD, + 0xD6, + 0x58, + 0x3C, + 0x65, + 0x95, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInstallerInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x13, + 0x0F, + 0xD2, + 0x56, + 0x82, + 0x7C, + 0x59, + 0x85, + 0x11, + 0xC8, + 0x4E, + 0xC5, + 0x0D, + 0x5E, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInstance + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x2B, + 0x5F, + 0x67, + 0x5F, + 0xF2, + 0x32, + 0x45, + 0x9F, + 0xD6, + 0x36, + 0x33, + 0xE0, + 0x63, + 0x4D, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppInstanceStatics + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0xE7, + 0x11, + 0x9D, + 0xA6, + 0x9E, + 0xAF, + 0x47, + 0xA6, + 0xEC, + 0x46, + 0x78, + 0x4C, + 0x5B, + 0xA2, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDesignModeStatics + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x93, + 0x38, + 0x2C, + 0x1A, + 0xF8, + 0x7A, + 0x4E, + 0xB8, + 0x57, + 0x76, + 0xA8, + 0x08, + 0x87, + 0xE1, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDesignModeStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x81, + 0xCF, + 0x80, + 0x64, + 0xB0, + 0x58, + 0x48, + 0xBE, + 0xC8, + 0x3E, + 0xBA, + 0x22, + 0x35, + 0x75, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEnteredBackgroundEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0xDC, + 0x22, + 0xF7, + 0x27, + 0x98, + 0x3D, + 0x40, + 0xAA, + 0xED, + 0xEC, + 0xCA, + 0x9A, + 0xC1, + 0x73, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFindRelatedPackagesOptions + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x7E, + 0xDD, + 0x41, + 0x35, + 0xB3, + 0x1F, + 0x52, + 0xB9, + 0x6C, + 0x5E, + 0xA0, + 0x7F, + 0x5B, + 0x73, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFindRelatedPackagesOptionsFactory + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0x72, + 0xD1, + 0xD7, + 0xFD, + 0xA4, + 0xC4, + 0x55, + 0x98, + 0xCF, + 0xF2, + 0x71, + 0x0B, + 0x7D, + 0x8B, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFullTrustProcessLaunchResult + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xD8, + 0x17, + 0x89, + 0xFB, + 0xED, + 0x5F, + 0x51, + 0x8E, + 0x22, + 0x5E, + 0xBC, + 0xEB, + 0x69, + 0xDF, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFullTrustProcessLauncherStatics + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x83, + 0x84, + 0xD7, + 0x00, + 0x11, + 0x6B, + 0x3C, + 0xA4, + 0x55, + 0xF6, + 0x26, + 0x2C, + 0xC3, + 0x31, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFullTrustProcessLauncherStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xD7, + 0x8E, + 0x8B, + 0x5C, + 0xB6, + 0xCF, + 0x56, + 0xA1, + 0xA7, + 0x2B, + 0xF7, + 0x7C, + 0xBC, + 0x6E, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILeavingBackgroundEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xEC, + 0xC6, + 0x39, + 0x6E, + 0xAE, + 0xF9, + 0x46, + 0xA0, + 0x7A, + 0xCF, + 0xC2, + 0x3F, + 0x88, + 0x73, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILimitedAccessFeatureRequestResult + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x56, + 0x51, + 0xD4, + 0x24, + 0x1E, + 0xDD, + 0x5D, + 0xAB, + 0xB4, + 0x61, + 0x88, + 0xAB, + 0xA4, + 0xD5, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILimitedAccessFeaturesStatics + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x12, + 0xE6, + 0x8B, + 0x2B, + 0x30, + 0xBF, + 0x5F, + 0xA6, + 0x32, + 0x1A, + 0x99, + 0xE4, + 0x3E, + 0x89, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x79, + 0x3C, + 0x16, + 0x75, + 0xBD, + 0x3C, + 0x41, + 0xBF, + 0x23, + 0xB1, + 0xFE, + 0x7B, + 0x95, + 0xD8, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage2 + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x2F, + 0x61, + 0xA6, + 0x88, + 0x76, + 0xCE, + 0x4A, + 0x95, + 0xFB, + 0x35, + 0x95, + 0x38, + 0xE7, + 0xAA, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage3 + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x8B, + 0x73, + 0x5F, + 0x6A, + 0xF8, + 0x17, + 0x49, + 0x93, + 0xD1, + 0xF1, + 0xEE, + 0x9D, + 0x3B, + 0x35, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage4 + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0xD1, + 0xAE, + 0x65, + 0x5B, + 0xB9, + 0x0C, + 0x45, + 0x88, + 0x2B, + 0x62, + 0x55, + 0x18, + 0x7F, + 0x39, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage5 + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x2D, + 0x84, + 0x0E, + 0xAC, + 0xD9, + 0xED, + 0x45, + 0x9A, + 0x1E, + 0x74, + 0xCE, + 0x05, + 0x6B, + 0x26, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage6 + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0xD9, + 0x1A, + 0x8B, + 0xD7, + 0x12, + 0x54, + 0x47, + 0xAE, + 0x4E, + 0x63, + 0x8C, + 0xBC, + 0x0E, + 0x3A, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage7 + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0x8D, + 0xFF, + 0x86, + 0xE4, + 0xA2, + 0xE0, + 0x45, + 0x97, + 0x32, + 0x28, + 0x3A, + 0x6D, + 0x88, + 0xFD, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage8 + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x4F, + 0x58, + 0x2C, + 0x2A, + 0xCE, + 0xE6, + 0x4B, + 0xA0, + 0x93, + 0x77, + 0xCF, + 0xBB, + 0x2A, + 0x7E, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackage9 + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0x22, + 0xAB, + 0xD5, + 0xE1, + 0xD7, + 0xEC, + 0x49, + 0x90, + 0xCE, + 0x72, + 0x0C, + 0xDB, + 0xD0, + 0x2E, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalog + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x37, + 0x0A, + 0x23, + 0xE3, + 0x9D, + 0x45, + 0x44, + 0xBE, + 0x74, + 0x91, + 0xFB, + 0x32, + 0x5A, + 0xBE, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalog2 + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0x0C, + 0xA6, + 0x96, + 0xF7, + 0x8F, + 0x44, + 0x43, + 0xB6, + 0xBF, + 0xEE, + 0x64, + 0xC2, + 0x20, + 0x7E, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalog3 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x5C, + 0xDD, + 0x96, + 0x37, + 0x88, + 0xF9, + 0x43, + 0x90, + 0x15, + 0x03, + 0x34, + 0x34, + 0xBA, + 0x14, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalog4 + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x39, + 0x7C, + 0xC3, + 0xCC, + 0x44, + 0x7B, + 0x4B, + 0x8B, + 0xAF, + 0x79, + 0x6C, + 0x04, + 0xEA, + 0xD3, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalogAddOptionalPackageResult + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x0C, + 0xF1, + 0x3B, + 0xDF, + 0xB4, + 0xB3, + 0x47, + 0xA9, + 0x63, + 0xE2, + 0xFA, + 0x83, + 0x2F, + 0x7D, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalogAddResourcePackageResult + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xCE, + 0x36, + 0x96, + 0x17, + 0x3E, + 0x3F, + 0x49, + 0xAA, + 0x08, + 0xCC, + 0xEC, + 0x6F, + 0xDE, + 0xF6, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalogRemoveOptionalPackagesResult + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0xF9, + 0xD2, + 0x29, + 0x74, + 0xD9, + 0x64, + 0x4E, + 0x93, + 0x59, + 0x22, + 0xCA, + 0xDF, + 0xD7, + 0x98, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalogRemoveResourcePackagesResult + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x97, + 0x71, + 0xAE, + 0x52, + 0x1A, + 0x21, + 0x43, + 0x87, + 0xB3, + 0xE5, + 0xA1, + 0xA1, + 0x79, + 0x81, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalogStatics + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x96, + 0x8C, + 0xA1, + 0x5B, + 0xE6, + 0x34, + 0x46, + 0xBA, + 0x21, + 0x5E, + 0x63, + 0xEB, + 0x72, + 0x44, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageCatalogStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0xC1, + 0x11, + 0x4C, + 0x28, + 0x9A, + 0x8C, + 0x59, + 0xB1, + 0x85, + 0x55, + 0xE1, + 0x89, + 0x9B, + 0x2B, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageContentGroup + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x69, + 0x62, + 0x8F, + 0x0A, + 0x12, + 0x98, + 0x47, + 0xB5, + 0xE1, + 0x58, + 0x00, + 0xDD, + 0xA8, + 0xF2, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageContentGroupStagingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0xC2, + 0x7B, + 0x3D, + 0x27, + 0x6F, + 0x6C, + 0x44, + 0x98, + 0x6E, + 0xD4, + 0x73, + 0x3D, + 0x4D, + 0x91, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageContentGroupStatics + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x76, + 0xEE, + 0x70, + 0x12, + 0x5F, + 0x92, + 0x4B, + 0xB9, + 0xEA, + 0x6C, + 0xCA, + 0xDA, + 0x13, + 0xBC, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageId + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x66, + 0xDB, + 0x1A, + 0xC7, + 0x37, + 0x90, + 0x47, + 0x99, + 0x80, + 0xDD, + 0x7A, + 0xE7, + 0x4E, + 0x8B, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageIdWithMetadata + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0x7A, + 0x57, + 0x40, + 0x9E, + 0x0C, + 0x3D, + 0x44, + 0x90, + 0x74, + 0x85, + 0x5F, + 0x5C, + 0xE0, + 0xA0, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageInstallingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x1E, + 0x74, + 0x97, + 0x7A, + 0xAB, + 0x1A, + 0x40, + 0x8B, + 0x61, + 0xEB, + 0x0E, + 0x7F, + 0xAF, + 0xF2, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageStagingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x68, + 0x41, + 0x10, + 0xE2, + 0x54, + 0x51, + 0x4F, + 0xB8, + 0x28, + 0x9E, + 0xF7, + 0x04, + 0x6C, + 0x21, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageStatics + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x4B, + 0x53, + 0x4E, + 0x60, + 0x29, + 0x78, + 0x48, + 0x97, + 0xA4, + 0x96, + 0x24, + 0xDE, + 0xB7, + 0x2F, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageStatus + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x4F, + 0xE7, + 0x5F, + 0x65, + 0xA3, + 0x09, + 0x4C, + 0xA0, + 0x2D, + 0x04, + 0x6D, + 0x52, + 0x5E, + 0xA1, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageStatus2 + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xFA, + 0x28, + 0xF4, + 0x56, + 0x7C, + 0x62, + 0x48, + 0xAC, + 0xFA, + 0xAB, + 0xAE, + 0xDC, + 0xC0, + 0x69, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageStatusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x71, + 0x7D, + 0x43, + 0x80, + 0xBD, + 0x70, + 0x4A, + 0xBC, + 0x50, + 0xF6, + 0xE7, + 0x96, + 0x50, + 0x95, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageUninstallingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0xAA, + 0x43, + 0x44, + 0x22, + 0xAB, + 0xCD, + 0x44, + 0x82, + 0xBB, + 0x4E, + 0xC9, + 0xB8, + 0x27, + 0x36, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageUpdateAvailabilityResult + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x50, + 0x4E, + 0x11, + 0x9A, + 0x19, + 0xA1, + 0x48, + 0xA0, + 0x79, + 0x31, + 0x3C, + 0x45, + 0x63, + 0x4A, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageUpdatingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x42, + 0x7B, + 0xCD, + 0x74, + 0xFD, + 0x3E, + 0x44, + 0xB1, + 0x14, + 0x23, + 0xE6, + 0x77, + 0xB0, + 0xE8, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPackageWithMetadata + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x97, + 0x94, + 0x95, + 0xE9, + 0x1D, + 0xF2, + 0x40, + 0xB4, + 0x52, + 0x0D, + 0xE9, + 0xF1, + 0x91, + 0x00, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStartupTask + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x23, + 0x5C, + 0xF7, + 0xF2, + 0xB5, + 0x6C, + 0x4F, + 0x88, + 0xDD, + 0x36, + 0xCB, + 0x1D, + 0x59, + 0x9D, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStartupTaskStatics + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x60, + 0x5B, + 0xEE, + 0x48, + 0xA1, + 0xA7, + 0x41, + 0xB2, + 0x6E, + 0xE8, + 0xB8, + 0x8A, + 0x1E, + 0x62, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISuspendingDeferral + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x05, + 0x14, + 0x59, + 0xC9, + 0x8B, + 0xB4, + 0x4E, + 0xB6, + 0x36, + 0xDA, + 0xBD, + 0xC4, + 0xF4, + 0x6F, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISuspendingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x1C, + 0x06, + 0x96, + 0xBA, + 0x2D, + 0x08, + 0x4D, + 0xB0, + 0xBD, + 0x2B, + 0x30, + 0xA1, + 0x31, + 0xC6, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISuspendingOperation + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0xCA, + 0xA4, + 0x9D, + 0xE1, + 0x20, + 0x9B, + 0x4E, + 0x9F, + 0x65, + 0xA9, + 0xF4, + 0x35, + 0x34, + 0x0C, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.data.json/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.data.json/IID.Manual.cs new file mode 100644 index 0000000000..70cef62e89 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.data.json/IID.Manual.cs @@ -0,0 +1,256 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.data.json.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IJsonArray + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0xDD, + 0xC1, + 0x08, + 0xBD, + 0x0C, + 0x9A, + 0x4A, + 0xB5, + 0xD3, + 0x2F, + 0x85, + 0x2D, + 0xC3, + 0x7E, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonArrayStatics + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x34, + 0x14, + 0xDB, + 0x64, + 0xE1, + 0x9F, + 0x49, + 0x93, + 0xE2, + 0x8A, + 0x8F, + 0x49, + 0xBB, + 0x90, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonErrorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x30, + 0x40, + 0x40, + 0xD0, + 0x87, + 0x6C, + 0x43, + 0x83, + 0xAB, + 0xFC, + 0x7B, + 0x12, + 0xC0, + 0xCC, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonObject + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x24, + 0x4E, + 0x06, + 0xC2, + 0x29, + 0x83, + 0x4F, + 0x9A, + 0xC1, + 0x9E, + 0xE1, + 0x15, + 0x78, + 0xBE, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonObjectStatics + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0xF1, + 0x89, + 0x22, + 0xDE, + 0x54, + 0xD8, + 0x45, + 0xAB, + 0xCC, + 0x22, + 0x60, + 0x3F, + 0xA0, + 0x66, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonObjectWithDefaultValues + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0xD2, + 0x60, + 0xD9, + 0xF0, + 0xB7, + 0x00, + 0x4F, + 0x8E, + 0x44, + 0xD8, + 0x2C, + 0xF4, + 0x15, + 0xEA, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonValue + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x9E, + 0x21, + 0xA3, + 0xB3, + 0xF0, + 0xCD, + 0x4D, + 0xBE, + 0xEE, + 0x19, + 0xD4, + 0x8C, + 0xD3, + 0xED, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x54, + 0x6B, + 0x5F, + 0x53, + 0x2F, + 0xE1, + 0x48, + 0x91, + 0xA3, + 0xF7, + 0x8B, + 0x50, + 0xA6, + 0x34, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJsonValueStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xCB, + 0x9E, + 0x1D, + 0xE8, + 0x3F, + 0x35, + 0x43, + 0x83, + 0x92, + 0x93, + 0xD8, + 0xE3, + 0x68, + 0x65, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.data.text/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.data.text/IID.Manual.cs new file mode 100644 index 0000000000..27bca2e194 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.data.text/IID.Manual.cs @@ -0,0 +1,580 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.data.text.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ISelectableWordSegmentsTokenizingHandler + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xFC, + 0x3D, + 0x3A, + 0xDE, + 0xAE, + 0xC7, + 0x4D, + 0x9E, + 0x6C, + 0x41, + 0xC0, + 0x44, + 0xBD, + 0x35, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWordSegmentsTokenizingHandler + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x63, + 0xDD, + 0xA5, + 0x2A, + 0xBF, + 0x4F, + 0x4C, + 0xA3, + 0x1F, + 0x29, + 0xE7, + 0x1C, + 0x6F, + 0x8B, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAlternateWordForm + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x6C, + 0x39, + 0x47, + 0xB9, + 0x51, + 0x07, + 0x42, + 0x91, + 0x46, + 0x24, + 0x8E, + 0x63, + 0x6A, + 0x1D, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISelectableWordSegment + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x4C, + 0x6A, + 0x91, + 0xA7, + 0x8A, + 0x78, + 0x4C, + 0xB3, + 0x74, + 0x5D, + 0xED, + 0xB7, + 0x52, + 0xE6, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISelectableWordsSegmenter + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0x31, + 0xDC, + 0xF6, + 0x13, + 0x4B, + 0xC5, + 0x45, + 0x88, + 0x97, + 0x7D, + 0x71, + 0x26, + 0x9E, + 0x08, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISelectableWordsSegmenterFactory + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x76, + 0x7A, + 0x8C, + 0x57, + 0x60, + 0x39, + 0x43, + 0xBC, + 0x70, + 0xF2, + 0x10, + 0x01, + 0x0A, + 0x41, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISemanticTextQuery + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xAB, + 0x1C, + 0x6A, + 0xB2, + 0x1F, + 0x09, + 0x49, + 0x80, + 0xB8, + 0x35, + 0x73, + 0x1A, + 0x2B, + 0x3E, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISemanticTextQueryFactory + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x05, + 0x8C, + 0x23, + 0x95, + 0xF9, + 0x87, + 0x45, + 0x87, + 0x77, + 0xA2, + 0xB7, + 0xD8, + 0x0A, + 0xCF, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextConversionGenerator + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x6A, + 0x60, + 0x03, + 0xA9, + 0x2A, + 0xB6, + 0x4A, + 0xAF, + 0x8B, + 0xA5, + 0x62, + 0xB6, + 0x3A, + 0x89, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextConversionGeneratorFactory + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x37, + 0xAA, + 0xFC, + 0x83, + 0x30, + 0xAB, + 0x49, + 0xBE, + 0x15, + 0x56, + 0xDF, + 0xBB, + 0xB7, + 0x4D, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextPhoneme + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0xA4, + 0x62, + 0x93, + 0x7A, + 0x9B, + 0x69, + 0x45, + 0x94, + 0xCF, + 0xD8, + 0x4F, + 0x2F, + 0x38, + 0xCF, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextPredictionGenerator + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xAB, + 0xAC, + 0x5E, + 0xF1, + 0xAB, + 0xB6, + 0x4C, + 0x9D, + 0x9E, + 0x32, + 0x6F, + 0x2B, + 0x46, + 0x87, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextPredictionGenerator2 + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x23, + 0x47, + 0xB8, + 0x77, + 0x2C, + 0x6A, + 0x48, + 0x90, + 0x0A, + 0xA3, + 0x45, + 0x3E, + 0xED, + 0xC1, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextPredictionGeneratorFactory + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xB4, + 0x57, + 0x72, + 0xA2, + 0x8B, + 0x51, + 0x47, + 0x9D, + 0x30, + 0x9D, + 0x85, + 0x43, + 0x56, + 0x53, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextReverseConversionGenerator + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xF5, + 0xE7, + 0x51, + 0x51, + 0x9C, + 0x86, + 0x4D, + 0xAE, + 0x1B, + 0xB4, + 0x98, + 0xFB, + 0xAD, + 0x83, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextReverseConversionGenerator2 + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0xD2, + 0xAF, + 0x1A, + 0xD6, + 0x85, + 0xFD, + 0x46, + 0x82, + 0x8A, + 0x3A, + 0x48, + 0x30, + 0xFA, + 0x6E, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextReverseConversionGeneratorFactory + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0xD3, + 0xBE, + 0x63, + 0xDA, + 0x1F, + 0xF6, + 0x41, + 0x89, + 0xD5, + 0x23, + 0xDD, + 0xEA, + 0x3C, + 0x72, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUnicodeCharactersStatics + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x9E, + 0x90, + 0x97, + 0x91, + 0x92, + 0x91, + 0x4F, + 0xB6, + 0xC8, + 0xB6, + 0xE3, + 0x59, + 0xD7, + 0xA7, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWordSegment + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0xBA, + 0xD4, + 0xD2, + 0x7C, + 0x98, + 0xC0, + 0x4C, + 0xB6, + 0xBD, + 0xD4, + 0x9A, + 0x11, + 0xB3, + 0x8F, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWordsSegmenter + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0xD4, + 0xB4, + 0x86, + 0xFE, + 0xB2, + 0x34, + 0x4E, + 0xA8, + 0x1D, + 0x66, + 0x64, + 0x03, + 0x00, + 0x45, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWordsSegmenterFactory + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x72, + 0x97, + 0xE6, + 0x35, + 0xFC, + 0x5C, + 0x45, + 0x8B, + 0xFB, + 0x6D, + 0x7F, + 0x46, + 0x53, + 0xCA, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.data.xml.dom/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.data.xml.dom/IID.Manual.cs new file mode 100644 index 0000000000..2ab97a05c1 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.data.xml.dom/IID.Manual.cs @@ -0,0 +1,634 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.data.xml.dom.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDtdEntity + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0x5F, + 0x0B, + 0x6A, + 0xB4, + 0x63, + 0x0F, + 0x48, + 0x9E, + 0x6A, + 0x8A, + 0x92, + 0x81, + 0x6A, + 0xAD, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDtdNotation + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0xE0, + 0xB4, + 0x8C, + 0x46, + 0x6D, + 0xDB, + 0x4E, + 0xAB, + 0x73, + 0xDF, + 0x83, + 0xC5, + 0x1A, + 0xD3, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlAttribute + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x4A, + 0x14, + 0xAC, + 0xF1, + 0xB4, + 0xB6, + 0x4D, + 0xB2, + 0x06, + 0x8A, + 0x22, + 0xC3, + 0x08, + 0xDB, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlCDataSection + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0xB4, + 0x04, + 0x4D, + 0xBD, + 0xC8, + 0xB4, + 0x45, + 0x88, + 0x99, + 0x04, + 0x00, + 0xD7, + 0xC2, + 0xC6, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlCharacterData + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0x42, + 0x2E, + 0x13, + 0x36, + 0x4E, + 0xF6, + 0x4D, + 0xB1, + 0xC8, + 0x0C, + 0xE6, + 0x2F, + 0xD8, + 0x8B, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlComment + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x74, + 0xA4, + 0xBC, + 0x1F, + 0xB6, + 0x11, + 0x46, + 0x9C, + 0xAC, + 0x2E, + 0x92, + 0xE3, + 0x47, + 0x6D, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDocument + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xA5, + 0xF3, + 0xF7, + 0x87, + 0x1E, + 0xD6, + 0x42, + 0xBC, + 0xFB, + 0xB8, + 0xC8, + 0x09, + 0xFA, + 0x54, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDocumentFragment + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x6A, + 0xEA, + 0xE2, + 0x21, + 0x0C, + 0xA5, + 0x44, + 0x8B, + 0xC9, + 0x9E, + 0x4A, + 0x26, + 0x27, + 0x08, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDocumentIO + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0xE7, + 0xD0, + 0x6C, + 0x65, + 0xEE, + 0x89, + 0x44, + 0x9E, + 0xBF, + 0xCA, + 0x43, + 0xE8, + 0x7B, + 0xA6, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDocumentIO2 + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x46, + 0x03, + 0x5D, + 0xD8, + 0x7B, + 0xD5, + 0x4A, + 0x9E, + 0xBF, + 0x81, + 0xE6, + 0x34, + 0x72, + 0x63, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDocumentStatics + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xD2, + 0x43, + 0x55, + 0x57, + 0xD7, + 0x79, + 0x4B, + 0x95, + 0x39, + 0x23, + 0x2B, + 0x18, + 0xF5, + 0x0B, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDocumentType + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x24, + 0x34, + 0xF7, + 0x81, + 0x97, + 0x64, + 0x49, + 0x8E, + 0x94, + 0x9B, + 0x1C, + 0x6D, + 0xFC, + 0x9B, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlDomImplementation + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x81, + 0xE5, + 0x6D, + 0x1D, + 0xF1, + 0xBB, + 0x4F, + 0x8C, + 0xC6, + 0x58, + 0x3C, + 0xBA, + 0x93, + 0x11, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlElement + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x8A, + 0xFB, + 0x2D, + 0x10, + 0x6B, + 0xF8, + 0x4E, + 0x9F, + 0x83, + 0xEF, + 0xCC, + 0xE8, + 0xFA, + 0xEC, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlEntityReference + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x47, + 0x2F, + 0x2E, + 0xD0, + 0xC3, + 0xCF, + 0x4C, + 0xBB, + 0x86, + 0x0A, + 0xB8, + 0xC3, + 0x6A, + 0x61, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlLoadSettings + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x07, + 0xAA, + 0x58, + 0xD6, + 0xFE, + 0xF7, + 0x46, + 0xB4, + 0xC5, + 0xFB, + 0x1B, + 0xA7, + 0x21, + 0x08, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlNamedNodeMap + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x9E, + 0xA6, + 0xB3, + 0xB0, + 0xAA, + 0x82, + 0x4B, + 0xA6, + 0xFA, + 0xB1, + 0x45, + 0x3F, + 0x7C, + 0x02, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlNode + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0x1D, + 0x74, + 0x1C, + 0x22, + 0x21, + 0xD5, + 0x47, + 0xA8, + 0x56, + 0x83, + 0xF3, + 0xD4, + 0x21, + 0x48, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlNodeList + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0xAD, + 0x60, + 0x8C, + 0xA4, + 0x83, + 0xC1, + 0x4E, + 0x9C, + 0x54, + 0x7B, + 0xA4, + 0x29, + 0xE1, + 0x3D, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlNodeSelector + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0xBA, + 0xDB, + 0x63, + 0xDB, + 0xD0, + 0xE1, + 0x4F, + 0xB7, + 0x45, + 0xF9, + 0x43, + 0x3A, + 0xFD, + 0xC2, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlNodeSerializer + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0xB3, + 0xC5, + 0x5C, + 0xDD, + 0xE6, + 0x91, + 0x49, + 0xAB, + 0xEF, + 0x06, + 0xD8, + 0xD2, + 0xE7, + 0xBD, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlProcessingInstruction + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xFD, + 0x07, + 0x27, + 0x92, + 0x1E, + 0xCE, + 0x4E, + 0xB6, + 0xF4, + 0x26, + 0xF0, + 0x69, + 0x07, + 0x8D, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IXmlText + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xA4, + 0x31, + 0xF9, + 0x8D, + 0x30, + 0x60, + 0x47, + 0xA1, + 0xD5, + 0x43, + 0xB6, + 0x74, + 0x50, + 0xAC, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.adc.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.adc.provider/IID.Manual.cs new file mode 100644 index 0000000000..76c8198450 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.adc.provider/IID.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.adc.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAdcControllerProvider + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x58, + 0x54, + 0xBE, + 0x6D, + 0x81, + 0xE5, + 0x4D, + 0xA0, + 0x48, + 0xAB, + 0xA0, + 0x69, + 0x58, + 0xAA, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdcProvider + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x36, + 0x95, + 0x28, + 0x59, + 0x93, + 0x57, + 0x4C, + 0xBC, + 0x88, + 0xE2, + 0x75, + 0xE8, + 0x16, + 0x38, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.adc/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.adc/IID.Manual.cs new file mode 100644 index 0000000000..8e883251d5 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.adc/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.adc.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAdcChannel + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xF4, + 0x0B, + 0x04, + 0x88, + 0x25, + 0x56, + 0x4A, + 0xAB, + 0xEF, + 0x73, + 0xA2, + 0x60, + 0xAC, + 0xC6, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdcController + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0xE4, + 0x76, + 0x2A, + 0x96, + 0xA8, + 0x19, + 0x42, + 0x86, + 0xB6, + 0xEA, + 0x8C, + 0xDC, + 0xE9, + 0x8F, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdcControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x8E, + 0xE9, + 0xCC, + 0xF8, + 0x01, + 0x91, + 0x48, + 0xBC, + 0x3B, + 0xBE, + 0x53, + 0xEF, + 0x27, + 0x9C, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdcControllerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x3B, + 0xB9, + 0xA2, + 0x7B, + 0x97, + 0x5A, + 0x4F, + 0xA5, + 0xFE, + 0xA6, + 0xAB, + 0xAF, + 0xFE, + 0x64, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.advertisement/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.advertisement/IID.Manual.cs new file mode 100644 index 0000000000..86174a7a3c --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.advertisement/IID.Manual.cs @@ -0,0 +1,553 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.bluetooth.advertisement.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBluetoothLEAdvertisement + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0xB2, + 0x6F, + 0x06, + 0xD1, + 0x33, + 0x7D, + 0x4E, + 0x83, + 0x67, + 0xCF, + 0x81, + 0xD0, + 0xF7, + 0x96, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementBytePattern + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0xD7, + 0xFA, + 0xFB, + 0xC5, + 0xB9, + 0x08, + 0x4A, + 0xBC, + 0x51, + 0x50, + 0x2F, + 0x8E, + 0xF6, + 0x8A, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementBytePatternFactory + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x4D, + 0xE2, + 0xC2, + 0x5C, + 0xFD, + 0xC3, + 0x4E, + 0xBE, + 0x2A, + 0x9C, + 0xA6, + 0xFA, + 0x11, + 0xB7, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementDataSection + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0x33, + 0x21, + 0xD7, + 0x43, + 0x3A, + 0xF9, + 0x40, + 0xB6, + 0xF0, + 0x92, + 0xBF, + 0xEF, + 0xC3, + 0x4A, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementDataSectionFactory + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x09, + 0xA4, + 0xE7, + 0x45, + 0xA8, + 0x45, + 0x40, + 0xBF, + 0x7E, + 0x3E, + 0x99, + 0x71, + 0xDB, + 0x8A, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementDataTypesStatics + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x47, + 0xB6, + 0x3B, + 0x06, + 0x06, + 0x4B, + 0x43, + 0xA7, + 0x6E, + 0x74, + 0x15, + 0x9F, + 0x06, + 0x84, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementFilter + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0xB0, + 0x1E, + 0x13, + 0x4E, + 0xD0, + 0xB1, + 0x47, + 0x83, + 0x7E, + 0x49, + 0x40, + 0x5B, + 0xF6, + 0xF8, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisher + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x20, + 0xE8, + 0xCD, + 0xFA, + 0xD9, + 0xD6, + 0x43, + 0xA2, + 0x64, + 0xDD, + 0xD8, + 0xB7, + 0xDA, + 0x8B, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisher2 + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x54, + 0xDB, + 0xFB, + 0xF1, + 0x56, + 0x0F, + 0x51, + 0xA4, + 0x34, + 0x21, + 0x7F, + 0xBD, + 0x9E, + 0x7B, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherFactory + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x06, + 0x5F, + 0x5C, + 0x63, + 0xB8, + 0x81, + 0x49, + 0xA1, + 0xAF, + 0x1C, + 0x54, + 0x4D, + 0x8B, + 0x0C, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xBD, + 0xC2, + 0x09, + 0xFF, + 0x2D, + 0x23, + 0x4B, + 0x86, + 0xEE, + 0x0D, + 0x14, + 0xFB, + 0x94, + 0xAE, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x79, + 0x62, + 0x8F, + 0x88, + 0xDC, + 0x8B, + 0x5C, + 0xB3, + 0x4E, + 0x10, + 0xB3, + 0x21, + 0x85, + 0x0F, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x7D, + 0x98, + 0x27, + 0x96, + 0xE5, + 0xBE, + 0x41, + 0x8D, + 0x43, + 0x9E, + 0x67, + 0x31, + 0xD4, + 0xA9, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementReceivedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0xC8, + 0xD9, + 0x12, + 0x99, + 0x03, + 0x0E, + 0x5F, + 0xA3, + 0x48, + 0x53, + 0xB0, + 0x2B, + 0x6B, + 0x16, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcher + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x33, + 0xAC, + 0xA6, + 0xD3, + 0xF3, + 0x97, + 0x42, + 0x8D, + 0x6C, + 0xC8, + 0x1E, + 0xA6, + 0x62, + 0x3F, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcher2 + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x26, + 0xBF, + 0x01, + 0x64, + 0xB1, + 0x05, + 0x58, + 0x90, + 0xA3, + 0xE8, + 0xA7, + 0x99, + 0x7F, + 0xF2, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcherFactory + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x2D, + 0xAF, + 0x9A, + 0xAC, + 0x39, + 0x3E, + 0x45, + 0xB3, + 0x2A, + 0x85, + 0xC6, + 0x57, + 0xE0, + 0x17, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcherStoppedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0xF8, + 0x40, + 0xDD, + 0xB9, + 0xE7, + 0xE3, + 0x43, + 0x9C, + 0x04, + 0x06, + 0x85, + 0xD0, + 0x85, + 0xFD, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEManufacturerData + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0xBA, + 0x2D, + 0x91, + 0x63, + 0x69, + 0x33, + 0x45, + 0xB0, + 0x61, + 0x46, + 0x94, + 0xDA, + 0xFB, + 0x34, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEManufacturerDataFactory + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x39, + 0x9B, + 0xC0, + 0x9A, + 0x31, + 0x1E, + 0x44, + 0x8D, + 0xE5, + 0x66, + 0xA8, + 0x1E, + 0x87, + 0x7A, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.background/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.background/IID.Manual.cs new file mode 100644 index 0000000000..84a745621b --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.background/IID.Manual.cs @@ -0,0 +1,310 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.bluetooth.background.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0xCA, + 0x0E, + 0x61, + 0x80, + 0x34, + 0xC9, + 0x41, + 0xA9, + 0x18, + 0x7D, + 0xDA, + 0xDF, + 0x20, + 0x7E, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementPublisherTriggerDetails2 + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0xD0, + 0xA3, + 0xD4, + 0x01, + 0xC6, + 0xD6, + 0x42, + 0x98, + 0x29, + 0x4C, + 0xCB, + 0x3F, + 0x5C, + 0xD7, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAdvertisementWatcherTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x5A, + 0xDB, + 0xA7, + 0x57, + 0x22, + 0x69, + 0x4E, + 0x97, + 0x84, + 0xFE, + 0xE6, + 0x45, + 0xC1, + 0xDC, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicNotificationTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x3B, + 0xA0, + 0x9B, + 0xEC, + 0x0F, + 0x6A, + 0x43, + 0x93, + 0xB1, + 0xF4, + 0x6C, + 0x69, + 0x75, + 0x32, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicNotificationTriggerDetails2 + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x50, + 0x7A, + 0x72, + 0x9D, + 0x94, + 0x4A, + 0x45, + 0xB1, + 0x92, + 0x98, + 0x34, + 0x67, + 0xE3, + 0xD5, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderConnection + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xB9, + 0xA1, + 0x7F, + 0x13, + 0x2F, + 0xB5, + 0x40, + 0x95, + 0x82, + 0x8E, + 0xB7, + 0x8E, + 0x98, + 0xEF, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderConnectionStatics + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x9F, + 0x50, + 0x3D, + 0x0E, + 0x0B, + 0x66, + 0x44, + 0xB8, + 0xCD, + 0x6E, + 0xBD, + 0xDA, + 0x1F, + 0xA1, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x06, + 0x8C, + 0xAE, + 0xFF, + 0x05, + 0xFB, + 0x4A, + 0xB1, + 0x6A, + 0xDE, + 0x95, + 0xF3, + 0xCF, + 0x01, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommConnectionTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x73, + 0x22, + 0xF9, + 0x3C, + 0x2E, + 0xFC, + 0x4E, + 0xAB, + 0x59, + 0xFC, + 0x5C, + 0xF9, + 0x6F, + 0x97, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommInboundConnectionInformation + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x75, + 0x3E, + 0x6D, + 0x29, + 0x54, + 0x59, + 0x40, + 0x92, + 0xE3, + 0x1E, + 0x8B, + 0x65, + 0x52, + 0x87, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommOutboundConnectionInformation + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x22, + 0x91, + 0xB0, + 0x34, + 0xF4, + 0xB0, + 0x4C, + 0x99, + 0xB1, + 0x4A, + 0xB8, + 0xCE, + 0xDA, + 0xED, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.genericattributeprofile/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.genericattributeprofile/IID.Manual.cs new file mode 100644 index 0000000000..7b29a4d90c --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.genericattributeprofile/IID.Manual.cs @@ -0,0 +1,1552 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.bluetooth.genericattributeprofile.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IGattCharacteristic + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x50, + 0xCB, + 0x59, + 0x34, + 0x59, + 0x68, + 0x4F, + 0xA1, + 0x98, + 0xEB, + 0x86, + 0x4F, + 0xA4, + 0x4E, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristic2 + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0xB5, + 0x1A, + 0xAE, + 0x06, + 0xEC, + 0x64, + 0x47, + 0xB7, + 0x80, + 0x98, + 0x35, + 0xA1, + 0xD3, + 0x5D, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristic3 + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x66, + 0x3C, + 0x3F, + 0xD4, + 0x93, + 0x6B, + 0x40, + 0xB8, + 0x17, + 0xDB, + 0x81, + 0xF8, + 0xED, + 0x53, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicStatics + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x50, + 0xCB, + 0x59, + 0x34, + 0x59, + 0x68, + 0x4F, + 0xA1, + 0x98, + 0xEB, + 0x86, + 0x4F, + 0xA4, + 0x4E, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicUuidsStatics + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x45, + 0xFA, + 0x58, + 0xDE, + 0xB1, + 0x0C, + 0x47, + 0xB7, + 0xDE, + 0x0D, + 0x11, + 0xFF, + 0x44, + 0xF4, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicUuidsStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0xB4, + 0x55, + 0x18, + 0x6E, + 0xD4, + 0x2C, + 0x4A, + 0x9C, + 0x3F, + 0xED, + 0x6D, + 0xEA, + 0x29, + 0xE7, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattCharacteristicsResult + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x94, + 0x94, + 0x11, + 0x57, + 0xB2, + 0x3E, + 0x4F, + 0x9D, + 0xB7, + 0xF6, + 0x8B, + 0xC9, + 0xA9, + 0xAE, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattClientNotificationResult + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0x55, + 0x6D, + 0x50, + 0x12, + 0x01, + 0x9A, + 0x41, + 0x8E, + 0x3B, + 0xAE, + 0x21, + 0xAF, + 0xAB, + 0xD2, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattClientNotificationResult2 + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0xC4, + 0xAE, + 0x8F, + 0xE0, + 0x45, + 0x7E, + 0x49, + 0x95, + 0x82, + 0x29, + 0xA1, + 0xFE, + 0x28, + 0x1A, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDescriptor + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x5F, + 0x05, + 0x92, + 0x84, + 0x80, + 0x44, + 0x43, + 0xB4, + 0xC2, + 0x28, + 0x4D, + 0xE1, + 0x9A, + 0x85, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDescriptor2 + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x3D, + 0x56, + 0x8F, + 0x30, + 0xD6, + 0x6C, + 0x40, + 0xBA, + 0x11, + 0x10, + 0xCD, + 0xD1, + 0x6B, + 0x0E, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDescriptorStatics + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x5F, + 0x05, + 0x92, + 0x84, + 0x80, + 0x44, + 0x43, + 0xB4, + 0xC2, + 0x28, + 0x4D, + 0xE1, + 0x9A, + 0x85, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDescriptorUuidsStatics + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x62, + 0xF8, + 0xA6, + 0xFC, + 0x9C, + 0xF1, + 0x42, + 0x91, + 0x85, + 0xFF, + 0x37, + 0xB7, + 0x51, + 0x81, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDescriptorsResult + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x91, + 0xC0, + 0x9B, + 0xE7, + 0x95, + 0x89, + 0x44, + 0x8D, + 0x25, + 0xFF, + 0x81, + 0x95, + 0x5A, + 0x57, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDeviceService + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x7C, + 0x7B, + 0xAC, + 0x3C, + 0xB3, + 0xCF, + 0x47, + 0x99, + 0x0F, + 0x6B, + 0x8F, + 0x55, + 0x77, + 0xDF, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDeviceService2 + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x52, + 0x54, + 0xFC, + 0x0D, + 0x0B, + 0x08, + 0x47, + 0xBA, + 0xE0, + 0x9F, + 0xFD, + 0x94, + 0x89, + 0xBC, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDeviceService3 + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0xA9, + 0x93, + 0xB2, + 0x53, + 0x0C, + 0x7C, + 0x43, + 0xA9, + 0xB3, + 0x5C, + 0x32, + 0x10, + 0xC6, + 0xE5, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDeviceServiceStatics + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x00, + 0x6D, + 0x19, + 0xAD, + 0xFA, + 0xDC, + 0x45, + 0xAE, + 0x5B, + 0x2A, + 0xC3, + 0x18, + 0x4E, + 0x84, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDeviceServiceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x18, + 0x04, + 0x06, + 0xA6, + 0x24, + 0x0D, + 0x4B, + 0xA2, + 0xF2, + 0x30, + 0xCC, + 0x01, + 0x54, + 0x5D, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattDeviceServicesResult + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0xD3, + 0x1D, + 0x17, + 0x6D, + 0x01, + 0x9D, + 0x41, + 0x83, + 0x8A, + 0x57, + 0x6C, + 0xF4, + 0x75, + 0xA3, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalCharacteristic + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x37, + 0xDE, + 0xAE, + 0x12, + 0x54, + 0x74, + 0x4D, + 0x92, + 0xA8, + 0x8D, + 0xEB, + 0x85, + 0x26, + 0x82, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalCharacteristicParameters + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x3D, + 0xF7, + 0xFA, + 0xFF, + 0x4C, + 0xC7, + 0x44, + 0x84, + 0x45, + 0x04, + 0x0E, + 0x6E, + 0xAD, + 0x00, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalCharacteristicResult + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xDE, + 0x75, + 0x79, + 0x70, + 0x01, + 0x97, + 0x43, + 0x96, + 0x66, + 0x92, + 0xF8, + 0x63, + 0xF1, + 0x2E, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalDescriptor + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xBE, + 0x8E, + 0xF4, + 0x9D, + 0x78, + 0x4B, + 0x4A, + 0x86, + 0x52, + 0xBD, + 0x01, + 0x7B, + 0x5D, + 0x2F, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalDescriptorParameters + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xDE, + 0xDE, + 0x5F, + 0xC1, + 0xF3, + 0x66, + 0x4B, + 0x8C, + 0x4B, + 0xE3, + 0xD2, + 0x29, + 0x3B, + 0x40, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalDescriptorResult + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x91, + 0x57, + 0x37, + 0x1F, + 0x32, + 0x66, + 0x43, + 0xBF, + 0xC1, + 0x3B, + 0xC6, + 0xB8, + 0x2C, + 0x79, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattLocalService + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xE2, + 0x13, + 0xF5, + 0xF7, + 0xF7, + 0x02, + 0x49, + 0xB8, + 0x03, + 0x57, + 0xFC, + 0xC7, + 0xD6, + 0xFE, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattPresentationFormat + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x00, + 0x6D, + 0x19, + 0xAD, + 0xFA, + 0xDC, + 0x45, + 0xAE, + 0x5B, + 0x2A, + 0xC3, + 0x18, + 0x4E, + 0x84, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattPresentationFormatStatics + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x00, + 0x6D, + 0x19, + 0xAD, + 0xFA, + 0xDC, + 0x45, + 0xAE, + 0x5B, + 0x2A, + 0xC3, + 0x18, + 0x4E, + 0x84, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattPresentationFormatStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x17, + 0xC2, + 0xA9, + 0x2F, + 0xB8, + 0x5E, + 0x43, + 0xB6, + 0x34, + 0x21, + 0xFD, + 0x85, + 0xA4, + 0x3C, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattPresentationFormatTypesStatics + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0xBA, + 0xF1, + 0xFA, + 0xBA, + 0x30, + 0x9C, + 0x40, + 0xBE, + 0xF7, + 0xCF, + 0xFB, + 0x6D, + 0x03, + 0xB8, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattProtocolErrorStatics + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0xC5, + 0x46, + 0xCA, + 0xCC, + 0x0E, + 0x09, + 0x48, + 0xBE, + 0xA3, + 0xCF, + 0x79, + 0xBC, + 0x99, + 0x1E, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReadClientCharacteristicConfigurationDescriptorResult + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x6F, + 0xA6, + 0x63, + 0xEA, + 0x1A, + 0x4C, + 0x4C, + 0xA5, + 0x0F, + 0x97, + 0xBA, + 0xE4, + 0x74, + 0xB3, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReadClientCharacteristicConfigurationDescriptorResult2 + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0xA5, + 0xF1, + 0x1B, + 0x4D, + 0xBA, + 0x22, + 0x46, + 0x86, + 0x51, + 0xF4, + 0xEE, + 0x15, + 0x0D, + 0x0A, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReadRequest + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x65, + 0xDD, + 0xF1, + 0xCD, + 0x6A, + 0xA6, + 0x42, + 0xA4, + 0xBB, + 0xD7, + 0x89, + 0xDA, + 0xE0, + 0x04, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReadRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x72, + 0x49, + 0x93, + 0x9C, + 0xF3, + 0x4B, + 0x48, + 0x8A, + 0xB6, + 0x99, + 0x6B, + 0xA4, + 0x86, + 0xCF, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReadResult + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x6F, + 0xA6, + 0x63, + 0xEA, + 0x1A, + 0x4C, + 0x4C, + 0xA5, + 0x0F, + 0x97, + 0xBA, + 0xE4, + 0x74, + 0xB3, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReadResult2 + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0x50, + 0x0F, + 0xA1, + 0x43, + 0xFB, + 0xAF, + 0x48, + 0xBA, + 0xAA, + 0x63, + 0x8A, + 0x5C, + 0x63, + 0x29, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReliableWriteTransaction + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x6F, + 0xA6, + 0x63, + 0xEA, + 0x1A, + 0x4C, + 0x4C, + 0xA5, + 0x0F, + 0x97, + 0xBA, + 0xE4, + 0x74, + 0xB3, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattReliableWriteTransaction2 + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x39, + 0x11, + 0x51, + 0x12, + 0xEF, + 0x2F, + 0x46, + 0x9F, + 0xB2, + 0xA1, + 0xA4, + 0x3A, + 0x67, + 0x94, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattRequestStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0xD9, + 0x34, + 0xE8, + 0xBE, + 0x27, + 0xB3, + 0x44, + 0x9D, + 0x0D, + 0x4F, + 0xC6, + 0xE8, + 0x08, + 0xDD, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProvider + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0xB3, + 0x22, + 0x78, + 0x89, + 0x28, + 0x86, + 0x4F, + 0xA0, + 0x51, + 0x3F, + 0x0A, + 0xED, + 0x1C, + 0x27, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderAdvertisementStatusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xAA, + 0xA5, + 0x59, + 0x21, + 0xFA, + 0xFC, + 0x4F, + 0xB1, + 0x55, + 0x04, + 0xD9, + 0x28, + 0x01, + 0x26, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderAdvertisingParameters + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0x31, + 0xCE, + 0xE2, + 0x15, + 0x63, + 0x22, + 0x4C, + 0x9B, + 0xD7, + 0x78, + 0x1D, + 0xBC, + 0x3D, + 0x8D, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderAdvertisingParameters2 + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x46, + 0x68, + 0xFF, + 0x92, + 0xCA, + 0x34, + 0x44, + 0x97, + 0x43, + 0x0E, + 0x90, + 0x98, + 0x8A, + 0xD8, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderResult + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x96, + 0x46, + 0x76, + 0x3E, + 0xC5, + 0x8C, + 0x42, + 0x8A, + 0x48, + 0x67, + 0xAF, + 0xE0, + 0x2C, + 0x3A, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0x40, + 0x79, + 0x31, + 0x56, + 0x52, + 0x54, + 0x40, + 0xA4, + 0xF4, + 0x7B, + 0xBE, + 0x77, + 0x55, + 0xA5, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceUuidsStatics + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0x70, + 0xC5, + 0x6D, + 0xBA, + 0x9A, + 0x17, + 0x44, + 0xB8, + 0xF2, + 0xDC, + 0xE0, + 0x16, + 0xD3, + 0x4E, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattServiceUuidsStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0x94, + 0xAE, + 0xD2, + 0x15, + 0x3D, + 0x79, + 0x4F, + 0x9C, + 0x0C, + 0xEA, + 0xAF, + 0xA6, + 0x75, + 0x15, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattSession + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x51, + 0x3B, + 0xD2, + 0x4E, + 0xE0, + 0x24, + 0x4C, + 0x99, + 0x9C, + 0x9C, + 0x25, + 0x6F, + 0x98, + 0x56, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattSessionStatics + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0xB9, + 0x65, + 0x2E, + 0x9F, + 0x53, + 0xB7, + 0x4D, + 0x82, + 0xA8, + 0x73, + 0xBD, + 0xBB, + 0xF7, + 0x3E, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattSessionStatusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0xB7, + 0x05, + 0x76, + 0x7F, + 0x83, + 0x4C, + 0x40, + 0xAB, + 0x34, + 0x31, + 0x63, + 0xF3, + 0x9D, + 0xDF, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattSubscribedClient + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x90, + 0x6E, + 0x73, + 0xA4, + 0x15, + 0xC2, + 0x4E, + 0x92, + 0x48, + 0xE3, + 0xF2, + 0x0D, + 0x46, + 0x3B, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattValueChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xDB, + 0x1B, + 0xD2, + 0xE3, + 0x06, + 0xD8, + 0x4E, + 0xA2, + 0x63, + 0xAC, + 0xFA, + 0xC8, + 0xBA, + 0x73, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattWriteRequest + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xA9, + 0xB6, + 0xAE, + 0x2F, + 0xDE, + 0xC2, + 0x4F, + 0xA9, + 0xA8, + 0x94, + 0xEA, + 0x78, + 0x44, + 0xF1, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattWriteRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x8B, + 0xEC, + 0x2D, + 0x3A, + 0xA7, + 0x1A, + 0x47, + 0x94, + 0xD5, + 0x03, + 0x7D, + 0xEA, + 0xDD, + 0x08, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGattWriteResult + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xDD, + 0x91, + 0x49, + 0x2B, + 0xCB, + 0xF7, + 0x44, + 0x99, + 0xFC, + 0xD2, + 0x9A, + 0x28, + 0x71, + 0xDC, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.rfcomm/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.rfcomm/IID.Manual.cs new file mode 100644 index 0000000000..c51d4e100e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth.rfcomm/IID.Manual.cs @@ -0,0 +1,310 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.bluetooth.rfcomm.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IRfcommDeviceService + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0xFF, + 0x81, + 0xAE, + 0xA1, + 0xC5, + 0x40, + 0x4C, + 0x8C, + 0x28, + 0xF3, + 0xEF, + 0xD6, + 0x90, + 0x62, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommDeviceService2 + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xED, + 0x6C, + 0x53, + 0xCD, + 0xEB, + 0xFE, + 0x49, + 0xBF, + 0x9F, + 0x40, + 0xEF, + 0xC6, + 0x89, + 0xB2, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommDeviceService3 + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0xAC, + 0x22, + 0x1C, + 0x44, + 0xDD, + 0x23, + 0x4D, + 0x86, + 0x6D, + 0x8F, + 0x34, + 0x86, + 0xEE, + 0x64, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommDeviceServiceStatics + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x49, + 0xA1, + 0xA4, + 0x6D, + 0x62, + 0xAC, + 0x41, + 0xB2, + 0x53, + 0x87, + 0xAC, + 0x5C, + 0x27, + 0xE2, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommDeviceServiceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0xB1, + 0x8C, + 0xAA, + 0x8D, + 0xE7, + 0xE4, + 0x4B, + 0x80, + 0x76, + 0x0A, + 0x3D, + 0x87, + 0xA0, + 0xA0, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommDeviceServicesResult + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x38, + 0x48, + 0x3B, + 0xCF, + 0x7C, + 0x8E, + 0x48, + 0x96, + 0x25, + 0xD2, + 0x59, + 0xA5, + 0x73, + 0x2D, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommServiceId + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x92, + 0x62, + 0x22, + 0x02, + 0x7E, + 0x17, + 0x40, + 0x81, + 0x36, + 0xDA, + 0x1B, + 0x6A, + 0x1B, + 0x9B, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommServiceIdStatics + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x9E, + 0x17, + 0x2A, + 0x75, + 0xA9, + 0xE3, + 0x46, + 0xB5, + 0x6B, + 0x08, + 0xFF, + 0xD7, + 0x83, + 0xA5, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommServiceProvider + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xFD, + 0xDB, + 0xEA, + 0xF6, + 0xB1, + 0xFF, + 0x44, + 0x9F, + 0x7C, + 0xE7, + 0xA8, + 0x2A, + 0xB8, + 0x68, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommServiceProvider2 + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0xDF, + 0x6B, + 0x73, + 0x81, + 0x3C, + 0x1E, + 0x4D, + 0xBA, + 0xF2, + 0xDD, + 0xBB, + 0x81, + 0x28, + 0x45, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRfcommServiceProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x83, + 0x88, + 0x98, + 0xCA, + 0x69, + 0x3A, + 0x41, + 0x84, + 0xF7, + 0x43, + 0x44, + 0xC7, + 0x29, + 0x29, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth/IID.Manual.cs new file mode 100644 index 0000000000..8f2a65ce40 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.bluetooth/IID.Manual.cs @@ -0,0 +1,958 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.bluetooth.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBluetoothAdapter + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0xF0, + 0x74, + 0x79, + 0x7A, + 0x5F, + 0x34, + 0x4A, + 0x92, + 0x25, + 0xA8, + 0x55, + 0xF8, + 0x4B, + 0x1A, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothAdapter2 + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0xCE, + 0x94, + 0xAC, + 0xD5, + 0x24, + 0xB3, + 0x41, + 0x91, + 0x6D, + 0x10, + 0x97, + 0xC5, + 0x0B, + 0x10, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothAdapter3 + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x24, + 0x86, + 0x8F, + 0xA9, + 0xCB, + 0x11, + 0x52, + 0x9F, + 0x89, + 0x3A, + 0xAC, + 0x62, + 0xB4, + 0xC6, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothAdapterStatics + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xFB, + 0x02, + 0x8B, + 0x4C, + 0xAC, + 0x41, + 0x47, + 0x86, + 0x61, + 0x8E, + 0xAB, + 0x7D, + 0x17, + 0xEA, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothClassOfDevice + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x22, + 0x40, + 0xD6, + 0xD7, + 0xD7, + 0x61, + 0x46, + 0x94, + 0x54, + 0x65, + 0x03, + 0x9C, + 0xA1, + 0x7A, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothClassOfDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x35, + 0x61, + 0xE4, + 0xA2, + 0x0F, + 0x6C, + 0x41, + 0x91, + 0xB4, + 0xC1, + 0xE4, + 0x8C, + 0xA0, + 0x61, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDevice + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0xB1, + 0x35, + 0x23, + 0xD2, + 0x90, + 0x04, + 0x4A, + 0xAE, + 0xF5, + 0x0E, + 0x20, + 0xB9, + 0xE6, + 0xB7, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDevice2 + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xF9, + 0x33, + 0x01, + 0x56, + 0xB1, + 0xD0, + 0x4D, + 0xB1, + 0xF5, + 0xC1, + 0x1B, + 0xC3, + 0x1A, + 0x51, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDevice3 + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0xF7, + 0xFF, + 0x57, + 0x1A, + 0x65, + 0x54, + 0x44, + 0xB9, + 0x0F, + 0xEB, + 0x21, + 0xEF, + 0x0B, + 0x0D, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDevice4 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x34, + 0x7C, + 0x81, + 0x9C, + 0x0E, + 0xB2, + 0x42, + 0xA8, + 0xDC, + 0x3E, + 0x80, + 0x94, + 0x94, + 0x0D, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDevice5 + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0xB3, + 0xE0, + 0xB5, + 0x85, + 0x5E, + 0x59, + 0x45, + 0xA1, + 0x0D, + 0x1C, + 0x72, + 0x81, + 0x37, + 0x9F, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDeviceId + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x49, + 0x79, + 0xC1, + 0xC1, + 0x57, + 0x42, + 0x46, + 0xBC, + 0xCE, + 0xE6, + 0xC0, + 0x6B, + 0x20, + 0xAE, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDeviceIdStatics + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x4E, + 0x88, + 0xA7, + 0xFB, + 0x3E, + 0x31, + 0x4F, + 0xBB, + 0xC2, + 0x81, + 0x0E, + 0x09, + 0x97, + 0x74, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xDF, + 0x91, + 0x09, + 0xDB, + 0x57, + 0x25, + 0x47, + 0xBB, + 0xD7, + 0x84, + 0xF6, + 0x43, + 0x27, + 0xEC, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothDeviceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x8E, + 0x9E, + 0xC2, + 0x14, + 0x4E, + 0x77, + 0x44, + 0xAA, + 0x1B, + 0xB8, + 0xB4, + 0x7E, + 0x5B, + 0x7E, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAppearance + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x79, + 0x20, + 0x5D, + 0xA8, + 0x66, + 0x58, + 0x42, + 0x98, + 0x5E, + 0x02, + 0xB4, + 0xD9, + 0x50, + 0x9F, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAppearanceCategoriesStatics + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x54, + 0x4D, + 0x6D, + 0x6A, + 0x04, + 0x85, + 0x41, + 0xAA, + 0xB6, + 0x82, + 0x4C, + 0xF0, + 0x61, + 0x08, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAppearanceStatics + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xC0, + 0x93, + 0xA1, + 0x04, + 0x45, + 0x4A, + 0x4F, + 0x9B, + 0xA5, + 0xCD, + 0x10, + 0x54, + 0xE5, + 0xE0, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEAppearanceSubcategoriesStatics + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xA6, + 0x7B, + 0xE5, + 0x44, + 0x21, + 0x5A, + 0x41, + 0x83, + 0x12, + 0x71, + 0xCC, + 0xF2, + 0x91, + 0xF8, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEConnectionParameters + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x07, + 0xCB, + 0x33, + 0xA9, + 0x8D, + 0x8F, + 0x50, + 0xA3, + 0x66, + 0x1C, + 0xA3, + 0x88, + 0xC9, + 0x29, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEConnectionPhy + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x5E, + 0x1E, + 0x78, + 0x1E, + 0x62, + 0x7E, + 0x5A, + 0x8B, + 0xE6, + 0x1B, + 0x95, + 0x61, + 0xFF, + 0x63, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEConnectionPhyInfo + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x0B, + 0x10, + 0x9A, + 0x2E, + 0x60, + 0x27, + 0x5C, + 0xA1, + 0xAE, + 0xB2, + 0x30, + 0x01, + 0x5A, + 0x63, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDevice + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x2F, + 0xEE, + 0xB5, + 0xD8, + 0x4A, + 0x42, + 0x46, + 0xAC, + 0x48, + 0x80, + 0xA0, + 0xB5, + 0x00, + 0xE8, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDevice2 + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x62, + 0xF0, + 0x26, + 0xEE, + 0x7A, + 0x31, + 0x4D, + 0xBA, + 0xBA, + 0xB1, + 0xB9, + 0x77, + 0x5F, + 0x59, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDevice3 + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xE4, + 0xE9, + 0xAE, + 0xAC, + 0x44, + 0xDC, + 0x40, + 0xAF, + 0x33, + 0xB2, + 0xC1, + 0x3C, + 0x01, + 0xCA, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDevice4 + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0x50, + 0x60, + 0x2B, + 0x48, + 0x22, + 0x2F, + 0x4B, + 0xAC, + 0xF0, + 0x7C, + 0xEE, + 0x36, + 0xFC, + 0x58, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDevice5 + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0x12, + 0x6A, + 0x9D, + 0x87, + 0x52, + 0x8E, + 0x45, + 0x95, + 0xBA, + 0x17, + 0xC8, + 0xB7, + 0xBB, + 0x32, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDevice6 + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x90, + 0x71, + 0xCA, + 0xAE, + 0x0C, + 0x3C, + 0x57, + 0xA1, + 0xCA, + 0xE1, + 0xFC, + 0x5B, + 0xFC, + 0x39, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x1A, + 0xCF, + 0xC8, + 0xB6, + 0xF0, + 0xF0, + 0x4B, + 0x86, + 0x89, + 0x41, + 0x30, + 0x3D, + 0xE2, + 0xD9, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEDeviceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0xC0, + 0x12, + 0x5F, + 0xAC, + 0x3B, + 0xE8, + 0x43, + 0xAD, + 0x16, + 0x56, + 0x32, + 0x71, + 0xBD, + 0x41, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEPreferredConnectionParameters + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x43, + 0xF4, + 0xF2, + 0x72, + 0x73, + 0x7B, + 0x5F, + 0x9B, + 0x34, + 0x29, + 0xC9, + 0x44, + 0xF5, + 0xA7, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEPreferredConnectionParametersRequest + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x52, + 0x37, + 0x8A, + 0x28, + 0xA5, + 0x66, + 0x52, + 0xB6, + 0x61, + 0xCC, + 0xE6, + 0xA5, + 0xFF, + 0x97, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothLEPreferredConnectionParametersStatics + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x8E, + 0x3E, + 0x0E, + 0x51, + 0x27, + 0xAA, + 0x55, + 0xA8, + 0x38, + 0x8F, + 0xAE, + 0xEE, + 0x81, + 0x8D, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothSignalStrengthFilter + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0x73, + 0x7B, + 0xDF, + 0xB5, + 0x6B, + 0xFE, + 0x4C, + 0x90, + 0xB1, + 0x5D, + 0x73, + 0x24, + 0xED, + 0xCF, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBluetoothUuidHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x0C, + 0xDF, + 0x17, + 0x74, + 0xCF, + 0x21, + 0x4B, + 0xAF, + 0xE6, + 0xF5, + 0x7A, + 0x11, + 0xBC, + 0xDE, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.enumeration/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.enumeration/IID.2.Manual.cs new file mode 100644 index 0000000000..341719a935 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.enumeration/IID.2.Manual.cs @@ -0,0 +1,207 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDeviceAccessChangedEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x80, + 0xa8, + 0x78, + 0x7f, + 0xd9, + 0x5c, + 0xd7, + 0x85, + 0x60, + 0x3c, + 0x64, + 0x4b, + 0x9b, + 0x10, + 0xdb, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IDeviceAccessInformation2 + { + get + { + ReadOnlySpan data = + [ + 0xe2, + 0xb9, + 0xdf, + 0xf6, + 0xe8, + 0x8f, + 0x5d, + 0x0a, + 0x9c, + 0x1e, + 0xd7, + 0x88, + 0x80, + 0x8d, + 0xf4, + 0x7b, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IDeviceEnumerationSettings + { + get + { + ReadOnlySpan data = + [ + 0xf7, + 0x71, + 0x0f, + 0x66, + 0x9f, + 0xf3, + 0x41, + 0xc8, + 0x85, + 0xeb, + 0x87, + 0xf8, + 0x11, + 0x48, + 0xa3, + 0x0f, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IDeviceInformationCustomPairing2 + { + get + { + ReadOnlySpan data = + [ + 0x0e, + 0xbd, + 0xa6, + 0x62, + 0xe6, + 0x96, + 0x5f, + 0xa9, + 0x8f, + 0x72, + 0x80, + 0xcf, + 0xeb, + 0xcd, + 0x85, + 0x1d, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IDeviceInformationStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0xf0, + 0x62, + 0x79, + 0x93, + 0x64, + 0x5a, + 0x6c, + 0x8a, + 0x54, + 0x5d, + 0x4a, + 0x6d, + 0x3d, + 0x92, + 0x2a, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IDevicePairingRequestedEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x5e, + 0x5a, + 0x38, + 0x43, + 0xdc, + 0x56, + 0x2f, + 0xba, + 0xbe, + 0xef, + 0xc8, + 0xb1, + 0x10, + 0x08, + 0x8b, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IDevicePairingSetMembersRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7f, + 0xb4, + 0x2c, + 0xff, + 0xec, + 0xac, + 0x50, + 0x12, + 0x8d, + 0x7d, + 0xa1, + 0x89, + 0x46, + 0x80, + 0xa3, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.enumeration/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.enumeration/IID.Manual.cs new file mode 100644 index 0000000000..25dae1fa2e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.enumeration/IID.Manual.cs @@ -0,0 +1,877 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.enumeration.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDeviceAccessChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x0B, + 0xDA, + 0xDE, + 0x9D, + 0x4F, + 0x58, + 0x4F, + 0x9D, + 0xBA, + 0xA9, + 0xBC, + 0x80, + 0x04, + 0x08, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceAccessChangedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x32, + 0x52, + 0x82, + 0x4B, + 0x93, + 0x30, + 0x4B, + 0xA1, + 0x78, + 0xAD, + 0xC3, + 0x9F, + 0x2F, + 0x2B, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceAccessInformation + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x9A, + 0xAA, + 0x0B, + 0xE5, + 0x6D, + 0x15, + 0x49, + 0x8D, + 0xDD, + 0x9A, + 0x05, + 0x54, + 0xA6, + 0xF5, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceAccessInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0xD3, + 0x4B, + 0x57, + 0x30, + 0x5F, + 0xCD, + 0x45, + 0x8A, + 0x94, + 0x72, + 0x4F, + 0xE5, + 0x97, + 0x30, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceConnectionChangeTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x8C, + 0x57, + 0xB8, + 0xC1, + 0xBB, + 0x4B, + 0x48, + 0xBF, + 0xFA, + 0x7B, + 0x31, + 0xDC, + 0xC2, + 0x00, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceDisconnectButtonClickedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0xB5, + 0x44, + 0x8E, + 0x02, + 0xF9, + 0x00, + 0x4A, + 0xB5, + 0x36, + 0xF3, + 0x79, + 0x92, + 0xE6, + 0xA2, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformation + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0xFB, + 0xA0, + 0xAB, + 0x98, + 0x43, + 0x9D, + 0x48, + 0x8E, + 0x44, + 0xE6, + 0x13, + 0x09, + 0x27, + 0x01, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformation2 + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0xA6, + 0x56, + 0xF1, + 0x97, + 0x79, + 0xD9, + 0x48, + 0xA1, + 0x0C, + 0x26, + 0x9D, + 0x46, + 0x53, + 0x3F, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationCustomPairing + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x8C, + 0x13, + 0x85, + 0xE6, + 0x4E, + 0x14, + 0x49, + 0x83, + 0x70, + 0x10, + 0x7A, + 0x39, + 0x14, + 0x4C, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationPairing + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0x69, + 0x47, + 0x2C, + 0x84, + 0xF6, + 0xD5, + 0x40, + 0x84, + 0x69, + 0xE8, + 0xDB, + 0xAA, + 0xB7, + 0x04, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationPairing2 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x12, + 0x86, + 0xF6, + 0xEE, + 0x0A, + 0x28, + 0x43, + 0x85, + 0xCC, + 0x1C, + 0x74, + 0x2B, + 0xB1, + 0x79, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationPairingStatics + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0xC4, + 0x15, + 0xE9, + 0xD4, + 0x36, + 0xA1, + 0x49, + 0xBF, + 0x13, + 0x51, + 0x41, + 0x73, + 0x79, + 0x9B, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationPairingStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x53, + 0xDE, + 0x04, + 0xB7, + 0xB7, + 0x6B, + 0x47, + 0xA7, + 0x4F, + 0xC5, + 0x83, + 0x6A, + 0x70, + 0x4D, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x10, + 0x7F, + 0xC1, + 0x46, + 0x3A, + 0x78, + 0x4A, + 0x80, + 0x13, + 0x76, + 0x9D, + 0xC9, + 0xB9, + 0x73, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x4F, + 0x3B, + 0x49, + 0x4F, + 0xA8, + 0xFD, + 0x45, + 0x91, + 0x67, + 0x15, + 0xD1, + 0xCB, + 0x1B, + 0xD1, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationUpdate + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x53, + 0x31, + 0x8F, + 0x72, + 0xD9, + 0xB7, + 0x44, + 0xA3, + 0x7E, + 0x9E, + 0x82, + 0x2C, + 0x78, + 0x21, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceInformationUpdate2 + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x14, + 0x9D, + 0x5D, + 0x73, + 0xA8, + 0x5E, + 0x48, + 0xBA, + 0xA6, + 0xAA, + 0x62, + 0x07, + 0x88, + 0xE3, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePairingRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0xFC, + 0x17, + 0xF7, + 0x6B, + 0xDE, + 0x7F, + 0x48, + 0x83, + 0x76, + 0x01, + 0x80, + 0xAC, + 0xA6, + 0x99, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePairingRequestedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x52, + 0x37, + 0xC8, + 0xD3, + 0xE4, + 0xB0, + 0x4D, + 0xA3, + 0x60, + 0xA1, + 0x05, + 0xE4, + 0x37, + 0xDB, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePairingResult + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x02, + 0x2B, + 0x07, + 0x95, + 0xDD, + 0x25, + 0x40, + 0x9B, + 0x37, + 0xDE, + 0x51, + 0xAD, + 0xBA, + 0x37, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePairingSettings + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0xB2, + 0x2C, + 0x48, + 0xBB, + 0x83, + 0x0E, + 0x42, + 0xBE, + 0x51, + 0x66, + 0x02, + 0xB2, + 0x22, + 0xDE, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePicker + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x7A, + 0x99, + 0x84, + 0x4A, + 0x03, + 0x40, + 0x44, + 0x88, + 0x13, + 0x7D, + 0x0B, + 0xD4, + 0x79, + 0xBF, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePickerAppearance + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x12, + 0x9A, + 0xE6, + 0x27, + 0xE6, + 0xD8, + 0x4E, + 0x9B, + 0x6C, + 0x46, + 0x0A, + 0xF4, + 0x45, + 0xE5, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePickerFilter + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x92, + 0xDB, + 0x91, + 0xCB, + 0x57, + 0xF1, + 0x48, + 0x9B, + 0x59, + 0xA5, + 0x9B, + 0x7A, + 0x1F, + 0x02, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceSelectedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0xDA, + 0x9E, + 0x26, + 0x2F, + 0x1D, + 0x40, + 0x49, + 0x84, + 0x02, + 0x41, + 0x56, + 0xB8, + 0x1D, + 0x3C, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceUnpairingResult + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x4A, + 0xF4, + 0x66, + 0xD9, + 0x79, + 0x4B, + 0x44, + 0x92, + 0xCF, + 0xA9, + 0x2E, + 0xF7, + 0x25, + 0x71, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceWatcher + { + get + { + ReadOnlySpan data = + [ + 0x7D, + 0xB9, + 0xEA, + 0xC9, + 0x6B, + 0x8F, + 0x96, + 0x4F, + 0xA9, + 0xF4, + 0xAB, + 0xC8, + 0x14, + 0xE2, + 0x22, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceWatcher2 + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x45, + 0x08, + 0xFF, + 0x14, + 0xED, + 0xE9, + 0x49, + 0x9A, + 0x69, + 0x81, + 0x17, + 0xC5, + 0x4A, + 0xE9, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceWatcherEvent + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x9C, + 0xAA, + 0x74, + 0xBD, + 0x1D, + 0xFD, + 0x47, + 0xB6, + 0x35, + 0x3C, + 0xC5, + 0x56, + 0xD0, + 0xFF, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceWatcherTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x81, + 0x80, + 0x38, + 0xB7, + 0x4C, + 0x57, + 0x4E, + 0xA5, + 0x6D, + 0x77, + 0x6D, + 0x07, + 0xCB, + 0xFE, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEnclosureLocation + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x0A, + 0x34, + 0x42, + 0x10, + 0x58, + 0x9C, + 0x45, + 0xAA, + 0xBB, + 0xC6, + 0x5E, + 0x1F, + 0x81, + 0x3E, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEnclosureLocation2 + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0x99, + 0x85, + 0x28, + 0x7D, + 0xE0, + 0x5D, + 0x48, + 0x8A, + 0x9E, + 0xBD, + 0xF2, + 0x9A, + 0xEF, + 0x4F, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.geolocation/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.geolocation/IID.Manual.cs new file mode 100644 index 0000000000..a97bd57e08 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.geolocation/IID.Manual.cs @@ -0,0 +1,904 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.geolocation.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICivicAddress + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0x7A, + 0x56, + 0xA8, + 0xF4, + 0x64, + 0x48, + 0x4D, + 0xBC, + 0xEA, + 0xF6, + 0xB0, + 0x08, + 0xEC, + 0xA3, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeoboundingBox + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0xC8, + 0x96, + 0x08, + 0x4F, + 0x27, + 0xDA, + 0x43, + 0x9A, + 0x06, + 0xCB, + 0xFC, + 0xDA, + 0xEB, + 0x4E, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeoboundingBoxFactory + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xA5, + 0xFB, + 0x4D, + 0x11, + 0x04, + 0xBC, + 0x4A, + 0xB3, + 0xB5, + 0x5B, + 0xBC, + 0xCB, + 0x57, + 0xD9, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeoboundingBoxStatics + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x07, + 0xB8, + 0x67, + 0x1A, + 0xE6, + 0xD0, + 0x4C, + 0x84, + 0x1B, + 0x93, + 0x23, + 0x37, + 0x92, + 0xB5, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocircle + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x58, + 0xE4, + 0x39, + 0xF9, + 0xA7, + 0x63, + 0x4E, + 0x92, + 0xA7, + 0xBA, + 0x0C, + 0x28, + 0xD1, + 0x24, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocircleFactory + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x53, + 0xD6, + 0xAF, + 0xB1, + 0x72, + 0x7D, + 0x4F, + 0x87, + 0xCC, + 0x4E, + 0xD4, + 0xC9, + 0x84, + 0x9C, + 0x05, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinate + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0xA3, + 0x21, + 0xEE, + 0x6A, + 0x97, + 0x70, + 0x4C, + 0x80, + 0x3D, + 0x08, + 0x3E, + 0xA5, + 0x5B, + 0xCB, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinateSatelliteData + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x74, + 0x2A, + 0xC3, + 0x08, + 0x26, + 0x4C, + 0x47, + 0x91, + 0x2C, + 0x06, + 0xDD, + 0x49, + 0x0F, + 0x4A, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinateSatelliteData2 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x8C, + 0x1C, + 0x76, + 0x9D, + 0xA1, + 0x51, + 0x5A, + 0x80, + 0xF5, + 0x71, + 0x67, + 0x61, + 0x15, + 0x48, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinateWithPoint + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x05, + 0xEA, + 0xFE, + 0x2C, + 0xD2, + 0x46, + 0x4D, + 0xB5, + 0x27, + 0x0B, + 0x96, + 0x06, + 0x6F, + 0xC7, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinateWithPositionData + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x34, + 0xE6, + 0x95, + 0xD6, + 0xDB, + 0xAC, + 0x40, + 0xB8, + 0xF2, + 0xA6, + 0x5C, + 0x03, + 0x40, + 0xD9, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinateWithPositionSourceTimestamp + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xFC, + 0x43, + 0x85, + 0xF1, + 0xC9, + 0x10, + 0x46, + 0xAF, + 0xE0, + 0x8B, + 0xC3, + 0xA6, + 0xA8, + 0x70, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeocoordinateWithRemoteSource + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0xEB, + 0x7C, + 0x39, + 0x38, + 0xEE, + 0x3B, + 0x5F, + 0x89, + 0x00, + 0xC4, + 0xA7, + 0xBC, + 0x9C, + 0xF9, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeolocator + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0xBF, + 0xC3, + 0xA9, + 0x24, + 0x45, + 0x89, + 0x49, + 0x8A, + 0xA9, + 0xDE, + 0x01, + 0x9D, + 0x2E, + 0x55, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeolocator2 + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x2E, + 0xB4, + 0xD1, + 0x91, + 0x88, + 0xB4, + 0x43, + 0xAD, + 0x36, + 0x27, + 0xC6, + 0xFE, + 0x9A, + 0x97, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeolocatorStatics + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x75, + 0x8E, + 0x9A, + 0xF5, + 0x2D, + 0x91, + 0x45, + 0x9F, + 0x87, + 0xEB, + 0x5F, + 0xD8, + 0x94, + 0xE9, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeolocatorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x11, + 0x30, + 0x99, + 0x1C, + 0xFA, + 0x31, + 0x46, + 0xA7, + 0x1D, + 0x0D, + 0xBE, + 0xB1, + 0x25, + 0x0D, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeolocatorWithScalarAccuracy + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xD3, + 0xF5, + 0x96, + 0x0F, + 0xB8, + 0x0A, + 0x46, + 0x99, + 0x4D, + 0xA9, + 0x6C, + 0x47, + 0xA5, + 0x1A, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeopath + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xD7, + 0x3F, + 0xE5, + 0xA4, + 0x2D, + 0x14, + 0x47, + 0xA6, + 0x52, + 0xDE, + 0x85, + 0x93, + 0x28, + 0x98, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeopathFactory + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0xA9, + 0xBE, + 0x27, + 0xE7, + 0xC7, + 0x59, + 0x43, + 0x9B, + 0x9B, + 0xFC, + 0xA3, + 0xE0, + 0x5E, + 0xF5, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeopoint + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x00, + 0xFA, + 0x6B, + 0x6E, + 0xE5, + 0xBB, + 0x49, + 0x9C, + 0xAF, + 0xCB, + 0xAA, + 0x78, + 0xA8, + 0xBC, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeopointFactory + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x8D, + 0x6B, + 0xDB, + 0xBD, + 0x76, + 0x30, + 0x4E, + 0x8A, + 0xF7, + 0xA8, + 0x44, + 0xDC, + 0x37, + 0xB7, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeoposition + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0x04, + 0x8D, + 0xC1, + 0x41, + 0x7D, + 0xF7, + 0x4F, + 0xA9, + 0x57, + 0x9D, + 0xFF, + 0xB4, + 0xEF, + 0x7F, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeoposition2 + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0xF6, + 0x62, + 0x7F, + 0x71, + 0x86, + 0x0D, + 0x4B, + 0x86, + 0xF8, + 0x47, + 0x4A, + 0x84, + 0x96, + 0x18, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeoshape + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0xA2, + 0x9C, + 0xC9, + 0x29, + 0xC7, + 0xC1, + 0x43, + 0x8F, + 0xAB, + 0xD6, + 0xDE, + 0xC9, + 0x14, + 0xDF, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeovisit + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x7A, + 0x87, + 0xB1, + 0xF6, + 0x9E, + 0xAB, + 0x41, + 0xA0, + 0xDD, + 0x79, + 0x3E, + 0xCE, + 0x76, + 0xE2, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeovisitMonitor + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x8A, + 0x11, + 0x80, + 0x44, + 0x59, + 0x91, + 0x45, + 0x83, + 0xC1, + 0x39, + 0x66, + 0x47, + 0xF5, + 0x4F, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeovisitMonitorStatics + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x76, + 0xF9, + 0xBC, + 0xF2, + 0xBB, + 0xDD, + 0x4C, + 0x95, + 0xCF, + 0x55, + 0x4C, + 0x82, + 0xED, + 0xFB, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeovisitStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0xD1, + 0xB4, + 0xCE, + 0x53, + 0x8B, + 0x68, + 0x49, + 0xBE, + 0xED, + 0x4C, + 0xEC, + 0xD0, + 0x29, + 0xCE, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeovisitTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x0D, + 0x77, + 0xEA, + 0xC9, + 0xD1, + 0x4B, + 0x45, + 0x99, + 0xB7, + 0xB2, + 0xF8, + 0xCD, + 0xD2, + 0x48, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPositionChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x9C, + 0x85, + 0x37, + 0x1E, + 0x9D, + 0xC5, + 0x46, + 0xBF, + 0x3B, + 0x6A, + 0xD8, + 0xCA, + 0xC1, + 0xA0, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStatusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0xD2, + 0x53, + 0x34, + 0x93, + 0x8C, + 0x11, + 0x41, + 0xA2, + 0x05, + 0x9A, + 0xEC, + 0xFC, + 0x9B, + 0xE5, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVenueData + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x91, + 0xF3, + 0x66, + 0xE3, + 0x60, + 0x2F, + 0x4B, + 0xB5, + 0x27, + 0x4F, + 0x53, + 0xF1, + 0xC3, + 0xC6, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.gpio.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.gpio.provider/IID.Manual.cs new file mode 100644 index 0000000000..433c6b71c1 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.gpio.provider/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.gpio.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IGpioControllerProvider + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xCE, + 0x11, + 0xAD, + 0xEA, + 0x19, + 0x21, + 0x4B, + 0x87, + 0x4F, + 0xB9, + 0x1A, + 0xED, + 0x4A, + 0x25, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioPinProvider + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x4C, + 0x34, + 0x42, + 0xBC, + 0x6A, + 0xFF, + 0x40, + 0x9C, + 0xE7, + 0x73, + 0xB8, + 0x53, + 0x01, + 0xB9, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioPinProviderValueChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0xD6, + 0xA6, + 0x32, + 0x5B, + 0x3D, + 0xCD, + 0x44, + 0x8F, + 0xBE, + 0x13, + 0xA6, + 0x9F, + 0x2E, + 0xDB, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioPinProviderValueChangedEventArgsFactory + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0x0B, + 0xCB, + 0x3E, + 0x8C, + 0x56, + 0x92, + 0x43, + 0xB2, + 0x4A, + 0x8A, + 0x59, + 0xA9, + 0x02, + 0xB1, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioProvider + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x27, + 0xE8, + 0x44, + 0xCA, + 0x08, + 0x4A, + 0x43, + 0xAF, + 0xE0, + 0xD6, + 0x15, + 0x80, + 0x44, + 0x6F, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.gpio/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.gpio/IID.Manual.cs new file mode 100644 index 0000000000..f08dc6880f --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.gpio/IID.Manual.cs @@ -0,0 +1,256 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.gpio.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IGpioChangeCounter + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0xC0, + 0x5E, + 0xCB, + 0x01, + 0x68, + 0xFF, + 0x43, + 0x80, + 0x3D, + 0x45, + 0x76, + 0x62, + 0x8A, + 0x8B, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioChangeCounterFactory + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x94, + 0x7D, + 0x14, + 0x9E, + 0x0A, + 0x0C, + 0x41, + 0xB4, + 0xFA, + 0xF8, + 0x9F, + 0x40, + 0x52, + 0x08, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioChangeReader + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0x88, + 0xBC, + 0x0A, + 0x31, + 0xE0, + 0xE8, + 0x48, + 0x85, + 0x90, + 0x70, + 0xDE, + 0x78, + 0x36, + 0x3C, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioChangeReaderFactory + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x8E, + 0x59, + 0xA9, + 0x0E, + 0x39, + 0x1A, + 0x44, + 0x9D, + 0x1C, + 0xE8, + 0xDE, + 0x0B, + 0x2D, + 0xF0, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioController + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x12, + 0x40, + 0x28, + 0x61, + 0x74, + 0x9C, + 0x46, + 0xA8, + 0xBC, + 0x61, + 0xD6, + 0x9D, + 0x08, + 0xA5, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0xF4, + 0xD6, + 0x2E, + 0xF7, + 0x7A, + 0x16, + 0x41, + 0x95, + 0x33, + 0xC4, + 0x3D, + 0x99, + 0xA1, + 0xFB, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioControllerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x7D, + 0x2B, + 0x91, + 0xA4, + 0x6C, + 0x06, + 0x41, + 0xA3, + 0x73, + 0xFF, + 0xFD, + 0x34, + 0x6B, + 0x0E, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioPin + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0xB0, + 0xD9, + 0x11, + 0xAE, + 0xAF, + 0x90, + 0x47, + 0x9E, + 0xE9, + 0xE0, + 0xEA, + 0xC9, + 0x42, + 0xD2, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGpioPinValueChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0xAA, + 0x37, + 0x31, + 0x3D, + 0x70, + 0x59, + 0x40, + 0xBD, + 0x24, + 0xB5, + 0xB2, + 0x5D, + 0xFF, + 0xB8, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.haptics/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.haptics/IID.Manual.cs new file mode 100644 index 0000000000..6c9a96e73c --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.haptics/IID.Manual.cs @@ -0,0 +1,175 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.haptics.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IKnownSimpleHapticsControllerWaveformsStatics + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x7E, + 0x57, + 0x3D, + 0xEE, + 0x4C, + 0xE6, + 0x11, + 0xB5, + 0x35, + 0x00, + 0x1B, + 0xDC, + 0x06, + 0xAB, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownSimpleHapticsControllerWaveformsStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x4C, + 0xD2, + 0xA7, + 0x9D, + 0xB7, + 0x0A, + 0x51, + 0xBF, + 0x79, + 0xFF, + 0x6D, + 0x49, + 0x17, + 0x3E, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleHapticsController + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x7E, + 0x57, + 0x3D, + 0xEE, + 0x4C, + 0xE6, + 0x11, + 0xB5, + 0x35, + 0x00, + 0x1B, + 0xDC, + 0x06, + 0xAB, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleHapticsControllerFeedback + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x7E, + 0x57, + 0x3D, + 0xEE, + 0x4C, + 0xE6, + 0x11, + 0xB5, + 0x35, + 0x00, + 0x1B, + 0xDC, + 0x06, + 0xAB, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVibrationDevice + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x1A, + 0xF2, + 0x40, + 0x44, + 0x88, + 0xFF, + 0x47, + 0xB3, + 0x12, + 0x06, + 0x18, + 0x5A, + 0x38, + 0x44, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVibrationDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xED, + 0xE2, + 0x53, + 0x90, + 0x22, + 0xC9, + 0x4A, + 0x8E, + 0xB3, + 0x1A, + 0x84, + 0x12, + 0x2E, + 0xB7, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.i2c.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.i2c.provider/IID.Manual.cs new file mode 100644 index 0000000000..23b4cc4327 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.i2c.provider/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.i2c.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_II2cControllerProvider + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0xBB, + 0xC2, + 0x61, + 0x10, + 0x45, + 0x63, + 0x41, + 0xA8, + 0x7C, + 0x4E, + 0x15, + 0xA9, + 0x55, + 0x89, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cDeviceProvider + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0x26, + 0x34, + 0xAD, + 0xE8, + 0x57, + 0x3E, + 0x45, + 0x83, + 0x29, + 0xD1, + 0xE4, + 0x47, + 0xD1, + 0x03, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cProvider + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x08, + 0x13, + 0x6F, + 0x62, + 0xBF, + 0xE2, + 0x4F, + 0xA9, + 0x5A, + 0xF0, + 0x89, + 0x99, + 0x66, + 0x98, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProviderI2cConnectionSettings + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x4E, + 0xDB, + 0xE9, + 0x10, + 0xE5, + 0xB7, + 0x44, + 0x80, + 0x9D, + 0xF2, + 0xF8, + 0x5B, + 0x55, + 0x53, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.i2c/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.i2c/IID.Manual.cs new file mode 100644 index 0000000000..50fa820240 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.i2c/IID.Manual.cs @@ -0,0 +1,175 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.i2c.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_II2cConnectionSettings + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x13, + 0xDB, + 0xF2, + 0x6F, + 0xAB, + 0x39, + 0x46, + 0xA7, + 0x67, + 0x54, + 0x53, + 0x6D, + 0xC3, + 0x46, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cConnectionSettingsFactory + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x86, + 0xB5, + 0x81, + 0x93, + 0x96, + 0xB1, + 0x41, + 0xA2, + 0x43, + 0xDE, + 0xD4, + 0xF6, + 0xE6, + 0x69, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cController + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0xB1, + 0x8A, + 0xC4, + 0xA0, + 0x87, + 0x66, + 0x41, + 0x8E, + 0x3E, + 0xB4, + 0xB8, + 0xF9, + 0x7C, + 0xD7, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0x03, + 0xFC, + 0x40, + 0x05, + 0x5F, + 0x7E, + 0x4E, + 0x84, + 0xBD, + 0x10, + 0x0D, + 0xB8, + 0xE0, + 0xAE, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cDevice + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0xC1, + 0x36, + 0x86, + 0xC5, + 0xB9, + 0x70, + 0x4F, + 0x94, + 0x49, + 0xCC, + 0x46, + 0xDC, + 0x6F, + 0x57, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_II2cDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x3B, + 0xA3, + 0x91, + 0x34, + 0x73, + 0x12, + 0x45, + 0x96, + 0xBC, + 0xFB, + 0xAE, + 0x94, + 0x59, + 0xF5, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.input/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.input/IID.Manual.cs new file mode 100644 index 0000000000..114e1afb59 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.input/IID.Manual.cs @@ -0,0 +1,580 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.input.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IKeyboardCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x9B, + 0x3F, + 0x3A, + 0x98, + 0x67, + 0xBC, + 0x4B, + 0x83, + 0x3E, + 0x0F, + 0x34, + 0xB1, + 0x7C, + 0x65, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMouseCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xE0, + 0xA5, + 0xBC, + 0xD9, + 0x7D, + 0x6B, + 0x4B, + 0x9A, + 0x92, + 0x55, + 0xD4, + 0x3C, + 0xB3, + 0x8F, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMouseDevice + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xF4, + 0xED, + 0x88, + 0xC8, + 0xF2, + 0xF4, + 0x49, + 0xBE, + 0x1F, + 0xC2, + 0x56, + 0xB3, + 0x88, + 0xBC, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMouseDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x90, + 0x4A, + 0x48, + 0x70, + 0x6D, + 0xDB, + 0x49, + 0x8E, + 0x68, + 0x46, + 0xFF, + 0xBD, + 0x17, + 0xD3, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMouseEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0xAA, + 0x25, + 0xF6, + 0x54, + 0x23, + 0xC7, + 0x4C, + 0x92, + 0x30, + 0x96, + 0x94, + 0x1C, + 0x96, + 0x9F, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenButtonListener + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0xC3, + 0x45, + 0x82, + 0xE3, + 0x1E, + 0xF7, + 0x53, + 0xB1, + 0xF7, + 0x83, + 0x34, + 0xA1, + 0x6F, + 0x28, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenButtonListenerStatics + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0xA5, + 0xA8, + 0x19, + 0x2F, + 0x86, + 0x69, + 0x5F, + 0xBF, + 0xEA, + 0x05, + 0xF6, + 0x58, + 0x4F, + 0x13, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenDevice + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x6E, + 0x85, + 0x31, + 0x38, + 0xA7, + 0x8C, + 0x5A, + 0xB8, + 0xF6, + 0xF9, + 0x7E, + 0xF6, + 0x8D, + 0x18, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenDevice2 + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0xD3, + 0x07, + 0x02, + 0xB8, + 0x7F, + 0x66, + 0x55, + 0x8C, + 0x34, + 0xF8, + 0x34, + 0x20, + 0x37, + 0xB7, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xBE, + 0xFB, + 0x9D, + 0x66, + 0x09, + 0x80, + 0x51, + 0xBC, + 0xB4, + 0xB8, + 0x50, + 0x60, + 0xE3, + 0x94, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenDockListener + { + get + { + ReadOnlySpan data = + [ + 0x90, + 0x4D, + 0x9F, + 0x75, + 0xC0, + 0x1D, + 0xCB, + 0x55, + 0xAD, + 0x18, + 0xB9, + 0x10, + 0x14, + 0x56, + 0xF5, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenDockListenerStatics + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x5E, + 0xB7, + 0xCA, + 0x16, + 0x00, + 0x72, + 0x5C, + 0x96, + 0x9E, + 0xA9, + 0x7E, + 0x11, + 0x99, + 0x2A, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenDockedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x77, + 0x42, + 0xFD, + 0x63, + 0xCA, + 0x4E, + 0x5D, + 0x9E, + 0xD3, + 0xA2, + 0x8A, + 0x54, + 0x52, + 0x1C, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenTailButtonClickedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0xB7, + 0x2F, + 0x5D, + 0xD3, + 0x6A, + 0x3E, + 0x5D, + 0xAB, + 0x29, + 0x05, + 0xEA, + 0x24, + 0x10, + 0xE3, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenTailButtonDoubleClickedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x21, + 0x63, + 0x84, + 0x8A, + 0x61, + 0x78, + 0x54, + 0xB0, + 0x4C, + 0xB3, + 0x58, + 0x23, + 0x1D, + 0xA4, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenTailButtonLongPressedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x60, + 0x7C, + 0xF3, + 0x0A, + 0xC6, + 0x42, + 0x5F, + 0xB8, + 0x18, + 0xA5, + 0x31, + 0x12, + 0x40, + 0x6C, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPenUndockedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x91, + 0xD0, + 0xCC, + 0x1B, + 0x26, + 0xE6, + 0x59, + 0xA5, + 0xD4, + 0xC1, + 0x96, + 0x4C, + 0xD0, + 0x3F, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointerDevice + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xBA, + 0xC9, + 0x93, + 0xCB, + 0xEB, + 0x7E, + 0x46, + 0x82, + 0xC6, + 0x27, + 0x6F, + 0xEA, + 0xE3, + 0x6B, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointerDevice2 + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0xD2, + 0xA6, + 0xF8, + 0x84, + 0xC4, + 0x9F, + 0x48, + 0xAE, + 0x3E, + 0x30, + 0xD2, + 0xEE, + 0x1F, + 0xFD, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointerDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x9A, + 0xB8, + 0xD8, + 0xC6, + 0xD1, + 0x6E, + 0x41, + 0xBD, + 0x8D, + 0x57, + 0x90, + 0x91, + 0x4D, + 0xC5, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITouchCapabilities + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x55, + 0xDD, + 0x20, + 0xF1, + 0x13, + 0xC8, + 0x46, + 0x92, + 0x85, + 0x2C, + 0x05, + 0xFA, + 0x3E, + 0xDA, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.power/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.power/IID.2.Manual.cs new file mode 100644 index 0000000000..fc14a005e7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.power/IID.2.Manual.cs @@ -0,0 +1,95 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPowerGridData + { + get + { + ReadOnlySpan data = + [ + 0xc3, + 0x60, + 0xfb, + 0x17, + 0xfc, + 0x92, + 0x5f, + 0x6e, + 0x99, + 0x9d, + 0x16, + 0xa4, + 0xcf, + 0x9d, + 0x6c, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPowerGridForecast + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x7e, + 0x4d, + 0xe9, + 0xed, + 0x60, + 0x58, + 0xbb, + 0xa8, + 0x50, + 0x00, + 0x3c, + 0x6a, + 0x13, + 0x86, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPowerGridForecastStatics + { + get + { + ReadOnlySpan data = + [ + 0x5b, + 0x78, + 0xc8, + 0x06, + 0x2e, + 0x4e, + 0x5b, + 0xcc, + 0xbb, + 0x34, + 0xcb, + 0x81, + 0xc6, + 0x0f, + 0x9e, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.power/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.power/IID.Manual.cs new file mode 100644 index 0000000000..4467b52f71 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.power/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.power.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBattery + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x4F, + 0x89, + 0xBC, + 0x72, + 0x00, + 0xC8, + 0x47, + 0x8B, + 0x5D, + 0x61, + 0x4A, + 0xAA, + 0x7A, + 0x43, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBatteryReport + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0x8C, + 0x85, + 0xC9, + 0x13, + 0x4E, + 0x0A, + 0x42, + 0xA8, + 0xD0, + 0x24, + 0xF1, + 0x8F, + 0x39, + 0x54, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBatteryStatics + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x72, + 0xCD, + 0x79, + 0x5E, + 0x9E, + 0x52, + 0x44, + 0xBE, + 0xA6, + 0xDF, + 0xCD, + 0x54, + 0x1E, + 0x59, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.printers.extensions/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.printers.extensions/IID.Manual.cs new file mode 100644 index 0000000000..13a04f63e7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.printers.extensions/IID.Manual.cs @@ -0,0 +1,283 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.printers.extensions.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPrint3DWorkflow + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x74, + 0x6F, + 0xC5, + 0x69, + 0x36, + 0x66, + 0x4A, + 0xAB, + 0x42, + 0xC8, + 0x15, + 0x19, + 0x30, + 0xCD, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrint3DWorkflow2 + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0xC5, + 0xA6, + 0xA2, + 0xC1, + 0x8A, + 0x18, + 0x49, + 0x97, + 0x41, + 0xE3, + 0x4F, + 0x30, + 0x04, + 0x23, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrint3DWorkflowPrintRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xC8, + 0xF8, + 0x19, + 0xC8, + 0x5A, + 0x55, + 0x4B, + 0x8A, + 0x5F, + 0xE6, + 0x15, + 0x67, + 0xDA, + 0xFB, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrint3DWorkflowPrinterChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x64, + 0x22, + 0x45, + 0xFC, + 0x95, + 0x47, + 0x48, + 0x93, + 0xB3, + 0x13, + 0x4D, + 0xBF, + 0x5C, + 0x60, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintExtensionContextStatic + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x9F, + 0x0D, + 0xE7, + 0x79, + 0xFF, + 0xA4, + 0x4A, + 0x8C, + 0x9B, + 0x0C, + 0x93, + 0xAE, + 0xDF, + 0xDE, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintNotificationEventDetails + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x4C, + 0x0E, + 0xE0, + 0x28, + 0x48, + 0xA1, + 0x4D, + 0x8B, + 0xB8, + 0x86, + 0x72, + 0xDF, + 0x85, + 0x15, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x24, + 0xC2, + 0xE3, + 0xA4, + 0x3A, + 0x85, + 0x48, + 0x92, + 0x40, + 0x31, + 0x1F, + 0x5F, + 0x8F, + 0xBE, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskConfigurationSaveRequest + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x2F, + 0xAF, + 0xEE, + 0x1E, + 0x62, + 0x62, + 0x4B, + 0xAC, + 0x77, + 0xB2, + 0x81, + 0xCC, + 0xE0, + 0x8D, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskConfigurationSaveRequestedDeferral + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0xD5, + 0x59, + 0xE9, + 0x29, + 0xF7, + 0xA4, + 0x44, + 0x87, + 0x1D, + 0xBD, + 0x06, + 0x28, + 0x69, + 0x6A, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskConfigurationSaveRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x28, + 0x6C, + 0xE0, + 0x61, + 0x0D, + 0x38, + 0x49, + 0x91, + 0xD0, + 0x96, + 0xA4, + 0x5B, + 0xEE, + 0x84, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.printers/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.printers/IID.2.Manual.cs new file mode 100644 index 0000000000..583f234709 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.printers/IID.2.Manual.cs @@ -0,0 +1,67 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IIppPrintDevice3 + { + get + { + ReadOnlySpan data = + [ + 0xb6, + 0x25, + 0x8f, + 0x6d, + 0xa4, + 0x6d, + 0x5e, + 0x37, + 0x80, + 0xce, + 0x5f, + 0x69, + 0xd5, + 0x54, + 0x47, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IIppPrintDevice4 + { + get + { + ReadOnlySpan data = + [ + 0x8c, + 0x48, + 0x24, + 0x7e, + 0xe8, + 0x69, + 0x59, + 0xfb, + 0xbc, + 0x6d, + 0xda, + 0xea, + 0x06, + 0x14, + 0xf9, + 0x3e, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.printers/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.printers/IID.Manual.cs new file mode 100644 index 0000000000..eadce3def9 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.printers/IID.Manual.cs @@ -0,0 +1,526 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.printers.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IIppAttributeError + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xED, + 0x0F, + 0x75, + 0xEF, + 0x9E, + 0x39, + 0x5C, + 0x93, + 0xE4, + 0x46, + 0x14, + 0x9B, + 0xBC, + 0xEF, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppAttributeValue + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x7F, + 0x40, + 0x99, + 0xBB, + 0xE2, + 0xA3, + 0x59, + 0x98, + 0x8B, + 0x28, + 0xA9, + 0x74, + 0x05, + 0x2A, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppAttributeValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x39, + 0xD4, + 0x10, + 0x94, + 0xDD, + 0x98, + 0x59, + 0xB2, + 0x35, + 0xAF, + 0xAF, + 0xB6, + 0xFA, + 0x79, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppIntegerRange + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x73, + 0x90, + 0x92, + 0xEA, + 0xC3, + 0xD6, + 0x5E, + 0xBD, + 0xB1, + 0x37, + 0x52, + 0xC6, + 0x2C, + 0x6F, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppIntegerRangeFactory + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0xEC, + 0xD4, + 0x75, + 0x7E, + 0xF8, + 0xAD, + 0x54, + 0xB5, + 0xD0, + 0x46, + 0x52, + 0x04, + 0xDB, + 0x75, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppPrintDevice + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0xAC, + 0x48, + 0xD7, + 0xF3, + 0x76, + 0xC6, + 0x5D, + 0xAF, + 0xD4, + 0xC2, + 0xA8, + 0x68, + 0x6B, + 0x93, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppPrintDevice2 + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0x44, + 0xC8, + 0xF7, + 0x21, + 0x9D, + 0x63, + 0x5C, + 0xAC, + 0x20, + 0x36, + 0x76, + 0x91, + 0x5B, + 0xE2, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppPrintDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x9F, + 0xC1, + 0x7D, + 0x20, + 0x7F, + 0xAB, + 0x52, + 0x94, + 0xA7, + 0x89, + 0x4B, + 0x83, + 0xB2, + 0xA1, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppResolution + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x3F, + 0x49, + 0xCB, + 0xF3, + 0x6B, + 0xF5, + 0x56, + 0x86, + 0xCE, + 0x26, + 0x3D, + 0x08, + 0xAE, + 0xAD, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppResolutionFactory + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0xC2, + 0x81, + 0xE4, + 0x1A, + 0x25, + 0x26, + 0x53, + 0xB1, + 0x73, + 0x95, + 0x54, + 0x3E, + 0xD9, + 0x9A, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppSetAttributesResult + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x7F, + 0x1C, + 0x7D, + 0x9D, + 0xAA, + 0xA3, + 0x58, + 0x90, + 0xE9, + 0x17, + 0xBD, + 0xC5, + 0x28, + 0x1F, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppTextWithLanguage + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x47, + 0x64, + 0x32, + 0x49, + 0x51, + 0x36, + 0x59, + 0x90, + 0xE8, + 0x0C, + 0x73, + 0x60, + 0x36, + 0xBF, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIppTextWithLanguageFactory + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x1E, + 0x4A, + 0xCA, + 0x68, + 0x29, + 0x75, + 0x57, + 0x99, + 0x7C, + 0x8A, + 0x46, + 0xF1, + 0xA5, + 0x74, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPageConfigurationSettings + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x1E, + 0xFC, + 0xB6, + 0x31, + 0x53, + 0xFF, + 0x54, + 0x95, + 0xA0, + 0x1F, + 0xCB, + 0x76, + 0xBB, + 0x97, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPdlPassthroughProvider + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x1D, + 0xC7, + 0x23, + 0x17, + 0x61, + 0x3F, + 0x55, + 0x93, + 0x78, + 0x18, + 0x0A, + 0xF5, + 0x84, + 0x9A, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPdlPassthroughTarget + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0xBE, + 0x40, + 0x98, + 0xF8, + 0x67, + 0x85, + 0x53, + 0xA5, + 0xB9, + 0xE8, + 0xC9, + 0x6E, + 0x0F, + 0xCA, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrint3DDevice + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x3D, + 0x1C, + 0x04, + 0x13, + 0x97, + 0xA2, + 0x42, + 0x98, + 0x13, + 0x7D, + 0xC3, + 0x33, + 0x74, + 0x28, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrint3DDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x62, + 0xE3, + 0xFD, + 0xCD, + 0x67, + 0xB7, + 0x41, + 0xA3, + 0x44, + 0x51, + 0x50, + 0xA1, + 0xFD, + 0x75, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintSchema + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x83, + 0xB9, + 0xC2, + 0xB8, + 0x26, + 0xFB, + 0x4B, + 0x81, + 0x38, + 0x9F, + 0x96, + 0x2C, + 0x22, + 0xA3, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.pwm.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.pwm.provider/IID.Manual.cs new file mode 100644 index 0000000000..ff99bbf5fa --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.pwm.provider/IID.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.pwm.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPwmControllerProvider + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0x59, + 0x00, + 0x13, + 0xE3, + 0xE2, + 0xA4, + 0x40, + 0xB7, + 0xD9, + 0x48, + 0xDF, + 0xF0, + 0x37, + 0x7A, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPwmProvider + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x12, + 0x30, + 0xA3, + 0xF1, + 0x52, + 0xB0, + 0x47, + 0x93, + 0x49, + 0x66, + 0xBA, + 0x43, + 0xD2, + 0x59, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.pwm/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.pwm/IID.Manual.cs new file mode 100644 index 0000000000..85a24c11c2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.pwm/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.pwm.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPwmController + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x5C, + 0x5F, + 0xC4, + 0xE8, + 0xD2, + 0xCF, + 0x42, + 0x9B, + 0xD6, + 0xCF, + 0x5E, + 0xD0, + 0x29, + 0xE6, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPwmControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xBD, + 0x63, + 0x42, + 0x46, + 0x89, + 0x04, + 0x44, + 0xBD, + 0x48, + 0x81, + 0xDD, + 0x12, + 0x4A, + 0xF4, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPwmControllerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x5B, + 0xFC, + 0x44, + 0x19, + 0xF1, + 0xDD, + 0x4B, + 0x97, + 0xAD, + 0xF7, + 0x6E, + 0xF9, + 0x86, + 0x73, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPwmControllerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x18, + 0x58, + 0xB2, + 0x29, + 0x02, + 0x44, + 0x43, + 0xAE, + 0x3F, + 0x9B, + 0x7C, + 0xD0, + 0xE6, + 0x6B, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPwmPin + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x2D, + 0x97, + 0x22, + 0xCF, + 0xC6, + 0x21, + 0x48, + 0xB7, + 0xF9, + 0xC6, + 0x45, + 0x4F, + 0xB6, + 0xAF, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.radios/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.radios/IID.Manual.cs new file mode 100644 index 0000000000..4aed911372 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.radios/IID.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.radios.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IRadio + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x18, + 0x21, + 0x25, + 0x3E, + 0xB3, + 0x6A, + 0x41, + 0x87, + 0x5F, + 0x1C, + 0xF3, + 0x8A, + 0xE2, + 0xD8, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRadioStatics + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0xA1, + 0xB6, + 0x5F, + 0xCB, + 0x67, + 0xAE, + 0x46, + 0xAA, + 0xE9, + 0x65, + 0x91, + 0x9F, + 0x86, + 0xEF, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.sensors/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.sensors/IID.2.Manual.cs new file mode 100644 index 0000000000..0dfc923a0f --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.sensors/IID.2.Manual.cs @@ -0,0 +1,151 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDetectedPerson + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x8c, + 0xc0, + 0xd9, + 0x3f, + 0x05, + 0x50, + 0x29, + 0xa0, + 0xbf, + 0xcd, + 0xca, + 0xb4, + 0xbe, + 0x3f, + 0x9e, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IHeadOrientation + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x9f, + 0x54, + 0xa9, + 0x51, + 0x3e, + 0x55, + 0xe8, + 0x9c, + 0x35, + 0x3e, + 0x8d, + 0xa2, + 0x1d, + 0xee, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IHeadPosition + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0x5a, + 0xeb, + 0x65, + 0xcf, + 0x35, + 0x5e, + 0x6d, + 0xa7, + 0x6a, + 0x37, + 0xdb, + 0x13, + 0x1e, + 0x17, + 0xde, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IHumanPresenceSensor3 + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x3f, + 0x00, + 0x6d, + 0x09, + 0x0d, + 0x53, + 0x2c, + 0x9e, + 0xaf, + 0x80, + 0x3a, + 0x9f, + 0x69, + 0x28, + 0x5b, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IHumanPresenceSensorReading3 + { + get + { + ReadOnlySpan data = + [ + 0xb8, + 0x76, + 0xd9, + 0x18, + 0xf0, + 0x69, + 0x58, + 0x6f, + 0x90, + 0xe3, + 0x7c, + 0x6f, + 0xa5, + 0xc5, + 0xd3, + 0x3a, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.sensors/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.sensors/IID.Manual.cs new file mode 100644 index 0000000000..c6663eaee9 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.sensors/IID.Manual.cs @@ -0,0 +1,4036 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.sensors.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAccelerometer + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x45, + 0x18, + 0xDF, + 0x11, + 0x27, + 0xA7, + 0x4D, + 0x80, + 0x98, + 0x4B, + 0x82, + 0x20, + 0x5D, + 0x3C, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometer2 + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x92, + 0xF0, + 0xE8, + 0x64, + 0x49, + 0x1A, + 0x40, + 0xB6, + 0x02, + 0x22, + 0x0D, + 0x71, + 0x53, + 0xC6, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometer3 + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x02, + 0xE0, + 0x87, + 0x80, + 0xED, + 0xEB, + 0x49, + 0xBF, + 0x8A, + 0xA4, + 0xEA, + 0x31, + 0xE5, + 0xCD, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometer4 + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0x3C, + 0x37, + 0x1D, + 0xD3, + 0x42, + 0xB2, + 0x45, + 0x81, + 0x44, + 0xAB, + 0x7F, + 0xB6, + 0x65, + 0xEB, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometer5 + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x70, + 0x7E, + 0x7E, + 0xF4, + 0xDE, + 0xA6, + 0x53, + 0xAF, + 0x43, + 0x80, + 0x6F, + 0xD5, + 0x38, + 0xED, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x1B, + 0x2C, + 0xF9, + 0x20, + 0x63, + 0x77, + 0x55, + 0x87, + 0x9E, + 0x99, + 0x42, + 0x62, + 0x1C, + 0x3D, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerDeviceId + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x64, + 0xAC, + 0x7E, + 0xD5, + 0x97, + 0x6D, + 0x44, + 0xAB, + 0x5A, + 0x91, + 0x7D, + 0xF9, + 0xB9, + 0x6A, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerReading + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x7A, + 0xFE, + 0xB9, + 0x51, + 0xD3, + 0xAF, + 0x40, + 0x8B, + 0xB6, + 0x7A, + 0xA9, + 0xAE, + 0x64, + 0x1F, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerReading2 + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x4A, + 0x86, + 0x0A, + 0xAE, + 0x15, + 0x40, + 0x4A, + 0xBE, + 0x55, + 0xDB, + 0x58, + 0xD7, + 0xDE, + 0x73, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0xC6, + 0x95, + 0x00, + 0xAC, + 0xB6, + 0x5A, + 0x47, + 0x9F, + 0x44, + 0x8B, + 0x32, + 0xD3, + 0x5A, + 0x3F, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerShakenEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x01, + 0xFF, + 0x95, + 0x28, + 0x4A, + 0x35, + 0x4F, + 0x98, + 0xE8, + 0x81, + 0x78, + 0xAA, + 0xE4, + 0x08, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerStatics + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x8B, + 0xE2, + 0xA5, + 0x87, + 0x5A, + 0x2D, + 0x4A, + 0xBE, + 0xCC, + 0x0F, + 0x90, + 0x6E, + 0xA0, + 0x61, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x84, + 0xC4, + 0xC4, + 0x6B, + 0xD8, + 0x85, + 0x46, + 0xB2, + 0xD7, + 0x33, + 0x96, + 0xF7, + 0x98, + 0xD5, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAccelerometerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x18, + 0xE2, + 0x9D, + 0x5D, + 0x45, + 0xF3, + 0x4C, + 0x82, + 0x00, + 0x70, + 0xE1, + 0x41, + 0x03, + 0x40, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensor + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x63, + 0x7A, + 0xCD, + 0x5F, + 0xFB, + 0xEB, + 0x48, + 0xB0, + 0x9B, + 0xA2, + 0x70, + 0x8D, + 0x1C, + 0x61, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorReading + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x5A, + 0x12, + 0x85, + 0x72, + 0x14, + 0xA2, + 0x40, + 0xB2, + 0xAE, + 0xE1, + 0xEF, + 0x29, + 0x22, + 0x6C, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorReadingChangeReport + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x29, + 0x3C, + 0x4F, + 0x3B, + 0xD9, + 0xBD, + 0x47, + 0x96, + 0x0A, + 0xF2, + 0x0F, + 0xB2, + 0xF3, + 0x22, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x67, + 0x38, + 0xDE, + 0xB6, + 0xAE, + 0xC7, + 0x4E, + 0x94, + 0x6A, + 0xD9, + 0xCC, + 0x19, + 0xB9, + 0x51, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x0E, + 0x1E, + 0xA7, + 0x8B, + 0xEE, + 0xD1, + 0x45, + 0xB2, + 0x5B, + 0x08, + 0xCC, + 0x0D, + 0xF9, + 0x2A, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivitySensorTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x66, + 0x9E, + 0x2C, + 0xCA, + 0xB9, + 0x77, + 0x46, + 0xB2, + 0x63, + 0x24, + 0x32, + 0x97, + 0xF7, + 0x9D, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveDimmingOptions + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x3C, + 0x21, + 0xD3, + 0xB5, + 0x89, + 0x32, + 0x57, + 0xB2, + 0xA0, + 0xAE, + 0xFE, + 0x32, + 0x4F, + 0x54, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAltimeter + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x57, + 0xF0, + 0x72, + 0x04, + 0x8F, + 0xF1, + 0x49, + 0xB4, + 0xA7, + 0xF4, + 0xE3, + 0x63, + 0xB7, + 0x01, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAltimeter2 + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x1B, + 0x47, + 0xC9, + 0xDD, + 0x2A, + 0xF5, + 0x48, + 0x9F, + 0x08, + 0x3D, + 0x0C, + 0x76, + 0x60, + 0xD9, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAltimeterReading + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0xEF, + 0xE8, + 0xFB, + 0x5E, + 0x7F, + 0xC8, + 0x48, + 0xAA, + 0x1A, + 0xF1, + 0xF3, + 0xBE, + 0xFC, + 0x11, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAltimeterReading2 + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x1B, + 0x3A, + 0x54, + 0x0B, + 0x6D, + 0xB2, + 0x42, + 0xBD, + 0x69, + 0xBC, + 0x8F, + 0xAE, + 0x0F, + 0x78, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAltimeterReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0xD0, + 0x69, + 0x70, + 0x6D, + 0x44, + 0xF7, + 0x47, + 0x99, + 0x8C, + 0xEB, + 0xC2, + 0x3B, + 0x45, + 0xE4, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAltimeterStatics + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0xD7, + 0xB4, + 0x9E, + 0xAC, + 0xE5, + 0xCE, + 0x47, + 0x8E, + 0xEF, + 0xD3, + 0x71, + 0x81, + 0x68, + 0xC0, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometer + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x75, + 0x44, + 0x93, + 0xBF, + 0x78, + 0x2F, + 0x45, + 0xB0, + 0x17, + 0xF0, + 0x20, + 0x9C, + 0xE6, + 0xDA, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometer2 + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0xC4, + 0xBC, + 0x32, + 0xEB, + 0x3E, + 0x04, + 0x4D, + 0x95, + 0x74, + 0x76, + 0x33, + 0xA8, + 0x78, + 0x1F, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometer3 + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0xF0, + 0x35, + 0x0E, + 0xB5, + 0x02, + 0x04, + 0x5A, + 0xB0, + 0x3D, + 0x82, + 0x20, + 0x84, + 0x86, + 0x3A, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometerDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x95, + 0x6B, + 0x07, + 0x62, + 0xCB, + 0x90, + 0x5A, + 0xA0, + 0xD1, + 0xF8, + 0x5E, + 0x4A, + 0x93, + 0x63, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometerReading + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0xD2, + 0xB9, + 0xF5, + 0xF6, + 0x1D, + 0x1A, + 0x4A, + 0xA7, + 0xAD, + 0x32, + 0x1D, + 0x4F, + 0x5D, + 0xB2, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometerReading2 + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x44, + 0xA2, + 0x85, + 0xC5, + 0x90, + 0x75, + 0x48, + 0x89, + 0x1C, + 0x38, + 0x65, + 0xB4, + 0xC3, + 0x57, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometerReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0x94, + 0x84, + 0x3D, + 0x7B, + 0x03, + 0x4F, + 0x40, + 0x9B, + 0xBB, + 0x62, + 0x32, + 0xD6, + 0x95, + 0x43, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometerStatics + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x27, + 0x6B, + 0x28, + 0xE3, + 0x02, + 0x86, + 0x4F, + 0x84, + 0xFC, + 0xFD, + 0xD8, + 0x92, + 0xB5, + 0x94, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBarometerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xB1, + 0xC6, + 0x8F, + 0xFF, + 0x95, + 0xAC, + 0x44, + 0x87, + 0x8E, + 0xD6, + 0x5C, + 0x83, + 0x08, + 0xC3, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompass + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0xFA, + 0x2F, + 0x29, + 0x45, + 0x1B, + 0x3C, + 0x40, + 0xBA, + 0x06, + 0xB1, + 0x06, + 0xDB, + 0xA6, + 0x9A, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompass2 + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x6D, + 0xF2, + 0x36, + 0xD7, + 0xC7, + 0x4F, + 0x43, + 0xB4, + 0x61, + 0x97, + 0x9D, + 0xDF, + 0xC2, + 0x32, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompass3 + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x80, + 0x24, + 0xA4, + 0xEA, + 0xC5, + 0x45, + 0x4D, + 0xA0, + 0xEC, + 0x4B, + 0x79, + 0x1F, + 0x04, + 0x1A, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompass4 + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x7F, + 0x1E, + 0x29, + 0x32, + 0xEC, + 0xCC, + 0x5D, + 0xBF, + 0xCB, + 0x0B, + 0xB3, + 0x9E, + 0xBA, + 0x57, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x52, + 0x5B, + 0xD1, + 0x9D, + 0xD3, + 0xC8, + 0x5E, + 0xB2, + 0xE4, + 0xF1, + 0x93, + 0xE6, + 0xAB, + 0x34, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassDeviceId + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xCA, + 0x81, + 0xD1, + 0x85, + 0xB0, + 0x1D, + 0x4B, + 0x87, + 0x0A, + 0x4F, + 0xF5, + 0x7B, + 0xA7, + 0x4F, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassReading + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x11, + 0x91, + 0x82, + 0x3D, + 0x51, + 0xC9, + 0x4D, + 0xB7, + 0x81, + 0x5E, + 0xED, + 0xFB, + 0xF0, + 0x2D, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassReading2 + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x66, + 0x3A, + 0xB1, + 0xBB, + 0x51, + 0x12, + 0x4A, + 0xBE, + 0xDD, + 0xAD, + 0x47, + 0xFF, + 0x87, + 0xD2, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x49, + 0x15, + 0x8F, + 0xBC, + 0xE8, + 0x7E, + 0x4C, + 0xB0, + 0x09, + 0x4E, + 0x41, + 0xDF, + 0x13, + 0x70, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassReadingHeadingAccuracy + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x35, + 0x61, + 0xE7, + 0x11, + 0x89, + 0xF7, + 0x40, + 0x9E, + 0x16, + 0x6E, + 0xCC, + 0x7D, + 0xAE, + 0xC5, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassStatics + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x97, + 0xBC, + 0x9A, + 0xEC, + 0x56, + 0x25, + 0x4C, + 0xB5, + 0x4D, + 0x40, + 0xA6, + 0x8B, + 0xB5, + 0xB2, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompassStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x0E, + 0xCE, + 0x0A, + 0xAA, + 0x3B, + 0x90, + 0x49, + 0x9C, + 0xE4, + 0xBE, + 0x09, + 0x13, + 0x75, + 0x4E, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometer + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xA9, + 0xB9, + 0xFD, + 0xB1, + 0x84, + 0xA2, + 0x4C, + 0x97, + 0x63, + 0x9B, + 0x58, + 0x95, + 0x06, + 0xC7, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometer2 + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x24, + 0xDF, + 0x63, + 0xE8, + 0x8C, + 0xC3, + 0x41, + 0xAC, + 0x44, + 0x86, + 0x98, + 0x81, + 0x0B, + 0x55, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometer3 + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x88, + 0x6F, + 0x5D, + 0xBC, + 0x8F, + 0x84, + 0x44, + 0x91, + 0x4B, + 0x52, + 0x8A, + 0xDF, + 0xD9, + 0x47, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometer4 + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0xA6, + 0x28, + 0x06, + 0x4B, + 0x4C, + 0x96, + 0x50, + 0x94, + 0xE6, + 0xC3, + 0x56, + 0xDF, + 0x68, + 0xBE, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xB3, + 0x48, + 0x86, + 0x52, + 0x6E, + 0x59, + 0x52, + 0xBB, + 0xAD, + 0x24, + 0x2A, + 0x69, + 0xDC, + 0x38, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerDeviceId + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0xE9, + 0xE5, + 0x1E, + 0xA2, + 0x89, + 0x75, + 0x42, + 0x9E, + 0x95, + 0x71, + 0x26, + 0xF4, + 0x70, + 0x87, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerReading + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0xDE, + 0xD6, + 0xB3, + 0xE4, + 0x1E, + 0x6F, + 0x45, + 0x9D, + 0xE7, + 0xE2, + 0x49, + 0x3B, + 0x5C, + 0x8E, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerReading2 + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0xE1, + 0xAF, + 0x16, + 0x89, + 0x2B, + 0xBB, + 0x44, + 0x82, + 0x2B, + 0xD1, + 0xE1, + 0x55, + 0x6F, + 0xF0, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x18, + 0xDF, + 0x0F, + 0x9E, + 0x6F, + 0xCE, + 0x42, + 0x8D, + 0x58, + 0x38, + 0x8C, + 0x0A, + 0xB8, + 0x35, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerStatics + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0xE7, + 0xB6, + 0x83, + 0x9D, + 0xE4, + 0x39, + 0x4B, + 0x86, + 0xE6, + 0xCD, + 0x55, + 0x4B, + 0xE4, + 0xC5, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGyrometerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xF7, + 0x83, + 0xEF, + 0x00, + 0xD7, + 0x04, + 0x42, + 0x96, + 0x13, + 0x79, + 0xC6, + 0xB1, + 0x61, + 0xDF, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHingeAngleReading + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0x45, + 0xCD, + 0xA3, + 0xF1, + 0x1B, + 0x65, + 0x4F, + 0xA7, + 0x04, + 0xE2, + 0xDA, + 0x04, + 0xF1, + 0x82, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHingeAngleSensor + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xBE, + 0xD3, + 0xE9, + 0xDF, + 0xBF, + 0x7F, + 0x43, + 0x8C, + 0x29, + 0x88, + 0xC7, + 0x73, + 0x93, + 0xD3, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHingeAngleSensorReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x55, + 0xD9, + 0x24, + 0xD0, + 0xFA, + 0xB8, + 0x42, + 0xA8, + 0x54, + 0x78, + 0x92, + 0x30, + 0x49, + 0xA1, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHingeAngleSensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x39, + 0xB6, + 0xB7, + 0xB1, + 0xFB, + 0x23, + 0x41, + 0x89, + 0xCE, + 0x4E, + 0xA3, + 0x4E, + 0xB0, + 0xDF, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceFeatures + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x9F, + 0xB0, + 0xBD, + 0x44, + 0x32, + 0x7A, + 0x55, + 0xBD, + 0x29, + 0x8B, + 0x00, + 0x4F, + 0x59, + 0xF2, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceFeatures2 + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0xCD, + 0xA9, + 0x08, + 0x29, + 0xD9, + 0xC2, + 0x5E, + 0x81, + 0xE2, + 0x94, + 0x0B, + 0xAF, + 0xA0, + 0x89, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensor + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x78, + 0x16, + 0x21, + 0x89, + 0xE3, + 0xC3, + 0x5C, + 0x9A, + 0x97, + 0xCB, + 0x17, + 0xBE, + 0x10, + 0x08, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensor2 + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x37, + 0x83, + 0xF8, + 0xFE, + 0x65, + 0x1A, + 0x54, + 0xB9, + 0xD6, + 0x1E, + 0x47, + 0x4A, + 0x48, + 0x5E, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorExtension + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x6A, + 0x52, + 0x3E, + 0x1D, + 0x2D, + 0x43, + 0x5D, + 0x8A, + 0x8E, + 0xA4, + 0x34, + 0xA8, + 0x24, + 0x2E, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorReading + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0x3B, + 0x53, + 0x83, + 0x5A, + 0xA8, + 0x50, + 0x5D, + 0x8B, + 0xE4, + 0x60, + 0x72, + 0xD7, + 0x45, + 0xA3, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorReading2 + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0xE9, + 0xF0, + 0xC4, + 0xFF, + 0x3B, + 0xD6, + 0x53, + 0xA0, + 0xF8, + 0x51, + 0x4E, + 0xA3, + 0x70, + 0x5C, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x45, + 0xDC, + 0xA9, + 0x69, + 0xFD, + 0x5E, + 0x5C, + 0xAB, + 0x1F, + 0x94, + 0x22, + 0x04, + 0xEA, + 0xE2, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorReadingUpdate + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x9C, + 0x41, + 0x42, + 0x2F, + 0x6D, + 0xA0, + 0x55, + 0x9E, + 0x01, + 0xC9, + 0xCB, + 0xE7, + 0xB2, + 0xD6, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x98, + 0xE8, + 0x2A, + 0xA9, + 0xDB, + 0xB2, + 0x56, + 0x9F, + 0x27, + 0xEA, + 0xC6, + 0x9D, + 0x62, + 0x10, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSensorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x58, + 0xE3, + 0x5D, + 0x60, + 0xD2, + 0x87, + 0x5A, + 0x99, + 0x5E, + 0xAC, + 0xE9, + 0x13, + 0x26, + 0xE1, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSettings + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0xAF, + 0x4D, + 0xEF, + 0xB7, + 0x07, + 0xB6, + 0x5E, + 0x86, + 0xBB, + 0xB7, + 0xFF, + 0x49, + 0xCE, + 0x44, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSettings2 + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x70, + 0x6F, + 0xA2, + 0x96, + 0x86, + 0xB4, + 0x5E, + 0xB9, + 0xE1, + 0x26, + 0xA5, + 0x08, + 0xDE, + 0x1C, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHumanPresenceSettingsStatics + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x32, + 0x34, + 0x7F, + 0x10, + 0xE0, + 0xC4, + 0x52, + 0xAF, + 0x0C, + 0x04, + 0xA8, + 0xF1, + 0xE0, + 0x33, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometer + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0xCA, + 0x48, + 0x26, + 0x86, + 0x22, + 0x6F, + 0x40, + 0x91, + 0x61, + 0xF0, + 0xC4, + 0xBD, + 0x80, + 0x6E, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometer2 + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x33, + 0x9F, + 0x02, + 0xB2, + 0x28, + 0xF8, + 0x45, + 0xBB, + 0x16, + 0x61, + 0xE8, + 0x6A, + 0x7F, + 0xAE, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometer3 + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x50, + 0x09, + 0x3A, + 0x65, + 0xD7, + 0x84, + 0x43, + 0xA3, + 0xD7, + 0x02, + 0x83, + 0xF3, + 0xAB, + 0xE6, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometer4 + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x26, + 0x85, + 0x43, + 0xCA, + 0x8F, + 0x8E, + 0x54, + 0xBB, + 0xF5, + 0x5C, + 0x50, + 0x41, + 0x2B, + 0x6A, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x47, + 0x0A, + 0xF8, + 0xFE, + 0x7B, + 0x5E, + 0x54, + 0xBB, + 0x60, + 0xA0, + 0xEB, + 0xC4, + 0x7B, + 0xD2, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerDeviceId + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x19, + 0xE9, + 0x01, + 0xFF, + 0x41, + 0x06, + 0x44, + 0xAE, + 0x83, + 0x62, + 0x21, + 0x0F, + 0xF1, + 0x6F, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerReading + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0xF0, + 0x44, + 0x9F, + 0xF6, + 0xB6, + 0x7F, + 0x49, + 0xB1, + 0x27, + 0x1A, + 0x77, + 0x5E, + 0x50, + 0x14, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerReading2 + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x47, + 0x16, + 0x4F, + 0x0B, + 0xE9, + 0x58, + 0x46, + 0x89, + 0x15, + 0x01, + 0x03, + 0xE0, + 0x8A, + 0x80, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x1D, + 0xE9, + 0x4A, + 0xEB, + 0xE7, + 0x38, + 0x49, + 0x85, + 0x11, + 0xAE, + 0x0D, + 0x6B, + 0x44, + 0x04, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerReadingYawAccuracy + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0xE8, + 0x53, + 0xB4, + 0xE3, + 0x1F, + 0x86, + 0x49, + 0xA2, + 0x57, + 0xE6, + 0xEC, + 0xE2, + 0x72, + 0x39, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerStatics + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xC5, + 0x2E, + 0xF2, + 0x30, + 0x9C, + 0x3A, + 0x45, + 0x8B, + 0x49, + 0x3C, + 0x3E, + 0xEB, + 0x33, + 0xCB, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x97, + 0x3F, + 0x04, + 0x1E, + 0x6A, + 0x9C, + 0x49, + 0x86, + 0xE0, + 0x63, + 0x8C, + 0x1A, + 0x86, + 0x4B, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x42, + 0x9A, + 0xBD, + 0x1A, + 0xB9, + 0x29, + 0x48, + 0x93, + 0x92, + 0xAB, + 0xC0, + 0xB6, + 0xBD, + 0xF2, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInclinometerStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x96, + 0xBA, + 0xE8, + 0x85, + 0x6E, + 0x83, + 0x4A, + 0xAE, + 0xD0, + 0xD7, + 0xCD, + 0xCC, + 0x98, + 0x56, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensor + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x07, + 0x4C, + 0xF8, + 0x54, + 0x0C, + 0xAE, + 0x47, + 0x92, + 0x2E, + 0x78, + 0x9F, + 0x57, + 0xFB, + 0x03, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensor2 + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0x24, + 0x6B, + 0x48, + 0x4C, + 0xA9, + 0x90, + 0x40, + 0x8F, + 0x48, + 0x09, + 0xF7, + 0x82, + 0xA9, + 0xF7, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensor3 + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0xD0, + 0x76, + 0x48, + 0x4C, + 0x9F, + 0x72, + 0x5F, + 0xAD, + 0xBD, + 0xA3, + 0x47, + 0x1B, + 0x06, + 0x3C, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0xAF, + 0x60, + 0xB1, + 0x8F, + 0x87, + 0x92, + 0x54, + 0x9F, + 0x2C, + 0x33, + 0xDC, + 0x3A, + 0xE5, + 0x84, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorDeviceId + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x49, + 0xEE, + 0x7F, + 0xFB, + 0x0A, + 0x51, + 0x4F, + 0x87, + 0xF0, + 0x6C, + 0x26, + 0x37, + 0x5C, + 0xE9, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorReading + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x63, + 0xDF, + 0xFF, + 0x7C, + 0x22, + 0x2B, + 0x4D, + 0xB3, + 0x02, + 0xFC, + 0x01, + 0x42, + 0x48, + 0x5C, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorReading2 + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x21, + 0x51, + 0xB7, + 0xA3, + 0x44, + 0xC9, + 0x44, + 0x81, + 0x90, + 0x9E, + 0xF6, + 0xDE, + 0x0A, + 0x8A, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0xF4, + 0xA2, + 0xA3, + 0x8B, + 0x25, + 0x0C, + 0x42, + 0xB8, + 0xAB, + 0x8E, + 0xDD, + 0x60, + 0x1E, + 0xCF, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0x8C, + 0xDB, + 0x45, + 0xA8, + 0xC3, + 0x1E, + 0x47, + 0x9A, + 0x53, + 0x64, + 0x57, + 0xFA, + 0xD8, + 0x7C, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILightSensorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0xA6, + 0xC0, + 0x0E, + 0xC6, + 0xDD, + 0xAB, + 0x40, + 0xAC, + 0xE3, + 0xEC, + 0x33, + 0x59, + 0xD4, + 0x2C, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILockOnLeaveOptions + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0xF8, + 0x6B, + 0x3C, + 0xC1, + 0x04, + 0x29, + 0x58, + 0x8D, + 0x4E, + 0x70, + 0x52, + 0x17, + 0x55, + 0xB8, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometer + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x62, + 0x4F, + 0x48, + 0xC9, + 0xD3, + 0x11, + 0x41, + 0xB3, + 0xF6, + 0x2C, + 0xF1, + 0xFA, + 0xA4, + 0x18, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometer2 + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x6C, + 0x65, + 0xB4, + 0xF6, + 0x26, + 0x4B, + 0x44, + 0xA9, + 0xE2, + 0xA2, + 0x3F, + 0x96, + 0x6C, + 0xD3, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometer3 + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0xDB, + 0x93, + 0xBE, + 0x25, + 0xA6, + 0xEF, + 0x48, + 0xAC, + 0xF7, + 0xFA, + 0xC1, + 0x04, + 0x83, + 0x26, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometer4 + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x79, + 0xB1, + 0xDF, + 0x0F, + 0x3E, + 0x8F, + 0x50, + 0xB2, + 0x4B, + 0xF2, + 0xBB, + 0x75, + 0x01, + 0x5F, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xCB, + 0x77, + 0xD1, + 0x63, + 0x90, + 0xA5, + 0x5F, + 0xB5, + 0x96, + 0xB4, + 0x45, + 0xE9, + 0xDC, + 0x34, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerDeviceId + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x98, + 0xB4, + 0x58, + 0x4B, + 0x7E, + 0x4C, + 0x40, + 0x9F, + 0xC5, + 0x5D, + 0xE8, + 0xB4, + 0x0E, + 0xBA, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerReading + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xC4, + 0x2C, + 0x0C, + 0xFD, + 0xEB, + 0x5C, + 0x4E, + 0xBB, + 0x11, + 0xAF, + 0xC2, + 0x9B, + 0x3C, + 0xAE, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerReading2 + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x5C, + 0xC9, + 0xD4, + 0xD9, + 0x61, + 0x4B, + 0x40, + 0xA3, + 0x28, + 0x06, + 0x6F, + 0x17, + 0x7A, + 0x14, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0xE8, + 0xEA, + 0x17, + 0xB9, + 0x2E, + 0xE7, + 0x4E, + 0x8A, + 0xD0, + 0x31, + 0x27, + 0x53, + 0x7D, + 0x94, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerStatics + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x64, + 0x3C, + 0x85, + 0x98, + 0x06, + 0xDA, + 0x4D, + 0xA6, + 0xDF, + 0x9C, + 0xB9, + 0xCC, + 0x4A, + 0xB4, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMagnetometerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x19, + 0x08, + 0x2C, + 0xC6, + 0xFF, + 0x89, + 0x4F, + 0xA0, + 0x6F, + 0x18, + 0xFA, + 0x10, + 0x79, + 0x29, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensor + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x46, + 0x35, + 0x5E, + 0x6B, + 0xCF, + 0x63, + 0x4C, + 0xAB, + 0xD8, + 0x10, + 0x25, + 0x2B, + 0x0B, + 0xF6, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensor2 + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x4C, + 0x92, + 0x0D, + 0x1F, + 0x2F, + 0xC9, + 0x49, + 0x80, + 0x42, + 0x4A, + 0x18, + 0x13, + 0xD6, + 0x77, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensor3 + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x57, + 0xCE, + 0x2C, + 0x6B, + 0x64, + 0xC5, + 0x48, + 0xB7, + 0xEE, + 0x44, + 0xFD, + 0xC4, + 0xC6, + 0xAA, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorDeviceId + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xB6, + 0x69, + 0x5A, + 0x29, + 0x4C, + 0xEC, + 0x49, + 0xB2, + 0x8F, + 0xEA, + 0x1D, + 0x11, + 0x7B, + 0x66, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorReading + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xC9, + 0x56, + 0x47, + 0x95, + 0x65, + 0x97, + 0x48, + 0xBC, + 0xC6, + 0xD5, + 0x37, + 0xEE, + 0x75, + 0x75, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorReading2 + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0x6E, + 0x57, + 0x00, + 0xF8, + 0x49, + 0x05, + 0x4C, + 0x9E, + 0x07, + 0x24, + 0xFA, + 0xC7, + 0x94, + 0x08, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x11, + 0x2C, + 0x01, + 0xBA, + 0xC3, + 0xBC, + 0x46, + 0xAE, + 0x65, + 0x7A, + 0x98, + 0x99, + 0x6C, + 0xBF, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorReadingYawAccuracy + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x98, + 0xAC, + 0xD1, + 0x5A, + 0x3F, + 0xA2, + 0x49, + 0xBC, + 0x7B, + 0x11, + 0x80, + 0xBC, + 0x38, + 0xCD, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x87, + 0xEF, + 0x10, + 0x4C, + 0xFB, + 0x8A, + 0x42, + 0x89, + 0x8B, + 0x27, + 0x65, + 0xE4, + 0x09, + 0xE6, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x0D, + 0xDA, + 0x59, + 0x0A, + 0xD4, + 0x71, + 0x4C, + 0x92, + 0x76, + 0x8A, + 0x27, + 0x2A, + 0x0A, + 0x66, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0xE9, + 0x2C, + 0xD8, + 0x77, + 0x27, + 0xFF, + 0x40, + 0x9F, + 0x59, + 0xD6, + 0x54, + 0xB0, + 0x85, + 0xF1, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOrientationSensorStatics4 + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0xEB, + 0x7F, + 0xA6, + 0x85, + 0x2C, + 0x28, + 0x4B, + 0xA0, + 0xFE, + 0x58, + 0xC4, + 0xB2, + 0x04, + 0x95, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometer + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x01, + 0x1E, + 0x9A, + 0x98, + 0x3D, + 0xF8, + 0x45, + 0x89, + 0x20, + 0x8E, + 0x4E, + 0xCA, + 0xCA, + 0x5F, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometer2 + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x06, + 0xA4, + 0xE5, + 0x81, + 0x2B, + 0xDD, + 0x4A, + 0xB2, + 0xFF, + 0x77, + 0xAB, + 0x6C, + 0x98, + 0xBA, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometerDataThresholdFactory + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x8F, + 0xAD, + 0xCB, + 0x54, + 0x7A, + 0x6B, + 0x46, + 0x90, + 0x10, + 0x77, + 0xA1, + 0x62, + 0xFC, + 0xA5, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometerReading + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0xDC, + 0x45, + 0x22, + 0xE1, + 0xA8, + 0x2F, + 0x43, + 0x89, + 0x6A, + 0xBE, + 0x0D, + 0xD9, + 0xB0, + 0x2D, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometerReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0xE4, + 0x55, + 0xF8, + 0xBC, + 0xAB, + 0x56, + 0x44, + 0x86, + 0xA8, + 0x25, + 0xCF, + 0x2B, + 0x33, + 0x37, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometerStatics + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x0A, + 0x98, + 0x82, + 0x83, + 0x40, + 0xFB, + 0x4D, + 0xB4, + 0x11, + 0x93, + 0x8E, + 0xA0, + 0xF4, + 0xB9, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPedometerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0xC6, + 0xF5, + 0x79, + 0x0E, + 0xCE, + 0x33, + 0x41, + 0xB4, + 0x7E, + 0x86, + 0x27, + 0xEA, + 0x72, + 0xF6, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProximitySensor + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x76, + 0xC0, + 0x54, + 0xFB, + 0xEC, + 0x44, + 0x49, + 0xB9, + 0x28, + 0x74, + 0xFC, + 0x50, + 0x4D, + 0x47, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProximitySensorDataThresholdFactory + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0xC1, + 0x5A, + 0x90, + 0x27, + 0x6D, + 0xD3, + 0x4A, + 0x9D, + 0xB5, + 0x64, + 0x67, + 0xF2, + 0xA5, + 0xAD, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProximitySensorReading + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0x8D, + 0x22, + 0x71, + 0x2D, + 0x13, + 0x5F, + 0x4D, + 0x8F, + 0xF9, + 0x2F, + 0x0D, + 0xB8, + 0x75, + 0x1C, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProximitySensorReadingChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0xF3, + 0xC2, + 0xCF, + 0xE8, + 0xC3, + 0xFD, + 0x40, + 0x8C, + 0xC3, + 0x67, + 0xE2, + 0x89, + 0x00, + 0x49, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProximitySensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x49, + 0x66, + 0x18, + 0x29, + 0x69, + 0x62, + 0x57, + 0x4E, + 0xA5, + 0xAD, + 0x82, + 0xBE, + 0x80, + 0x81, + 0x33, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProximitySensorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x73, + 0xF4, + 0xCB, + 0xCA, + 0xE9, + 0x2F, + 0x42, + 0xAD, + 0x67, + 0x4C, + 0x3D, + 0x25, + 0xDF, + 0x35, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISensorDataThreshold + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0xEC, + 0xDA, + 0x54, + 0x4B, + 0xFE, + 0x07, + 0x4E, + 0xB2, + 0x60, + 0x3A, + 0x4C, + 0xDF, + 0xBE, + 0x39, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISensorDataThresholdTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0xF1, + 0x06, + 0x91, + 0x8D, + 0xE8, + 0xB1, + 0x48, + 0xBC, + 0x90, + 0x61, + 0x9C, + 0x7B, + 0x34, + 0x93, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISensorQuaternion + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0xC8, + 0xC5, + 0xC9, + 0x1C, + 0xC7, + 0xE7, + 0x46, + 0x9D, + 0xA3, + 0x36, + 0xA1, + 0x93, + 0xB2, + 0x32, + 0xBC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISensorRotationMatrix + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x5A, + 0x3D, + 0x0A, + 0xF4, + 0x22, + 0x92, + 0x43, + 0x95, + 0x38, + 0x65, + 0xD0, + 0xBD, + 0x06, + 0x4A, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleOrientationSensor + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x38, + 0xF5, + 0x5F, + 0x4A, + 0x21, + 0xEE, + 0x4D, + 0xA3, + 0xF9, + 0x61, + 0x6F, + 0x1A, + 0xB0, + 0x6F, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleOrientationSensor2 + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0xA7, + 0x77, + 0xA2, + 0x70, + 0x88, + 0x3E, + 0x45, + 0x8B, + 0xD6, + 0xB8, + 0xF5, + 0xD8, + 0xD7, + 0x94, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleOrientationSensorDeviceId + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x0A, + 0xC0, + 0xFB, + 0x76, + 0x3B, + 0xF6, + 0x41, + 0x80, + 0x91, + 0x30, + 0xEF, + 0xE6, + 0x46, + 0xD3, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleOrientationSensorOrientationChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0xC6, + 0xD5, + 0xBC, + 0xD4, + 0x23, + 0x4C, + 0x4B, + 0xA2, + 0x2E, + 0xBA, + 0x81, + 0xAD, + 0xE0, + 0xC6, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleOrientationSensorStatics + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x06, + 0xED, + 0x72, + 0xAA, + 0x70, + 0xC6, + 0x40, + 0x9B, + 0x1B, + 0x34, + 0x33, + 0xF7, + 0x45, + 0x9B, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISimpleOrientationSensorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x9C, + 0x8F, + 0x84, + 0x38, + 0xB1, + 0x11, + 0x4E, + 0x89, + 0x10, + 0xA2, + 0xA2, + 0xA3, + 0xB5, + 0x6D, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWakeOnApproachOptions + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0x7A, + 0xB8, + 0xF0, + 0x1F, + 0x7E, + 0xA5, + 0x5E, + 0x81, + 0x4D, + 0x6B, + 0x7E, + 0x07, + 0xDE, + 0xFC, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.smartcards/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.smartcards/IID.Manual.cs new file mode 100644 index 0000000000..0cb4ae31d0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.smartcards/IID.Manual.cs @@ -0,0 +1,1471 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.smartcards.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ISmartCardPinResetHandler + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x5E, + 0x8D, + 0x13, + 0xBC, + 0xF3, + 0x5C, + 0x4A, + 0xB4, + 0x1D, + 0x4B, + 0x4E, + 0xF6, + 0x84, + 0xE2, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICardAddedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0xEF, + 0xBB, + 0x18, + 0x8B, + 0xF1, + 0xD3, + 0x4D, + 0xB1, + 0x18, + 0xDF, + 0xB2, + 0xC8, + 0xE2, + 0x3C, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICardRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x1A, + 0x33, + 0x15, + 0xD7, + 0x22, + 0x45, + 0x49, + 0xAF, + 0xC9, + 0x03, + 0xB4, + 0x6F, + 0x42, + 0xA6, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownSmartCardAppletIds + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0xD8, + 0x04, + 0x7B, + 0xB4, + 0x95, + 0x88, + 0x4C, + 0x8C, + 0xEA, + 0x41, + 0x1E, + 0x55, + 0x51, + 0x1E, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCard + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x88, + 0x71, + 0x1B, + 0x34, + 0x64, + 0xF4, + 0x43, + 0xB5, + 0x5A, + 0x6A, + 0x29, + 0x62, + 0x38, + 0x70, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAppletIdGroup + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0x65, + 0xB1, + 0x7D, + 0x64, + 0x62, + 0xF4, + 0x56, + 0x5E, + 0x03, + 0xC8, + 0x63, + 0x85, + 0x39, + 0x5E, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAppletIdGroup2 + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0xF9, + 0x0E, + 0x6B, + 0x56, + 0x99, + 0x62, + 0x4A, + 0x8D, + 0x4E, + 0xD3, + 0x7A, + 0x68, + 0xEB, + 0xC3, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAppletIdGroupFactory + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0xEB, + 0x05, + 0x91, + 0x65, + 0x4A, + 0x41, + 0x4E, + 0x80, + 0x61, + 0xCB, + 0xE8, + 0x3F, + 0x36, + 0x95, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAppletIdGroupRegistration + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x08, + 0x12, + 0xDF, + 0xBB, + 0x31, + 0x96, + 0x55, + 0x43, + 0xB1, + 0x6D, + 0x69, + 0xA0, + 0x25, + 0x7B, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAppletIdGroupRegistration2 + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x08, + 0x55, + 0x5F, + 0xA7, + 0x98, + 0x2E, + 0x4F, + 0x91, + 0xD9, + 0x6C, + 0xFC, + 0xCE, + 0xDA, + 0x40, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAppletIdGroupStatics + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x99, + 0x28, + 0xAB, + 0x6C, + 0xE7, + 0xCF, + 0x45, + 0xBF, + 0x1D, + 0x90, + 0xEA, + 0xA6, + 0x20, + 0x59, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAutomaticResponseApdu + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0x2B, + 0x15, + 0x52, + 0x3E, + 0xC6, + 0x31, + 0x45, + 0xA8, + 0x57, + 0xD7, + 0x56, + 0xD9, + 0x9B, + 0x98, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAutomaticResponseApdu2 + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xBB, + 0xAE, + 0x44, + 0x9D, + 0x55, + 0x31, + 0x45, + 0x4E, + 0x51, + 0x89, + 0xDB, + 0x6F, + 0xA8, + 0xA5, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAutomaticResponseApdu3 + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xDA, + 0x43, + 0xBF, + 0x76, + 0x65, + 0x92, + 0x43, + 0x93, + 0x67, + 0xFE, + 0x3B, + 0xC9, + 0xE2, + 0xD4, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardAutomaticResponseApduFactory + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0xA2, + 0x7E, + 0xE9, + 0x2C, + 0xD0, + 0x55, + 0x4C, + 0xB0, + 0x2A, + 0x8C, + 0xFF, + 0x7F, + 0xA9, + 0xF0, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardChallengeContext + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x53, + 0x2A, + 0x19, + 0xC4, + 0xC9, + 0x47, + 0x49, + 0x81, + 0xCC, + 0x44, + 0x79, + 0x4A, + 0x61, + 0xEF, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardConnect + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x87, + 0xDF, + 0x2F, + 0x8D, + 0x02, + 0x1E, + 0x49, + 0xA0, + 0x58, + 0x33, + 0x82, + 0xC3, + 0x98, + 0x6F, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardConnection + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0x99, + 0xDB, + 0x7E, + 0x1A, + 0xA8, + 0xBC, + 0x47, + 0xA6, + 0x49, + 0x15, + 0x6B, + 0xE6, + 0xB7, + 0xF2, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGenerator + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x58, + 0x9F, + 0xE3, + 0xD3, + 0xED, + 0x49, + 0x4E, + 0xB5, + 0x94, + 0x0F, + 0xF5, + 0xE4, + 0xD0, + 0xC7, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGenerator2 + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0xAA, + 0x16, + 0x71, + 0x6D, + 0x5D, + 0x4A, + 0x4B, + 0x96, + 0xA3, + 0xEF, + 0xA4, + 0x7D, + 0x2A, + 0x7E, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGeneratorStatics + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x39, + 0x93, + 0x09, + 0x9C, + 0xCB, + 0x15, + 0x40, + 0x96, + 0x7D, + 0x52, + 0x34, + 0xF3, + 0xB0, + 0x29, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGeneratorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0xF5, + 0xBD, + 0x09, + 0xBD, + 0xB4, + 0x23, + 0x4E, + 0xA5, + 0x88, + 0x74, + 0x46, + 0x92, + 0x04, + 0xC1, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xE0, + 0x98, + 0x27, + 0x87, + 0xD6, + 0x92, + 0x4C, + 0x86, + 0xC6, + 0x39, + 0x9E, + 0x9A, + 0x0E, + 0xCB, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x8A, + 0x6A, + 0x4E, + 0x73, + 0x97, + 0xC4, + 0x46, + 0xA3, + 0x2F, + 0xB1, + 0xE5, + 0x43, + 0x15, + 0x9E, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xE8, + 0x7C, + 0x8C, + 0xE7, + 0xA7, + 0x9D, + 0x48, + 0xB9, + 0xD6, + 0x36, + 0x80, + 0x61, + 0x51, + 0x50, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramMaterialCharacteristics + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0xC5, + 0x9A, + 0xFC, + 0xD7, + 0xC1, + 0x53, + 0x41, + 0x92, + 0x3B, + 0xA2, + 0xD4, + 0x3C, + 0x6C, + 0x8D, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramMaterialPackageCharacteristics + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x8E, + 0xB5, + 0xFF, + 0x92, + 0x06, + 0x47, + 0x4C, + 0x93, + 0xCF, + 0x34, + 0xD9, + 0x1F, + 0x9D, + 0xCD, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramMaterialPossessionProof + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0xAB, + 0xB9, + 0xE5, + 0x41, + 0xA1, + 0x35, + 0x41, + 0x9A, + 0xDD, + 0xB0, + 0xD2, + 0xE3, + 0xAA, + 0x1F, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramPlacementStep + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x03, + 0x7B, + 0x94, + 0x42, + 0x83, + 0x92, + 0x47, + 0xA2, + 0xE5, + 0x92, + 0x56, + 0x36, + 0x37, + 0x8A, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramStorageKeyCharacteristics + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x54, + 0x52, + 0x85, + 0x57, + 0x44, + 0x25, + 0x48, + 0xB4, + 0x64, + 0x63, + 0x54, + 0x71, + 0xA3, + 0x9F, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramStorageKeyInfo + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xF0, + 0xB0, + 0x77, + 0x97, + 0xB0, + 0x61, + 0x4F, + 0xA2, + 0x6A, + 0x95, + 0x61, + 0x63, + 0x9C, + 0x9C, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardCryptogramStorageKeyInfo2 + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x40, + 0x04, + 0x00, + 0xFD, + 0xF7, + 0x7D, + 0x41, + 0x89, + 0xE1, + 0xFB, + 0xB0, + 0x38, + 0x2A, + 0xDC, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulator + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x06, + 0xB9, + 0xDF, + 0x5E, + 0x87, + 0xE5, + 0x47, + 0x80, + 0x77, + 0xE8, + 0xBF, + 0xF1, + 0xB1, + 0xC6, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulator2 + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xC0, + 0x3F, + 0xFE, + 0x29, + 0x85, + 0x1A, + 0x41, + 0x80, + 0x7B, + 0x48, + 0xED, + 0xC2, + 0xA0, + 0xAB, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorApduReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x15, + 0x5D, + 0xD5, + 0xD2, + 0x69, + 0x33, + 0x53, + 0x5B, + 0x5F, + 0xF8, + 0xC0, + 0xD6, + 0xE9, + 0xF0, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorApduReceivedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x3D, + 0xF9, + 0x8B, + 0xE1, + 0x22, + 0x38, + 0x42, + 0x86, + 0x10, + 0x94, + 0xCE, + 0x4A, + 0x96, + 0x54, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorApduReceivedEventArgsWithCryptograms + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xBA, + 0x50, + 0xD5, + 0xBF, + 0xB7, + 0x29, + 0x4E, + 0x92, + 0x94, + 0x0C, + 0x4A, + 0xC3, + 0xC9, + 0x41, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorConnectionDeactivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0xD8, + 0x86, + 0x21, + 0xEB, + 0xC5, + 0x62, + 0x52, + 0x43, + 0xDF, + 0x62, + 0xA0, + 0xA1, + 0xB5, + 0x55, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorConnectionProperties + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0xA5, + 0x2C, + 0x4E, + 0x69, + 0xF9, + 0x7D, + 0x50, + 0x6C, + 0xF9, + 0x34, + 0xE2, + 0xD1, + 0x8D, + 0xF3, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorStatics + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xFC, + 0x9B, + 0x7A, + 0xD3, + 0xC4, + 0x4F, + 0x49, + 0xB8, + 0xA2, + 0x62, + 0x15, + 0xD8, + 0x1E, + 0x85, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x9F, + 0xAE, + 0x69, + 0x75, + 0xB7, + 0x8B, + 0x48, + 0x84, + 0x36, + 0x6C, + 0x1E, + 0x28, + 0xED, + 0x73, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardEmulatorStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x14, + 0xEA, + 0x59, + 0x09, + 0x9F, + 0xF5, + 0x43, + 0x85, + 0x65, + 0xCF, + 0xA8, + 0x14, + 0x8E, + 0x4C, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardPinPolicy + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0xE1, + 0x3C, + 0x18, + 0xB6, + 0x4D, + 0x41, + 0x48, + 0xAC, + 0x9E, + 0x2A, + 0xC1, + 0xF3, + 0x9B, + 0x73, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardPinResetDeferral + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x4A, + 0xC9, + 0x18, + 0x05, + 0x78, + 0x04, + 0x40, + 0x85, + 0xE4, + 0xBB, + 0xEF, + 0xAC, + 0x8F, + 0x68, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardPinResetRequest + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x3C, + 0xFE, + 0x12, + 0xB9, + 0x5F, + 0x8E, + 0x4E, + 0x9F, + 0xF6, + 0x61, + 0xF4, + 0x75, + 0x12, + 0x4F, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardProvisioning + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0xED, + 0xEE, + 0x19, + 0xAB, + 0x1F, + 0x7C, + 0x47, + 0xB7, + 0x12, + 0x1A, + 0x2C, + 0x5A, + 0xF1, + 0xFD, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardProvisioning2 + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x28, + 0xFD, + 0x10, + 0x79, + 0x3F, + 0x66, + 0x4B, + 0x9B, + 0x7C, + 0x11, + 0xC1, + 0x49, + 0xB7, + 0xD0, + 0xBC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardProvisioningStatics + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x28, + 0x88, + 0x13, + 0x13, + 0x0D, + 0x70, + 0x4E, + 0x97, + 0x35, + 0x51, + 0xDA, + 0xEC, + 0xA5, + 0x25, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardProvisioningStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0xC6, + 0x47, + 0x34, + 0xA0, + 0xC9, + 0xD6, + 0x4B, + 0xB5, + 0x0D, + 0x25, + 0x1F, + 0x4E, + 0x8D, + 0x3A, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardReader + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xB4, + 0x74, + 0x10, + 0xC2, + 0x54, + 0xF0, + 0x4D, + 0x81, + 0x7A, + 0x14, + 0xC1, + 0x43, + 0x78, + 0xF0, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardReaderStatics + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x04, + 0x3C, + 0x10, + 0xCA, + 0xA1, + 0xF2, + 0x48, + 0xA2, + 0x81, + 0x5B, + 0x6F, + 0x66, + 0x9A, + 0xF1, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xF1, + 0x9B, + 0x5F, + 0xEF, + 0x39, + 0x2B, + 0x4F, + 0xB4, + 0x4F, + 0x0A, + 0x91, + 0x55, + 0xB1, + 0x77, + 0xBC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardTriggerDetails2 + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xC5, + 0x45, + 0x29, + 0x75, + 0x89, + 0x51, + 0x4A, + 0x9E, + 0x1A, + 0x5F, + 0x8A, + 0x76, + 0xEE, + 0x51, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmartCardTriggerDetails3 + { + get + { + ReadOnlySpan data = + [ + 0x7D, + 0xC2, + 0xE2, + 0xB3, + 0xC6, + 0x18, + 0xA8, + 0x4B, + 0x83, + 0x76, + 0xEF, + 0x03, + 0xD4, + 0x91, + 0x26, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.sms/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.sms/IID.Manual.cs new file mode 100644 index 0000000000..113adeb9c8 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.sms/IID.Manual.cs @@ -0,0 +1,823 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.sms.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ISmsDeviceStatusChangedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x11, + 0x2B, + 0x98, + 0xD7, + 0x3D, + 0x18, + 0x46, + 0xAF, + 0x89, + 0x0C, + 0x27, + 0x2D, + 0x5D, + 0x06, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageReceivedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0xD4, + 0x7A, + 0x0B, + 0x2D, + 0xEC, + 0xCE, + 0x47, + 0xA2, + 0x53, + 0x73, + 0x2B, + 0xEE, + 0xEB, + 0xCA, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsAppMessage + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0x84, + 0xBB, + 0xE8, + 0xA0, + 0xD3, + 0x0A, + 0x4A, + 0x86, + 0xD7, + 0x29, + 0x10, + 0x33, + 0xA8, + 0xCF, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsBinaryMessage + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0xE8, + 0xF4, + 0x5B, + 0x53, + 0x3B, + 0x6E, + 0x4C, + 0xB6, + 0x1A, + 0xD8, + 0x6A, + 0x63, + 0x75, + 0x56, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsBroadcastMessage + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xBB, + 0xAE, + 0x75, + 0xB7, + 0xE4, + 0x74, + 0x48, + 0xA0, + 0x9C, + 0x29, + 0x56, + 0xE5, + 0x92, + 0xF9, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsDevice + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x91, + 0x17, + 0x09, + 0x2B, + 0x87, + 0xEC, + 0x4E, + 0x9C, + 0x72, + 0xAB, + 0x11, + 0x62, + 0x7B, + 0x34, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsDevice2 + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x5C, + 0x8A, + 0xBD, + 0x22, + 0xE5, + 0xCB, + 0x46, + 0xB8, + 0xD5, + 0x9E, + 0xAD, + 0x30, + 0xFB, + 0x6C, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsDevice2Statics + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x83, + 0xC7, + 0x65, + 0x31, + 0x10, + 0x1E, + 0x49, + 0x8F, + 0xB6, + 0xEF, + 0x99, + 0x91, + 0xAF, + 0xE3, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsDeviceMessageStore + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0xF2, + 0x89, + 0x98, + 0x88, + 0xF1, + 0x27, + 0x44, + 0x8D, + 0x54, + 0xCE, + 0x0C, + 0x24, + 0x23, + 0xC5, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x07, + 0x8D, + 0xF8, + 0x15, + 0xD8, + 0xD1, + 0x4D, + 0xA2, + 0x34, + 0x45, + 0x20, + 0xCE, + 0x46, + 0x04, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsDeviceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x1C, + 0xA1, + 0x2C, + 0x73, + 0x08, + 0xAF, + 0x4C, + 0x8A, + 0x7D, + 0xBD, + 0x47, + 0x1E, + 0x85, + 0x86, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsFilterRule + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x2F, + 0xE3, + 0x40, + 0x49, + 0xB0, + 0xBC, + 0x4F, + 0xAF, + 0xE9, + 0xE2, + 0xA6, + 0x10, + 0xEF, + 0xF5, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsFilterRuleFactory + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x65, + 0xC3, + 0x00, + 0x96, + 0x62, + 0x29, + 0x4F, + 0x9A, + 0xAD, + 0x89, + 0x20, + 0xCE, + 0xBA, + 0x3C, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsFilterRules + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0xEA, + 0x47, + 0x4E, + 0xCD, + 0x79, + 0x81, + 0x48, + 0x98, + 0x94, + 0x55, + 0xA4, + 0x13, + 0x5B, + 0x23, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsFilterRulesFactory + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x24, + 0x99, + 0xA0, + 0x2E, + 0x6E, + 0x30, + 0x45, + 0x9F, + 0xDE, + 0x46, + 0x5D, + 0x02, + 0xEE, + 0xD0, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessage + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x5E, + 0x3C, + 0xED, + 0x84, + 0x69, + 0x07, + 0x4B, + 0x81, + 0x1D, + 0x8D, + 0x59, + 0x06, + 0xED, + 0x3C, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageBase + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0xFE, + 0xF0, + 0x2C, + 0x50, + 0xFE, + 0xC6, + 0x4F, + 0xAA, + 0x88, + 0x4C, + 0xCF, + 0xE2, + 0x7A, + 0x29, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0x0A, + 0xE8, + 0x08, + 0xE5, + 0xB8, + 0xC1, + 0x41, + 0xA3, + 0xD8, + 0xD3, + 0xAB, + 0xFA, + 0xE2, + 0x26, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageReceivedTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0xCB, + 0xCF, + 0x2B, + 0x57, + 0x26, + 0x28, + 0x41, + 0xAD, + 0x5F, + 0xE3, + 0x87, + 0x71, + 0x32, + 0xBD, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageRegistration + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x50, + 0x20, + 0x17, + 0x4F, + 0xF3, + 0x6B, + 0x44, + 0x83, + 0xB3, + 0x0F, + 0xF1, + 0x99, + 0x23, + 0xB4, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsMessageRegistrationStatics + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x54, + 0xA0, + 0x63, + 0x98, + 0x28, + 0x78, + 0x47, + 0xA0, + 0x3C, + 0x6F, + 0x99, + 0x49, + 0x07, + 0xD6, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsReceivedEventDetails + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x0F, + 0xB5, + 0x5B, + 0x6D, + 0xE4, + 0x82, + 0x4C, + 0x84, + 0x7D, + 0x5A, + 0x03, + 0x04, + 0xC1, + 0xD5, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsReceivedEventDetails2 + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x5C, + 0xE0, + 0x40, + 0xB4, + 0xA7, + 0x71, + 0x47, + 0x9A, + 0xE7, + 0x0B, + 0x5F, + 0xFB, + 0x12, + 0xC0, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsSendMessageResult + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x9A, + 0x13, + 0xDB, + 0xC9, + 0x78, + 0xEB, + 0x4F, + 0x96, + 0x22, + 0x45, + 0x23, + 0x28, + 0x08, + 0x8D, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsStatusMessage + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x83, + 0xD2, + 0xE6, + 0x0B, + 0xB7, + 0x77, + 0x46, + 0x93, + 0x79, + 0xC9, + 0x78, + 0x3F, + 0xDF, + 0xF8, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsTextMessage + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x90, + 0x1C, + 0xD6, + 0x95, + 0xA4, + 0x7F, + 0x48, + 0x9A, + 0x6F, + 0x97, + 0x15, + 0x48, + 0xC5, + 0xBC, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsTextMessage2 + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xD8, + 0xA0, + 0x22, + 0x55, + 0x45, + 0x55, + 0x47, + 0xB5, + 0xA1, + 0xE7, + 0xFD, + 0x84, + 0x95, + 0x5F, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsTextMessageStatics + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xC5, + 0x68, + 0x7F, + 0xCC, + 0x3C, + 0xA3, + 0x47, + 0x8C, + 0x55, + 0x38, + 0x0D, + 0x3B, + 0x01, + 0x08, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsVoicemailMessage + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0xA0, + 0x1A, + 0x27, + 0xB1, + 0x95, + 0xFF, + 0x44, + 0xBC, + 0xB8, + 0xB8, + 0xFD, + 0xD7, + 0xE0, + 0x8B, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISmsWapMessage + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x77, + 0x93, + 0xCD, + 0x55, + 0x7A, + 0x3B, + 0x4D, + 0x90, + 0x21, + 0xF2, + 0x2E, + 0x02, + 0x2D, + 0x09, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.spi.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.spi.provider/IID.Manual.cs new file mode 100644 index 0000000000..fe7a46bb30 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.spi.provider/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.spi.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IProviderSpiConnectionSettings + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x45, + 0x03, + 0xF6, + 0x42, + 0xA5, + 0xC0, + 0x4E, + 0x96, + 0x01, + 0xA4, + 0xDD, + 0x68, + 0xF8, + 0x69, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProviderSpiConnectionSettingsFactory + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x6B, + 0x45, + 0x66, + 0x79, + 0x0C, + 0xE3, + 0x43, + 0x9F, + 0x3C, + 0xE5, + 0x97, + 0x80, + 0xAC, + 0x18, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiControllerProvider + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x65, + 0x68, + 0xC1, + 0xCE, + 0x02, + 0x26, + 0x42, + 0xA3, + 0x85, + 0x4F, + 0x11, + 0xFB, + 0x04, + 0xB4, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiDeviceProvider + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x34, + 0x1C, + 0x0D, + 0x4B, + 0x30, + 0x5C, + 0x40, + 0xB4, + 0xF7, + 0xF5, + 0xAB, + 0x10, + 0x74, + 0x46, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiProvider + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x61, + 0xB4, + 0x96, + 0xD4, + 0x77, + 0xCE, + 0x48, + 0xAA, + 0xA0, + 0x75, + 0x71, + 0x5A, + 0x83, + 0x62, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices.spi/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices.spi/IID.Manual.cs new file mode 100644 index 0000000000..f7841ab3ea --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices.spi/IID.Manual.cs @@ -0,0 +1,202 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.spi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ISpiBusInfo + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x44, + 0x29, + 0x99, + 0xF2, + 0x54, + 0xC6, + 0x48, + 0xB9, + 0x52, + 0x9C, + 0x32, + 0xFC, + 0x02, + 0xC6, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiConnectionSettings + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0xA3, + 0x83, + 0x52, + 0x35, + 0xF9, + 0x9F, + 0x4B, + 0xA7, + 0xA7, + 0x3A, + 0x78, + 0x90, + 0xAF, + 0xA5, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiConnectionSettingsFactory + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x08, + 0x99, + 0xFF, + 0xC4, + 0x10, + 0xB7, + 0x44, + 0x9F, + 0xEA, + 0xA7, + 0x48, + 0xB5, + 0xA4, + 0x6F, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiController + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xC8, + 0xD3, + 0xA8, + 0x95, + 0x98, + 0x59, + 0x41, + 0xA9, + 0x34, + 0x87, + 0x41, + 0xF1, + 0xEE, + 0x6D, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x29, + 0x52, + 0x0D, + 0x8B, + 0x13, + 0x48, + 0x4E, + 0xB9, + 0x64, + 0x4F, + 0x2F, + 0x79, + 0xB9, + 0xC5, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiDevice + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x35, + 0xD5, + 0x05, + 0xB6, + 0x11, + 0x39, + 0x4D, + 0x84, + 0xD5, + 0x95, + 0xDF, + 0xB4, + 0xC9, + 0xF2, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpiDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0xE5, + 0x78, + 0xA2, + 0x20, + 0x57, + 0x3F, + 0x4D, + 0xBD, + 0x93, + 0x56, + 0xF5, + 0xFF, + 0x5A, + 0x58, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.devices/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.devices/IID.Manual.cs new file mode 100644 index 0000000000..095d1abe25 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.devices/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.devices.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ILowLevelDevicesAggregateProvider + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x56, + 0x3E, + 0xA7, + 0xC1, + 0xAA, + 0xC7, + 0x4E, + 0xA8, + 0x52, + 0x47, + 0x9F, + 0x70, + 0x60, + 0xD0, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLevelDevicesAggregateProviderFactory + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0xAA, + 0xC4, + 0x9A, + 0x73, + 0x34, + 0x5E, + 0x46, + 0x96, + 0xD5, + 0x36, + 0x28, + 0x1A, + 0x2C, + 0x57, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLevelDevicesController + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x3D, + 0xC2, + 0x2E, + 0x9B, + 0x17, + 0xDE, + 0x45, + 0x9B, + 0x39, + 0x3A, + 0xE0, + 0x25, + 0x27, + 0xDE, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLevelDevicesControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x92, + 0x3E, + 0x09, + 0xCB, + 0xFC, + 0x94, + 0x43, + 0xA6, + 0x97, + 0x19, + 0xDE, + 0x63, + 0x7C, + 0x2D, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionProgressHandler`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionProgressHandler`1.Manual.cs new file mode 100644 index 0000000000..bd21e05719 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionProgressHandler`1.Manual.cs @@ -0,0 +1,103 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("6D844858-0CFF-4590-AE89-95A5A5C8B4B8")] +public unsafe partial struct IAsyncActionProgressHandler + where TProgress : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IAsyncActionProgressHandler*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IAsyncActionWithProgress *")] + IAsyncActionWithProgress* asyncInfo, + [NativeTypeName("TProgress_abi")] TProgress progressInfo + ) + { + return ( + (delegate* unmanaged< + IAsyncActionProgressHandler*, + IAsyncActionWithProgress*, + TProgress, + int>)(lpVtbl[3]) + )( + (IAsyncActionProgressHandler*)Unsafe.AsPointer(ref this), + asyncInfo, + progressInfo + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IAsyncActionWithProgress *")] + Ref> asyncInfo, + [NativeTypeName("TProgress_abi")] TProgress progressInfo + ) + { + fixed (IAsyncActionWithProgress* __dsl_asyncInfo = asyncInfo) + { + return (HRESULT)Invoke(__dsl_asyncInfo, progressInfo); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged*, Guid*, void**, int>)( + lpVtbl[0] + ) + )((IAsyncActionProgressHandler*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IAsyncActionProgressHandler*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionWithProgressCompletedHandler`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionWithProgressCompletedHandler`1.Manual.cs new file mode 100644 index 0000000000..3611c89dc3 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionWithProgressCompletedHandler`1.Manual.cs @@ -0,0 +1,113 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("9C029F91-CC84-44FD-AC26-0A6C4E555281")] +public unsafe partial struct IAsyncActionWithProgressCompletedHandler + where TProgress : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ( + (delegate* unmanaged*, uint>)( + lpVtbl[1] + ) + )((IAsyncActionWithProgressCompletedHandler*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IAsyncActionWithProgress *")] + IAsyncActionWithProgress* asyncInfo, + [NativeTypeName("Windows::Foundation::AsyncStatus")] AsyncStatus status + ) + { + return ( + (delegate* unmanaged< + IAsyncActionWithProgressCompletedHandler*, + IAsyncActionWithProgress*, + AsyncStatus, + int>)(lpVtbl[3]) + )( + (IAsyncActionWithProgressCompletedHandler*)Unsafe.AsPointer(ref this), + asyncInfo, + status + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IAsyncActionWithProgress *")] + Ref> asyncInfo, + [NativeTypeName("Windows::Foundation::AsyncStatus")] AsyncStatus status + ) + { + fixed (IAsyncActionWithProgress* __dsl_asyncInfo = asyncInfo) + { + return (HRESULT)Invoke(__dsl_asyncInfo, status); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged< + IAsyncActionWithProgressCompletedHandler*, + Guid*, + void**, + int>)(lpVtbl[0]) + )( + (IAsyncActionWithProgressCompletedHandler*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ( + (delegate* unmanaged*, uint>)( + lpVtbl[2] + ) + )((IAsyncActionWithProgressCompletedHandler*)Unsafe.AsPointer(ref this)); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionWithProgress`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionWithProgress`1.Manual.cs new file mode 100644 index 0000000000..f946934bfa --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncActionWithProgress`1.Manual.cs @@ -0,0 +1,248 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("1F6DB258-E803-48A1-9546-EB7353398884")] +public unsafe partial struct IAsyncActionWithProgress + where TProgress : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IAsyncActionWithProgress*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Completed( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler **")] + IAsyncActionWithProgressCompletedHandler** handler + ) + { + return ( + (delegate* unmanaged< + IAsyncActionWithProgress*, + IAsyncActionWithProgressCompletedHandler**, + int>)(lpVtbl[9]) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Completed( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler **")] + Ref2D> handler + ) + { + fixed (IAsyncActionWithProgressCompletedHandler** __dsl_handler = handler) + { + return (HRESULT)get_Completed(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Progress( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler **")] + IAsyncActionWithProgressCompletedHandler** handler + ) + { + return ( + (delegate* unmanaged< + IAsyncActionWithProgress*, + IAsyncActionWithProgressCompletedHandler**, + int>)(lpVtbl[7]) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Progress( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler **")] + Ref2D> handler + ) + { + fixed (IAsyncActionWithProgressCompletedHandler** __dsl_handler = handler) + { + return (HRESULT)get_Progress(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ( + (delegate* unmanaged*, uint*, Guid**, int>)( + lpVtbl[3] + ) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), iidCount, iids); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetResults() + { + return ((delegate* unmanaged*, int>)(lpVtbl[10]))( + (IAsyncActionWithProgress*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ( + (delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), className); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ( + (delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), trustLevel); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT put_Completed( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler *")] + IAsyncActionWithProgressCompletedHandler* handler + ) + { + return ( + (delegate* unmanaged< + IAsyncActionWithProgress*, + IAsyncActionWithProgressCompletedHandler*, + int>)(lpVtbl[8]) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT put_Completed( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler *")] + Ref> handler + ) + { + fixed (IAsyncActionWithProgressCompletedHandler* __dsl_handler = handler) + { + return (HRESULT)put_Completed(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT put_Progress( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler *")] + IAsyncActionWithProgressCompletedHandler* handler + ) + { + return ( + (delegate* unmanaged< + IAsyncActionWithProgress*, + IAsyncActionWithProgressCompletedHandler*, + int>)(lpVtbl[6]) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT put_Progress( + [NativeTypeName("IAsyncActionWithProgressCompletedHandler *")] + Ref> handler + ) + { + fixed (IAsyncActionWithProgressCompletedHandler* __dsl_handler = handler) + { + return (HRESULT)put_Progress(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged*, Guid*, void**, int>)( + lpVtbl[0] + ) + )((IAsyncActionWithProgress*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IAsyncActionWithProgress*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationCompletedHandler`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationCompletedHandler`1.Manual.cs new file mode 100644 index 0000000000..78634d50ba --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationCompletedHandler`1.Manual.cs @@ -0,0 +1,98 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("FCDCF02C-E5D8-4478-915A-4D90B74B83A5")] +public unsafe partial struct IAsyncOperationCompletedHandler + where TResult : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IAsyncOperationCompletedHandler*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IAsyncOperation *")] IAsyncOperation* asyncInfo, + [NativeTypeName("Windows::Foundation::AsyncStatus")] AsyncStatus status + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationCompletedHandler*, + IAsyncOperation*, + AsyncStatus, + int>)(lpVtbl[3]) + )((IAsyncOperationCompletedHandler*)Unsafe.AsPointer(ref this), asyncInfo, status); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IAsyncOperation *")] + Ref> asyncInfo, + [NativeTypeName("Windows::Foundation::AsyncStatus")] AsyncStatus status + ) + { + fixed (IAsyncOperation* __dsl_asyncInfo = asyncInfo) + { + return (HRESULT)Invoke(__dsl_asyncInfo, status); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged*, Guid*, void**, int>)( + lpVtbl[0] + ) + )((IAsyncOperationCompletedHandler*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IAsyncOperationCompletedHandler*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationProgressHandler`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationProgressHandler`2.Manual.cs new file mode 100644 index 0000000000..5f899036ac --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationProgressHandler`2.Manual.cs @@ -0,0 +1,114 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("55690902-0AAB-421A-8778-F8CE5026D758")] +public unsafe partial struct IAsyncOperationProgressHandler + where TResult : unmanaged + where TProgress : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ( + (delegate* unmanaged*, uint>)( + lpVtbl[1] + ) + )((IAsyncOperationProgressHandler*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IAsyncOperationWithProgress *")] + IAsyncOperationWithProgress* asyncInfo, + [NativeTypeName("TProgress_abi")] TProgress progressInfo + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationProgressHandler*, + IAsyncOperationWithProgress*, + TProgress, + int>)(lpVtbl[3]) + )( + (IAsyncOperationProgressHandler*)Unsafe.AsPointer(ref this), + asyncInfo, + progressInfo + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IAsyncOperationWithProgress *")] + Ref> asyncInfo, + [NativeTypeName("TProgress_abi")] TProgress progressInfo + ) + { + fixed (IAsyncOperationWithProgress* __dsl_asyncInfo = asyncInfo) + { + return (HRESULT)Invoke(__dsl_asyncInfo, progressInfo); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationProgressHandler*, + Guid*, + void**, + int>)(lpVtbl[0]) + )( + (IAsyncOperationProgressHandler*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ( + (delegate* unmanaged*, uint>)( + lpVtbl[2] + ) + )((IAsyncOperationProgressHandler*)Unsafe.AsPointer(ref this)); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationWithProgressCompletedHandler`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationWithProgressCompletedHandler`2.Manual.cs new file mode 100644 index 0000000000..5e264f708d --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationWithProgressCompletedHandler`2.Manual.cs @@ -0,0 +1,122 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("E85DF41D-6AA7-46E3-A8E2-F009D840C627")] +public unsafe partial struct IAsyncOperationWithProgressCompletedHandler + where TResult : unmanaged + where TProgress : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgressCompletedHandler*, + uint>)(lpVtbl[1]) + )( + (IAsyncOperationWithProgressCompletedHandler*) + Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IAsyncOperationWithProgress *")] + IAsyncOperationWithProgress* asyncInfo, + [NativeTypeName("Windows::Foundation::AsyncStatus")] AsyncStatus status + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgressCompletedHandler*, + IAsyncOperationWithProgress*, + AsyncStatus, + int>)(lpVtbl[3]) + )( + (IAsyncOperationWithProgressCompletedHandler*) + Unsafe.AsPointer(ref this), + asyncInfo, + status + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IAsyncOperationWithProgress *")] + Ref> asyncInfo, + [NativeTypeName("Windows::Foundation::AsyncStatus")] AsyncStatus status + ) + { + fixed (IAsyncOperationWithProgress* __dsl_asyncInfo = asyncInfo) + { + return (HRESULT)Invoke(__dsl_asyncInfo, status); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgressCompletedHandler*, + Guid*, + void**, + int>)(lpVtbl[0]) + )( + (IAsyncOperationWithProgressCompletedHandler*) + Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgressCompletedHandler*, + uint>)(lpVtbl[2]) + )( + (IAsyncOperationWithProgressCompletedHandler*) + Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationWithProgress`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationWithProgress`2.Manual.cs new file mode 100644 index 0000000000..844f59a78f --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperationWithProgress`2.Manual.cs @@ -0,0 +1,291 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("B5D036D7-E297-498F-BA60-0289E76E23DD")] +public unsafe partial struct IAsyncOperationWithProgress + where TResult : unmanaged + where TProgress : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ( + (delegate* unmanaged*, uint>)(lpVtbl[1]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Completed( + [NativeTypeName( + "IAsyncOperationWithProgressCompletedHandler **" + )] + IAsyncOperationWithProgressCompletedHandler** handler + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + IAsyncOperationWithProgressCompletedHandler**, + int>)(lpVtbl[9]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Completed( + [NativeTypeName( + "IAsyncOperationWithProgressCompletedHandler **" + )] + Ref2D> handler + ) + { + fixed ( + IAsyncOperationWithProgressCompletedHandler** __dsl_handler = + handler + ) + { + return (HRESULT)get_Completed(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Progress( + [NativeTypeName("IAsyncOperationProgressHandler **")] + IAsyncOperationProgressHandler** handler + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + IAsyncOperationProgressHandler**, + int>)(lpVtbl[7]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Progress( + [NativeTypeName("IAsyncOperationProgressHandler **")] + Ref2D> handler + ) + { + fixed (IAsyncOperationProgressHandler** __dsl_handler = handler) + { + return (HRESULT)get_Progress(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + uint*, + Guid**, + int>)(lpVtbl[3]) + )( + (IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetResults([NativeTypeName("TResult_abi *")] TResult* results) + { + return ( + (delegate* unmanaged*, TResult*, int>)( + lpVtbl[10] + ) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), results); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetResults([NativeTypeName("TResult_abi *")] Ref results) + { + fixed (TResult* __dsl_results = results) + { + return (HRESULT)GetResults(__dsl_results); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ( + (delegate* unmanaged*, HSTRING*, int>)( + lpVtbl[4] + ) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), className); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + TrustLevel*, + int>)(lpVtbl[5]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), trustLevel); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT put_Completed( + [NativeTypeName( + "IAsyncOperationWithProgressCompletedHandler *" + )] + IAsyncOperationWithProgressCompletedHandler* handler + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + IAsyncOperationWithProgressCompletedHandler*, + int>)(lpVtbl[8]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT put_Completed( + [NativeTypeName( + "IAsyncOperationWithProgressCompletedHandler *" + )] + Ref> handler + ) + { + fixed ( + IAsyncOperationWithProgressCompletedHandler* __dsl_handler = handler + ) + { + return (HRESULT)put_Completed(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT put_Progress( + [NativeTypeName("IAsyncOperationProgressHandler *")] + IAsyncOperationProgressHandler* handler + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + IAsyncOperationProgressHandler*, + int>)(lpVtbl[6]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT put_Progress( + [NativeTypeName("IAsyncOperationProgressHandler *")] + Ref> handler + ) + { + fixed (IAsyncOperationProgressHandler* __dsl_handler = handler) + { + return (HRESULT)put_Progress(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged< + IAsyncOperationWithProgress*, + Guid*, + void**, + int>)(lpVtbl[0]) + )( + (IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ( + (delegate* unmanaged*, uint>)(lpVtbl[2]) + )((IAsyncOperationWithProgress*)Unsafe.AsPointer(ref this)); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperation`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperation`1.Manual.cs new file mode 100644 index 0000000000..db8b83c9ad --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IAsyncOperation`1.Manual.cs @@ -0,0 +1,207 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("9FC2B0BB-E446-44E2-AA61-9CAB8F636AF2")] +public unsafe partial struct IAsyncOperation + where TResult : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Completed( + [NativeTypeName("IAsyncOperationCompletedHandler **")] + IAsyncOperationCompletedHandler** handler + ) + { + return ( + (delegate* unmanaged< + IAsyncOperation*, + IAsyncOperationCompletedHandler**, + int>)(lpVtbl[7]) + )((IAsyncOperation*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Completed( + [NativeTypeName("IAsyncOperationCompletedHandler **")] + Ref2D> handler + ) + { + fixed (IAsyncOperationCompletedHandler** __dsl_handler = handler) + { + return (HRESULT)get_Completed(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetResults([NativeTypeName("TResult_abi *")] TResult* results) + { + return ((delegate* unmanaged*, TResult*, int>)(lpVtbl[8]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this), + results + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetResults([NativeTypeName("TResult_abi *")] Ref results) + { + fixed (TResult* __dsl_results = results) + { + return (HRESULT)GetResults(__dsl_results); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT put_Completed( + [NativeTypeName("IAsyncOperationCompletedHandler *")] + IAsyncOperationCompletedHandler* handler + ) + { + return ( + (delegate* unmanaged< + IAsyncOperation*, + IAsyncOperationCompletedHandler*, + int>)(lpVtbl[6]) + )((IAsyncOperation*)Unsafe.AsPointer(ref this), handler); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT put_Completed( + [NativeTypeName("IAsyncOperationCompletedHandler *")] + Ref> handler + ) + { + fixed (IAsyncOperationCompletedHandler* __dsl_handler = handler) + { + return (HRESULT)put_Completed(__dsl_handler); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IAsyncOperation*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IEventHandler`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IEventHandler`1.Manual.cs new file mode 100644 index 0000000000..087dc4e62e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IEventHandler`1.Manual.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("9DE1C535-6AE1-11E0-84E1-18A905BCC53F")] +public unsafe partial struct IEventHandler + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IEventHandler*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IInspectable *")] IInspectable sender, + [NativeTypeName("T_abi")] T args + ) + { + return ((delegate* unmanaged*, IInspectable.Native*, T, int>)(lpVtbl[3]))( + (IEventHandler*)Unsafe.AsPointer(ref this), + sender.lpVtbl, + args + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IEventHandler*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IEventHandler*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IIterable`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IIterable`1.Manual.cs new file mode 100644 index 0000000000..2a75c9b30a --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IIterable`1.Manual.cs @@ -0,0 +1,153 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("FAA585EA-6214-4217-AFDA-7F46DE5869B3")] +public unsafe partial struct IIterable + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IIterable*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT First([NativeTypeName("IIterator **")] IIterator** first) + { + return ((delegate* unmanaged*, IIterator**, int>)(lpVtbl[6]))( + (IIterable*)Unsafe.AsPointer(ref this), + first + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT First([NativeTypeName("IIterator **")] Ref2D> first) + { + fixed (IIterator** __dsl_first = first) + { + return (HRESULT)First(__dsl_first); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IIterable*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IIterable*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IIterable*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IIterable*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IIterable*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IIterator`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IIterator`1.Manual.cs new file mode 100644 index 0000000000..d3032ab011 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IIterator`1.Manual.cs @@ -0,0 +1,221 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("6A79E863-4300-459A-9966-CBB660963EE1")] +public unsafe partial struct IIterator + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IIterator*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Current([NativeTypeName("T_abi *")] T* current) + { + return ((delegate* unmanaged*, T*, int>)(lpVtbl[6]))( + (IIterator*)Unsafe.AsPointer(ref this), + current + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Current([NativeTypeName("T_abi *")] Ref current) + { + fixed (T* __dsl_current = current) + { + return (HRESULT)get_Current(__dsl_current); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_HasCurrent([NativeTypeName("boolean *")] byte* hasCurrent) + { + return ((delegate* unmanaged*, byte*, int>)(lpVtbl[7]))( + (IIterator*)Unsafe.AsPointer(ref this), + hasCurrent + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_HasCurrent([NativeTypeName("boolean *")] Ref hasCurrent) + { + fixed (byte* __dsl_hasCurrent = hasCurrent) + { + return (HRESULT)get_HasCurrent(__dsl_hasCurrent); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IIterator*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetMany( + [NativeTypeName("unsigned")] uint capacity, + [NativeTypeName("T_abi *")] T* value, + [NativeTypeName("unsigned *")] uint* actual + ) + { + return ((delegate* unmanaged*, uint, T*, uint*, int>)(lpVtbl[9]))( + (IIterator*)Unsafe.AsPointer(ref this), + capacity, + value, + actual + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetMany( + [NativeTypeName("unsigned")] uint capacity, + [NativeTypeName("T_abi *")] Ref value, + [NativeTypeName("unsigned *")] Ref actual + ) + { + fixed (uint* __dsl_actual = actual) + fixed (T* __dsl_value = value) + { + return (HRESULT)GetMany(capacity, __dsl_value, __dsl_actual); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IIterator*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IIterator*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT MoveNext([NativeTypeName("boolean *")] byte* hasCurrent) + { + return ((delegate* unmanaged*, byte*, int>)(lpVtbl[8]))( + (IIterator*)Unsafe.AsPointer(ref this), + hasCurrent + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT MoveNext([NativeTypeName("boolean *")] Ref hasCurrent) + { + fixed (byte* __dsl_hasCurrent = hasCurrent) + { + return (HRESULT)MoveNext(__dsl_hasCurrent); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IIterator*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IIterator*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IKeyValuePair`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IKeyValuePair`2.Manual.cs new file mode 100644 index 0000000000..04a4ab07d3 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IKeyValuePair`2.Manual.cs @@ -0,0 +1,173 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("02B51929-C1C4-4A7E-8940-0312B5C18500")] +public unsafe partial struct IKeyValuePair + where K : unmanaged + where V : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Key([NativeTypeName("K_abi *")] K* key) + { + return ((delegate* unmanaged*, K*, int>)(lpVtbl[6]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this), + key + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Key([NativeTypeName("K_abi *")] Ref key) + { + fixed (K* __dsl_key = key) + { + return (HRESULT)get_Key(__dsl_key); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Value([NativeTypeName("V_abi *")] V* value) + { + return ((delegate* unmanaged*, V*, int>)(lpVtbl[7]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this), + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Value([NativeTypeName("V_abi *")] Ref value) + { + fixed (V* __dsl_value = value) + { + return (HRESULT)get_Value(__dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IKeyValuePair*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMapChangedEventArgs`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMapChangedEventArgs`1.Manual.cs new file mode 100644 index 0000000000..9bebf8a104 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMapChangedEventArgs`1.Manual.cs @@ -0,0 +1,176 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("9939F4DF-050A-4C0F-AA60-77075F9C4777")] +public unsafe partial struct IMapChangedEventArgs + where K : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_CollectionChange( + [NativeTypeName("CollectionChange *")] CollectionChange* value + ) + { + return ((delegate* unmanaged*, CollectionChange*, int>)(lpVtbl[6]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this), + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_CollectionChange( + [NativeTypeName("CollectionChange *")] Ref value + ) + { + fixed (CollectionChange* __dsl_value = value) + { + return (HRESULT)get_CollectionChange(__dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Key([NativeTypeName("K_abi *")] K* value) + { + return ((delegate* unmanaged*, K*, int>)(lpVtbl[7]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this), + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Key([NativeTypeName("K_abi *")] Ref value) + { + fixed (K* __dsl_value = value) + { + return (HRESULT)get_Key(__dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IMapChangedEventArgs*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMapView`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMapView`2.Manual.cs new file mode 100644 index 0000000000..ee5eef1dff --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMapView`2.Manual.cs @@ -0,0 +1,227 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("E480CE40-A338-4ADA-ADCF-272272E48CB9")] +public unsafe partial struct IMapView + where K : unmanaged + where V : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IMapView*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Size([NativeTypeName("unsigned int *")] uint* size) + { + return ((delegate* unmanaged*, uint*, int>)(lpVtbl[7]))( + (IMapView*)Unsafe.AsPointer(ref this), + size + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Size([NativeTypeName("unsigned int *")] Ref size) + { + fixed (uint* __dsl_size = size) + { + return (HRESULT)get_Size(__dsl_size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IMapView*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IMapView*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IMapView*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT HasKey( + [NativeTypeName("T_abi")] K key, + [NativeTypeName("boolean *")] byte* found + ) + { + return ((delegate* unmanaged*, K, byte*, int>)(lpVtbl[8]))( + (IMapView*)Unsafe.AsPointer(ref this), + key, + found + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT HasKey( + [NativeTypeName("T_abi")] K key, + [NativeTypeName("boolean *")] Ref found + ) + { + fixed (byte* __dsl_found = found) + { + return (HRESULT)HasKey(key, __dsl_found); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Lookup([NativeTypeName("K_abi")] K key, [NativeTypeName("V_abi *")] V* value) + { + return ((delegate* unmanaged*, K, V*, int>)(lpVtbl[6]))( + (IMapView*)Unsafe.AsPointer(ref this), + key, + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Lookup([NativeTypeName("K_abi")] K key, [NativeTypeName("V_abi *")] Ref value) + { + fixed (V* __dsl_value = value) + { + return (HRESULT)Lookup(key, __dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IMapView*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IMapView*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Split( + [NativeTypeName("IMapView **")] IMapView** firstPartition, + [NativeTypeName("IMapView **")] IMapView** secondPartition + ) + { + return ( + (delegate* unmanaged*, IMapView**, IMapView**, int>)( + lpVtbl[9] + ) + )((IMapView*)Unsafe.AsPointer(ref this), firstPartition, secondPartition); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Split( + [NativeTypeName("IMapView **")] Ref2D> firstPartition, + [NativeTypeName("IMapView **")] Ref2D> secondPartition + ) + { + fixed (IMapView** __dsl_secondPartition = secondPartition) + fixed (IMapView** __dsl_firstPartition = firstPartition) + { + return (HRESULT)Split(__dsl_firstPartition, __dsl_secondPartition); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMap`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMap`2.Manual.cs new file mode 100644 index 0000000000..9ef1b488fc --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IMap`2.Manual.cs @@ -0,0 +1,279 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("3C2925FE-8519-45C1-AA79-197B6718C1C1")] +public unsafe partial struct IMap + where K : unmanaged + where V : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IMap*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Clear() + { + return ((delegate* unmanaged*, int>)(lpVtbl[12]))( + (IMap*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Size([NativeTypeName("unsigned int *")] uint* size) + { + return ((delegate* unmanaged*, uint*, int>)(lpVtbl[7]))( + (IMap*)Unsafe.AsPointer(ref this), + size + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Size([NativeTypeName("unsigned int *")] Ref size) + { + fixed (uint* __dsl_size = size) + { + return (HRESULT)get_Size(__dsl_size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IMap*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IMap*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IMap*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetView( + [NativeTypeName("IMapView **")] IMapView** view + ) + { + return ((delegate* unmanaged*, IMapView**, int>)(lpVtbl[9]))( + (IMap*)Unsafe.AsPointer(ref this), + view + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetView( + [NativeTypeName("IMapView **")] Ref2D> view + ) + { + fixed (IMapView** __dsl_view = view) + { + return (HRESULT)GetView(__dsl_view); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT HasKey( + [NativeTypeName("T_abi")] K key, + [NativeTypeName("boolean *")] byte* found + ) + { + return ((delegate* unmanaged*, K, byte*, int>)(lpVtbl[8]))( + (IMap*)Unsafe.AsPointer(ref this), + key, + found + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT HasKey( + [NativeTypeName("T_abi")] K key, + [NativeTypeName("boolean *")] Ref found + ) + { + fixed (byte* __dsl_found = found) + { + return (HRESULT)HasKey(key, __dsl_found); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Insert([NativeTypeName("unsigned int *")] uint* size) + { + return ((delegate* unmanaged*, uint*, int>)(lpVtbl[10]))( + (IMap*)Unsafe.AsPointer(ref this), + size + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Insert([NativeTypeName("unsigned int *")] Ref size) + { + fixed (uint* __dsl_size = size) + { + return (HRESULT)Insert(__dsl_size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Lookup([NativeTypeName("K_abi")] K key, [NativeTypeName("V_abi *")] V* value) + { + return ((delegate* unmanaged*, K, V*, int>)(lpVtbl[6]))( + (IMap*)Unsafe.AsPointer(ref this), + key, + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Lookup([NativeTypeName("K_abi")] K key, [NativeTypeName("V_abi *")] Ref value) + { + fixed (V* __dsl_value = value) + { + return (HRESULT)Lookup(key, __dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IMap*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IMap*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Remove( + [NativeTypeName("K_abi")] K key, + [NativeTypeName("V_abi")] V value, + [NativeTypeName("boolean *")] byte* replaced + ) + { + return ((delegate* unmanaged*, K, V, byte*, int>)(lpVtbl[11]))( + (IMap*)Unsafe.AsPointer(ref this), + key, + value, + replaced + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Remove( + [NativeTypeName("K_abi")] K key, + [NativeTypeName("V_abi")] V value, + [NativeTypeName("boolean *")] Ref replaced + ) + { + fixed (byte* __dsl_replaced = replaced) + { + return (HRESULT)Remove(key, value, __dsl_replaced); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IObservableMap`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IObservableMap`2.Manual.cs new file mode 100644 index 0000000000..40cb2d1ba9 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IObservableMap`2.Manual.cs @@ -0,0 +1,174 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("65DF2BF5-BF39-41B5-AEBC-5A9D865E472B")] +public unsafe partial struct IObservableMap + where K : unmanaged + where V : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT add_MapChanged( + [NativeTypeName("MapChangedEventHandler *")] + MapChangedEventHandler* handler, + [NativeTypeName("EventRegistrationToken *")] EventRegistrationToken* token + ) + { + return ( + (delegate* unmanaged< + IObservableMap*, + MapChangedEventHandler*, + EventRegistrationToken*, + int>)(lpVtbl[6]) + )((IObservableMap*)Unsafe.AsPointer(ref this), handler, token); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT add_MapChanged( + [NativeTypeName("MapChangedEventHandler *")] + Ref> handler, + [NativeTypeName("EventRegistrationToken *")] Ref token + ) + { + fixed (EventRegistrationToken* __dsl_token = token) + fixed (MapChangedEventHandler* __dsl_handler = handler) + { + return (HRESULT)add_MapChanged(__dsl_handler, __dsl_token); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IObservableMap*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IObservableMap*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IObservableMap*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IObservableMap*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IObservableMap*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IObservableMap*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT remove_MapChanged(EventRegistrationToken token) + { + return ( + (delegate* unmanaged*, EventRegistrationToken, int>)(lpVtbl[7]) + )((IObservableMap*)Unsafe.AsPointer(ref this), token); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IObservableVector`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IObservableVector`1.Manual.cs new file mode 100644 index 0000000000..3ed06f0a95 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IObservableVector`1.Manual.cs @@ -0,0 +1,173 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("5917EB53-50B4-4A0D-B309-65862B3F1DBC")] +public unsafe partial struct IObservableVector + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT add_VectorChanged( + [NativeTypeName("VectorChangedEventHandler *")] + VectorChangedEventHandler* handler, + [NativeTypeName("EventRegistrationToken *")] EventRegistrationToken* token + ) + { + return ( + (delegate* unmanaged< + IObservableVector*, + VectorChangedEventHandler*, + EventRegistrationToken*, + int>)(lpVtbl[6]) + )((IObservableVector*)Unsafe.AsPointer(ref this), handler, token); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT add_VectorChanged( + [NativeTypeName("VectorChangedEventHandler *")] + Ref> handler, + [NativeTypeName("EventRegistrationToken *")] Ref token + ) + { + fixed (EventRegistrationToken* __dsl_token = token) + fixed (VectorChangedEventHandler* __dsl_handler = handler) + { + return (HRESULT)add_VectorChanged(__dsl_handler, __dsl_token); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IObservableVector*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IObservableVector*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IObservableVector*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IObservableVector*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IObservableVector*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IObservableVector*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT remove_VectorChanged(EventRegistrationToken token) + { + return ( + (delegate* unmanaged*, EventRegistrationToken, int>)(lpVtbl[7]) + )((IObservableVector*)Unsafe.AsPointer(ref this), token); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IReferenceArray`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IReferenceArray`1.Manual.cs new file mode 100644 index 0000000000..7d4bf68f54 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IReferenceArray`1.Manual.cs @@ -0,0 +1,161 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("61C17706-2D65-11E0-9AE8-D48564015472")] +public unsafe partial struct IReferenceArray + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IReferenceArray*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Value( + [NativeTypeName("UINT32 *")] uint* length, + [NativeTypeName("T_abi **")] T** value + ) + { + return ((delegate* unmanaged*, uint*, T**, int>)(lpVtbl[6]))( + (IReferenceArray*)Unsafe.AsPointer(ref this), + length, + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Value( + [NativeTypeName("UINT32 *")] Ref length, + [NativeTypeName("T_abi **")] Ref2D value + ) + { + fixed (T** __dsl_value = value) + fixed (uint* __dsl_length = length) + { + return (HRESULT)get_Value(__dsl_length, __dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IReferenceArray*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IReferenceArray*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IReferenceArray*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IReferenceArray*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IReferenceArray*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IReference`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IReference`1.Manual.cs new file mode 100644 index 0000000000..8e2017e2f0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IReference`1.Manual.cs @@ -0,0 +1,153 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("61C17706-2D65-11E0-9AE8-D48564015472")] +public unsafe partial struct IReference + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IReference*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Value([NativeTypeName("T_abi *")] T* value) + { + return ((delegate* unmanaged*, T*, int>)(lpVtbl[6]))( + (IReference*)Unsafe.AsPointer(ref this), + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Value([NativeTypeName("T_abi *")] Ref value) + { + fixed (T* __dsl_value = value) + { + return (HRESULT)get_Value(__dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IReference*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IReference*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IReference*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IReference*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IReference*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/ITypedEventHandler`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/ITypedEventHandler`2.Manual.cs new file mode 100644 index 0000000000..f5db97b1db --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/ITypedEventHandler`2.Manual.cs @@ -0,0 +1,83 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("9DE1C534-6AE1-11E0-84E1-18A905BCC53F")] +public unsafe partial struct ITypedEventHandler + where TSender : unmanaged + where TArgs : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (ITypedEventHandler*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("TSender_abi")] TSender sender, + [NativeTypeName("TArgs_abi")] TArgs args + ) + { + return ( + (delegate* unmanaged*, TSender, TArgs, int>)( + lpVtbl[3] + ) + )((ITypedEventHandler*)Unsafe.AsPointer(ref this), sender, args); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged*, Guid*, void**, int>)( + lpVtbl[0] + ) + )((ITypedEventHandler*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (ITypedEventHandler*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IVectorView`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IVectorView`1.Manual.cs new file mode 100644 index 0000000000..4ae5401083 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IVectorView`1.Manual.cs @@ -0,0 +1,242 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("BBE1FA4C-B0E3-4583-BAEF-1F1B2E483E56")] +public unsafe partial struct IVectorView + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IVectorView*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Size([NativeTypeName("unsigned *")] uint* size) + { + return ((delegate* unmanaged*, uint*, int>)(lpVtbl[7]))( + (IVectorView*)Unsafe.AsPointer(ref this), + size + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Size([NativeTypeName("unsigned *")] Ref size) + { + fixed (uint* __dsl_size = size) + { + return (HRESULT)get_Size(__dsl_size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetAt( + [NativeTypeName("unsigned")] uint index, + [NativeTypeName("T_abi *")] T* item + ) + { + return ((delegate* unmanaged*, uint, T*, int>)(lpVtbl[6]))( + (IVectorView*)Unsafe.AsPointer(ref this), + index, + item + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetAt( + [NativeTypeName("unsigned")] uint index, + [NativeTypeName("T_abi *")] Ref item + ) + { + fixed (T* __dsl_item = item) + { + return (HRESULT)GetAt(index, __dsl_item); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IVectorView*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetMany( + [NativeTypeName("unsigned")] uint startIndex, + [NativeTypeName("unsigned")] uint capacity, + [NativeTypeName("T_abi *")] T* value, + [NativeTypeName("unsigned *")] uint* actual + ) + { + return ((delegate* unmanaged*, uint, uint, T*, uint*, int>)(lpVtbl[9]))( + (IVectorView*)Unsafe.AsPointer(ref this), + startIndex, + capacity, + value, + actual + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetMany( + [NativeTypeName("unsigned")] uint startIndex, + [NativeTypeName("unsigned")] uint capacity, + [NativeTypeName("T_abi *")] Ref value, + [NativeTypeName("unsigned *")] Ref actual + ) + { + fixed (uint* __dsl_actual = actual) + fixed (T* __dsl_value = value) + { + return (HRESULT)GetMany(startIndex, capacity, __dsl_value, __dsl_actual); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IVectorView*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IVectorView*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT IndexOf( + [NativeTypeName("T_abi")] T value, + [NativeTypeName("unsigned *")] uint* index, + [NativeTypeName("boolean *")] byte* found + ) + { + return ((delegate* unmanaged*, T, uint*, byte*, int>)(lpVtbl[8]))( + (IVectorView*)Unsafe.AsPointer(ref this), + value, + index, + found + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT IndexOf( + [NativeTypeName("T_abi")] T value, + [NativeTypeName("unsigned *")] Ref index, + [NativeTypeName("boolean *")] Ref found + ) + { + fixed (byte* __dsl_found = found) + fixed (uint* __dsl_index = index) + { + return (HRESULT)IndexOf(value, __dsl_index, __dsl_found); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IVectorView*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IVectorView*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IVector`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IVector`1.Manual.cs new file mode 100644 index 0000000000..4d8c25ad46 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/IVector`1.Manual.cs @@ -0,0 +1,344 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("913337E9-11A1-4345-A3A2-4E7F956E222D")] +public unsafe partial struct IVector + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (IVector*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Append([NativeTypeName("T_abi")] T item) + { + return ((delegate* unmanaged*, T, int>)(lpVtbl[13]))( + (IVector*)Unsafe.AsPointer(ref this), + item + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Clear() + { + return ((delegate* unmanaged*, int>)(lpVtbl[15]))( + (IVector*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT get_Size([NativeTypeName("unsigned *")] uint* size) + { + return ((delegate* unmanaged*, uint*, int>)(lpVtbl[7]))( + (IVector*)Unsafe.AsPointer(ref this), + size + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT get_Size([NativeTypeName("unsigned *")] Ref size) + { + fixed (uint* __dsl_size = size) + { + return (HRESULT)get_Size(__dsl_size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetAt( + [NativeTypeName("unsigned")] uint index, + [NativeTypeName("T_abi *")] T* item + ) + { + return ((delegate* unmanaged*, uint, T*, int>)(lpVtbl[6]))( + (IVector*)Unsafe.AsPointer(ref this), + index, + item + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetAt( + [NativeTypeName("unsigned")] uint index, + [NativeTypeName("T_abi *")] Ref item + ) + { + fixed (T* __dsl_item = item) + { + return (HRESULT)GetAt(index, __dsl_item); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] uint* iidCount, + [NativeTypeName("IID **")] Guid** iids + ) + { + return ((delegate* unmanaged*, uint*, Guid**, int>)(lpVtbl[3]))( + (IVector*)Unsafe.AsPointer(ref this), + iidCount, + iids + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIids( + [NativeTypeName("ULONG *")] Ref iidCount, + [NativeTypeName("IID **")] Ref2D iids + ) + { + fixed (Guid** __dsl_iids = iids) + fixed (uint* __dsl_iidCount = iidCount) + { + return (HRESULT)GetIids(__dsl_iidCount, __dsl_iids); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetMany( + [NativeTypeName("unsigned")] uint startIndex, + [NativeTypeName("unsigned")] uint capacity, + [NativeTypeName("T_abi *")] T* value, + [NativeTypeName("unsigned *")] uint* actual + ) + { + return ((delegate* unmanaged*, uint, uint, T*, uint*, int>)(lpVtbl[16]))( + (IVector*)Unsafe.AsPointer(ref this), + startIndex, + capacity, + value, + actual + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetMany( + [NativeTypeName("unsigned")] uint startIndex, + [NativeTypeName("unsigned")] uint capacity, + [NativeTypeName("T_abi *")] Ref value, + [NativeTypeName("unsigned *")] Ref actual + ) + { + fixed (uint* __dsl_actual = actual) + fixed (T* __dsl_value = value) + { + return (HRESULT)GetMany(startIndex, capacity, __dsl_value, __dsl_actual); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetRuntimeClassName(HSTRING* className) + { + return ((delegate* unmanaged*, HSTRING*, int>)(lpVtbl[4]))( + (IVector*)Unsafe.AsPointer(ref this), + className + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetRuntimeClassName(Ref className) + { + fixed (HSTRING* __dsl_className = className) + { + return (HRESULT)GetRuntimeClassName(__dsl_className); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] TrustLevel* trustLevel) + { + return ((delegate* unmanaged*, TrustLevel*, int>)(lpVtbl[5]))( + (IVector*)Unsafe.AsPointer(ref this), + trustLevel + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTrustLevel([NativeTypeName("TrustLevel *")] Ref trustLevel) + { + fixed (TrustLevel* __dsl_trustLevel = trustLevel) + { + return (HRESULT)GetTrustLevel(__dsl_trustLevel); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT GetView([NativeTypeName("IVectorView **")] IVectorView** view) + { + return ((delegate* unmanaged*, IVectorView**, int>)(lpVtbl[8]))( + (IVector*)Unsafe.AsPointer(ref this), + view + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetView([NativeTypeName("IVectorView **")] Ref2D> view) + { + fixed (IVectorView** __dsl_view = view) + { + return (HRESULT)GetView(__dsl_view); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT IndexOf( + [NativeTypeName("T_abi")] T value, + [NativeTypeName("unsigned *")] uint* index, + [NativeTypeName("boolean *")] byte* found + ) + { + return ((delegate* unmanaged*, T, uint*, byte*, int>)(lpVtbl[9]))( + (IVector*)Unsafe.AsPointer(ref this), + value, + index, + found + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT IndexOf( + [NativeTypeName("T_abi")] T value, + [NativeTypeName("unsigned *")] Ref index, + [NativeTypeName("boolean *")] Ref found + ) + { + fixed (byte* __dsl_found = found) + fixed (uint* __dsl_index = index) + { + return (HRESULT)IndexOf(value, __dsl_index, __dsl_found); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT InsertAt( + [NativeTypeName("unsigned")] uint index, + [NativeTypeName("T_abi")] T item + ) + { + return ((delegate* unmanaged*, uint, T, int>)(lpVtbl[11]))( + (IVector*)Unsafe.AsPointer(ref this), + index, + item + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ((delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]))( + (IVector*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (IVector*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT RemoveAt([NativeTypeName("unsigned")] uint index) + { + return ((delegate* unmanaged*, uint, int>)(lpVtbl[12]))( + (IVector*)Unsafe.AsPointer(ref this), + index + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT RemoveAtEnd() + { + return ((delegate* unmanaged*, int>)(lpVtbl[14]))( + (IVector*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT ReplaceAll( + [NativeTypeName("unsigned")] uint count, + [NativeTypeName("T_abi *")] T* value + ) + { + return ((delegate* unmanaged*, uint, T*, int>)(lpVtbl[17]))( + (IVector*)Unsafe.AsPointer(ref this), + count, + value + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT ReplaceAll( + [NativeTypeName("unsigned")] uint count, + [NativeTypeName("T_abi *")] Ref value + ) + { + fixed (T* __dsl_value = value) + { + return (HRESULT)ReplaceAll(count, __dsl_value); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT SetAt([NativeTypeName("unsigned")] uint index, [NativeTypeName("T_abi")] T item) + { + return ((delegate* unmanaged*, uint, T, int>)(lpVtbl[10]))( + (IVector*)Unsafe.AsPointer(ref this), + index, + item + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/MapChangedEventHandler`2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/MapChangedEventHandler`2.Manual.cs new file mode 100644 index 0000000000..9c5428560a --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/MapChangedEventHandler`2.Manual.cs @@ -0,0 +1,97 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("179517F3-94EE-41F8-BDDC-768A895544F3")] +public unsafe partial struct MapChangedEventHandler + where K : unmanaged + where V : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (MapChangedEventHandler*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IObservableMap *")] IObservableMap* sender, + [NativeTypeName("IMapChangedEventArgs *")] IMapChangedEventArgs* e + ) + { + return ( + (delegate* unmanaged< + MapChangedEventHandler*, + IObservableMap*, + IMapChangedEventArgs*, + int>)(lpVtbl[3]) + )((MapChangedEventHandler*)Unsafe.AsPointer(ref this), sender, e); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IObservableMap *")] Ref> sender, + [NativeTypeName("IMapChangedEventArgs *")] Ref> e + ) + { + fixed (IMapChangedEventArgs* __dsl_e = e) + fixed (IObservableMap* __dsl_sender = sender) + { + return (HRESULT)Invoke(__dsl_sender, __dsl_e); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]) + )((MapChangedEventHandler*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (MapChangedEventHandler*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/VectorChangedEventHandler`1.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/VectorChangedEventHandler`1.Manual.cs new file mode 100644 index 0000000000..d56d973375 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.collections/VectorChangedEventHandler`1.Manual.cs @@ -0,0 +1,95 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.collections.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.WinRT; + +[Guid("0C051752-9FBF-4C70-AA0C-0E4C82D9A761")] +public unsafe partial struct VectorChangedEventHandler + where T : unmanaged +{ + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[1]))( + (VectorChangedEventHandler*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT Invoke( + [NativeTypeName("IObservableVector *")] IObservableVector* sender, + IVectorChangedEventArgs e + ) + { + return ( + (delegate* unmanaged< + VectorChangedEventHandler*, + IObservableVector*, + IVectorChangedEventArgs.Native*, + int>)(lpVtbl[3]) + )((VectorChangedEventHandler*)Unsafe.AsPointer(ref this), sender, e.lpVtbl); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("IObservableVector *")] Ref> sender, + IVectorChangedEventArgs e + ) + { + fixed (IObservableVector* __dsl_sender = sender) + { + return (HRESULT)Invoke(__dsl_sender, e); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("void **")] void** ppvObject + ) + { + return ( + (delegate* unmanaged*, Guid*, void**, int>)(lpVtbl[0]) + )((VectorChangedEventHandler*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("void **")] Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [Transformed] + public HRESULT QueryInterface([NativeTypeName("void **")] out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged*, uint>)(lpVtbl[2]))( + (VectorChangedEventHandler*)Unsafe.AsPointer(ref this) + ); + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation.metadata/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation.metadata/IID.Manual.cs new file mode 100644 index 0000000000..232c130eed --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation.metadata/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.metadata.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IApiInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x39, + 0x74, + 0x99, + 0x81, + 0xF6, + 0x11, + 0x4A, + 0xB4, + 0x16, + 0xC1, + 0x3A, + 0x47, + 0xE8, + 0xBA, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.foundation/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.foundation/IID.Manual.cs new file mode 100644 index 0000000000..69bb06d7e6 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.foundation/IID.Manual.cs @@ -0,0 +1,607 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.foundation.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAsyncActionCompletedHandler + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x5C, + 0xED, + 0xA4, + 0xC9, + 0x76, + 0xBD, + 0x40, + 0x8B, + 0xE6, + 0xB1, + 0xD9, + 0x0F, + 0xB2, + 0x0A, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeferralCompletedHandler + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0xA3, + 0x32, + 0xED, + 0xC8, + 0xF3, + 0xAA, + 0x4F, + 0x9C, + 0xFB, + 0x47, + 0x01, + 0x48, + 0xDA, + 0x38, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPropertySet + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xED, + 0x43, + 0x8A, + 0xE6, + 0xF4, + 0x21, + 0x44, + 0xAC, + 0xF9, + 0x1D, + 0xAB, + 0x29, + 0x86, + 0x82, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAsyncAction + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0x80, + 0x64, + 0x5A, + 0x3A, + 0x84, + 0xA9, + 0x4D, + 0x86, + 0x5B, + 0x9D, + 0x26, + 0xE5, + 0xDF, + 0xAD, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClosable + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xA8, + 0xD5, + 0x30, + 0xA4, + 0x7F, + 0x26, + 0x40, + 0x83, + 0xBB, + 0xD7, + 0x5B, + 0xAE, + 0x4E, + 0xA9, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeferral + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x97, + 0x26, + 0xD6, + 0x7F, + 0x3B, + 0xA7, + 0x46, + 0xB4, + 0x0B, + 0x4F, + 0xDC, + 0xA2, + 0xA2, + 0xC6, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeferralFactory + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0xEC, + 0xA1, + 0x65, + 0xB5, + 0x3F, + 0x32, + 0x48, + 0x8C, + 0xA9, + 0xF0, + 0x61, + 0xB2, + 0x81, + 0xD1, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGetActivationFactory + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x8E, + 0xDB, + 0x4E, + 0xDD, + 0x96, + 0xA7, + 0x49, + 0x94, + 0xF7, + 0x46, + 0x07, + 0xDD, + 0xAB, + 0x8E, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGuidHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0x96, + 0xC7, + 0x59, + 0x52, + 0xAE, + 0x83, + 0x52, + 0xAD, + 0x7F, + 0xA1, + 0xB9, + 0xE9, + 0x67, + 0x8A, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryBuffer + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0xDD, + 0xC4, + 0xFB, + 0x5B, + 0x24, + 0xE4, + 0x11, + 0xAF, + 0x98, + 0x68, + 0x94, + 0x23, + 0x26, + 0x0C, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryBufferFactory + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0xDD, + 0xC4, + 0xFB, + 0x5B, + 0x24, + 0xE4, + 0x11, + 0xAF, + 0x98, + 0x68, + 0x94, + 0x23, + 0x26, + 0x0C, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryBufferReference + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xDD, + 0xC4, + 0xFB, + 0x5B, + 0x24, + 0xE4, + 0x11, + 0xAF, + 0x98, + 0x68, + 0x94, + 0x23, + 0x26, + 0x0C, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPropertyValue + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x82, + 0xD6, + 0x4B, + 0x54, + 0x75, + 0xE9, + 0x40, + 0x9A, + 0x9B, + 0x82, + 0x65, + 0x4E, + 0xDE, + 0x7E, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPropertyValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0xDB, + 0x9B, + 0x62, + 0x32, + 0xD9, + 0xF4, + 0x4F, + 0x96, + 0xB9, + 0x8D, + 0x96, + 0xC5, + 0xC1, + 0xE8, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStringable + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0x9F, + 0x36, + 0x96, + 0xB6, + 0x8E, + 0xF0, + 0x48, + 0xAB, + 0xCE, + 0xC1, + 0xB2, + 0x11, + 0xE6, + 0x27, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUriEscapeStatics + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x32, + 0xD4, + 0xC1, + 0x24, + 0xC8, + 0x52, + 0x44, + 0xA7, + 0xFD, + 0x51, + 0x2B, + 0xC3, + 0xBB, + 0xE9, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUriRuntimeClass + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x5E, + 0x36, + 0x9E, + 0xB2, + 0x48, + 0x60, + 0x41, + 0x95, + 0x6F, + 0xC7, + 0x38, + 0x51, + 0x20, + 0xBB, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUriRuntimeClassFactory + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x79, + 0xA9, + 0x44, + 0x3E, + 0x72, + 0xDF, + 0x4F, + 0xA2, + 0x18, + 0x03, + 0x3E, + 0x75, + 0xB0, + 0xC0, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUriRuntimeClassWithAbsoluteCanonicalUri + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x96, + 0x8D, + 0x75, + 0x1C, + 0x22, + 0x0F, + 0x48, + 0xA3, + 0x39, + 0x50, + 0x65, + 0x66, + 0x73, + 0xF4, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWwwFormUrlDecoderEntry + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0x74, + 0x5E, + 0x12, + 0x78, + 0xF6, + 0x8E, + 0x4E, + 0xB6, + 0x70, + 0x20, + 0xA9, + 0xB0, + 0x6C, + 0x51, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWwwFormUrlDecoderRuntimeClass + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x04, + 0x5A, + 0xD4, + 0x25, + 0xF2, + 0x42, + 0x45, + 0x92, + 0x96, + 0x0E, + 0x1D, + 0xF5, + 0xD2, + 0x54, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWwwFormUrlDecoderRuntimeClassFactory + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x6B, + 0x8C, + 0x5B, + 0xAE, + 0x24, + 0xB5, + 0x41, + 0xA1, + 0xBF, + 0xF0, + 0xC3, + 0xD5, + 0x44, + 0x84, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.globalization/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.globalization/IID.Manual.cs new file mode 100644 index 0000000000..538f534736 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.globalization/IID.Manual.cs @@ -0,0 +1,823 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.globalization.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IApplicationLanguagesStatics + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x08, + 0xB4, + 0x75, + 0x4C, + 0x0A, + 0x92, + 0x4A, + 0x95, + 0x65, + 0xFD, + 0x63, + 0xC9, + 0x5F, + 0x7A, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationLanguagesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0xDE, + 0xF0, + 0x1D, + 0x2B, + 0x07, + 0x7B, + 0x4D, + 0x8F, + 0x06, + 0xCB, + 0x2D, + 0xB4, + 0x0F, + 0x2B, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICalendar + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x22, + 0x30, + 0xCA, + 0xD9, + 0x86, + 0xFB, + 0x40, + 0xA2, + 0x6B, + 0xD4, + 0x4E, + 0xB7, + 0xCF, + 0x08, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICalendarFactory + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x84, + 0xF5, + 0x83, + 0x6B, + 0xE5, + 0x75, + 0x4C, + 0xA6, + 0x6E, + 0x0F, + 0x63, + 0xD5, + 0x77, + 0x58, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICalendarFactory2 + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x37, + 0x4B, + 0xB4, + 0x7E, + 0xCA, + 0x90, + 0x45, + 0x9E, + 0x72, + 0xEA, + 0x2B, + 0xEC, + 0x1A, + 0x51, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICalendarIdentifiersStatics + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x3F, + 0x65, + 0x80, + 0xB2, + 0x2C, + 0x1F, + 0x4C, + 0xB5, + 0x90, + 0xF0, + 0xF5, + 0x2B, + 0xF4, + 0xFD, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICalendarIdentifiersStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xD4, + 0xF4, + 0x7D, + 0xD0, + 0x5F, + 0xA7, + 0x42, + 0x95, + 0xB5, + 0x7D, + 0x98, + 0xD8, + 0x23, + 0x07, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICalendarIdentifiersStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x54, + 0x22, + 0x2C, + 0xAD, + 0x1F, + 0xC0, + 0x40, + 0x93, + 0x34, + 0xA8, + 0xEB, + 0x90, + 0xDB, + 0x04, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClockIdentifiersStatics + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x05, + 0x38, + 0x52, + 0xEC, + 0x12, + 0x83, + 0x4F, + 0xBC, + 0x31, + 0xB1, + 0xB4, + 0x37, + 0x6B, + 0x08, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrencyAmount + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x99, + 0xB4, + 0x74, + 0x75, + 0xEB, + 0x3A, + 0x44, + 0x95, + 0xB3, + 0x7D, + 0x72, + 0x3F, + 0x56, + 0xF9, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrencyAmountFactory + { + get + { + ReadOnlySpan data = + [ + 0x8F, + 0x16, + 0xD7, + 0x48, + 0x3B, + 0xEF, + 0xEE, + 0x4A, + 0xA6, + 0xA1, + 0x4B, + 0x03, + 0x6F, + 0xE0, + 0x3F, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrencyIdentifiersStatics + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x09, + 0x1D, + 0x9F, + 0x86, + 0xD5, + 0x13, + 0x49, + 0x9B, + 0x6A, + 0xA9, + 0xBD, + 0x2D, + 0xC1, + 0x28, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrencyIdentifiersStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x79, + 0x14, + 0x18, + 0xB2, + 0xC3, + 0x33, + 0x4C, + 0x95, + 0x91, + 0x98, + 0x00, + 0x11, + 0x95, + 0x0D, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrencyIdentifiersStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x3B, + 0xB2, + 0x4F, + 0x25, + 0xED, + 0x4D, + 0x4F, + 0x85, + 0x7F, + 0x23, + 0x7F, + 0x17, + 0x48, + 0xC2, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeographicRegion + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0xA6, + 0xE9, + 0x01, + 0x64, + 0x4A, + 0xD9, + 0x4E, + 0x95, + 0x4F, + 0x9E, + 0xDE, + 0xB0, + 0x7B, + 0xD9, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeographicRegionFactory + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x52, + 0x42, + 0x53, + 0xB4, + 0x77, + 0x6B, + 0x42, + 0x85, + 0x9F, + 0x81, + 0xE1, + 0x9D, + 0x51, + 0x25, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeographicRegionStatics + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x89, + 0xE2, + 0x29, + 0xD9, + 0x7A, + 0xF4, + 0x4E, + 0x87, + 0x99, + 0xB3, + 0xB4, + 0x4F, + 0xAD, + 0xEC, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJapanesePhoneme + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x93, + 0x6A, + 0x2F, + 0x5B, + 0xE8, + 0xE6, + 0x43, + 0x89, + 0x7D, + 0x5D, + 0x82, + 0xF8, + 0x62, + 0xDF, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IJapanesePhoneticAnalyzerStatics + { + get + { + ReadOnlySpan data = + [ + 0x90, + 0x9E, + 0xAB, + 0x88, + 0xDE, + 0x93, + 0xB2, + 0x41, + 0xB4, + 0xD5, + 0x8E, + 0xDB, + 0x22, + 0x7F, + 0xD1, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguage + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0xA7, + 0x79, + 0xEA, + 0xC2, + 0xF7, + 0x65, + 0x42, + 0xB1, + 0xBD, + 0xC4, + 0xDE, + 0xC4, + 0xE4, + 0xF0, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguage2 + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0xE5, + 0x47, + 0x6A, + 0x4D, + 0xD9, + 0x86, + 0x48, + 0xA4, + 0x04, + 0xA5, + 0xA5, + 0xB9, + 0xD5, + 0xB4, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguage3 + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x3D, + 0xAF, + 0xC6, + 0x1A, + 0x64, + 0xA4, + 0x5B, + 0xBB, + 0x43, + 0x5E, + 0x12, + 0xAE, + 0xD7, + 0x59, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguageExtensionSubtags + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0xAF, + 0x7D, + 0x7D, + 0x8D, + 0x36, + 0x64, + 0x43, + 0x85, + 0x2B, + 0xDE, + 0xC9, + 0x27, + 0x03, + 0x7B, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguageFactory + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x52, + 0x02, + 0x9B, + 0x27, + 0x0C, + 0xF8, + 0x44, + 0xB7, + 0x92, + 0x97, + 0x93, + 0xFB, + 0x66, + 0xC6, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguageStatics + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xD5, + 0x3C, + 0xB2, + 0x65, + 0x08, + 0xD4, + 0x46, + 0x89, + 0xB8, + 0xD5, + 0x9B, + 0xE8, + 0x99, + 0x0F, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguageStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x9F, + 0x19, + 0x30, + 0x4B, + 0x91, + 0x2A, + 0x4B, + 0x9D, + 0x6E, + 0xE3, + 0xB0, + 0xE2, + 0x7D, + 0xBE, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanguageStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0xCB, + 0x5E, + 0xD1, + 0xDE, + 0x71, + 0x52, + 0x57, + 0x95, + 0x42, + 0xFA, + 0xC5, + 0xB4, + 0xF2, + 0x72, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INumeralSystemIdentifiersStatics + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x62, + 0xC6, + 0xA5, + 0xC9, + 0x68, + 0x3D, + 0x4D, + 0xB7, + 0x65, + 0x97, + 0x20, + 0x29, + 0xE2, + 0x1D, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INumeralSystemIdentifiersStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x32, + 0x00, + 0x7F, + 0xDB, + 0x9D, + 0x34, + 0x4A, + 0x91, + 0x04, + 0x02, + 0x60, + 0xC0, + 0x91, + 0xA7, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimeZoneOnCalendar + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x25, + 0x3C, + 0xBB, + 0xCF, + 0x46, + 0x17, + 0x43, + 0xA3, + 0xF5, + 0x02, + 0x62, + 0x1A, + 0xD5, + 0x44, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.directx.direct3d11/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.directx.direct3d11/IID.Manual.cs new file mode 100644 index 0000000000..2f855b5c12 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.directx.direct3d11/IID.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.directx.direct3d11.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDirect3DDevice + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0x24, + 0x76, + 0xA3, + 0x5F, + 0x8D, + 0x50, + 0x46, + 0x9D, + 0x3E, + 0x9E, + 0xAE, + 0x3D, + 0x9B, + 0xC6, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDirect3DSurface + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0xA1, + 0xF4, + 0x0B, + 0xC1, + 0x13, + 0x94, + 0x46, + 0xBE, + 0xE3, + 0x7A, + 0xBF, + 0x15, + 0xEA, + 0xF5, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.display.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.display.core/IID.Manual.cs new file mode 100644 index 0000000000..ca3a1094ad --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.display.core/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.display.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IHdmiDisplayInformation + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x3C, + 0x0B, + 0x13, + 0x65, + 0xF5, + 0x6E, + 0x47, + 0xAB, + 0xD5, + 0xEA, + 0x05, + 0xAE, + 0xE7, + 0x4C, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHdmiDisplayInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0xB2, + 0xE6, + 0x6C, + 0x2A, + 0xF4, + 0x15, + 0x4A, + 0x91, + 0x4C, + 0x7B, + 0x8E, + 0x2A, + 0x5A, + 0x65, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHdmiDisplayMode + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0xD5, + 0x06, + 0x0C, + 0x90, + 0x1B, + 0x51, + 0x4F, + 0x99, + 0x81, + 0xEF, + 0x5A, + 0x1C, + 0x0D, + 0xDF, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHdmiDisplayMode2 + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x4E, + 0xCD, + 0x07, + 0x3C, + 0x4B, + 0xB8, + 0x42, + 0x84, + 0xE7, + 0x89, + 0x53, + 0x68, + 0x71, + 0x8A, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.display/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.display/IID.Manual.cs new file mode 100644 index 0000000000..2ba1d1d32e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.display/IID.Manual.cs @@ -0,0 +1,580 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.display.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDisplayPropertiesEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x8B, + 0xDD, + 0xDB, + 0xA1, + 0xF1, + 0xD1, + 0x46, + 0x9E, + 0xE3, + 0x54, + 0x3B, + 0xCC, + 0x99, + 0x59, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedColorInfo + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0xDC, + 0x97, + 0x87, + 0x29, + 0xB2, + 0x81, + 0x40, + 0xAE, + 0x9A, + 0x2C, + 0xC8, + 0x5E, + 0x34, + 0xAD, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBrightnessOverride + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0x62, + 0xC9, + 0x96, + 0x43, + 0xC1, + 0x92, + 0x43, + 0xBE, + 0xDD, + 0x4A, + 0x7E, + 0x95, + 0x74, + 0xC8, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBrightnessOverrideSettings + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0xAB, + 0x12, + 0xD1, + 0x04, + 0x76, + 0xBA, + 0x4D, + 0xBC, + 0xF8, + 0x4B, + 0x6F, + 0x49, + 0x50, + 0x2C, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBrightnessOverrideSettingsStatics + { + get + { + ReadOnlySpan data = + [ + 0x90, + 0xDC, + 0x87, + 0xD4, + 0x74, + 0x6F, + 0x0B, + 0x44, + 0xB3, + 0x83, + 0x5F, + 0xE9, + 0x6C, + 0xF0, + 0x0B, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBrightnessOverrideStatics + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xB9, + 0xA7, + 0x03, + 0xF1, + 0xE1, + 0x68, + 0x4A, + 0xA1, + 0x1F, + 0x94, + 0x6A, + 0xD8, + 0xCE, + 0x53, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColorOverrideSettings + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0xA1, + 0xEF, + 0xFB, + 0x81, + 0x4A, + 0x4D, + 0x4C, + 0xA5, + 0xB6, + 0x7D, + 0x1B, + 0x5C, + 0x4B, + 0xD0, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColorOverrideSettingsStatics + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xE0, + 0x68, + 0xB0, + 0x1F, + 0xC4, + 0xC9, + 0x4A, + 0xAF, + 0xAB, + 0x82, + 0x7A, + 0xB6, + 0x24, + 0x8F, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayEnhancementOverride + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x94, + 0x95, + 0x42, + 0x7A, + 0xD9, + 0x02, + 0x4B, + 0xA4, + 0x28, + 0x5C, + 0x42, + 0x92, + 0xF7, + 0xF5, + 0x22, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayEnhancementOverrideCapabilities + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0x60, + 0x70, + 0x45, + 0x5A, + 0xEE, + 0xB7, + 0x47, + 0x99, + 0x18, + 0x1E, + 0x51, + 0xE8, + 0x12, + 0xCC, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayEnhancementOverrideCapabilitiesChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0xE6, + 0x61, + 0xDB, + 0xFA, + 0x15, + 0xDA, + 0x49, + 0x8B, + 0x77, + 0x07, + 0xDB, + 0xD2, + 0xAF, + 0x58, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayEnhancementOverrideStatics + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x7E, + 0x5B, + 0xCF, + 0x91, + 0x97, + 0x53, + 0x44, + 0xB0, + 0x13, + 0x29, + 0xB6, + 0xF7, + 0x78, + 0xE5, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayInformation + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x12, + 0xD1, + 0xBE, + 0xC3, + 0xAD, + 0xC9, + 0x4D, + 0xAE, + 0x65, + 0x85, + 0x1F, + 0x4D, + 0x7D, + 0x47, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayInformation2 + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x00, + 0xCD, + 0x4D, + 0xD1, + 0xFA, + 0x8E, + 0x4B, + 0x8E, + 0xDF, + 0x77, + 0x58, + 0x87, + 0xB8, + 0xBF, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayInformation3 + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x01, + 0x15, + 0xDB, + 0x09, + 0x0F, + 0x66, + 0x44, + 0x8F, + 0xF3, + 0x11, + 0xDE, + 0x9A, + 0x3C, + 0x92, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayInformation4 + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xCE, + 0x72, + 0xC9, + 0x42, + 0x12, + 0xBE, + 0x46, + 0xB5, + 0x36, + 0xE1, + 0xAA, + 0xFE, + 0x9E, + 0x7A, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayInformation5 + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x42, + 0x54, + 0x3A, + 0xDE, + 0x2C, + 0x8D, + 0x4A, + 0x80, + 0xD1, + 0x21, + 0xDC, + 0x5A, + 0xDC, + 0xC1, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x2A, + 0xA0, + 0xC6, + 0x52, + 0xD4, + 0xDC, + 0x44, + 0xBA, + 0x07, + 0x96, + 0xF3, + 0xC6, + 0xAD, + 0xF9, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0xED, + 0x37, + 0x69, + 0xEA, + 0x30, + 0xED, + 0x4D, + 0x82, + 0x71, + 0x45, + 0x53, + 0xFF, + 0x02, + 0xF6, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_WinRT_IDisplayServices + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0xF3, + 0x54, + 0x1B, + 0x0D, + 0x89, + 0x47, + 0x57, + 0xBD, + 0x26, + 0xFD, + 0xBD, + 0xEB, + 0x0C, + 0x8A, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayServicesStatics + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x96, + 0x20, + 0xDC, + 0x0A, + 0x73, + 0x60, + 0x55, + 0xB4, + 0x61, + 0x91, + 0xC1, + 0x3D, + 0x69, + 0x2E, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.effects/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.effects/IID.Manual.cs new file mode 100644 index 0000000000..28fb971209 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.effects/IID.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.effects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IGraphicsEffect + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xC0, + 0x51, + 0xCB, + 0xE6, + 0x8F, + 0x36, + 0x46, + 0xB2, + 0x02, + 0x86, + 0x1F, + 0xAA, + 0x07, + 0xD8, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGraphicsEffectSource + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x9D, + 0x8F, + 0x2D, + 0x39, + 0x43, + 0xB9, + 0x4E, + 0x92, + 0x16, + 0xF9, + 0xDE, + 0xB7, + 0x56, + 0x58, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.imaging/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.imaging/IID.Manual.cs new file mode 100644 index 0000000000..d74104bb91 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.imaging/IID.Manual.cs @@ -0,0 +1,553 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.imaging.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBitmapBuffer + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0x04, + 0x3E, + 0xA5, + 0x9C, + 0x39, + 0x8C, + 0x43, + 0xB2, + 0x8F, + 0xA6, + 0x3A, + 0x6B, + 0x83, + 0xD1, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapCodecInformation + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0xAA, + 0x0C, + 0x40, + 0xB0, + 0xC4, + 0x92, + 0x43, + 0xA3, + 0xB0, + 0x6F, + 0x6F, + 0x9B, + 0xA9, + 0x5C, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapDecoder + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x22, + 0xEF, + 0xAC, + 0x74, + 0x1D, + 0x91, + 0x4C, + 0x9D, + 0xFC, + 0x96, + 0x20, + 0x74, + 0x52, + 0x33, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapDecoderStatics + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0xCB, + 0x8C, + 0x43, + 0xEF, + 0xBC, + 0x95, + 0x4E, + 0xBA, + 0xD6, + 0x23, + 0xA8, + 0x22, + 0xE5, + 0x8D, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapDecoderStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x68, + 0xBA, + 0x50, + 0xA1, + 0x99, + 0xC4, + 0x40, + 0x80, + 0xD9, + 0xAE, + 0xF0, + 0xDA, + 0xFA, + 0x6C, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapEncoder + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x68, + 0xC4, + 0x2B, + 0xF8, + 0xE1, + 0x54, + 0x4B, + 0x95, + 0xE8, + 0x32, + 0x91, + 0x95, + 0x51, + 0xCE, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapEncoderStatics + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x56, + 0x43, + 0xA7, + 0xE4, + 0xA4, + 0xB9, + 0x4E, + 0x8E, + 0x40, + 0x56, + 0x4D, + 0xE7, + 0xE1, + 0xCC, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapEncoderStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0xC2, + 0xCB, + 0x33, + 0x31, + 0xFE, + 0xB1, + 0x41, + 0xB8, + 0x12, + 0x08, + 0x6D, + 0x21, + 0xE8, + 0x7E, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapEncoderWithSoftwareBitmap + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0xD2, + 0x6C, + 0x68, + 0x30, + 0x43, + 0x77, + 0x4C, + 0xAC, + 0xE4, + 0x03, + 0x34, + 0x96, + 0x8B, + 0x17, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapFrame + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x9A, + 0xA4, + 0x72, + 0x81, + 0x80, + 0x8D, + 0x43, + 0x91, + 0xBC, + 0x94, + 0xEC, + 0xFC, + 0x81, + 0x85, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapFrameWithSoftwareBitmap + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x7C, + 0x28, + 0xFE, + 0x0C, + 0x42, + 0x63, + 0x49, + 0x87, + 0xAD, + 0x69, + 0x14, + 0x36, + 0xE0, + 0x83, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapProperties + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x4F, + 0x9F, + 0xEA, + 0x05, + 0xB5, + 0x50, + 0x44, + 0xA4, + 0xD1, + 0xE8, + 0xCA, + 0x94, + 0x52, + 0x9D, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapPropertiesView + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0xE8, + 0x0F, + 0x7E, + 0x70, + 0x3A, + 0xF8, + 0x48, + 0x9C, + 0x55, + 0x19, + 0x6C, + 0xF5, + 0xA5, + 0x45, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapTransform + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x53, + 0x75, + 0xAE, + 0x68, + 0xE2, + 0x35, + 0x4D, + 0xAD, + 0xCF, + 0xE9, + 0x95, + 0xD3, + 0x1A, + 0x8D, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapTypedValue + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x44, + 0x80, + 0xCD, + 0x43, + 0x24, + 0x00, + 0x40, + 0xB0, + 0xCD, + 0x79, + 0x31, + 0x6C, + 0x56, + 0xF5, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBitmapTypedValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0xB5, + 0xDB, + 0x92, + 0x13, + 0xCE, + 0xBB, + 0x46, + 0x95, + 0x45, + 0xCB, + 0x3A, + 0x3F, + 0x63, + 0xEB, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPixelDataProvider + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x1F, + 0x83, + 0xDD, + 0x5C, + 0x18, + 0x95, + 0x45, + 0x9F, + 0xB9, + 0xCC, + 0xBE, + 0x6E, + 0xC1, + 0x8A, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISoftwareBitmap + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x07, + 0x9E, + 0x68, + 0xEF, + 0x7E, + 0x3F, + 0x48, + 0x96, + 0x3F, + 0xDA, + 0x93, + 0x88, + 0x18, + 0xE0, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISoftwareBitmapFactory + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xEB, + 0x9F, + 0xC9, + 0x62, + 0x2D, + 0x47, + 0x4D, + 0xA6, + 0xB3, + 0x4F, + 0xDB, + 0x6A, + 0x07, + 0xFD, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISoftwareBitmapStatics + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x85, + 0x03, + 0xDF, + 0x2F, + 0x67, + 0x9D, + 0x4A, + 0x80, + 0x6E, + 0xC2, + 0x44, + 0x2F, + 0x34, + 0x3E, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing.printticket/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing.printticket/IID.Manual.cs new file mode 100644 index 0000000000..efbd573ec7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing.printticket/IID.Manual.cs @@ -0,0 +1,247 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from winrt/windows.graphics.printing.printticket.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.WinRT; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPrintTicketCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x50, + 0x45, + 0x8C, + 0xDC, + 0xBB, + 0x56, + 0x42, + 0xA1, + 0x42, + 0x2F, + 0xD6, + 0x15, + 0xEC, + 0xB4, + 0x16, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintTicketFeature + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x7D, + 0x60, + 0xE7, + 0xF5, + 0x59, + 0x03, + 0x41, + 0x88, + 0x58, + 0xB9, + 0x77, + 0x10, + 0x96, + 0x3D, + 0x39, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintTicketOption + { + get + { + ReadOnlySpan data = + [ + 0x90, + 0xCF, + 0x86, + 0xB0, + 0x67, + 0xB3, + 0x4B, + 0x4E, + 0xBD, + 0x48, + 0x9C, + 0x78, + 0xA0, + 0xBB, + 0x31, + 0xCE, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintTicketParameterDefinition + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xB4, + 0xBA, + 0xD6, + 0x62, + 0x29, + 0x01, + 0x4C, + 0xB7, + 0xF3, + 0x9A, + 0x92, + 0x94, + 0xEB, + 0x83, + 0x35, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintTicketParameterInitializer + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x35, + 0x33, + 0x5E, + 0xA5, + 0xA0, + 0xB1, + 0x48, + 0x9D, + 0x5C, + 0x07, + 0x11, + 0x6D, + 0xDC, + 0x59, + 0x7A, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintTicketValue + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x0A, + 0xB3, + 0x66, + 0x4D, + 0x24, + 0x22, + 0x4E, + 0xA9, + 0x8B, + 0xBB, + 0x3C, + 0xF1, + 0xF2, + 0xDD, + 0x91, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWorkflowPrintTicket + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x22, + 0xD5, + 0x41, + 0xE8, + 0x35, + 0x8E, + 0x44, + 0xA8, + 0xC5, + 0xE4, + 0xB6, + 0xA2, + 0xCF, + 0x82, + 0x6C, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWorkflowPrintTicketValidationResult + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0xF3, + 0xD1, + 0x0A, + 0x7B, + 0xDA, + 0x36, + 0x4A, + 0xBF, + 0x36, + 0x6A, + 0x99, + 0xA6, + 0x2E, + 0x20, + 0x59, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing.workflow/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing.workflow/IID.Manual.cs new file mode 100644 index 0000000000..5d48ff17b9 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing.workflow/IID.Manual.cs @@ -0,0 +1,1233 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from winrt/windows.graphics.printing.workflow.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.WinRT; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPrintWorkflowBackgroundSession + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x13, + 0x79, + 0x5B, + 0x5E, + 0x0C, + 0x8A, + 0x52, + 0x74, + 0x58, + 0x86, + 0xA4, + 0x6C, + 0xBD, + 0xDC, + 0x45, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowBackgroundSetupRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x73, + 0xE9, + 0x43, + 0x50, + 0x17, + 0xC9, + 0x59, + 0x61, + 0xFB, + 0x38, + 0x37, + 0x48, + 0xA2, + 0x03, + 0x62, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowConfiguration + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xC4, + 0xAA, + 0xD0, + 0x4B, + 0xFD, + 0xF5, + 0x5D, + 0x4B, + 0xB6, + 0x8D, + 0x0D, + 0x15, + 0x9E, + 0xBE, + 0x3F, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowConfiguration2 + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x0A, + 0x35, + 0xDE, + 0xD4, + 0xA6, + 0xE2, + 0x5B, + 0x8B, + 0x9A, + 0x09, + 0xD3, + 0xD3, + 0x9E, + 0xA7, + 0x80, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowForegroundSession + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x63, + 0x9B, + 0xC7, + 0xEC, + 0xF8, + 0xEB, + 0x4C, + 0x95, + 0x3A, + 0xC8, + 0x87, + 0x61, + 0x57, + 0xDD, + 0x33, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowForegroundSetupRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x82, + 0xE3, + 0xBB, + 0x1B, + 0x9C, + 0xD3, + 0x4D, + 0x9B, + 0x2B, + 0xC8, + 0x04, + 0x68, + 0xD9, + 0x41, + 0xB3, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x5E, + 0xBD, + 0xD4, + 0x4E, + 0x03, + 0x00, + 0x5E, + 0xA6, + 0x16, + 0xF9, + 0x61, + 0xA0, + 0x33, + 0xDC, + 0xC8, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobBackgroundSession + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x6A, + 0xEC, + 0xC5, + 0xC9, + 0x20, + 0x51, + 0x5D, + 0x85, + 0x07, + 0x27, + 0x34, + 0xB4, + 0x6F, + 0x96, + 0xC5, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobBackgroundSession2 + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0xAD, + 0x2A, + 0x59, + 0x26, + 0xEF, + 0x55, + 0x5A, + 0xAD, + 0x21, + 0x5F, + 0x63, + 0xFF, + 0xCF, + 0x83, + 0x66, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobIssueDetectedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0xA4, + 0x58, + 0xDE, + 0x1E, + 0xE4, + 0x0A, + 0x55, + 0xA9, + 0xFB, + 0x4B, + 0x1F, + 0x93, + 0xFB, + 0x9D, + 0x98, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobNotificationEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x6F, + 0xE1, + 0x0A, + 0x98, + 0x53, + 0xBA, + 0x5E, + 0xB4, + 0x72, + 0x97, + 0x86, + 0x50, + 0x18, + 0x6A, + 0x9A, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobStartingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x9B, + 0xD9, + 0xE3, + 0xAD, + 0x31, + 0x09, + 0x5E, + 0xB0, + 0xD7, + 0x60, + 0x1B, + 0x97, + 0xF1, + 0x61, + 0xAD, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobStartingEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0xED, + 0xED, + 0x7D, + 0xDC, + 0xD3, + 0x23, + 0x5B, + 0x86, + 0x90, + 0x4E, + 0xBF, + 0xC0, + 0xF0, + 0x91, + 0x4A, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x61, + 0x29, + 0xFF, + 0xE2, + 0x60, + 0xDB, + 0x51, + 0xBA, + 0x8C, + 0xE2, + 0xCC, + 0xDD, + 0xB5, + 0x16, + 0xB9, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobUISession + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0x73, + 0xC8, + 0x00, + 0x37, + 0x76, + 0x87, + 0x56, + 0xA3, + 0x02, + 0x0F, + 0x66, + 0x4D, + 0x2A, + 0xAC, + 0x65, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowJobUISession2 + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x93, + 0x52, + 0xA8, + 0x74, + 0x91, + 0x78, + 0x5C, + 0x9F, + 0xDB, + 0x89, + 0x4A, + 0x82, + 0xE9, + 0x2A, + 0xDA, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowObjectModelSourceFileContent + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x8A, + 0x6C, + 0xC3, + 0x2A, + 0x8A, + 0x9A, + 0x41, + 0xB3, + 0xC3, + 0x20, + 0x90, + 0xE6, + 0xBF, + 0xAB, + 0x2F, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowObjectModelSourceFileContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0xB9, + 0xB1, + 0x93, + 0x13, + 0xF0, + 0xD6, + 0x56, + 0xB7, + 0x08, + 0x99, + 0xAC, + 0x2C, + 0xCB, + 0x12, + 0xEE, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowObjectModelTargetPackage + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xBC, + 0x96, + 0x7D, + 0x54, + 0x9B, + 0xA1, + 0x4C, + 0xAD, + 0x3A, + 0x97, + 0x9C, + 0x3D, + 0x44, + 0xDD, + 0xAC, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlConverter + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x4B, + 0x60, + 0x40, + 0xE4, + 0x0A, + 0xF1, + 0x51, + 0x81, + 0x8F, + 0x73, + 0x1D, + 0xC0, + 0xB0, + 0x05, + 0xAB, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlConverter2 + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xEE, + 0x4C, + 0x85, + 0x37, + 0x78, + 0x93, + 0x5B, + 0xB7, + 0xAF, + 0x57, + 0xA6, + 0x99, + 0x8C, + 0x2F, + 0x71, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlDataAvailableEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x6B, + 0xAD, + 0xD4, + 0x47, + 0x15, + 0x91, + 0x59, + 0xA0, + 0xEF, + 0xE2, + 0xEE, + 0x20, + 0x21, + 0x15, + 0x18, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlModificationRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x9A, + 0x33, + 0x1A, + 0x13, + 0x2E, + 0xDD, + 0x5E, + 0xA7, + 0x07, + 0xCE, + 0xEC, + 0x61, + 0xD7, + 0x33, + 0x3B, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlModificationRequestedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x21, + 0x69, + 0x8D, + 0x62, + 0x6C, + 0x31, + 0x5E, + 0xA0, + 0xE7, + 0xD4, + 0x9F, + 0x92, + 0xC1, + 0x11, + 0xC0, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlSourceContent + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0xFC, + 0xF7, + 0x92, + 0xB8, + 0x32, + 0xAB, + 0x56, + 0x84, + 0x5E, + 0xB1, + 0xE6, + 0x8B, + 0x3A, + 0xED, + 0xD5, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPdlTargetStream + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0xDF, + 0x42, + 0xA7, + 0xE3, + 0x1E, + 0xA9, + 0x52, + 0x9F, + 0x9F, + 0x2E, + 0x20, + 0x43, + 0x18, + 0x0F, + 0xD1, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPrinterJob + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0x9F, + 0x00, + 0x12, + 0x14, + 0x0D, + 0x43, + 0x54, + 0xBC, + 0x09, + 0x25, + 0x03, + 0x11, + 0xCE, + 0x57, + 0x0B, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowPrinterJob2 + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x21, + 0x7E, + 0x74, + 0xA9, + 0x69, + 0x29, + 0x52, + 0xB8, + 0xF0, + 0x87, + 0x4C, + 0xA1, + 0xA8, + 0x87, + 0x1B, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowSourceContent + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0xC6, + 0x28, + 0x1A, + 0xB1, + 0xCE, + 0x33, + 0x45, + 0xBB, + 0x73, + 0xFB, + 0xE6, + 0x3E, + 0xEF, + 0xDB, + 0x18, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowSpoolStreamContent + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x5E, + 0xE5, + 0x72, + 0x06, + 0xE4, + 0x74, + 0x4B, + 0x84, + 0xE1, + 0x3F, + 0xF3, + 0xFD, + 0xCD, + 0xAF, + 0x70, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowStreamTarget + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0xBA, + 0x3B, + 0xB2, + 0x65, + 0x85, + 0x8B, + 0x48, + 0x98, + 0x39, + 0x1C, + 0x9E, + 0x7C, + 0x7A, + 0xA9, + 0x16, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowSubmittedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x0A, + 0xDD, + 0x3A, + 0x94, + 0x37, + 0x69, + 0x55, + 0x5C, + 0x87, + 0x40, + 0xE8, + 0xFF, + 0x72, + 0x0F, + 0x83, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowSubmittedOperation + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x62, + 0x4E, + 0x2E, + 0xE1, + 0x3B, + 0x0F, + 0x5F, + 0x5C, + 0x81, + 0xA5, + 0xA2, + 0xBD, + 0x4E, + 0xAB, + 0x0E, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowTarget + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x27, + 0xDA, + 0x29, + 0x73, + 0x0A, + 0xED, + 0x5A, + 0x4F, + 0x3D, + 0x97, + 0x0D, + 0x32, + 0x51, + 0xF0, + 0x57, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0xD8, + 0x39, + 0x57, + 0x86, + 0x9D, + 0x52, + 0x40, + 0xB0, + 0xCB, + 0xF3, + 0x10, + 0xBE, + 0xCD, + 0x59, + 0xBB, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowUIActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x84, + 0x8A, + 0xBC, + 0xEB, + 0x09, + 0x46, + 0x57, + 0x72, + 0xA6, + 0x8D, + 0xC8, + 0xB5, + 0xED, + 0xBE, + 0x9B, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowUILauncher + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xE2, + 0xE9, + 0x64, + 0xCC, + 0x14, + 0x28, + 0x58, + 0x96, + 0xFB, + 0x39, + 0x16, + 0x3F, + 0xB6, + 0xC3, + 0x78, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowVirtualPrinterDataAvailableEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x50, + 0x7D, + 0x6B, + 0xA8, + 0x14, + 0x52, + 0x5D, + 0xA4, + 0x28, + 0x07, + 0x33, + 0x0F, + 0xBA, + 0xB1, + 0x1F, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowVirtualPrinterSession + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x26, + 0x39, + 0xAA, + 0x85, + 0x84, + 0x27, + 0x5C, + 0xA0, + 0x16, + 0x9D, + 0x39, + 0xE3, + 0xBA, + 0x26, + 0x14, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowVirtualPrinterTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0x22, + 0x8F, + 0xFF, + 0x7B, + 0x72, + 0xEC, + 0x53, + 0xB9, + 0xE0, + 0xF3, + 0x93, + 0xF7, + 0x2D, + 0x4E, + 0x50, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowVirtualPrinterUIEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0xBB, + 0x4D, + 0x33, + 0x10, + 0xBF, + 0x5F, + 0x58, + 0xB7, + 0xE0, + 0x58, + 0xC4, + 0xAA, + 0x43, + 0xA0, + 0x3F, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IPrintWorkflowXpsDataAvailableEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0xC3, + 0x11, + 0x4D, + 0xD1, + 0x54, + 0x4E, + 0x43, + 0xBE, + 0x0E, + 0x82, + 0xC5, + 0xFA, + 0x58, + 0xE5, + 0xB2, + ]; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing/IID.Manual.cs new file mode 100644 index 0000000000..0a05d1272c --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics.printing/IID.Manual.cs @@ -0,0 +1,742 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.printing.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPrintTaskSourceRequestedHandler + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x9F, + 0x10, + 0x6C, + 0xB6, + 0x5C, + 0x3A, + 0x4B, + 0x86, + 0x63, + 0xF3, + 0x9C, + 0xB0, + 0x2D, + 0xC9, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintDocumentSource + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x0C, + 0xDC, + 0xDE, + 0xEB, + 0xF1, + 0xDF, + 0x47, + 0xAA, + 0xE6, + 0xED, + 0x54, + 0x27, + 0x51, + 0x1F, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintManager + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0x96, + 0x2A, + 0xFF, + 0x99, + 0x8C, + 0xFD, + 0x44, + 0xAE, + 0x4A, + 0x19, + 0xD9, + 0xAA, + 0x9A, + 0x0F, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintManagerStatic + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0x5D, + 0x18, + 0x58, + 0x34, + 0xE6, + 0x54, + 0x46, + 0x84, + 0xF0, + 0xE0, + 0x15, + 0x2A, + 0x82, + 0x17, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintManagerStatic2 + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x99, + 0xA9, + 0x35, + 0xAB, + 0xE6, + 0x39, + 0x41, + 0x9A, + 0xBD, + 0xB8, + 0x6A, + 0x72, + 0x9B, + 0x35, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintPageInfo + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0xE9, + 0x4B, + 0xDD, + 0xA1, + 0xA6, + 0xDA, + 0x4A, + 0x93, + 0x0E, + 0xDA, + 0x87, + 0x2A, + 0x4F, + 0x23, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintPageRange + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0x6C, + 0xA0, + 0xF8, + 0x7C, + 0x6E, + 0xC5, + 0x51, + 0x57, + 0xFD, + 0x06, + 0x60, + 0xC2, + 0xD7, + 0x15, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintPageRangeFactory + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xD4, + 0x8F, + 0x40, + 0x47, + 0xE0, + 0x85, + 0x5F, + 0x71, + 0x29, + 0xFB, + 0x08, + 0x5A, + 0x4F, + 0xAD, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintPageRangeOptions + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0xB7, + 0x6D, + 0xCE, + 0x57, + 0x13, + 0xB2, + 0x46, + 0xA9, + 0x23, + 0x79, + 0xF9, + 0x95, + 0xF4, + 0x48, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTask + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x02, + 0xD8, + 0x61, + 0xF6, + 0x6C, + 0xAD, + 0x4F, + 0x84, + 0xE2, + 0xA5, + 0xE8, + 0x2E, + 0x2D, + 0x4C, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTask2 + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x48, + 0x23, + 0x36, + 0x53, + 0x3E, + 0x9D, + 0x4D, + 0x8F, + 0x5E, + 0x31, + 0x6A, + 0xC8, + 0xDE, + 0xDA, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x34, + 0xCD, + 0x5B, + 0xE9, + 0x24, + 0x10, + 0x4C, + 0x8D, + 0x07, + 0x14, + 0xC3, + 0x46, + 0xBA, + 0x3F, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskOptions + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x66, + 0x0A, + 0x5A, + 0x89, + 0xD2, + 0xBB, + 0x41, + 0x96, + 0xDD, + 0x57, + 0xE2, + 0x83, + 0x38, + 0xAE, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskOptions2 + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0x16, + 0x9B, + 0xEB, + 0x36, + 0x9A, + 0x59, + 0x4B, + 0x86, + 0x17, + 0xB2, + 0x17, + 0x84, + 0x92, + 0x62, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskOptionsCore + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xB4, + 0xDB, + 0x1B, + 0xD1, + 0x4E, + 0xEB, + 0x41, + 0xBE, + 0x3C, + 0x72, + 0xD1, + 0x8E, + 0xD6, + 0x73, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskOptionsCoreProperties + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x18, + 0xB7, + 0xC1, + 0x93, + 0x9E, + 0x55, + 0x4E, + 0x81, + 0x4B, + 0x33, + 0x26, + 0xA5, + 0x9E, + 0xFC, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskOptionsCoreUIConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x9E, + 0xE6, + 0x62, + 0x1E, + 0x9A, + 0x36, + 0x43, + 0xB7, + 0x4F, + 0x3C, + 0xC7, + 0xF4, + 0xCF, + 0xF7, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskProgressingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xD3, + 0x0C, + 0x81, + 0x10, + 0xB4, + 0x82, + 0x42, + 0xA0, + 0x73, + 0x5A, + 0xC3, + 0x78, + 0x23, + 0x41, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskRequest + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0x1E, + 0xF6, + 0x6F, + 0x22, + 0x27, + 0x40, + 0x42, + 0xA6, + 0x7C, + 0xF3, + 0x64, + 0x84, + 0x9A, + 0x17, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskRequestedDeferral + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0xB3, + 0xEF, + 0xCF, + 0x3E, + 0xCE, + 0xC7, + 0x42, + 0x94, + 0x96, + 0x64, + 0x80, + 0x0C, + 0x62, + 0x2C, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0xF9, + 0xAF, + 0xD0, + 0x1B, + 0xA3, + 0x4C, + 0x45, + 0xA7, + 0xB6, + 0x5D, + 0x0C, + 0xC5, + 0x22, + 0xFC, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskSourceRequestedArgs + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x67, + 0xF0, + 0xF9, + 0x56, + 0xF4, + 0xF0, + 0x41, + 0x9C, + 0x98, + 0x5C, + 0xE7, + 0x3E, + 0x85, + 0x14, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskSourceRequestedDeferral + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x60, + 0x15, + 0x4A, + 0x92, + 0x69, + 0x9D, + 0x4D, + 0x85, + 0x55, + 0x4C, + 0xA4, + 0x56, + 0x3F, + 0xB1, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrintTaskTargetDeviceSupport + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x70, + 0x5D, + 0x29, + 0xCB, + 0xC2, + 0x7D, + 0x4B, + 0xB0, + 0xEA, + 0x93, + 0x09, + 0x50, + 0x91, + 0xA2, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardPrintTaskOptionsStatic + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x3D, + 0x48, + 0xB4, + 0xD0, + 0x0D, + 0xD4, + 0x4C, + 0xBA, + 0xFF, + 0x93, + 0x0F, + 0xC7, + 0xD6, + 0xA5, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardPrintTaskOptionsStatic2 + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x8B, + 0xE3, + 0x3B, + 0x44, + 0x7A, + 0x69, + 0x42, + 0x9A, + 0x52, + 0x81, + 0x26, + 0x1E, + 0x28, + 0x9E, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardPrintTaskOptionsStatic3 + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x8E, + 0xF6, + 0xBB, + 0x58, + 0x38, + 0xB3, + 0x41, + 0xA7, + 0x99, + 0x55, + 0xDD, + 0x98, + 0x88, + 0xD4, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.graphics/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.graphics/IID.Manual.cs new file mode 100644 index 0000000000..a095971d13 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.graphics/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.graphics.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IGeometrySource2D + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x79, + 0xFF, + 0xCA, + 0x0C, + 0x67, + 0x81, + 0x41, + 0xA6, + 0x24, + 0xDA, + 0x97, + 0x72, + 0x03, + 0xB8, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.audio/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.audio/IID.2.Manual.cs new file mode 100644 index 0000000000..088b81057c --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.audio/IID.2.Manual.cs @@ -0,0 +1,67 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioEffectsPackConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0xd7, + 0x62, + 0x7d, + 0x70, + 0xc1, + 0x53, + 0x6c, + 0xa8, + 0xf8, + 0x6f, + 0x98, + 0x01, + 0x5a, + 0x7f, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IAudioEffectsPackConfigurationStatics + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0xc2, + 0x04, + 0x13, + 0x53, + 0x0c, + 0x55, + 0xff, + 0xba, + 0x2b, + 0x8e, + 0x68, + 0xa9, + 0xb5, + 0x6a, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.audio/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.audio/IID.Manual.cs new file mode 100644 index 0000000000..8a09a628f6 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.audio/IID.Manual.cs @@ -0,0 +1,1768 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.audio.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioDeviceInputNode + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x6B, + 0x1B, + 0xB0, + 0x4E, + 0x6F, + 0xE2, + 0x49, + 0xAC, + 0x01, + 0x55, + 0x9D, + 0x62, + 0xBE, + 0xB3, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioDeviceOutputNode + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0xDB, + 0x2E, + 0x36, + 0x1C, + 0xFF, + 0x34, + 0x44, + 0x9E, + 0x0F, + 0xBD, + 0x2E, + 0xF5, + 0x22, + 0xAC, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFileInputNode + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x67, + 0x5B, + 0x90, + 0x65, + 0x6F, + 0xD4, + 0x4C, + 0x88, + 0x90, + 0x46, + 0x94, + 0x84, + 0x3C, + 0x27, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFileOutputNode + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x19, + 0xE0, + 0x50, + 0x66, + 0x51, + 0x93, + 0x40, + 0x80, + 0xF8, + 0xAD, + 0xA0, + 0x00, + 0x89, + 0xE9, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFrameCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x82, + 0x7C, + 0xDC, + 0x08, + 0x02, + 0x04, + 0x45, + 0xA5, + 0xA8, + 0xF0, + 0xF2, + 0x68, + 0x92, + 0x0A, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFrameInputNode + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x66, + 0xB2, + 0x01, + 0x96, + 0xFD, + 0xF5, + 0x4F, + 0xA3, + 0xC5, + 0xD2, + 0x7A, + 0x9B, + 0xF4, + 0x42, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFrameOutputNode + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x37, + 0x47, + 0xB8, + 0x99, + 0x32, + 0xF5, + 0x45, + 0x88, + 0xB3, + 0xC9, + 0xD1, + 0x2A, + 0x3F, + 0x1C, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraph + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x6E, + 0xD4, + 0x1A, + 0x8C, + 0xE4, + 0x14, + 0x4E, + 0x96, + 0x60, + 0x2C, + 0x4F, + 0x83, + 0xE9, + 0xCD, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraph2 + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x3B, + 0x4C, + 0x4E, + 0xC1, + 0x4F, + 0xF6, + 0x45, + 0xA9, + 0x47, + 0x3C, + 0xD3, + 0x8F, + 0x4F, + 0xD8, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraph3 + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x25, + 0xCD, + 0xDD, + 0x85, + 0x11, + 0xA7, + 0x42, + 0x83, + 0x1D, + 0x6A, + 0x9B, + 0x0F, + 0xC8, + 0x68, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraphConnection + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x70, + 0x30, + 0x76, + 0x4E, + 0xD0, + 0xAC, + 0x4F, + 0xB2, + 0x33, + 0x60, + 0x0B, + 0x42, + 0xED, + 0xD4, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraphSettings + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x64, + 0x59, + 0x1D, + 0xFE, + 0xE6, + 0x28, + 0x46, + 0x84, + 0xF8, + 0x9D, + 0x8B, + 0xDB, + 0xA2, + 0x57, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraphSettings2 + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x97, + 0x91, + 0x72, + 0xAB, + 0x4D, + 0xE3, + 0x46, + 0xB4, + 0xC9, + 0xD8, + 0xE1, + 0xA2, + 0x63, + 0x60, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraphSettingsFactory + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x1C, + 0xD9, + 0xA5, + 0xEB, + 0xC2, + 0x61, + 0x4A, + 0xA2, + 0x14, + 0x1D, + 0x66, + 0xD7, + 0x5F, + 0x83, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraphStatics + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x31, + 0xEC, + 0x76, + 0x59, + 0xE1, + 0xB7, + 0x4A, + 0xA8, + 0x2A, + 0x17, + 0xBE, + 0xB4, + 0xB3, + 0x1E, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioGraphUnrecoverableErrorOccurredEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xCB, + 0xD9, + 0xC3, + 0xF6, + 0x3F, + 0xB3, + 0x4F, + 0xB2, + 0x62, + 0x50, + 0xD4, + 0x35, + 0xC5, + 0x54, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioInputNode + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x00, + 0x48, + 0xD1, + 0x28, + 0x84, + 0x84, + 0x47, + 0xB7, + 0xFD, + 0xA9, + 0x9D, + 0x46, + 0x8C, + 0x5D, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioInputNode2 + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x56, + 0x51, + 0x90, + 0x68, + 0xCA, + 0x6D, + 0x4C, + 0xA8, + 0xBC, + 0xE3, + 0xEE, + 0x17, + 0xFE, + 0x3F, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNode + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x9D, + 0x38, + 0x15, + 0xD8, + 0xDB, + 0x19, + 0x48, + 0xBF, + 0x03, + 0x66, + 0x8E, + 0x93, + 0x57, + 0xCD, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitter + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x97, + 0x76, + 0x36, + 0x0A, + 0x88, + 0xB8, + 0x47, + 0xAD, + 0xF7, + 0x13, + 0x23, + 0xA9, + 0xD9, + 0x65, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitter2 + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xEE, + 0xB6, + 0x4A, + 0x29, + 0xEC, + 0xF8, + 0x47, + 0x81, + 0x8C, + 0xB6, + 0xB6, + 0x60, + 0xA5, + 0xAE, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterConeProperties + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x2C, + 0x9B, + 0xE9, + 0xCA, + 0x02, + 0x75, + 0x43, + 0x93, + 0x26, + 0x0C, + 0x6A, + 0xE4, + 0xBC, + 0xDF, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterDecayModel + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x5A, + 0x1D, + 0x1D, + 0x53, + 0x0D, + 0xA9, + 0x4F, + 0xBD, + 0x84, + 0xD5, + 0x81, + 0x6A, + 0x86, + 0xF3, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterDecayModelStatics + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x7C, + 0x78, + 0xC7, + 0x78, + 0xF1, + 0x2F, + 0x46, + 0xBC, + 0x81, + 0x8D, + 0xD5, + 0xCB, + 0xE5, + 0xDA, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterFactory + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x48, + 0xC8, + 0xFD, + 0xD6, + 0x6A, + 0xE4, + 0x4C, + 0xB7, + 0xF7, + 0xA9, + 0x93, + 0x70, + 0xDF, + 0x7E, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterNaturalDecayModelProperties + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x4B, + 0x93, + 0x48, + 0x2C, + 0xCF, + 0xFC, + 0x4E, + 0x93, + 0x31, + 0x75, + 0xBD, + 0x22, + 0xDF, + 0x1F, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterShape + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0x11, + 0x03, + 0xEA, + 0x3D, + 0xE7, + 0xBC, + 0x44, + 0x85, + 0x9C, + 0x45, + 0x55, + 0x3B, + 0xBC, + 0x48, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeEmitterShapeStatics + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0x27, + 0xBB, + 0x57, + 0xA5, + 0xFF, + 0x86, + 0x4B, + 0xA7, + 0x79, + 0xE2, + 0x64, + 0xAE, + 0xB9, + 0x14, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeListener + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x2E, + 0x72, + 0xD9, + 0x0A, + 0x0C, + 0xDA, + 0x41, + 0xB7, + 0x55, + 0x6C, + 0x77, + 0x83, + 0x5F, + 0xB1, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioNodeWithListener + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0x90, + 0x0F, + 0x0E, + 0xFF, + 0x79, + 0x44, + 0x45, + 0x9E, + 0xEB, + 0x01, + 0x25, + 0x7B, + 0x15, + 0x10, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioPlaybackConnection + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x1D, + 0x4C, + 0x1A, + 0xFC, + 0xCA, + 0xE7, + 0x50, + 0x87, + 0x18, + 0xEA, + 0x3F, + 0x81, + 0xCB, + 0xFA, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioPlaybackConnectionOpenResult + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x6A, + 0x65, + 0x4E, + 0xF9, + 0x39, + 0xC9, + 0x5F, + 0xA5, + 0x19, + 0xA5, + 0xBB, + 0xFD, + 0x9F, + 0xE9, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioPlaybackConnectionStatics + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x63, + 0x09, + 0xE6, + 0xE6, + 0x69, + 0xFC, + 0x5F, + 0x9E, + 0x13, + 0x82, + 0x4A, + 0x85, + 0x21, + 0x3D, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioStateMonitor + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0xD1, + 0x13, + 0x1D, + 0x99, + 0x01, + 0xDC, + 0x4C, + 0xB8, + 0x4E, + 0xE7, + 0x2C, + 0x2B, + 0x58, + 0x1E, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioStateMonitorStatics + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0xEA, + 0x74, + 0x63, + 0x3B, + 0x1B, + 0x01, + 0x40, + 0x94, + 0xD9, + 0xDD, + 0x22, + 0x53, + 0x30, + 0xFA, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioDeviceInputNodeResult + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0xC7, + 0xEE, + 0x16, + 0xA7, + 0x1C, + 0xEF, + 0x40, + 0x91, + 0xA4, + 0xD3, + 0x46, + 0xE0, + 0xAA, + 0x1B, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioDeviceInputNodeResult2 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x69, + 0x1C, + 0x92, + 0x35, + 0x3F, + 0xC7, + 0x41, + 0x96, + 0x22, + 0x79, + 0xF6, + 0x08, + 0xBA, + 0xED, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioDeviceOutputNodeResult + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x6D, + 0x77, + 0xF7, + 0x9A, + 0x1D, + 0xF7, + 0x47, + 0x9C, + 0xD4, + 0x28, + 0x59, + 0xCC, + 0x1B, + 0x7B, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioDeviceOutputNodeResult2 + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x26, + 0x64, + 0x48, + 0xCE, + 0xBD, + 0xB1, + 0x4A, + 0xBD, + 0x38, + 0xFB, + 0xAE, + 0x93, + 0xAE, + 0xDA, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioFileInputNodeResult + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0xD6, + 0x83, + 0xCE, + 0x97, + 0xE2, + 0x50, + 0x4C, + 0x9C, + 0xE7, + 0x1C, + 0x7A, + 0x69, + 0xD6, + 0xBD, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioFileInputNodeResult2 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x20, + 0x08, + 0xF9, + 0x80, + 0x3D, + 0xE0, + 0x4F, + 0x81, + 0xC1, + 0x76, + 0x8F, + 0xEA, + 0x7C, + 0xA7, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioFileOutputNodeResult + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0xBA, + 0xD6, + 0x47, + 0x09, + 0xE9, + 0x3F, + 0x45, + 0x86, + 0x6E, + 0x55, + 0x40, + 0xCD, + 0xA7, + 0x34, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioFileOutputNodeResult2 + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xB5, + 0x01, + 0x9F, + 0x18, + 0x33, + 0xB3, + 0x47, + 0xA6, + 0x0A, + 0x1B, + 0x49, + 0x2B, + 0xE7, + 0xFC, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioGraphResult + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0xEF, + 0x53, + 0x54, + 0xDE, + 0x7B, + 0x76, + 0x4B, + 0xBB, + 0x5D, + 0x48, + 0xF7, + 0x9C, + 0xFC, + 0x8C, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateAudioGraphResult2 + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0x8D, + 0x73, + 0x6D, + 0xC6, + 0x88, + 0xCB, + 0x4F, + 0xA5, + 0x34, + 0x85, + 0xCE, + 0xDD, + 0x40, + 0x50, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateMediaSourceAudioInputNodeResult + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x58, + 0xA6, + 0x46, + 0xC0, + 0x53, + 0x59, + 0x4D, + 0x9E, + 0x51, + 0xCC, + 0x1D, + 0x10, + 0x44, + 0xA4, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICreateMediaSourceAudioInputNodeResult2 + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0x4C, + 0x51, + 0x63, + 0x1A, + 0x6A, + 0xE3, + 0x49, + 0x97, + 0xEC, + 0x28, + 0xFD, + 0x5B, + 0xE1, + 0x14, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEchoEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x3F, + 0x4D, + 0x0E, + 0xB8, + 0x36, + 0x91, + 0x4C, + 0xB9, + 0xDA, + 0x11, + 0xF4, + 0x4A, + 0x8A, + 0x66, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEchoEffectDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x22, + 0x4E, + 0x0D, + 0xF2, + 0xAA, + 0x86, + 0x4E, + 0xA5, + 0x4C, + 0xFB, + 0x79, + 0xDB, + 0x8F, + 0x6C, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEqualizerBand + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x5A, + 0x0A, + 0xC0, + 0x2D, + 0x26, + 0x85, + 0x4B, + 0x9B, + 0xB7, + 0x43, + 0x28, + 0x0B, + 0x62, + 0xED, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEqualizerEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x6F, + 0x3F, + 0x02, + 0xFE, + 0x83, + 0x9A, + 0x44, + 0xA8, + 0x22, + 0xC6, + 0x96, + 0x44, + 0x2D, + 0x16, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEqualizerEffectDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0x6F, + 0x87, + 0xD2, + 0x10, + 0xD4, + 0xB5, + 0x4E, + 0x9E, + 0x69, + 0xC9, + 0xAA, + 0x12, + 0x77, + 0xEA, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameInputNodeQuantumStartedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0xD4, + 0x9B, + 0x3D, + 0x06, + 0xA3, + 0x06, + 0x4F, + 0xBD, + 0x9F, + 0xE9, + 0xEF, + 0xC8, + 0x22, + 0x63, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILimiterEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x5D, + 0x75, + 0x6B, + 0x03, + 0x26, + 0xBA, + 0x47, + 0xBD, + 0xEB, + 0x39, + 0x05, + 0x5E, + 0x34, + 0x86, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILimiterEffectDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xE6, + 0xBA, + 0xEC, + 0xFF, + 0x61, + 0xEF, + 0x45, + 0xB8, + 0xF5, + 0x48, + 0x65, + 0x9A, + 0x57, + 0xC7, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceAudioInputNode + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0x98, + 0xD8, + 0x99, + 0x8A, + 0xA8, + 0x41, + 0x40, + 0x8E, + 0x4F, + 0xDD, + 0xBA, + 0xC0, + 0xC9, + 0x1F, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IReverbEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xAA, + 0x06, + 0x46, + 0x63, + 0xF5, + 0x0A, + 0x4D, + 0x8F, + 0x6E, + 0xF0, + 0xCD, + 0xDF, + 0xF3, + 0x5D, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IReverbEffectDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0xCB, + 0xD5, + 0xA7, + 0x0B, + 0x10, + 0xF0, + 0x4F, + 0x9D, + 0xA6, + 0xDC, + 0x4E, + 0x05, + 0xA7, + 0x59, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISetDefaultSpatialAudioFormatResult + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0xA5, + 0x2A, + 0x1C, + 0x00, + 0x14, + 0x70, + 0x5E, + 0x9E, + 0xA9, + 0xAE, + 0x15, + 0x12, + 0x41, + 0xE8, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAudioDeviceConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x00, + 0x83, + 0xEE, + 0xCF, + 0x61, + 0x49, + 0x57, + 0x9D, + 0xA4, + 0x10, + 0xF0, + 0xFE, + 0x02, + 0x81, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAudioDeviceConfigurationStatics + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x7F, + 0xC3, + 0x3E, + 0x6D, + 0x93, + 0x04, + 0x4E, + 0x97, + 0x28, + 0x28, + 0x27, + 0xD9, + 0xF7, + 0x58, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAudioFormatConfiguration + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x09, + 0xDF, + 0x32, + 0xF0, + 0x50, + 0x95, + 0x53, + 0x99, + 0x23, + 0x7D, + 0x44, + 0xCA, + 0x71, + 0xED, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAudioFormatConfigurationStatics + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0xEF, + 0x5F, + 0x2B, + 0xC9, + 0x67, + 0x5F, + 0x4E, + 0xA3, + 0x5B, + 0x41, + 0x68, + 0x07, + 0x11, + 0xF8, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAudioFormatSubtypeStatics + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x8A, + 0xDE, + 0xB3, + 0xEE, + 0x83, + 0x66, + 0x42, + 0xA9, + 0x45, + 0xBE, + 0xDF, + 0x50, + 0x7A, + 0xFE, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAudioFormatSubtypeStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xE6, + 0x65, + 0x45, + 0x5B, + 0xD9, + 0x21, + 0x56, + 0xB6, + 0xAF, + 0x0E, + 0x88, + 0x49, + 0xC5, + 0x7C, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.capture.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.capture.core/IID.Manual.cs new file mode 100644 index 0000000000..e6066b0ea5 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.capture.core/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.capture.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IVariablePhotoCapturedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x4C, + 0xEB, + 0xD1, + 0x53, + 0x1B, + 0x4A, + 0x4E, + 0x8B, + 0x5C, + 0xDB, + 0x78, + 0x87, + 0xAC, + 0x94, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVariablePhotoSequenceCapture + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x2D, + 0x11, + 0xD0, + 0x1E, + 0x03, + 0x41, + 0x40, + 0xA6, + 0xD6, + 0xBD, + 0x74, + 0x24, + 0x76, + 0xA8, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVariablePhotoSequenceCapture2 + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x62, + 0x2C, + 0xFE, + 0xB0, + 0x50, + 0xE3, + 0x43, + 0x91, + 0x7C, + 0xE3, + 0xB9, + 0x27, + 0x98, + 0x94, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.capture.frames/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.capture.frames/IID.Manual.cs new file mode 100644 index 0000000000..e2fb1c050e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.capture.frames/IID.Manual.cs @@ -0,0 +1,823 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.capture.frames.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioMediaFrame + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0xFE, + 0xA9, + 0xA3, + 0x21, + 0x80, + 0x1B, + 0x44, + 0x9A, + 0x46, + 0xE7, + 0xF0, + 0x13, + 0x7B, + 0x79, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBufferMediaFrame + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x53, + 0xB1, + 0xB5, + 0x84, + 0x9B, + 0x62, + 0x40, + 0xB7, + 0x9C, + 0xA3, + 0x65, + 0xB2, + 0x59, + 0x68, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDepthMediaFrame + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0x5E, + 0x13, + 0x47, + 0x49, + 0x85, + 0xC0, + 0x45, + 0x92, + 0x5B, + 0x80, + 0xD3, + 0x5E, + 0xFD, + 0xB1, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDepthMediaFrame2 + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x47, + 0xCA, + 0x6C, + 0xA4, + 0xC4, + 0x76, + 0x41, + 0xB0, + 0xCD, + 0x33, + 0xEA, + 0xE3, + 0xB3, + 0x5A, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDepthMediaFrameFormat + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0xCF, + 0x12, + 0xC3, + 0x29, + 0xD7, + 0x3E, + 0x45, + 0x87, + 0x80, + 0x2E, + 0x04, + 0xF1, + 0x40, + 0xD2, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInfraredMediaFrame + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x35, + 0xD1, + 0x3F, + 0x4B, + 0x00, + 0x0E, + 0x4F, + 0x91, + 0xAC, + 0x46, + 0x52, + 0x99, + 0xB4, + 0x16, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameArrivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x0A, + 0x43, + 0x0B, + 0x90, + 0xA4, + 0x35, + 0x44, + 0xAD, + 0xA1, + 0x9A, + 0xFF, + 0xD5, + 0x52, + 0x39, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameFormat + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x2B, + 0x90, + 0x71, + 0x79, + 0xB2, + 0x97, + 0x4A, + 0xA9, + 0xDB, + 0xBD, + 0x5A, + 0x2F, + 0xB7, + 0x8F, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameFormat2 + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x63, + 0x85, + 0x63, + 0x87, + 0x5E, + 0x10, + 0x4C, + 0x86, + 0xD1, + 0x6D, + 0xF0, + 0x97, + 0xA6, + 0xC6, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameReader + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x43, + 0xC9, + 0xE4, + 0x28, + 0x20, + 0xED, + 0x48, + 0x90, + 0xB0, + 0xD1, + 0xC1, + 0xB1, + 0x62, + 0xE2, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameReader2 + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x27, + 0x11, + 0x87, + 0x31, + 0x85, + 0x50, + 0x40, + 0x87, + 0xCC, + 0xA1, + 0x37, + 0x33, + 0xCF, + 0x3E, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameReference + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x86, + 0xB8, + 0xF6, + 0xDC, + 0xF0, + 0x44, + 0x40, + 0x8D, + 0xC9, + 0x96, + 0x1C, + 0xED, + 0xD0, + 0x5B, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameReference2 + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x3E, + 0xBC, + 0xDD, + 0xB2, + 0xD5, + 0xEF, + 0x49, + 0x83, + 0x6A, + 0x94, + 0x7D, + 0x98, + 0x9B, + 0x80, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSource + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x29, + 0x78, + 0xD6, + 0xDB, + 0x90, + 0xA8, + 0x46, + 0x8A, + 0xDD, + 0x2A, + 0xA8, + 0x84, + 0xA8, + 0xD2, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceController + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x66, + 0x07, + 0x6D, + 0x6D, + 0x31, + 0x8F, + 0x4B, + 0xB7, + 0xB6, + 0xEE, + 0xB0, + 0x4A, + 0x8C, + 0x65, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceController2 + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x9F, + 0xC4, + 0xEF, + 0xF2, + 0xFC, + 0x03, + 0x4A, + 0xB4, + 0xE4, + 0xAC, + 0x96, + 0x28, + 0x73, + 0x9B, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceController3 + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0xF8, + 0x0C, + 0x1F, + 0x64, + 0x24, + 0x51, + 0x46, + 0xB1, + 0xE8, + 0x4A, + 0x82, + 0xDB, + 0xDB, + 0x54, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceGetPropertyResult + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x16, + 0x86, + 0x08, + 0x64, + 0x3A, + 0xD5, + 0x4B, + 0xBD, + 0x2B, + 0xE7, + 0xC8, + 0x98, + 0xD2, + 0xF3, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceGroup + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x5B, + 0x60, + 0x7F, + 0x32, + 0x48, + 0x5F, + 0x4B, + 0xAE, + 0x3D, + 0x41, + 0x2F, + 0xAA, + 0xB3, + 0x7D, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceGroupStatics + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0xBF, + 0x48, + 0x1C, + 0x6F, + 0x43, + 0x08, + 0x45, + 0x94, + 0xCF, + 0xD5, + 0xD8, + 0xB7, + 0x32, + 0x64, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceInfo + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0xC9, + 0xBD, + 0x87, + 0x01, + 0x46, + 0x8F, + 0x40, + 0x91, + 0xCF, + 0x03, + 0x83, + 0x18, + 0xCD, + 0x0A, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x78, + 0x5A, + 0x19, + 0x57, + 0x64, + 0xC6, + 0x42, + 0xA7, + 0x69, + 0x19, + 0xB6, + 0x5B, + 0xD3, + 0x2E, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceInfo3 + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x4A, + 0x82, + 0xCA, + 0xEA, + 0x66, + 0x85, + 0x58, + 0xA2, + 0xB6, + 0x26, + 0xC0, + 0xEE, + 0xEC, + 0x3C, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrameSourceInfo4 + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0xD7, + 0x17, + 0x48, + 0xEB, + 0x85, + 0x0C, + 0x47, + 0x8F, + 0x37, + 0x43, + 0xCA, + 0x54, + 0x98, + 0xE4, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMultiSourceMediaFrameArrivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x5E, + 0x11, + 0x63, + 0x51, + 0xCF, + 0xFD, + 0x48, + 0xAA, + 0xB0, + 0x6D, + 0x69, + 0x3E, + 0xB4, + 0x81, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMultiSourceMediaFrameReader + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x44, + 0x14, + 0x8D, + 0x63, + 0xF7, + 0x8D, + 0x48, + 0x98, + 0xF2, + 0xB4, + 0x37, + 0xBC, + 0xF0, + 0x75, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMultiSourceMediaFrameReader2 + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x8A, + 0x5C, + 0xEF, + 0x5C, + 0xFC, + 0x6B, + 0x4C, + 0x9D, + 0x81, + 0x3C, + 0xB9, + 0xCC, + 0x63, + 0x7C, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMultiSourceMediaFrameReference + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0x4B, + 0x96, + 0x21, + 0xE2, + 0x7F, + 0xD6, + 0x44, + 0x92, + 0xE5, + 0x29, + 0x8E, + 0x6D, + 0x28, + 0x10, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoMediaFrame + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x4C, + 0xDD, + 0x00, + 0xBD, + 0x32, + 0xE1, + 0x4F, + 0xA0, + 0x13, + 0x7C, + 0xC1, + 0x3C, + 0xF5, + 0xDB, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoMediaFrameFormat + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x7F, + 0x02, + 0x46, + 0x1B, + 0xD7, + 0xC7, + 0x45, + 0x8F, + 0x14, + 0x6D, + 0x9A, + 0x0A, + 0xE6, + 0x04, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.capture/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.capture/IID.Manual.cs new file mode 100644 index 0000000000..d65c7fdfe7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.capture/IID.Manual.cs @@ -0,0 +1,3010 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.capture.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IMediaCaptureFailedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0xEF, + 0x14, + 0x20, + 0xD8, + 0x5C, + 0x08, + 0x4F, + 0xA3, + 0x14, + 0x0D, + 0x36, + 0x0D, + 0xA5, + 0x9F, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRecordLimitationExceededEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0x8F, + 0xAE, + 0x3F, + 0xE1, + 0x4F, + 0xFD, + 0x4F, + 0xAA, + 0xBA, + 0xE1, + 0xF1, + 0x33, + 0x7D, + 0x4E, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedCapturedPhoto + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x72, + 0x72, + 0xF0, + 0x92, + 0xB2, + 0x91, + 0x44, + 0x9D, + 0x41, + 0x99, + 0x80, + 0x7A, + 0x55, + 0x0B, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedCapturedPhoto2 + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x6C, + 0xCF, + 0x18, + 0xFE, + 0xCF, + 0xD8, + 0x42, + 0x81, + 0x04, + 0x01, + 0x7B, + 0xB3, + 0x18, + 0xF4, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedPhotoCapture + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0xAA, + 0xFF, + 0x83, + 0x67, + 0x66, + 0xDC, + 0x44, + 0x97, + 0x3C, + 0xA6, + 0xBC, + 0xE5, + 0x96, + 0xAA, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastBackgroundService + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0xE7, + 0xD1, + 0xBA, + 0x94, + 0xFA, + 0xF9, + 0x46, + 0x95, + 0xFC, + 0xD7, + 0x15, + 0x11, + 0xCD, + 0xA7, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastBackgroundService2 + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0xCB, + 0x8C, + 0xFC, + 0x49, + 0x55, + 0x87, + 0x4B, + 0x95, + 0x9F, + 0x23, + 0xCA, + 0x40, + 0x1F, + 0xD4, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastBackgroundServiceSignInInfo + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x52, + 0x73, + 0x5E, + 0xC8, + 0x88, + 0xCA, + 0x4E, + 0x89, + 0xBA, + 0x48, + 0x25, + 0x98, + 0x5D, + 0xB8, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastBackgroundServiceSignInInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x28, + 0x04, + 0x91, + 0xCF, + 0x62, + 0x3C, + 0x4A, + 0xA7, + 0xEE, + 0xAE, + 0xB5, + 0x07, + 0x40, + 0x46, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastBackgroundServiceStreamInfo + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x02, + 0xDC, + 0x31, + 0x0A, + 0x99, + 0x04, + 0x49, + 0xAA, + 0x96, + 0xFE, + 0x36, + 0x43, + 0x81, + 0xF1, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastBackgroundServiceStreamInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x9F, + 0x1E, + 0xBD, + 0xDC, + 0x94, + 0xCE, + 0x4F, + 0x95, + 0x41, + 0xA9, + 0xF1, + 0x29, + 0x59, + 0x63, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastCameraCaptureStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x4C, + 0x33, + 0x1E, + 0x82, + 0xB8, + 0x88, + 0x4B, + 0x86, + 0x92, + 0x05, + 0x99, + 0x9A, + 0xCE, + 0xB7, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastGlobalSettings + { + get + { + ReadOnlySpan data = + [ + 0xA5, + 0x27, + 0xCB, + 0xB2, + 0xFC, + 0x70, + 0x17, + 0x4E, + 0x80, + 0xBD, + 0x6B, + 0xA0, + 0xFD, + 0x3F, + 0xF3, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastHeartbeatRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x42, + 0xA5, + 0xCE, + 0x51, + 0xEE, + 0xBF, + 0x4D, + 0x94, + 0x72, + 0x79, + 0xA9, + 0xED, + 0x4E, + 0x21, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x01, + 0x4E, + 0x36, + 0x4E, + 0x1E, + 0x1F, + 0x41, + 0xAB, + 0x3E, + 0x92, + 0x95, + 0x98, + 0x44, + 0xC1, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastMicrophoneCaptureStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0xD5, + 0x6A, + 0xA8, + 0x40, + 0x94, + 0x08, + 0x49, + 0x9D, + 0x09, + 0x65, + 0xB7, + 0xE3, + 0x15, + 0xD7, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPlugIn + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x1E, + 0x0C, + 0x52, + 0x13, + 0x65, + 0x74, + 0x45, + 0xAC, + 0x54, + 0x23, + 0xB7, + 0x97, + 0x29, + 0x61, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPlugInManager + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0xD9, + 0x50, + 0xE5, + 0xA1, + 0x27, + 0xA7, + 0x49, + 0xBB, + 0xF4, + 0xD7, + 0xA9, + 0xE9, + 0xD0, + 0x76, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPlugInManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x5C, + 0x64, + 0xF2, + 0x76, + 0x5C, + 0xDC, + 0x4C, + 0x93, + 0x64, + 0x82, + 0xFE, + 0x9E, + 0xB6, + 0x53, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPlugInStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0xD0, + 0x81, + 0x48, + 0xC5, + 0xAB, + 0xC6, + 0x4F, + 0x84, + 0xB0, + 0x89, + 0x37, + 0x0B, + 0xB4, + 0x72, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPreview + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x0F, + 0xB6, + 0x14, + 0x4A, + 0x6E, + 0x80, + 0x4B, + 0xA1, + 0x4F, + 0x67, + 0xEE, + 0x77, + 0xD1, + 0x53, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPreviewStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0xF2, + 0x57, + 0x5A, + 0xEA, + 0x8D, + 0x86, + 0x4E, + 0x90, + 0xAD, + 0x03, + 0xFC, + 0x26, + 0xB9, + 0x65, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPreviewStreamReader + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x8D, + 0x22, + 0x92, + 0x3F, + 0xDB, + 0xA8, + 0x40, + 0x8C, + 0xD4, + 0xF4, + 0xE3, + 0x71, + 0xDD, + 0xAB, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPreviewStreamVideoFrame + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xBE, + 0x0F, + 0x01, + 0xFE, + 0x94, + 0x99, + 0x44, + 0xB8, + 0xC0, + 0x8D, + 0x24, + 0x42, + 0x79, + 0xFB, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastPreviewStreamVideoHeader + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x61, + 0xEF, + 0x8B, + 0x84, + 0xDA, + 0x99, + 0x44, + 0xA7, + 0xAB, + 0x87, + 0x11, + 0x8C, + 0xB4, + 0xA1, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastProviderSettings + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0xDF, + 0x0B, + 0xC3, + 0x48, + 0x99, + 0x8F, + 0x45, + 0xAD, + 0x50, + 0xAA, + 0x06, + 0xEC, + 0x03, + 0xDA, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastServices + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0xB4, + 0x60, + 0x86, + 0x9B, + 0x96, + 0x3C, + 0x4E, + 0xAC, + 0x3A, + 0x8B, + 0x04, + 0x2E, + 0xE4, + 0xEE, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastSignInStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x92, + 0xB6, + 0x02, + 0x19, + 0x59, + 0x9E, + 0x4A, + 0x8D, + 0x5E, + 0xC9, + 0xBB, + 0x0D, + 0xD3, + 0x37, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastState + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x05, + 0x08, + 0xEE, + 0x99, + 0x80, + 0xDD, + 0x4D, + 0x92, + 0x2E, + 0xC5, + 0x6D, + 0xAC, + 0x58, + 0xAB, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastStreamAudioFrame + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x4A, + 0xAB, + 0xEF, + 0xBA, + 0x21, + 0x3F, + 0x45, + 0x8B, + 0xB7, + 0x5E, + 0x93, + 0x8A, + 0x2E, + 0x9A, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastStreamAudioHeader + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xA5, + 0x21, + 0xBF, + 0x78, + 0x6B, + 0x16, + 0x42, + 0x9F, + 0x07, + 0x5A, + 0xFF, + 0x52, + 0x56, + 0xF1, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastStreamReader + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0xBC, + 0x38, + 0xB3, + 0x64, + 0x33, + 0x60, + 0x44, + 0xB5, + 0xF1, + 0x3C, + 0xC2, + 0x79, + 0x6A, + 0x8A, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastStreamStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0xA7, + 0x08, + 0x51, + 0x08, + 0xD0, + 0x89, + 0x4A, + 0x93, + 0xBE, + 0x58, + 0xAE, + 0xD9, + 0x61, + 0x37, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastStreamVideoFrame + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0xCF, + 0x97, + 0x0F, + 0xE4, + 0xC9, + 0x88, + 0x4E, + 0x81, + 0x94, + 0xD8, + 0x14, + 0xCB, + 0xD5, + 0x85, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastStreamVideoHeader + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xBE, + 0x9E, + 0x0B, + 0x32, + 0x7E, + 0x2D, + 0x43, + 0x8C, + 0xA2, + 0x36, + 0xBF, + 0x10, + 0xB9, + 0xF4, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0xAB, + 0xEB, + 0xDE, + 0x5E, + 0xEC, + 0x8F, + 0x4D, + 0xB1, + 0xC0, + 0x5D, + 0xA6, + 0xE8, + 0xC7, + 0x56, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppBroadcastViewerCountChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x18, + 0xE1, + 0xE6, + 0x01, + 0x54, + 0xDE, + 0x4A, + 0x8B, + 0xD2, + 0xC1, + 0x4E, + 0xCE, + 0xE6, + 0x80, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCapture + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0xD4, + 0x49, + 0x97, + 0x9A, + 0xA2, + 0xED, + 0x45, + 0x8F, + 0x29, + 0x22, + 0xD0, + 0x99, + 0x42, + 0xCF, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureAlternateShortcutKeys + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0xE0, + 0xE8, + 0x19, + 0x6C, + 0x23, + 0xF9, + 0x40, + 0xB3, + 0x8F, + 0x9B, + 0x7D, + 0xD6, + 0x5D, + 0x1C, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureAlternateShortcutKeys2 + { + get + { + ReadOnlySpan data = + [ + 0x90, + 0x90, + 0x66, + 0xC3, + 0x17, + 0xDD, + 0xF0, + 0x47, + 0x95, + 0xE5, + 0xCE, + 0x42, + 0x28, + 0x6C, + 0xF3, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureAlternateShortcutKeys3 + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x44, + 0x81, + 0x7B, + 0x8E, + 0x41, + 0x9C, + 0x46, + 0xA4, + 0x9A, + 0x45, + 0xB5, + 0x97, + 0xC8, + 0x26, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureDurationGeneratedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0x56, + 0xF5, + 0xC1, + 0xA1, + 0xFF, + 0xC9, + 0x44, + 0x97, + 0x5F, + 0x27, + 0xFB, + 0xEB, + 0x55, + 0x3B, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureFileGeneratedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0xFB, + 0x89, + 0x41, + 0x5E, + 0x46, + 0xBF, + 0x45, + 0x90, + 0x7F, + 0x16, + 0x5B, + 0x3F, + 0xB2, + 0x37, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x3E, + 0x9E, + 0x7D, + 0x82, + 0x62, + 0x35, + 0x47, + 0x8D, + 0x4E, + 0xAA, + 0x45, + 0xF9, + 0x0F, + 0x67, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureMetadataWriter + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x48, + 0xCE, + 0xE0, + 0xAF, + 0x9A, + 0xB4, + 0x46, + 0xAD, + 0x31, + 0x6A, + 0x60, + 0xB4, + 0x41, + 0xC7, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureMicrophoneCaptureStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x24, + 0x4D, + 0x32, + 0xBC, + 0x45, + 0x35, + 0x4C, + 0xBC, + 0x35, + 0xE4, + 0x69, + 0xFC, + 0x7A, + 0x69, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureRecordOperation + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x20, + 0x60, + 0xC6, + 0x38, + 0x15, + 0x5C, + 0x49, + 0x9B, + 0xBB, + 0x2B, + 0xA8, + 0x70, + 0xEC, + 0x58, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureRecordingStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x87, + 0xFC, + 0x24, + 0x05, + 0xE3, + 0x0D, + 0x49, + 0xB4, + 0x15, + 0x6B, + 0x1C, + 0x90, + 0x49, + 0x73, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureServices + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0xC0, + 0xFE, + 0x44, + 0xF5, + 0x34, + 0x18, + 0x4F, + 0xAE, + 0x8C, + 0xB9, + 0x12, + 0x3A, + 0xBB, + 0xFC, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureSettings + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x3A, + 0x68, + 0x14, + 0x07, + 0x88, + 0xD3, + 0x48, + 0x88, + 0x3A, + 0x97, + 0x0E, + 0xE4, + 0x53, + 0x2A, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureSettings2 + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xCE, + 0xB8, + 0xFC, + 0x6B, + 0xE2, + 0x6F, + 0x47, + 0x9B, + 0x1A, + 0xEC, + 0x34, + 0x2D, + 0x2A, + 0x8F, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureSettings3 + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x02, + 0x35, + 0xA9, + 0xC2, + 0x88, + 0xD6, + 0x42, + 0xAA, + 0xAA, + 0x40, + 0xFE, + 0xFF, + 0xD7, + 0x5A, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureSettings4 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x77, + 0xC2, + 0x07, + 0x81, + 0x1A, + 0x2F, + 0x48, + 0xA2, + 0x44, + 0x04, + 0x9D, + 0x95, + 0xF2, + 0x5B, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureSettings5 + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x45, + 0x89, + 0x18, + 0xE8, + 0xB0, + 0xA0, + 0x4B, + 0x8F, + 0x13, + 0x3E, + 0xAA, + 0x5F, + 0xA4, + 0x01, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureState + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x43, + 0x13, + 0x73, + 0xEB, + 0xD4, + 0xCE, + 0x44, + 0x95, + 0x38, + 0x46, + 0x5F, + 0x50, + 0x6A, + 0xC4, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureStatics + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0xDD, + 0x22, + 0xF9, + 0x7E, + 0x0A, + 0x74, + 0x4E, + 0x8B, + 0x20, + 0x9C, + 0x1F, + 0x90, + 0x2D, + 0x08, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppCaptureStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x81, + 0xD8, + 0xB2, + 0x6C, + 0x83, + 0xA4, + 0x4D, + 0xAF, + 0xD7, + 0xFA, + 0xCC, + 0x04, + 0x1E, + 0x1C, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraCaptureUI + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x75, + 0x58, + 0x48, + 0x93, + 0x6F, + 0xB4, + 0x4B, + 0xB8, + 0xF3, + 0xE8, + 0x9E, + 0x48, + 0x94, + 0x8C, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraCaptureUIPhotoCaptureSettings + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0xBE, + 0xF5, + 0xB9, + 0x72, + 0x34, + 0xA8, + 0x46, + 0x8A, + 0x9E, + 0x04, + 0xCE, + 0x42, + 0xCC, + 0xC9, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraCaptureUIVideoCaptureSettings + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x2D, + 0xE9, + 0x64, + 0x8D, + 0xA2, + 0x5A, + 0x42, + 0xB8, + 0x4F, + 0xE5, + 0x68, + 0x33, + 0x5F, + 0xF2, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraOptionsUIStatics + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x5E, + 0x0D, + 0x3B, + 0x06, + 0x39, + 0x7D, + 0x4B, + 0x94, + 0x6C, + 0x7B, + 0xDE, + 0x84, + 0x44, + 0x99, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICapturedFrame + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0xDE, + 0xD2, + 0x1D, + 0x1B, + 0x57, + 0xD8, + 0x44, + 0x8E, + 0x80, + 0xA0, + 0x8A, + 0x15, + 0x78, + 0x76, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICapturedFrame2 + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0xA6, + 0x3F, + 0x54, + 0x78, + 0xBD, + 0x66, + 0x48, + 0xAD, + 0xDA, + 0x24, + 0x31, + 0x4B, + 0xC6, + 0x5D, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICapturedFrameControlValues + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x5B, + 0xC6, + 0x90, + 0x0D, + 0x4E, + 0xA4, + 0x4C, + 0x88, + 0x2D, + 0x7A, + 0x14, + 0x4F, + 0xED, + 0x0A, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICapturedFrameControlValues2 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x2B, + 0x0B, + 0x50, + 0xD2, + 0x06, + 0xA7, + 0x4A, + 0xA7, + 0xDB, + 0xD3, + 0x7A, + 0xF7, + 0x33, + 0x21, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICapturedFrameWithSoftwareBitmap + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x8B, + 0x8E, + 0xB5, + 0x03, + 0x85, + 0xB5, + 0x49, + 0x9E, + 0x86, + 0x89, + 0x7D, + 0x26, + 0xA3, + 0xFF, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICapturedPhoto + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x7E, + 0xCE, + 0xB0, + 0xCC, + 0xCF, + 0x6C, + 0x4D, + 0x8A, + 0xD1, + 0x08, + 0x69, + 0x20, + 0x8A, + 0xCA, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGameBarServices + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xAD, + 0xBE, + 0x2D, + 0xA6, + 0x50, + 0x9E, + 0x49, + 0x8C, + 0x6C, + 0xD3, + 0x30, + 0xA7, + 0x31, + 0x17, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGameBarServicesCommandEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x26, + 0x42, + 0xA7, + 0x76, + 0xF1, + 0xCF, + 0x4F, + 0x8F, + 0xBB, + 0xCF, + 0x69, + 0x8B, + 0x2E, + 0xB8, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGameBarServicesManager + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x9C, + 0x4B, + 0x3A, + 0x8B, + 0x7F, + 0x60, + 0x4C, + 0x9D, + 0xBB, + 0x0B, + 0xCD, + 0x26, + 0x2D, + 0xFF, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGameBarServicesManagerGameBarServicesCreatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xBD, + 0xED, + 0xED, + 0x3E, + 0x14, + 0xA3, + 0x49, + 0xA5, + 0xEA, + 0x0B, + 0x19, + 0x95, + 0xC8, + 0xD4, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGameBarServicesManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xB6, + 0xC1, + 0x34, + 0x25, + 0xFF, + 0x92, + 0x47, + 0x98, + 0xF2, + 0xD3, + 0x75, + 0x3F, + 0x15, + 0xAC, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGameBarServicesTargetInfo + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0x2F, + 0x20, + 0xB4, + 0x11, + 0x16, + 0x05, + 0x4E, + 0xB6, + 0xEF, + 0xDF, + 0xD7, + 0x37, + 0xAE, + 0x33, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagMediaRecording + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0xBA, + 0xC8, + 0x41, + 0x3F, + 0xFF, + 0xF0, + 0x49, + 0xA4, + 0x77, + 0xF1, + 0x95, + 0xE3, + 0xCE, + 0x51, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagMediaRecording2 + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xC7, + 0x69, + 0x63, + 0x44, + 0x56, + 0xE2, + 0x41, + 0x97, + 0xAF, + 0x8E, + 0xF5, + 0x6A, + 0x25, + 0xE2, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagMediaRecording3 + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0xAB, + 0x33, + 0x5C, + 0xF7, + 0x48, + 0xDA, + 0x47, + 0xB4, + 0x1E, + 0x90, + 0x88, + 0x0A, + 0x5F, + 0xE0, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagPhotoCapture + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x51, + 0x72, + 0xA3, + 0x44, + 0x6B, + 0x3D, + 0x47, + 0x8F, + 0x24, + 0xF7, + 0x03, + 0xD6, + 0xC0, + 0xEC, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagPhotoSequenceCapture + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x46, + 0xC3, + 0x7C, + 0xA9, + 0xB9, + 0x91, + 0x4C, + 0x8F, + 0xFA, + 0x28, + 0x7E, + 0x9C, + 0x66, + 0x86, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0xFB, + 0x1A, + 0xC6, + 0x10, + 0xFB, + 0x34, + 0x4A, + 0xAC, + 0x18, + 0xCA, + 0x80, + 0xD9, + 0xC8, + 0xE7, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture2 + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0x82, + 0xC6, + 0x9C, + 0xA1, + 0x7D, + 0x43, + 0x40, + 0xB6, + 0x52, + 0x21, + 0xB8, + 0x87, + 0x8D, + 0xAF, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture3 + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x6F, + 0x13, + 0xD4, + 0x64, + 0x15, + 0x6E, + 0x46, + 0xBC, + 0x0A, + 0xAF, + 0x94, + 0xE0, + 0x2A, + 0xB0, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture4 + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x6F, + 0xCD, + 0xBA, + 0x08, + 0xFB, + 0x47, + 0x49, + 0xAE, + 0xA2, + 0xCE, + 0x14, + 0xEF, + 0xF0, + 0xCE, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture5 + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x7C, + 0x78, + 0xDA, + 0x9B, + 0x3A, + 0x20, + 0x47, + 0xA7, + 0x1E, + 0x97, + 0x90, + 0x0A, + 0x31, + 0x6E, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture6 + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x48, + 0x89, + 0x22, + 0x20, + 0x4B, + 0xB1, + 0x4B, + 0x9F, + 0xD6, + 0xA5, + 0x83, + 0x21, + 0x2A, + 0x10, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapture7 + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xF1, + 0x69, + 0x91, + 0x88, + 0x88, + 0x1A, + 0x54, + 0x95, + 0xBC, + 0x24, + 0xE4, + 0xD4, + 0x62, + 0x54, + 0x2A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0x92, + 0x2F, + 0x9D, + 0x88, + 0xA5, + 0xC6, + 0x43, + 0x89, + 0xD6, + 0x5A, + 0xD3, + 0x22, + 0xAF, + 0x00, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0xE3, + 0xFD, + 0x80, + 0xC4, + 0x54, + 0xC0, + 0x42, + 0x8D, + 0x19, + 0xCE, + 0xA1, + 0xA8, + 0x7C, + 0xA1, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureFocusChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0xBC, + 0xE1, + 0x81, + 0x77, + 0x22, + 0x3E, + 0x49, + 0xAB, + 0xEE, + 0xD3, + 0xF4, + 0x4F, + 0xF9, + 0x8C, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xBA, + 0x82, + 0x97, + 0x65, + 0xEA, + 0x00, + 0x49, + 0x93, + 0x56, + 0x8C, + 0xA8, + 0x87, + 0x72, + 0x68, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings2 + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x06, + 0x4E, + 0x40, + 0xDC, + 0xC9, + 0xE9, + 0x43, + 0xAE, + 0xE4, + 0xE6, + 0xBF, + 0x1B, + 0x57, + 0xB4, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings3 + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x51, + 0x60, + 0x41, + 0x48, + 0xBE, + 0x30, + 0x47, + 0x81, + 0x04, + 0x0C, + 0xF6, + 0xE9, + 0xE9, + 0x79, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings4 + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0xA5, + 0x02, + 0xF5, + 0xB7, + 0x4C, + 0x28, + 0x4D, + 0x95, + 0xED, + 0x4F, + 0x9F, + 0x01, + 0x2E, + 0x05, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings5 + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xE3, + 0xA2, + 0xD5, + 0x26, + 0x26, + 0x94, + 0x4E, + 0xB7, + 0xB3, + 0x53, + 0x08, + 0xA0, + 0xF6, + 0x4B, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings6 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x6B, + 0xE2, + 0xB2, + 0xB1, + 0x3D, + 0x33, + 0x4D, + 0xAB, + 0x63, + 0x0F, + 0xFA, + 0x09, + 0x05, + 0x65, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureInitializationSettings7 + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x69, + 0x54, + 0x41, + 0x8A, + 0xF5, + 0x82, + 0x5D, + 0x9E, + 0xF4, + 0xED, + 0x57, + 0x2F, + 0xB5, + 0xE3, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCapturePauseResult + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x7C, + 0xC4, + 0xAE, + 0x77, + 0x44, + 0x04, + 0x4B, + 0xA0, + 0x6F, + 0x2C, + 0x1C, + 0x51, + 0x82, + 0xFE, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureRelativePanelWatcher + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x65, + 0x89, + 0x7D, + 0xBE, + 0x04, + 0x89, + 0x5B, + 0xB3, + 0x0E, + 0xBD, + 0x34, + 0xA9, + 0xF1, + 0x2D, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureSettings + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0xAA, + 0x83, + 0x1D, + 0x45, + 0x6D, + 0x77, + 0x44, + 0x8D, + 0xC4, + 0xAC, + 0x5B, + 0xC0, + 0x1C, + 0x40, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureSettings2 + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0x7C, + 0x9E, + 0x6F, + 0x9F, + 0xFA, + 0x13, + 0x4B, + 0x9C, + 0xBE, + 0x5A, + 0xB9, + 0x4F, + 0x1F, + 0x34, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureSettings3 + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x67, + 0x3C, + 0x30, + 0x58, + 0x80, + 0x1B, + 0x4B, + 0xB8, + 0x77, + 0x8C, + 0x2E, + 0xF3, + 0x52, + 0x84, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureStatics + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0x81, + 0xEF, + 0xAC, + 0xED, + 0x99, + 0x45, + 0x46, + 0x96, + 0x5E, + 0x19, + 0x25, + 0xCF, + 0xC6, + 0x38, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureStopResult + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x6A, + 0xDB, + 0xF9, + 0x92, + 0xA0, + 0xD1, + 0x4A, + 0x97, + 0xD4, + 0xF2, + 0x01, + 0xF9, + 0xD0, + 0x82, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureVideoPreview + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x70, + 0x72, + 0x27, + 0x9E, + 0x54, + 0x7F, + 0x44, + 0xA2, + 0x0A, + 0x4F, + 0x03, + 0xC4, + 0x79, + 0xD8, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureVideoProfile + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x73, + 0xA0, + 0x21, + 0xEE, + 0xA3, + 0xCF, + 0x4E, + 0x9E, + 0xF6, + 0x50, + 0xB0, + 0xBC, + 0x4E, + 0x13, + 0x05, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureVideoProfile2 + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xC9, + 0xDD, + 0x97, + 0xCE, + 0x94, + 0x8F, + 0x46, + 0x93, + 0x16, + 0xFC, + 0x5B, + 0xC2, + 0x63, + 0x8F, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureVideoProfileMediaDescription + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0xAF, + 0x12, + 0x80, + 0x91, + 0xB6, + 0xFF, + 0x49, + 0x83, + 0xF2, + 0xC1, + 0xE7, + 0x6E, + 0xAA, + 0xEA, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCaptureVideoProfileMediaDescription2 + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0xEF, + 0xA6, + 0xC6, + 0x2D, + 0x32, + 0x3A, + 0x41, + 0xB8, + 0x5A, + 0x68, + 0xA8, + 0x8E, + 0x02, + 0xF4, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOptionalReferencePhotoCapturedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x88, + 0x0F, + 0x47, + 0x6D, + 0x1E, + 0x51, + 0x40, + 0x9C, + 0x8B, + 0xF1, + 0xD8, + 0x5A, + 0xF0, + 0x47, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhotoCapturedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xFB, + 0x3B, + 0x37, + 0x4E, + 0x98, + 0xF0, + 0x4F, + 0xBF, + 0x85, + 0x1C, + 0x00, + 0xAA, + 0xBC, + 0x5A, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhotoConfirmationCapturedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x36, + 0x47, + 0xAB, + 0x8A, + 0xC2, + 0x27, + 0x48, + 0x8F, + 0x8D, + 0x36, + 0x36, + 0xD3, + 0xBE, + 0xB5, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoStreamConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x0A, + 0x77, + 0xD8, + 0x90, + 0x43, + 0x5E, + 0x4B, + 0xAD, + 0x3E, + 0x0F, + 0x8A, + 0xF0, + 0x96, + 0x34, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.casting/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.casting/IID.Manual.cs new file mode 100644 index 0000000000..29aa7e1ed2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.casting/IID.Manual.cs @@ -0,0 +1,229 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.casting.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICastingConnection + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x16, + 0x95, + 0xCD, + 0xF1, + 0xC2, + 0x98, + 0x44, + 0x8B, + 0x78, + 0x5F, + 0xB4, + 0xCD, + 0x36, + 0x40, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingConnectionErrorOccurredEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0x3C, + 0xFB, + 0xA7, + 0x19, + 0x87, + 0x00, + 0x4F, + 0x81, + 0xFB, + 0x96, + 0x18, + 0x63, + 0xC7, + 0x9A, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingDevice + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x1C, + 0x72, + 0xDE, + 0x43, + 0x4A, + 0xD1, + 0x4A, + 0xA6, + 0xD2, + 0x24, + 0x92, + 0xA7, + 0x96, + 0xC3, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingDevicePicker + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x99, + 0xD3, + 0xDC, + 0x91, + 0x05, + 0xBE, + 0x49, + 0xAA, + 0xCB, + 0x4B, + 0x82, + 0xEE, + 0x75, + 0x6A, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingDevicePickerFilter + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0x61, + 0x8C, + 0xBE, + 0x63, + 0xB5, + 0x54, + 0x43, + 0xAE, + 0x33, + 0x9F, + 0xDA, + 0xAD, + 0x8C, + 0x62, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingDeviceSelectedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x9E, + 0x43, + 0xDC, + 0x57, + 0xDD, + 0x0D, + 0x4D, + 0x94, + 0x00, + 0xAF, + 0x45, + 0xE4, + 0xFB, + 0x36, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x58, + 0xD9, + 0xE7, + 0x13, + 0x4D, + 0x37, + 0x42, + 0xA3, + 0x65, + 0x4C, + 0x4F, + 0x6A, + 0x4C, + 0xFD, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICastingSource + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0xEA, + 0x29, + 0xF4, + 0x67, + 0x34, + 0xE6, + 0x47, + 0xA0, + 0x27, + 0x52, + 0x29, + 0x23, + 0xE9, + 0xD7, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.core/IID.Manual.cs new file mode 100644 index 0000000000..4692971ca6 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.core/IID.Manual.cs @@ -0,0 +1,2929 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioStreamDescriptor + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x92, + 0x36, + 0x1E, + 0x27, + 0x40, + 0x47, + 0x48, + 0xA7, + 0x0B, + 0xDF, + 0x1D, + 0x9A, + 0x2A, + 0x7B, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioStreamDescriptor2 + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0xF1, + 0x68, + 0x2E, + 0x48, + 0xA4, + 0x7B, + 0x49, + 0x88, + 0x40, + 0x85, + 0x08, + 0x26, + 0x65, + 0xAC, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioStreamDescriptor3 + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x0D, + 0x22, + 0x4D, + 0x83, + 0x8E, + 0xEF, + 0x44, + 0x89, + 0x73, + 0x2F, + 0x63, + 0xE9, + 0x93, + 0xF3, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioStreamDescriptorFactory + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xCE, + 0x86, + 0x4A, + 0xB1, + 0x4C, + 0x80, + 0x43, + 0x8E, + 0x0C, + 0x83, + 0x50, + 0x4B, + 0x7F, + 0x5B, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioTrack + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x6E, + 0x3B, + 0xF2, + 0xF7, + 0x3E, + 0xDE, + 0x40, + 0xB9, + 0x43, + 0x06, + 0x8B, + 0x13, + 0x21, + 0x70, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioTrackOpenFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xB9, + 0xDD, + 0xEE, + 0x7C, + 0xBB, + 0x12, + 0x41, + 0xBF, + 0x76, + 0x93, + 0x84, + 0x67, + 0x6F, + 0x82, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioTrackSupportInfo + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0xEF, + 0x8B, + 0x17, + 0x39, + 0xCC, + 0xA6, + 0x44, + 0xB9, + 0x51, + 0x4A, + 0x56, + 0x53, + 0xF0, + 0x73, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IChapterCue + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x80, + 0xA9, + 0x72, + 0x8A, + 0xD3, + 0x0A, + 0x4C, + 0x8F, + 0xA6, + 0x75, + 0xCD, + 0xDA, + 0xF4, + 0x66, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICodecInfo + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x9F, + 0xE8, + 0x51, + 0x97, + 0xEA, + 0x9C, + 0x49, + 0x86, + 0xAC, + 0x4C, + 0xE5, + 0xE7, + 0x3F, + 0x3A, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICodecQuery + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0x95, + 0x2A, + 0x22, + 0x61, + 0xAF, + 0x04, + 0x4E, + 0x80, + 0x8A, + 0xA4, + 0x63, + 0x4E, + 0x2F, + 0x3A, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICodecSubtypesStatics + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0xC4, + 0x6A, + 0xA6, + 0x8B, + 0x88, + 0x24, + 0x42, + 0x8C, + 0xF6, + 0x2A, + 0x8D, + 0x4E, + 0xB0, + 0x23, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataCue + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x67, + 0x7F, + 0x7C, + 0xBC, + 0x1F, + 0x2D, + 0x4E, + 0x9A, + 0x87, + 0xEE, + 0x38, + 0xBD, + 0x1D, + 0xC6, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataCue2 + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x1B, + 0x56, + 0xBC, + 0xF2, + 0x95, + 0xE8, + 0x49, + 0x96, + 0xF1, + 0x8D, + 0xD5, + 0xDA, + 0xC6, + 0x8D, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceDetectedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x84, + 0x91, + 0x19, + 0x5B, + 0xC6, + 0xBA, + 0x46, + 0x85, + 0xF8, + 0x13, + 0x88, + 0x05, + 0x76, + 0xC9, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceDetectionEffect + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0xEB, + 0x15, + 0xAE, + 0x42, + 0x05, + 0xA9, + 0x42, + 0xBC, + 0x90, + 0xF2, + 0x83, + 0xA2, + 0x9F, + 0x46, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceDetectionEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0xA0, + 0xDC, + 0x43, + 0x48, + 0xB8, + 0x33, + 0x4F, + 0xB7, + 0x02, + 0x1F, + 0xD2, + 0x62, + 0x4F, + 0xB0, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceDetectionEffectFrame + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x89, + 0xB0, + 0x8A, + 0xC8, + 0x5D, + 0x7B, + 0x44, + 0xA2, + 0x47, + 0x52, + 0x70, + 0xBD, + 0x80, + 0x2E, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHighDynamicRangeControl + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0xA7, + 0xF1, + 0x55, + 0x57, + 0xD9, + 0xC9, + 0x4D, + 0x9D, + 0x1C, + 0x85, + 0x53, + 0xA8, + 0x2A, + 0x7D, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHighDynamicRangeOutput + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0x80, + 0x57, + 0x0F, + 0x3B, + 0x25, + 0x19, + 0x41, + 0xBB, + 0x40, + 0x3A, + 0x90, + 0xE5, + 0x13, + 0x84, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageCue + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x82, + 0x82, + 0x52, + 0x7B, + 0x36, + 0x0B, + 0x44, + 0x91, + 0x16, + 0x3C, + 0x84, + 0x57, + 0x0D, + 0xD2, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInitializeMediaStreamSourceRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x45, + 0xBC, + 0x25, + 0x08, + 0x9B, + 0x2E, + 0x4C, + 0xA8, + 0x55, + 0x45, + 0x42, + 0xF1, + 0xA7, + 0x5D, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLightFusionResult + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0xBE, + 0xED, + 0x78, + 0xA0, + 0x27, + 0xE0, + 0x42, + 0x9C, + 0xD3, + 0x73, + 0x8D, + 0x20, + 0x89, + 0xDE, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLightFusionStatics + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x01, + 0x05, + 0x53, + 0x9E, + 0xC2, + 0xE2, + 0x40, + 0x87, + 0xA9, + 0x9E, + 0x1F, + 0xD2, + 0xF1, + 0x92, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBinder + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x40, + 0x7E, + 0x2B, + 0x07, + 0xDE, + 0x4F, + 0x42, + 0x83, + 0xF1, + 0xF1, + 0xDE, + 0x46, + 0xC4, + 0xFA, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBindingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0xB2, + 0x1C, + 0xB6, + 0x6D, + 0x1B, + 0x30, + 0x46, + 0xA8, + 0x6D, + 0x2F, + 0x08, + 0x37, + 0xF7, + 0x12, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBindingEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0xCC, + 0x64, + 0x04, + 0x5A, + 0xBB, + 0x2F, + 0x48, + 0xB8, + 0xBA, + 0xF0, + 0x28, + 0x4C, + 0x69, + 0x65, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBindingEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x47, + 0xEB, + 0xF8, + 0xBE, + 0x19, + 0xFC, + 0x44, + 0xA5, + 0xED, + 0x7A, + 0xBA, + 0x31, + 0x50, + 0x37, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCue + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x5E, + 0xD1, + 0xC7, + 0xDC, + 0x59, + 0x1F, + 0x43, + 0xA0, + 0xEE, + 0x27, + 0x74, + 0x43, + 0x23, + 0xB3, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCueEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x47, + 0x2F, + 0xD1, + 0xA4, + 0x5F, + 0x68, + 0x4E, + 0x9F, + 0xE5, + 0x32, + 0x16, + 0x0D, + 0xCE, + 0xE5, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSource + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0xB5, + 0xBF, + 0xE7, + 0x9D, + 0xA0, + 0x21, + 0x4C, + 0xBC, + 0xDF, + 0x20, + 0xAF, + 0x4F, + 0x86, + 0xB3, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSource2 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x10, + 0xB6, + 0x2E, + 0x5F, + 0x65, + 0x37, + 0x4C, + 0xB8, + 0x13, + 0xB4, + 0xE4, + 0x5D, + 0xFA, + 0x0A, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSource3 + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x0D, + 0x9F, + 0xB5, + 0x6E, + 0x4B, + 0xED, + 0x41, + 0xBB, + 0xB4, + 0x7C, + 0x75, + 0x09, + 0xA9, + 0x94, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSource4 + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xAD, + 0xAF, + 0xBD, + 0xFF, + 0x8E, + 0x63, + 0x4C, + 0x85, + 0xA6, + 0x84, + 0xDE, + 0x0A, + 0xE3, + 0xE4, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSource5 + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x22, + 0x1A, + 0x33, + 0x2E, + 0xED, + 0x22, + 0x4A, + 0x94, + 0xC8, + 0xB7, + 0x43, + 0xA9, + 0x2B, + 0x30, + 0x22, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceAppServiceConnection + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0xEA, + 0xE1, + 0x61, + 0x16, + 0x19, + 0x10, + 0x48, + 0xB7, + 0xF4, + 0xB6, + 0x42, + 0xBE, + 0x82, + 0x95, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceAppServiceConnectionFactory + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x12, + 0xB9, + 0x65, + 0xB9, + 0x80, + 0xF9, + 0x44, + 0x9C, + 0x1E, + 0xE1, + 0x20, + 0xF6, + 0xD9, + 0x28, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceError + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0x89, + 0x0A, + 0x5C, + 0xC5, + 0x37, + 0x9D, + 0x4E, + 0x8D, + 0x21, + 0x1C, + 0xDE, + 0xE9, + 0x0C, + 0xEC, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceOpenOperationCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x2C, + 0x68, + 0xFC, + 0x81, + 0xE2, + 0x7C, + 0x47, + 0xA8, + 0xE0, + 0x1A, + 0xCD, + 0x65, + 0x41, + 0x14, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0xAF, + 0x30, + 0x0A, + 0x71, + 0x90, + 0xAC, + 0x4B, + 0xBC, + 0x39, + 0xCA, + 0x2A, + 0x93, + 0xB7, + 0x17, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceStatics + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x6F, + 0x7D, + 0xF7, + 0x52, + 0x46, + 0x0E, + 0x41, + 0xB1, + 0xD8, + 0xE9, + 0xA5, + 0xE2, + 0x45, + 0xA4, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x61, + 0xE1, + 0xEE, + 0x13, + 0x7F, + 0x96, + 0x48, + 0xB8, + 0xCB, + 0xDF, + 0x0D, + 0xE5, + 0xBC, + 0xB9, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x30, + 0x3A, + 0x45, + 0xEA, + 0x2B, + 0x22, + 0x41, + 0x9F, + 0x73, + 0xEA, + 0xCE, + 0x04, + 0x52, + 0x6E, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaSourceStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0x3B, + 0x1B, + 0x28, + 0x0A, + 0xE5, + 0x28, + 0x44, + 0xA5, + 0x00, + 0x9C, + 0x4E, + 0xD9, + 0x18, + 0xD3, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamDescriptor + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0x6E, + 0xF1, + 0x80, + 0xF7, + 0x92, + 0x1E, + 0x45, + 0x97, + 0xD2, + 0xAF, + 0xD8, + 0x07, + 0x42, + 0xDA, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamDescriptor2 + { + get + { + ReadOnlySpan data = + [ + 0x0F, + 0x01, + 0x73, + 0x50, + 0xB2, + 0xE8, + 0x71, + 0x40, + 0xB0, + 0x0B, + 0xEB, + 0xF3, + 0x37, + 0xA7, + 0x6B, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSample + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0xB6, + 0x8D, + 0x5C, + 0x80, + 0x4B, + 0x61, + 0x43, + 0x98, + 0x37, + 0x6C, + 0xB7, + 0x48, + 0x1A, + 0xD9, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSample2 + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0x86, + 0x07, + 0x45, + 0xE8, + 0xFC, + 0x46, + 0x47, + 0xA1, + 0xC8, + 0x10, + 0xC2, + 0x5D, + 0x3D, + 0x7C, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSampleProtectionProperties + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0x82, + 0xB8, + 0x4E, + 0xDF, + 0xEC, + 0x3E, + 0x49, + 0x84, + 0x1D, + 0xDD, + 0x4A, + 0xDD, + 0x7C, + 0xAC, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSampleStatics + { + get + { + ReadOnlySpan data = + [ + 0x8F, + 0x21, + 0xDF, + 0xDF, + 0xCF, + 0xA6, + 0x79, + 0x45, + 0xBE, + 0x41, + 0x73, + 0xDD, + 0x94, + 0x1A, + 0xD9, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSampleStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x95, + 0xFE, + 0x9E, + 0x46, + 0x6D, + 0x4C, + 0x49, + 0xA2, + 0xF8, + 0xD6, + 0x62, + 0x92, + 0x2E, + 0x2D, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSource + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0xD5, + 0x12, + 0x37, + 0xEB, + 0x45, + 0x38, + 0x41, + 0xAA, + 0x62, + 0xC0, + 0x1E, + 0x26, + 0xF3, + 0x84, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSource2 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0xD0, + 0x55, + 0xEC, + 0x6A, + 0x2E, + 0x74, + 0x4F, + 0xAD, + 0xBB, + 0xB5, + 0x62, + 0xD1, + 0x53, + 0x38, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSource3 + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x27, + 0x2A, + 0x6A, + 0xDD, + 0x3D, + 0xDF, + 0x4D, + 0xA1, + 0x21, + 0x94, + 0x04, + 0x5E, + 0xCF, + 0x94, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSource4 + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0xFC, + 0x0C, + 0x1D, + 0x0D, + 0x83, + 0x7C, + 0x41, + 0xA3, + 0xA9, + 0x24, + 0x54, + 0xFD, + 0x64, + 0x15, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceClosedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x7E, + 0x8C, + 0xCD, + 0x16, + 0x48, + 0x24, + 0x4E, + 0x88, + 0xF0, + 0x49, + 0x1E, + 0xF7, + 0x38, + 0x64, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceClosedRequest + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x00, + 0x7C, + 0x90, + 0xA3, + 0x18, + 0x51, + 0x49, + 0x88, + 0x7A, + 0x2C, + 0x1E, + 0xEB, + 0xD5, + 0xC6, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceFactory + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0xE0, + 0x77, + 0xEF, + 0x58, + 0xD1, + 0x7A, + 0x4B, + 0x86, + 0x3F, + 0x20, + 0x33, + 0x42, + 0xFB, + 0xFD, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSampleRenderedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x7B, + 0x69, + 0x9D, + 0xF2, + 0xD4, + 0x7A, + 0x4C, + 0x9D, + 0xFE, + 0x8D, + 0x6C, + 0xD0, + 0xB3, + 0xEE, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSampleRequest + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x41, + 0xB3, + 0x4D, + 0x01, + 0x35, + 0x9B, + 0x4D, + 0x83, + 0xF9, + 0x8F, + 0x23, + 0x5C, + 0x82, + 0x25, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSampleRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xCC, + 0x95, + 0x78, + 0x82, + 0xF9, + 0xC8, + 0x43, + 0x9D, + 0x16, + 0xC6, + 0x2D, + 0x99, + 0x93, + 0x19, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSampleRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xBB, + 0xF9, + 0x10, + 0xC5, + 0x71, + 0x2F, + 0x49, + 0x84, + 0x7F, + 0x0D, + 0xA1, + 0xF3, + 0x5E, + 0x81, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceStartingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x68, + 0x14, + 0xF4, + 0x74, + 0xC2, + 0x40, + 0x49, + 0xA5, + 0xBB, + 0x28, + 0xA5, + 0x72, + 0x45, + 0x2F, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceStartingRequest + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x93, + 0x90, + 0x2A, + 0xC4, + 0x35, + 0x1B, + 0x4B, + 0xA7, + 0x91, + 0x0D, + 0x99, + 0xDB, + 0x56, + 0xDD, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceStartingRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0xA5, + 0x56, + 0x13, + 0x3F, + 0x40, + 0x63, + 0xC4, + 0x4D, + 0x99, + 0x10, + 0x06, + 0x8E, + 0xD9, + 0xF5, + 0x98, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSwitchStreamsRequest + { + get + { + ReadOnlySpan data = + [ + 0x8E, + 0x80, + 0xB8, + 0x41, + 0xA9, + 0x38, + 0xC3, + 0x4E, + 0x9B, + 0xA0, + 0xB6, + 0x9B, + 0x85, + 0x50, + 0x1E, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSwitchStreamsRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0xD8, + 0xE3, + 0xBE, + 0x05, + 0xA5, + 0x9A, + 0x4F, + 0xB9, + 0x43, + 0x2B, + 0x8C, + 0xB1, + 0xB4, + 0xBB, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaStreamSourceSwitchStreamsRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x2B, + 0x20, + 0x42, + 0xA1, + 0x6E, + 0x77, + 0x46, + 0x98, + 0x1E, + 0x35, + 0x0A, + 0x0D, + 0xA4, + 0x12, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaTrack + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xFA, + 0xE1, + 0x03, + 0x31, + 0xC9, + 0x1A, + 0x49, + 0xB4, + 0x6B, + 0xC1, + 0x0E, + 0xE8, + 0xC2, + 0x56, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMseSourceBuffer + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0xA3, + 0x1A, + 0x0C, + 0x8D, + 0xDF, + 0x79, + 0x40, + 0xA3, + 0xFE, + 0x68, + 0x49, + 0x18, + 0x4B, + 0x4E, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMseSourceBufferList + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xE8, + 0xFA, + 0x95, + 0xE7, + 0xA8, + 0xBF, + 0x4E, + 0x89, + 0x27, + 0x14, + 0x5E, + 0x94, + 0x0B, + 0xA5, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMseStreamSource + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x19, + 0xB4, + 0xB0, + 0xF4, + 0x02, + 0x23, + 0x49, + 0x88, + 0xDD, + 0x81, + 0xBC, + 0x3F, + 0x36, + 0x0F, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMseStreamSource2 + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x7D, + 0xF5, + 0x66, + 0xE7, + 0xF9, + 0x8A, + 0x41, + 0x9C, + 0xDE, + 0xA0, + 0x20, + 0xE9, + 0x56, + 0x55, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMseStreamSourceStatics + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x67, + 0x5C, + 0x46, + 0x70, + 0xD5, + 0xCE, + 0x43, + 0xBA, + 0x21, + 0x0B, + 0xFF, + 0x5F, + 0x3F, + 0xBD, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISceneAnalysisEffect + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0xA3, + 0x4B, + 0xC0, + 0x41, + 0xCA, + 0x13, + 0x48, + 0xBF, + 0xFD, + 0x7B, + 0x08, + 0xB0, + 0xED, + 0x25, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISceneAnalysisEffectFrame + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x0E, + 0xB1, + 0xD8, + 0xD9, + 0x7F, + 0xE1, + 0x42, + 0x85, + 0xEB, + 0x65, + 0x72, + 0xC2, + 0x97, + 0xC9, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISceneAnalysisEffectFrame2 + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x29, + 0x4E, + 0x2D, + 0x1F, + 0x06, + 0xAE, + 0x47, + 0x99, + 0x15, + 0x02, + 0x52, + 0x4B, + 0x5F, + 0x9A, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISceneAnalyzedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x95, + 0x6B, + 0x14, + 0x51, + 0x28, + 0xE4, + 0x45, + 0xAD, + 0x55, + 0x44, + 0xCF, + 0x8D, + 0xF8, + 0xDB, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISingleSelectMediaTrackList + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x6F, + 0x20, + 0x77, + 0x4F, + 0xC3, + 0x4F, + 0x49, + 0x80, + 0x77, + 0x2B, + 0xAD, + 0x9F, + 0xF4, + 0xEC, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechCue + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x54, + 0xE2, + 0xAE, + 0x25, + 0x17, + 0xAD, + 0x4B, + 0x80, + 0x43, + 0xA9, + 0x84, + 0x99, + 0xB0, + 0x17, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataStreamDescriptor + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x36, + 0x33, + 0x13, + 0x6A, + 0x29, + 0x3E, + 0x46, + 0x9F, + 0xF9, + 0x01, + 0xCD, + 0x25, + 0x69, + 0x14, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataStreamDescriptorFactory + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0xDE, + 0x27, + 0xC0, + 0x62, + 0x73, + 0xF9, + 0x4F, + 0x98, + 0xB1, + 0x2D, + 0xFD, + 0x0B, + 0x8D, + 0x1C, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataTrack + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xED, + 0x6A, + 0x9E, + 0x7A, + 0xF6, + 0xA9, + 0x49, + 0xB3, + 0x30, + 0xCF, + 0x03, + 0xB0, + 0xE9, + 0xCF, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataTrack2 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xB6, + 0xB4, + 0x21, + 0x9D, + 0x9F, + 0xBA, + 0x40, + 0xA8, + 0xF3, + 0x1A, + 0x92, + 0x75, + 0x3A, + 0xEF, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataTrackError + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x79, + 0x76, + 0xB3, + 0x14, + 0x41, + 0x19, + 0x48, + 0xB9, + 0xD9, + 0xDD, + 0x76, + 0x08, + 0x9E, + 0x72, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataTrackFactory + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x76, + 0xD5, + 0x8D, + 0xB3, + 0x97, + 0x1F, + 0x4E, + 0x85, + 0x2C, + 0x0F, + 0x48, + 0x2C, + 0x81, + 0xAD, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataTrackFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0xC9, + 0x7F, + 0xA5, + 0x89, + 0x67, + 0x4D, + 0x4D, + 0xB0, + 0x7F, + 0x84, + 0xB4, + 0xF3, + 0x1A, + 0xCB, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataTrackProvider + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x20, + 0x7F, + 0x3B, + 0x4E, + 0xF7, + 0xDE, + 0x4A, + 0x93, + 0xC5, + 0x21, + 0x9D, + 0xA0, + 0x5B, + 0x68, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextBouten + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x27, + 0x06, + 0xD9, + 0x97, + 0x55, + 0x92, + 0x50, + 0x82, + 0x0C, + 0x8F, + 0x73, + 0x8E, + 0x0F, + 0x77, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextCue + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x9E, + 0xC7, + 0x51, + 0x86, + 0x3B, + 0x4D, + 0x49, + 0xB3, + 0x59, + 0xBB, + 0x2E, + 0xA7, + 0xAC, + 0xA9, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextLine + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x7C, + 0x8D, + 0x97, + 0x08, + 0x73, + 0x66, + 0x4C, + 0xBE, + 0x50, + 0x65, + 0x77, + 0x72, + 0x89, + 0xF5, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextRegion + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x88, + 0xD0, + 0x1E, + 0x06, + 0x8A, + 0x22, + 0x42, + 0x9F, + 0x59, + 0xB2, + 0x1B, + 0xF4, + 0x01, + 0x24, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextRuby + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x5C, + 0x33, + 0x10, + 0x3C, + 0x5B, + 0x93, + 0x56, + 0x99, + 0x59, + 0xD0, + 0x5A, + 0x0B, + 0xD2, + 0x46, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextSource + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x9B, + 0xED, + 0xC4, + 0x1F, + 0x10, + 0x4D, + 0x40, + 0xA9, + 0x49, + 0x82, + 0xF3, + 0x3F, + 0xCD, + 0x93, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextSourceResolveResultEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0x7C, + 0x90, + 0x48, + 0xD8, + 0xDC, + 0x33, + 0x4C, + 0x9A, + 0xD3, + 0x6C, + 0xDC, + 0xE7, + 0xB1, + 0xC5, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextSourceStatics + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x18, + 0x31, + 0x7E, + 0xBA, + 0x9A, + 0xC4, + 0x4A, + 0xBB, + 0x98, + 0x2F, + 0xB1, + 0x76, + 0xC3, + 0xBF, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextSourceStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x76, + 0x6B, + 0xB6, + 0x3E, + 0x92, + 0xFA, + 0x43, + 0x96, + 0x33, + 0x58, + 0x70, + 0x75, + 0x81, + 0x2D, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextStyle + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x38, + 0xB2, + 0x1B, + 0x25, + 0xA8, + 0xC2, + 0x40, + 0xA7, + 0xF5, + 0x28, + 0x1E, + 0xAE, + 0xDF, + 0x3B, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextStyle2 + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x49, + 0x5F, + 0x65, + 0x11, + 0x61, + 0x87, + 0x47, + 0x89, + 0xCC, + 0x68, + 0x6F, + 0xEC, + 0xE5, + 0x7E, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextStyle3 + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xF9, + 0x03, + 0xF8, + 0x99, + 0x3E, + 0x5E, + 0x59, + 0xBB, + 0xB7, + 0x78, + 0xA2, + 0xFA, + 0x13, + 0xC2, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedTextSubformat + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x50, + 0x13, + 0xD7, + 0x61, + 0x32, + 0x22, + 0x47, + 0xA0, + 0xC2, + 0xB9, + 0x37, + 0xB2, + 0x39, + 0x0F, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoStabilizationEffect + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0xA6, + 0x08, + 0x08, + 0x98, + 0x96, + 0x57, + 0x4E, + 0x87, + 0x7B, + 0xBD, + 0x7C, + 0xB2, + 0xEE, + 0x0F, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoStabilizationEffectEnabledChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0xFF, + 0x7E, + 0x18, + 0xBB, + 0x67, + 0x13, + 0x47, + 0xB9, + 0x00, + 0x41, + 0x68, + 0xDA, + 0x16, + 0x45, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoStreamDescriptor + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x0D, + 0xEE, + 0x12, + 0x2B, + 0x9C, + 0x40, + 0x44, + 0x80, + 0x57, + 0x2C, + 0x7A, + 0x90, + 0xF0, + 0xCB, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoStreamDescriptor2 + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x6E, + 0x30, + 0x8B, + 0x3E, + 0x45, + 0x88, + 0x40, + 0x83, + 0x2D, + 0xC3, + 0x6F, + 0xA4, + 0xF9, + 0x4A, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoStreamDescriptorFactory + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0xF6, + 0x4E, + 0x49, + 0x75, + 0xBB, + 0xD2, + 0x43, + 0x9E, + 0x5E, + 0x7B, + 0x79, + 0xA3, + 0xAF, + 0xCE, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTrack + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0xB7, + 0xF3, + 0x99, + 0x98, + 0xE2, + 0x96, + 0x43, + 0xBB, + 0x6A, + 0xA5, + 0x1B, + 0xE6, + 0xA2, + 0xA2, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTrackOpenFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0xE2, + 0x79, + 0x76, + 0xF9, + 0x04, + 0x82, + 0x4C, + 0xA4, + 0xEE, + 0x86, + 0x02, + 0xC8, + 0xBB, + 0x47, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTrackSupportInfo + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0x34, + 0xB5, + 0x4B, + 0x5F, + 0xFC, + 0x0D, + 0x45, + 0x8F, + 0xF0, + 0x77, + 0x8D, + 0x59, + 0x04, + 0x86, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.devices.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.devices.core/IID.Manual.cs new file mode 100644 index 0000000000..76e478f30f --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.devices.core/IID.Manual.cs @@ -0,0 +1,526 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.devices.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICameraIntrinsics + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0xED, + 0xA6, + 0x0A, + 0x89, + 0x65, + 0xDA, + 0x49, + 0xAF, + 0xDE, + 0x59, + 0x42, + 0x70, + 0xCA, + 0x0A, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraIntrinsics2 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xA4, + 0xDA, + 0x0C, + 0x98, + 0x07, + 0x4D, + 0x4B, + 0x83, + 0x9F, + 0xC5, + 0xEC, + 0x41, + 0x4D, + 0xB2, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraIntrinsicsFactory + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0xC4, + 0xDD, + 0xC0, + 0x32, + 0x21, + 0x34, + 0x4A, + 0xA6, + 0x59, + 0x9B, + 0xFE, + 0x2A, + 0x05, + 0x57, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDepthCorrelatedCoordinateMapper + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0x89, + 0x5D, + 0xF9, + 0xF0, + 0x8A, + 0xB0, + 0x4C, + 0x92, + 0x6D, + 0x69, + 0x68, + 0x66, + 0xE5, + 0x04, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameControlCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0xAE, + 0xFF, + 0xA8, + 0x9E, + 0x4E, + 0x77, + 0x43, + 0xA7, + 0x89, + 0xE2, + 0x4C, + 0x4A, + 0xE7, + 0xE5, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameControlCapabilities2 + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x04, + 0x9B, + 0xCE, + 0x30, + 0x47, + 0x0F, + 0x44, + 0xBD, + 0x3E, + 0xEF, + 0xE8, + 0xA8, + 0xF2, + 0x30, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameController + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x59, + 0x64, + 0xC1, + 0xEF, + 0xBA, + 0x52, + 0x40, + 0x91, + 0x77, + 0x48, + 0xAF, + 0xF2, + 0xAF, + 0x75, + 0x22, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameController2 + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0xBC, + 0xD3, + 0x00, + 0x7C, + 0xD8, + 0x5B, + 0x48, + 0x8A, + 0x09, + 0x5C, + 0x35, + 0x85, + 0x68, + 0xB4, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameExposureCapabilities + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x9C, + 0xBE, + 0xBD, + 0x85, + 0x39, + 0x72, + 0x4E, + 0x97, + 0xC2, + 0x05, + 0x90, + 0xD6, + 0x13, + 0x07, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameExposureCompensationCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xA8, + 0x88, + 0xB9, + 0x65, + 0x80, + 0xEE, + 0x41, + 0xB0, + 0x4F, + 0x72, + 0x22, + 0x65, + 0x95, + 0x45, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameExposureCompensationControl + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0x96, + 0x58, + 0xE9, + 0xF9, + 0xF7, + 0xCA, + 0x48, + 0x85, + 0x91, + 0xA2, + 0x65, + 0x31, + 0xCB, + 0x15, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameExposureControl + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0x5A, + 0x60, + 0xB1, + 0xAF, + 0xFF, + 0x52, + 0x47, + 0xB6, + 0x21, + 0xF5, + 0xB6, + 0xF1, + 0x17, + 0xF4, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameFlashCapabilities + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x41, + 0x93, + 0xBB, + 0xBE, + 0x5E, + 0x62, + 0x4F, + 0x82, + 0x23, + 0x0E, + 0x2B, + 0x05, + 0xBF, + 0xBB, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameFlashControl + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xF6, + 0xD5, + 0x75, + 0x45, + 0xBD, + 0xAB, + 0x4F, + 0x93, + 0x75, + 0x45, + 0xAC, + 0x04, + 0xB3, + 0x32, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameFocusCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xCD, + 0x25, + 0x7B, + 0xC0, + 0x01, + 0x65, + 0x40, + 0x9C, + 0x40, + 0xC1, + 0xA7, + 0x21, + 0x42, + 0x5C, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameFocusControl + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xF1, + 0x2D, + 0x27, + 0x12, + 0xD9, + 0x14, + 0x42, + 0xA6, + 0x7B, + 0xE3, + 0x8A, + 0x8D, + 0x48, + 0xD8, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameIsoSpeedCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0xFF, + 0xBD, + 0x16, + 0xF6, + 0x6D, + 0xC9, + 0x4A, + 0xB9, + 0x2A, + 0x9F, + 0x6E, + 0xCD, + 0x1A, + 0xD2, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFrameIsoSpeedControl + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xEF, + 0x03, + 0x1A, + 0x6A, + 0x78, + 0x75, + 0x4C, + 0xA5, + 0x57, + 0x7A, + 0xB9, + 0xA8, + 0x5F, + 0x58, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVariablePhotoSequenceController + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0xF8, + 0xBF, + 0x7F, + 0x8C, + 0xED, + 0xFD, + 0x43, + 0xA7, + 0xC3, + 0xB3, + 0x58, + 0x09, + 0xE4, + 0x22, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.devices/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.devices/IID.2.Manual.cs new file mode 100644 index 0000000000..288acee4c2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.devices/IID.2.Manual.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioDeviceController2 + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x32, + 0x65, + 0x99, + 0x4c, + 0x24, + 0x48, + 0xb0, + 0x81, + 0xdd, + 0x0c, + 0x5c, + 0xc7, + 0x9d, + 0xdf, + 0x05, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.devices/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.devices/IID.Manual.cs new file mode 100644 index 0000000000..889a36269a --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.devices/IID.Manual.cs @@ -0,0 +1,1849 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.devices.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICallControlEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x75, + 0x6F, + 0x59, + 0xDF, + 0x50, + 0x54, + 0x44, + 0xBC, + 0x63, + 0x4D, + 0x3D, + 0x01, + 0xB6, + 0x19, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDialRequestedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0xFF, + 0xBB, + 0x5A, + 0x1F, + 0xC2, + 0xC4, + 0x4B, + 0x89, + 0x1B, + 0x25, + 0x7E, + 0x28, + 0xC1, + 0xB1, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeypadPressedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xA4, + 0x37, + 0xE6, + 0x27, + 0xC5, + 0x2C, + 0x42, + 0x89, + 0x26, + 0xC9, + 0xAF, + 0x83, + 0xB5, + 0x59, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRedialRequestedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x57, + 0xF2, + 0xBA, + 0xBD, + 0x4E, + 0x84, + 0x4B, + 0x9F, + 0x47, + 0x6E, + 0xC4, + 0x3D, + 0x75, + 0xD8, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedPhotoCaptureSettings + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0x86, + 0xF3, + 0x08, + 0x18, + 0x00, + 0x5B, + 0x44, + 0x93, + 0xD2, + 0x64, + 0x6D, + 0x1C, + 0x5E, + 0xD0, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedPhotoControl + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x54, + 0xB1, + 0xC5, + 0x01, + 0x90, + 0x82, + 0x46, + 0x93, + 0x09, + 0x68, + 0xEA, + 0xE0, + 0x08, + 0x0E, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0xF4, + 0x6F, + 0xDE, + 0x96, + 0x2B, + 0x83, + 0x45, + 0x80, + 0xAB, + 0xB5, + 0xB0, + 0x1D, + 0xC6, + 0xA8, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController10 + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0xB8, + 0x21, + 0xC6, + 0xF0, + 0xD6, + 0x1B, + 0x5C, + 0xA3, + 0x88, + 0xA6, + 0xE9, + 0x38, + 0x40, + 0x71, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController11 + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x5A, + 0xB6, + 0xD5, + 0x72, + 0x37, + 0x0C, + 0x58, + 0xA6, + 0x30, + 0xE7, + 0x5D, + 0xE9, + 0x10, + 0x69, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController2 + { + get + { + ReadOnlySpan data = + [ + 0x8F, + 0x4F, + 0xB9, + 0x8B, + 0x1A, + 0xF1, + 0xDB, + 0x43, + 0xB4, + 0x02, + 0x11, + 0x93, + 0x0B, + 0x80, + 0xAE, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController3 + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x8F, + 0x8B, + 0xA9, + 0x0D, + 0xEE, + 0x0C, + 0x47, + 0xB9, + 0xF0, + 0x42, + 0x29, + 0xC4, + 0xBB, + 0xD0, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController4 + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0xBF, + 0x9F, + 0xEA, + 0x71, + 0xD3, + 0xC3, + 0x41, + 0x9A, + 0x17, + 0x82, + 0x4A, + 0x87, + 0xEB, + 0xDF, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController5 + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x2B, + 0x51, + 0x33, + 0xCB, + 0xB9, + 0x23, + 0x4A, + 0xB8, + 0x75, + 0xF9, + 0xEA, + 0xAB, + 0x53, + 0x54, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController6 + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x3A, + 0x56, + 0xB6, + 0xA1, + 0x68, + 0xB7, + 0x44, + 0x9F, + 0x89, + 0xB5, + 0xFA, + 0x97, + 0xAC, + 0x0C, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController7 + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x27, + 0x29, + 0x8D, + 0x54, + 0xA0, + 0xE7, + 0x50, + 0xB7, + 0xDF, + 0x7C, + 0x04, + 0x23, + 0x4D, + 0x10, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController8 + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0xF0, + 0x43, + 0xD8, + 0xFB, + 0xE7, + 0x5B, + 0x59, + 0x9A, + 0x78, + 0x0E, + 0x54, + 0xC4, + 0x53, + 0x2B, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdvancedVideoCaptureDeviceController9 + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0xA9, + 0xDC, + 0x8B, + 0x55, + 0x02, + 0xBC, + 0x51, + 0xA1, + 0x0D, + 0x5A, + 0x16, + 0x9E, + 0xC1, + 0x62, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioDeviceController + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xA3, + 0xD4, + 0xED, + 0xC7, + 0x79, + 0x7C, + 0x4F, + 0x90, + 0xE8, + 0xEF, + 0x93, + 0x4B, + 0x21, + 0x58, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioDeviceModule + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0xAC, + 0xCF, + 0x86, + 0xC1, + 0x47, + 0x33, + 0x4B, + 0x98, + 0x52, + 0x87, + 0x73, + 0xEC, + 0x4B, + 0xE1, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioDeviceModuleNotificationEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0xCC, + 0xE3, + 0xE3, + 0x4C, + 0x22, + 0xBE, + 0x48, + 0x95, + 0x6B, + 0x9A, + 0x13, + 0x13, + 0x4E, + 0x96, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioDeviceModulesManager + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x0C, + 0xA4, + 0x6A, + 0x0A, + 0x96, + 0x1C, + 0x4D, + 0xB3, + 0x18, + 0x00, + 0x22, + 0x60, + 0x45, + 0x47, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioDeviceModulesManagerFactory + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x36, + 0xB0, + 0x8D, + 0x4D, + 0xE6, + 0x73, + 0x47, + 0x96, + 0xC0, + 0xBC, + 0x7E, + 0xBF, + 0x0E, + 0x06, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICallControl + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0xD0, + 0x20, + 0xA5, + 0x8D, + 0xAE, + 0xDB, + 0x45, + 0x80, + 0x11, + 0xCA, + 0x49, + 0xD3, + 0xB3, + 0xE5, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICallControlStatics + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x5A, + 0x94, + 0x03, + 0xAB, + 0x85, + 0xE1, + 0x40, + 0xAF, + 0x19, + 0x56, + 0xC9, + 0x43, + 0x03, + 0xB0, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraOcclusionInfo + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x4A, + 0x6C, + 0xAF, + 0x4D, + 0xA8, + 0xB6, + 0x5D, + 0xBE, + 0x58, + 0xA5, + 0xDA, + 0x21, + 0xCF, + 0xE0, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraOcclusionState + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0xDE, + 0x0A, + 0x43, + 0x42, + 0x68, + 0x55, + 0x5E, + 0x9B, + 0xDE, + 0x04, + 0xB4, + 0xEF, + 0x3A, + 0x8A, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICameraOcclusionStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xD8, + 0x12, + 0x85, + 0xDE, + 0xC0, + 0xCA, + 0x57, + 0xA1, + 0xCA, + 0xFB, + 0x2C, + 0x3D, + 0x23, + 0xDF, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDefaultAudioDeviceChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x88, + 0x0F, + 0x11, + 0x05, + 0x1C, + 0x57, + 0x46, + 0xA1, + 0x8E, + 0x47, + 0xC9, + 0xB6, + 0x9F, + 0x07, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDialRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x92, + 0x7B, + 0x03, + 0x3C, + 0x95, + 0x86, + 0x42, + 0x88, + 0x66, + 0x4F, + 0x0F, + 0x37, + 0x6C, + 0x85, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDigitalWindowBounds + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x21, + 0x4F, + 0xDD, + 0x73, + 0xD1, + 0x6B, + 0x5C, + 0x8C, + 0x25, + 0xBD, + 0xD2, + 0x6D, + 0x51, + 0x22, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDigitalWindowCapability + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0xAD, + 0x8B, + 0xD7, + 0x21, + 0xF7, + 0x44, + 0x52, + 0xA1, + 0x96, + 0xB5, + 0x6C, + 0xCB, + 0xEC, + 0x60, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDigitalWindowControl + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0x9E, + 0xB6, + 0x23, + 0xD2, + 0x65, + 0xEA, + 0x53, + 0x87, + 0x80, + 0xDE, + 0x58, + 0x2B, + 0x48, + 0xB5, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IExposureCompensationControl + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0xE8, + 0xC8, + 0x81, + 0xEC, + 0xDC, + 0x11, + 0x40, + 0xA6, + 0x10, + 0x1F, + 0x38, + 0x47, + 0xE6, + 0x4A, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IExposureControl + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0xCB, + 0xE8, + 0x09, + 0x96, + 0xAD, + 0x28, + 0x4F, + 0xA0, + 0xE0, + 0x96, + 0xED, + 0x7E, + 0x1B, + 0x5F, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IExposurePriorityVideoControl + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x40, + 0xB2, + 0x2C, + 0x68, + 0x51, + 0x71, + 0x42, + 0x9E, + 0xA5, + 0x47, + 0x62, + 0x1A, + 0x98, + 0xA3, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFlashControl + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x1D, + 0xF4, + 0xDE, + 0x68, + 0x7D, + 0xE3, + 0x45, + 0x8C, + 0x0F, + 0xBE, + 0x7B, + 0xB3, + 0x28, + 0x37, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFlashControl2 + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xCC, + 0x29, + 0x7D, + 0xE1, + 0x75, + 0xF7, + 0x4A, + 0xBD, + 0x7D, + 0x4E, + 0x38, + 0xE1, + 0xC0, + 0x6C, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFocusControl + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x89, + 0xD8, + 0xC0, + 0x28, + 0x52, + 0x53, + 0x44, + 0xB1, + 0x53, + 0x85, + 0x60, + 0x65, + 0x92, + 0xB2, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFocusControl2 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xFF, + 0x7C, + 0x3F, + 0x34, + 0xC5, + 0x9E, + 0x4E, + 0x94, + 0xC3, + 0x52, + 0xEF, + 0x2A, + 0xFD, + 0x5D, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFocusSettings + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0x8F, + 0x95, + 0x79, + 0x63, + 0x32, + 0x75, + 0x42, + 0x85, + 0xD6, + 0xAE, + 0xAE, + 0x89, + 0x1C, + 0x96, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHdrVideoControl + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xE2, + 0xD8, + 0x55, + 0xC0, + 0x30, + 0xBF, + 0x43, + 0x9B, + 0x9A, + 0x97, + 0x99, + 0xD7, + 0x0C, + 0xED, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInfraredTorchControl + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x2C, + 0xBA, + 0x1C, + 0xB6, + 0x6C, + 0x04, + 0x5A, + 0xA6, + 0xFC, + 0x3B, + 0xE7, + 0xB3, + 0x3F, + 0xF0, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIsoSpeedControl + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0xC3, + 0xB6, + 0x27, + 0xAD, + 0x25, + 0x1B, + 0x4F, + 0xAA, + 0xAB, + 0x52, + 0x4A, + 0xB3, + 0x76, + 0xCA, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIsoSpeedControl2 + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x78, + 0x15, + 0x6F, + 0x77, + 0x6D, + 0x8A, + 0x4F, + 0x8C, + 0x2F, + 0x61, + 0x30, + 0xB6, + 0x39, + 0x50, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeypadPressedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x39, + 0xA4, + 0xD3, + 0xFA, + 0xB4, + 0xCD, + 0x49, + 0x94, + 0x42, + 0x89, + 0xAF, + 0x65, + 0x68, + 0xF6, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagPhotoControl + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x4D, + 0x5C, + 0x6D, + 0xDF, + 0xFA, + 0x5D, + 0x41, + 0xAE, + 0xE6, + 0x3B, + 0xAA, + 0x52, + 0x93, + 0x00, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILowLagPhotoSequenceControl + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x90, + 0xCF, + 0x3D, + 0x16, + 0x6D, + 0x9C, + 0x40, + 0xBA, + 0xFE, + 0xB9, + 0xA5, + 0x94, + 0xC6, + 0xFD, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaDeviceControl + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0xDF, + 0xA8, + 0xEF, + 0x75, + 0x6F, + 0x63, + 0x48, + 0xBA, + 0x0B, + 0x58, + 0x3F, + 0x30, + 0x36, + 0xB4, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaDeviceControlCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x58, + 0x00, + 0x23, + 0x85, + 0xEB, + 0xE2, + 0x43, + 0xB9, + 0x2B, + 0x82, + 0x40, + 0xD5, + 0xEE, + 0x70, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaDeviceController + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xF5, + 0xF8, + 0xF6, + 0x9A, + 0x20, + 0xFB, + 0x48, + 0x86, + 0xFC, + 0xD4, + 0x45, + 0x78, + 0xF3, + 0x17, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x9A, + 0x2D, + 0xAA, + 0x9F, + 0x90, + 0xBA, + 0x4B, + 0xBF, + 0x8B, + 0x0C, + 0x0D, + 0x29, + 0x6F, + 0x14, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IModuleCommandResult + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x1E, + 0x0D, + 0x52, + 0x74, + 0x13, + 0x7D, + 0x4C, + 0xB1, + 0xE4, + 0x39, + 0xDC, + 0xDF, + 0x3E, + 0xAE, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOpticalImageStabilizationControl + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x9C, + 0xAD, + 0xBF, + 0xBC, + 0x00, + 0x3B, + 0x42, + 0x8E, + 0xB2, + 0xA0, + 0x17, + 0x8C, + 0xA9, + 0x42, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPanelBasedOptimizationControl + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x32, + 0x32, + 0x33, + 0x47, + 0x62, + 0x19, + 0x54, + 0xA5, + 0xA4, + 0x3D, + 0x80, + 0x86, + 0x45, + 0xD9, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPhotoConfirmationControl + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0xF3, + 0xF3, + 0xC8, + 0x5E, + 0xFF, + 0x82, + 0x45, + 0xA9, + 0xA8, + 0x05, + 0x50, + 0xF8, + 0x5A, + 0x4A, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRedialRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x52, + 0xB5, + 0x7E, + 0xAB, + 0x76, + 0x31, + 0x4C, + 0xB4, + 0x0E, + 0x4B, + 0x58, + 0x37, + 0x9D, + 0x58, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRegionOfInterest + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0xC8, + 0xEC, + 0xE5, + 0x66, + 0xCE, + 0x05, + 0x4E, + 0xA7, + 0x8F, + 0xCF, + 0x39, + 0x1A, + 0x5E, + 0xC2, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRegionOfInterest2 + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0x2A, + 0xFE, + 0x19, + 0xAA, + 0x73, + 0x51, + 0x4D, + 0x8A, + 0x9D, + 0x56, + 0xCC, + 0xF7, + 0xDB, + 0x7F, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRegionsOfInterestControl + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0xF5, + 0x23, + 0xC3, + 0x0B, + 0xAB, + 0x58, + 0x45, + 0x8B, + 0x5B, + 0xDF, + 0x56, + 0x93, + 0xDB, + 0x03, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISceneModeControl + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x5A, + 0x8E, + 0xD4, + 0x59, + 0x8D, + 0x54, + 0x48, + 0x8C, + 0x62, + 0x12, + 0xC7, + 0x0B, + 0xA8, + 0x9B, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITorchControl + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0x36, + 0x05, + 0xA6, + 0x50, + 0x82, + 0x6C, + 0x41, + 0x91, + 0x9A, + 0x72, + 0x42, + 0x96, + 0xAF, + 0xA3, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoDeviceController + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x55, + 0x55, + 0x99, + 0x2E, + 0x2E, + 0xB8, + 0x40, + 0xB6, + 0xC7, + 0xF8, + 0x2D, + 0x10, + 0x01, + 0x32, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoDeviceControllerGetDevicePropertyResult + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x83, + 0xD8, + 0xC5, + 0xD5, + 0x6E, + 0x90, + 0x47, + 0x8B, + 0x5D, + 0x0E, + 0xF1, + 0x39, + 0x35, + 0xD0, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTemporalDenoisingControl + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x47, + 0xB3, + 0x7A, + 0x2A, + 0x3E, + 0x32, + 0x4A, + 0xBA, + 0xFF, + 0x43, + 0x58, + 0xC4, + 0xFB, + 0xDD, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWhiteBalanceControl + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x04, + 0x1F, + 0x78, + 0x62, + 0x71, + 0xC8, + 0x49, + 0xA8, + 0xF9, + 0x94, + 0x81, + 0xC5, + 0x65, + 0x36, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IZoomControl + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x0B, + 0x1E, + 0x3A, + 0xDA, + 0x32, + 0x17, + 0x4C, + 0xBF, + 0xD7, + 0x8D, + 0x0C, + 0x73, + 0xC8, + 0xF5, + 0xA5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IZoomControl2 + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x3D, + 0x84, + 0x69, + 0x99, + 0x2E, + 0x41, + 0x46, + 0x85, + 0x29, + 0x18, + 0x4F, + 0x31, + 0x9D, + 0x16, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IZoomSettings + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x6B, + 0xD6, + 0x6A, + 0xB4, + 0x14, + 0xFD, + 0x4B, + 0xB1, + 0x8F, + 0x88, + 0xFE, + 0x24, + 0x46, + 0x3B, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.editing/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.editing/IID.Manual.cs new file mode 100644 index 0000000000..1f19810fee --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.editing/IID.Manual.cs @@ -0,0 +1,364 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.editing.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBackgroundAudioTrack + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0xB3, + 0x91, + 0x4B, + 0x21, + 0x9E, + 0x66, + 0x42, + 0xA9, + 0xC2, + 0x67, + 0xDD, + 0x01, + 0x1A, + 0x23, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundAudioTrackStatics + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0xC0, + 0xB1, + 0xD9, + 0x18, + 0xD0, + 0xA8, + 0x42, + 0xA5, + 0x59, + 0xCB, + 0x4D, + 0x9E, + 0x97, + 0xE6, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEmbeddedAudioTrack + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0x5A, + 0xEE, + 0x55, + 0x30, + 0x2D, + 0xBA, + 0x3F, + 0xA1, + 0x90, + 0x4F, + 0x1A, + 0x64, + 0x54, + 0xF8, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaClip + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x53, + 0xF2, + 0x53, + 0xBA, + 0x5F, + 0xA4, + 0x3E, + 0x86, + 0x93, + 0x24, + 0x76, + 0x18, + 0x11, + 0x14, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaClipStatics + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x2B, + 0x40, + 0xFA, + 0x8F, + 0x92, + 0xC4, + 0x43, + 0xBC, + 0x6E, + 0x78, + 0x3A, + 0x1A, + 0x35, + 0x96, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaClipStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0xD7, + 0x1D, + 0x5B, + 0x4E, + 0x85, + 0x9B, + 0x4D, + 0x87, + 0x7D, + 0x47, + 0x74, + 0xA5, + 0x56, + 0xCD, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaComposition + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0xE6, + 0x06, + 0x2E, + 0x71, + 0xDC, + 0xD6, + 0x41, + 0xB8, + 0x37, + 0x2D, + 0x2B, + 0xC1, + 0x4A, + 0x29, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaComposition2 + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x53, + 0x9E, + 0xA5, + 0x66, + 0x23, + 0x2C, + 0x49, + 0xBE, + 0xC8, + 0xE6, + 0xDF, + 0xBA, + 0x6D, + 0x02, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaCompositionStatics + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x8F, + 0xA0, + 0x87, + 0x2A, + 0xE3, + 0xCE, + 0x45, + 0x8F, + 0x66, + 0xA3, + 0x0D, + 0xF0, + 0x76, + 0x62, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaOverlay + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0xAE, + 0x02, + 0xA9, + 0x69, + 0x78, + 0x30, + 0x48, + 0x8A, + 0xB1, + 0x94, + 0xDC, + 0x01, + 0xC0, + 0x5F, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaOverlayFactory + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x82, + 0x84, + 0xB5, + 0x88, + 0x61, + 0x8F, + 0x4F, + 0xA2, + 0xE0, + 0xAA, + 0x55, + 0x2D, + 0x59, + 0x8E, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaOverlayLayer + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xBA, + 0xD9, + 0xA6, + 0xDA, + 0xEE, + 0xC6, + 0x46, + 0xBB, + 0xE5, + 0xE3, + 0x98, + 0xC8, + 0x41, + 0x68, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaOverlayLayerFactory + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0xB4, + 0x7C, + 0x94, + 0x9E, + 0xA3, + 0x62, + 0x43, + 0xAB, + 0xBF, + 0x9F, + 0x8B, + 0x50, + 0x70, + 0xA0, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.effects/IID.2.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.effects/IID.2.Manual.cs new file mode 100644 index 0000000000..79d446c5be --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.effects/IID.2.Manual.cs @@ -0,0 +1,67 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAcousticEchoCancellationConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0x7e, + 0x73, + 0x5b, + 0x17, + 0x5b, + 0x51, + 0x77, + 0xa4, + 0x07, + 0x2e, + 0x33, + 0xba, + 0xfe, + 0x33, + 0xa5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IAudioEffect2 + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0x70, + 0x3c, + 0xb0, + 0x75, + 0x7e, + 0x57, + 0x57, + 0x8a, + 0xf0, + 0x6b, + 0xa5, + 0x8a, + 0x8b, + 0x29, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.effects/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.effects/IID.Manual.cs new file mode 100644 index 0000000000..a072d55da8 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.effects/IID.Manual.cs @@ -0,0 +1,553 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.effects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioCaptureEffectsManager + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0xC2, + 0x85, + 0x8F, + 0x8D, + 0x03, + 0x93, + 0x43, + 0x82, + 0x98, + 0x54, + 0x01, + 0x10, + 0x60, + 0x8E, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEffect + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xFA, + 0xAA, + 0x34, + 0x07, + 0x92, + 0x55, + 0x40, + 0xBE, + 0x93, + 0x6E, + 0x57, + 0x34, + 0xA8, + 0x6A, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xF9, + 0xD7, + 0xE4, + 0x80, + 0x7D, + 0x73, + 0x4F, + 0x90, + 0x89, + 0xE3, + 0x1C, + 0x9D, + 0xB9, + 0xC2, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEffectDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0xA6, + 0x1D, + 0x8E, + 0x05, + 0xE7, + 0xED, + 0x45, + 0x8A, + 0x2B, + 0xFC, + 0x4E, + 0x4F, + 0x40, + 0x5A, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEffectsManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x6C, + 0x40, + 0x66, + 0xFA, + 0x86, + 0xCC, + 0x47, + 0xA3, + 0x15, + 0xF4, + 0x89, + 0xD8, + 0xC3, + 0xFE, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioRenderEffectsManager + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x89, + 0xC9, + 0x4D, + 0x51, + 0x87, + 0xB2, + 0x42, + 0xBF, + 0xCB, + 0x39, + 0xCA, + 0x78, + 0x64, + 0xBD, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioRenderEffectsManager2 + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0xCD, + 0x44, + 0xA8, + 0xCC, + 0x5E, + 0xB3, + 0x44, + 0xBB, + 0x4E, + 0x1D, + 0xB0, + 0x72, + 0x87, + 0x13, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBasicAudioEffect + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x2C, + 0x06, + 0x8C, + 0xC0, + 0x6B, + 0xB8, + 0x48, + 0xA9, + 0x9A, + 0x4B, + 0x41, + 0x55, + 0x0F, + 0x13, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBasicVideoEffect + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0xC7, + 0x62, + 0x82, + 0x60, + 0xB3, + 0xBE, + 0x40, + 0x94, + 0x9B, + 0x2F, + 0xF4, + 0x2F, + 0xF3, + 0x56, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositeVideoFrameContext + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x02, + 0x30, + 0x6C, + 0x14, + 0xF5, + 0x78, + 0x42, + 0xA5, + 0xF7, + 0xB9, + 0x18, + 0x80, + 0x49, + 0xD1, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessAudioFrameContext + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x29, + 0xD9, + 0x4C, + 0x22, + 0x12, + 0x27, + 0x4A, + 0xA5, + 0x86, + 0xFB, + 0x3E, + 0x20, + 0x27, + 0x32, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessVideoFrameContext + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x0E, + 0x6F, + 0x27, + 0x61, + 0x64, + 0x1E, + 0x40, + 0xBA, + 0x78, + 0x0F, + 0xDA, + 0xD6, + 0x11, + 0x4E, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoCompositor + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0xB4, + 0x10, + 0x85, + 0x0C, + 0x42, + 0x0F, + 0x42, + 0x96, + 0xC7, + 0x7C, + 0x98, + 0xBB, + 0xA1, + 0xFC, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoCompositorDefinition + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xB8, + 0x46, + 0x79, + 0x10, + 0x20, + 0xE3, + 0x4A, + 0x9A, + 0xB2, + 0x2C, + 0xEF, + 0x42, + 0xED, + 0xD4, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoCompositorDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0xFD, + 0x66, + 0x43, + 0xB8, + 0x68, + 0x52, + 0x4D, + 0x89, + 0xB6, + 0x02, + 0xA9, + 0x68, + 0xCC, + 0xA8, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x8C, + 0xF3, + 0x39, + 0x0F, + 0x8D, + 0x3E, + 0x4F, + 0x84, + 0xFC, + 0x2D, + 0x46, + 0xA5, + 0x29, + 0x79, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEffectDefinitionFactory + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x9B, + 0x43, + 0x81, + 0x33, + 0x6E, + 0x8F, + 0x42, + 0x9D, + 0x21, + 0xB5, + 0xAA, + 0xFE, + 0xF7, + 0x61, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTransformEffectDefinition + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xBB, + 0x64, + 0x96, + 0xA6, + 0x1E, + 0xA6, + 0x4A, + 0x80, + 0x74, + 0xAB, + 0xE8, + 0x85, + 0x1E, + 0xCA, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTransformEffectDefinition2 + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x08, + 0xA8, + 0xF0, + 0xC8, + 0x66, + 0x94, + 0x46, + 0x9F, + 0xD9, + 0x11, + 0x36, + 0xAB, + 0xF7, + 0x44, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoTransformSphericalProjection + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x01, + 0x44, + 0xCF, + 0xF2, + 0x9B, + 0x39, + 0x4C, + 0x9F, + 0x41, + 0xE0, + 0x22, + 0x51, + 0x4A, + 0x84, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.faceanalysis/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.faceanalysis/IID.Manual.cs new file mode 100644 index 0000000000..c1e2c3aa1f --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.faceanalysis/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.faceanalysis.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDetectedFace + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xD4, + 0x00, + 0x82, + 0xBC, + 0x66, + 0xDF, + 0x34, + 0x94, + 0x10, + 0xE8, + 0x94, + 0x00, + 0x19, + 0x54, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceDetector + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x72, + 0xB6, + 0x16, + 0x6F, + 0xFE, + 0x17, + 0x31, + 0x8D, + 0x95, + 0xC3, + 0xF0, + 0x4D, + 0x51, + 0x63, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceDetectorStatics + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x2D, + 0x04, + 0xBC, + 0x47, + 0x90, + 0xF6, + 0x33, + 0x88, + 0x1B, + 0x67, + 0x46, + 0xC1, + 0xB2, + 0x18, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceTracker + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x7D, + 0xA6, + 0x6B, + 0x41, + 0xA8, + 0x20, + 0x44, + 0x93, + 0xE6, + 0x24, + 0x20, + 0xA1, + 0x88, + 0x4F, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFaceTrackerStatics + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0x91, + 0x62, + 0xE9, + 0x01, + 0x18, + 0xA5, + 0x3F, + 0x93, + 0x2E, + 0x31, + 0xD7, + 0x67, + 0xAF, + 0x6C, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.mediaproperties/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.mediaproperties/IID.Manual.cs new file mode 100644 index 0000000000..2f0f9aff47 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.mediaproperties/IID.Manual.cs @@ -0,0 +1,1201 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.mediaproperties.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioEncodingProperties + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x7A, + 0xBC, + 0x62, + 0x5C, + 0x00, + 0x3B, + 0x4B, + 0x8A, + 0x0B, + 0x0A, + 0x09, + 0x0E, + 0x96, + 0x87, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEncodingProperties2 + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x54, + 0x5D, + 0xC4, + 0xBD, + 0x80, + 0x23, + 0x4C, + 0x80, + 0xD5, + 0x72, + 0xD4, + 0xA1, + 0x81, + 0xE8, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEncodingProperties3 + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x03, + 0x60, + 0x87, + 0x8C, + 0x74, + 0x8D, + 0x4F, + 0xB0, + 0xFD, + 0x10, + 0xCA, + 0xF0, + 0x8F, + 0xF0, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEncodingPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x33, + 0xAD, + 0x0C, + 0xE9, + 0xEB, + 0x27, + 0x45, + 0xB3, + 0x6D, + 0xE4, + 0x2A, + 0x13, + 0xCF, + 0x38, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEncodingPropertiesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x31, + 0x89, + 0x74, + 0xA0, + 0x77, + 0x3D, + 0x43, + 0x8E, + 0xD5, + 0x40, + 0x40, + 0x28, + 0x0E, + 0x86, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioEncodingPropertiesWithFormatUserData + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x0D, + 0xF1, + 0x98, + 0xEA, + 0x13, + 0xFF, + 0x49, + 0xBE, + 0x70, + 0x26, + 0x73, + 0xDB, + 0x69, + 0x70, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAv1ProfileIdsStatics + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x81, + 0x05, + 0x91, + 0x09, + 0x7C, + 0x82, + 0x58, + 0x88, + 0xA4, + 0x67, + 0x80, + 0x08, + 0xA5, + 0x17, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContainerEncodingProperties + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x2A, + 0xAC, + 0x59, + 0x2A, + 0xB3, + 0x9E, + 0x47, + 0x8A, + 0x61, + 0x4B, + 0x7F, + 0x2E, + 0x9E, + 0x7E, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContainerEncodingProperties2 + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xC0, + 0x72, + 0xB2, + 0x26, + 0xAE, + 0x19, + 0x48, + 0xBA, + 0xAD, + 0xAD, + 0x7A, + 0x49, + 0xB0, + 0xA8, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IH264ProfileIdsStatics + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x4C, + 0x65, + 0x38, + 0x6A, + 0x84, + 0x97, + 0x4F, + 0xA2, + 0xE5, + 0xC3, + 0xA1, + 0x5B, + 0xBF, + 0x70, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHevcProfileIdsStatics + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0xD2, + 0x50, + 0x1E, + 0xA7, + 0x2A, + 0xC1, + 0x53, + 0x97, + 0x3F, + 0x21, + 0x89, + 0xFA, + 0x65, + 0x6F, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageEncodingProperties + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x56, + 0x62, + 0x78, + 0x31, + 0xF3, + 0x89, + 0x41, + 0xB1, + 0xC3, + 0xB4, + 0x8D, + 0x5A, + 0xE0, + 0x34, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageEncodingProperties2 + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0xA2, + 0x54, + 0xC8, + 0x23, + 0xC9, + 0x9B, + 0x46, + 0xAC, + 0x8E, + 0x6A, + 0x9F, + 0x3C, + 0x1C, + 0xD9, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageEncodingPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x68, + 0x7C, + 0x25, + 0x99, + 0x8B, + 0x9E, + 0x43, + 0xAA, + 0x59, + 0x91, + 0x3A, + 0x36, + 0x16, + 0x12, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageEncodingPropertiesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x5B, + 0xC2, + 0xF6, + 0x24, + 0x38, + 0xB0, + 0x46, + 0x95, + 0x6E, + 0x50, + 0x13, + 0x29, + 0xE1, + 0xBE, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageEncodingPropertiesStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x81, + 0xF4, + 0x48, + 0xFF, + 0xA2, + 0xDC, + 0x48, + 0x8E, + 0xA0, + 0xE9, + 0x06, + 0x80, + 0x66, + 0x36, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfile + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0xF5, + 0xDB, + 0xE7, + 0xB9, + 0x1D, + 0x83, + 0x47, + 0x87, + 0x6B, + 0x3D, + 0xFE, + 0x12, + 0xAC, + 0xFD, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfile2 + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x3E, + 0x9B, + 0x34, + 0x35, + 0x40, + 0x8E, + 0x48, + 0x98, + 0x77, + 0x85, + 0x63, + 0x28, + 0x65, + 0xED, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfile3 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xBE, + 0x6E, + 0xBA, + 0x70, + 0x75, + 0x69, + 0x4E, + 0xAC, + 0xCF, + 0x56, + 0x11, + 0xAD, + 0x01, + 0x5F, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfileStatics + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x35, + 0x7F, + 0x19, + 0xDE, + 0x2E, + 0x45, + 0x4A, + 0xA8, + 0x96, + 0x81, + 0x7A, + 0x48, + 0x54, + 0xF8, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfileStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0xE7, + 0x8D, + 0xCE, + 0xF4, + 0x6A, + 0x88, + 0x42, + 0x8F, + 0xE2, + 0x79, + 0xAD, + 0xF1, + 0xF7, + 0x9A, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfileStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0xC5, + 0xDA, + 0x90, + 0x76, + 0xCF, + 0x94, + 0x42, + 0xA9, + 0xED, + 0x1A, + 0x14, + 0x20, + 0xF5, + 0x1F, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProfileStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0xD7, + 0xAF, + 0x6F, + 0x04, + 0x94, + 0x4A, + 0x51, + 0x81, + 0xDD, + 0xC9, + 0x44, + 0x4D, + 0x64, + 0x8A, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingProperties + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x2A, + 0x00, + 0xB4, + 0xD4, + 0xAC, + 0x5A, + 0x4E, + 0xA2, + 0x4B, + 0x5D, + 0x74, + 0x98, + 0xA8, + 0xB8, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x58, + 0xB6, + 0x37, + 0x71, + 0xA1, + 0x64, + 0x44, + 0xBA, + 0x5A, + 0x53, + 0x18, + 0x9E, + 0x48, + 0xC1, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0xD2, + 0x7C, + 0x4B, + 0xFF, + 0x42, + 0x33, + 0x4D, + 0x85, + 0x31, + 0x06, + 0x26, + 0xBE, + 0xE4, + 0xB5, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x14, + 0x24, + 0xBA, + 0x3D, + 0x88, + 0x4E, + 0x46, + 0xA4, + 0x4F, + 0x09, + 0x7D, + 0xA0, + 0x8E, + 0xF7, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics4 + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0xE5, + 0xEC, + 0xDD, + 0x49, + 0x39, + 0x44, + 0x46, + 0x8A, + 0x2C, + 0x59, + 0xEF, + 0x02, + 0xC6, + 0x42, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics5 + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xA0, + 0xD4, + 0x5A, + 0xCE, + 0xFF, + 0x60, + 0x47, + 0x98, + 0x28, + 0x5D, + 0x0C, + 0x99, + 0x63, + 0x7E, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics6 + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x29, + 0x25, + 0xA1, + 0x84, + 0xA9, + 0x12, + 0x59, + 0x93, + 0xBB, + 0x54, + 0xE7, + 0xE5, + 0x69, + 0xE0, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEncodingSubtypesStatics7 + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0xDC, + 0xF2, + 0x92, + 0x37, + 0x99, + 0xA1, + 0x52, + 0xB6, + 0x19, + 0xDD, + 0xFA, + 0xD8, + 0x1C, + 0xD9, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaRatio + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0xFE, + 0xD0, + 0xD2, + 0x29, + 0x89, + 0x1D, + 0x40, + 0xAC, + 0x78, + 0x7D, + 0x35, + 0x7E, + 0x37, + 0x81, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMpeg2ProfileIdsStatics + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0xFF, + 0x61, + 0xA4, + 0x7A, + 0xE5, + 0x28, + 0x41, + 0x9B, + 0x21, + 0xD5, + 0x33, + 0x1B, + 0x04, + 0x23, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataEncodingProperties + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x30, + 0xCD, + 0x51, + 0x90, + 0xD6, + 0xFA, + 0x4C, + 0x97, + 0xF4, + 0x4A, + 0x39, + 0x8E, + 0x9D, + 0xB4, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataEncodingPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0xBB, + 0x29, + 0x66, + 0x55, + 0x6E, + 0x43, + 0x56, + 0x89, + 0xA0, + 0x7A, + 0x7E, + 0x8D, + 0x85, + 0xB5, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingProperties + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x6C, + 0xEE, + 0x76, + 0xC2, + 0x37, + 0x2A, + 0x4F, + 0x88, + 0x0A, + 0x12, + 0x82, + 0xBB, + 0xB4, + 0x37, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingProperties2 + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0xA1, + 0x43, + 0xF7, + 0x65, + 0xD4, + 0x90, + 0x42, + 0xA9, + 0x4B, + 0xEF, + 0x0F, + 0x15, + 0x28, + 0xF8, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingProperties3 + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xCD, + 0x6B, + 0x38, + 0x3A, + 0x87, + 0x9F, + 0x47, + 0xB3, + 0xEB, + 0x56, + 0xC1, + 0xFC, + 0xBE, + 0xC6, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingProperties4 + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xF0, + 0x4E, + 0x72, + 0x0C, + 0xC1, + 0xF2, + 0x40, + 0x9D, + 0x72, + 0x3E, + 0xE1, + 0x3B, + 0x45, + 0xFA, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingProperties5 + { + get + { + ReadOnlySpan data = + [ + 0x0F, + 0x08, + 0x59, + 0x49, + 0x2F, + 0x27, + 0xCE, + 0x4E, + 0xA4, + 0xDF, + 0xC0, + 0xCC, + 0xDB, + 0x33, + 0xD8, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x4D, + 0xE1, + 0x3C, + 0xC5, + 0x1D, + 0xDB, + 0x43, + 0x9F, + 0x38, + 0xEB, + 0xEB, + 0xF9, + 0x01, + 0x52, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingPropertiesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0xBD, + 0x1E, + 0xCF, + 0xFE, + 0x49, + 0x00, + 0x4D, + 0xB5, + 0x9A, + 0xCF, + 0xA4, + 0xDF, + 0xC5, + 0x19, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEncodingPropertiesStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x66, + 0xB4, + 0x65, + 0xDA, + 0x60, + 0x51, + 0x5E, + 0x91, + 0xA2, + 0xB3, + 0x8C, + 0x47, + 0x63, + 0xB8, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVp9ProfileIdsStatics + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x1A, + 0x31, + 0x20, + 0x06, + 0xFE, + 0x83, + 0x58, + 0x92, + 0xD9, + 0x60, + 0x80, + 0xC9, + 0x77, + 0x43, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.playback/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.playback/IID.Manual.cs new file mode 100644 index 0000000000..a136c0a7be --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.playback/IID.Manual.cs @@ -0,0 +1,1768 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.playback.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBackgroundMediaPlayerStatics + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xDB, + 0x6D, + 0x85, + 0xF7, + 0x55, + 0x1F, + 0x47, + 0xA0, + 0xF2, + 0x68, + 0xAC, + 0x4C, + 0x90, + 0x45, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrentMediaPlaybackItemChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0xA8, + 0x43, + 0x17, + 0x43, + 0x5C, + 0x15, + 0x4A, + 0x96, + 0x7A, + 0x57, + 0x2D, + 0x2D, + 0x0F, + 0x26, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICurrentMediaPlaybackItemChangedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xA5, + 0x80, + 0x1D, + 0x6E, + 0x99, + 0xA9, + 0x40, + 0xBE, + 0x48, + 0xE6, + 0x6E, + 0xC9, + 0x0B, + 0x2B, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreak + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xE2, + 0x4B, + 0x71, + 0xEF, + 0x0D, + 0xBC, + 0x4E, + 0xA4, + 0x89, + 0x6B, + 0x34, + 0x93, + 0x0E, + 0x15, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakEndedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0x32, + 0xB9, + 0x32, + 0x5D, + 0x1C, + 0xEE, + 0x4F, + 0x87, + 0x32, + 0x23, + 0x6D, + 0xC3, + 0xA8, + 0x85, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakFactory + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xE0, + 0x16, + 0x45, + 0xE0, + 0x18, + 0x79, + 0x40, + 0x8B, + 0x5F, + 0xD3, + 0x34, + 0x95, + 0xC1, + 0x5D, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakManager + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xDD, + 0x54, + 0xA8, + 0xB4, + 0xFE, + 0x9B, + 0x4D, + 0x9D, + 0x97, + 0x0F, + 0xDB, + 0xE5, + 0x8E, + 0x5E, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakSchedule + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x58, + 0x9A, + 0xA1, + 0xB6, + 0x98, + 0xD8, + 0x41, + 0x83, + 0xDA, + 0xF9, + 0x71, + 0xD2, + 0x2B, + 0x7B, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakSeekedOverEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x67, + 0xAA, + 0xE5, + 0x06, + 0x06, + 0x92, + 0x44, + 0xB9, + 0xD3, + 0xC3, + 0xC8, + 0xFD, + 0xE0, + 0xA4, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakSkippedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x4C, + 0xE9, + 0x6E, + 0x54, + 0x2F, + 0x3E, + 0x4A, + 0xA3, + 0xAB, + 0x24, + 0xC3, + 0xB2, + 0x70, + 0xB4, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaBreakStartedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0xFE, + 0x7E, + 0xA8, + 0xD4, + 0xDF, + 0x4A, + 0x45, + 0x95, + 0x6E, + 0x0A, + 0x4A, + 0x64, + 0x83, + 0x95, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaEnginePlaybackSource + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x0B, + 0x1D, + 0x5C, + 0x56, + 0x38, + 0xB9, + 0x48, + 0x8D, + 0xC6, + 0x24, + 0x4B, + 0xF1, + 0x07, + 0xBF, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaItemDisplayProperties + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x1B, + 0x3C, + 0x1E, + 0x97, + 0x70, + 0x84, + 0x43, + 0xA2, + 0x17, + 0xC1, + 0x29, + 0x1D, + 0xFA, + 0x8C, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManager + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0xE5, + 0xCE, + 0x5A, + 0xB6, + 0x5C, + 0x5A, + 0x4A, + 0x85, + 0x21, + 0xCC, + 0x86, + 0xB1, + 0xC1, + 0xED, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x4F, + 0x6F, + 0x3D, + 0x30, + 0x52, + 0x11, + 0x44, + 0xA0, + 0xE9, + 0xBA, + 0xD9, + 0x4C, + 0x2A, + 0x04, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerCommandBehavior + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0x1E, + 0x6C, + 0x78, + 0x78, + 0xCE, + 0x10, + 0x4A, + 0xAF, + 0xD6, + 0x84, + 0x3F, + 0xCB, + 0xB9, + 0x0C, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerFastForwardReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x64, + 0xF0, + 0x30, + 0x91, + 0xB4, + 0x0A, + 0x4D, + 0xBC, + 0x21, + 0x30, + 0x98, + 0xBD, + 0x13, + 0x32, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerNextReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x44, + 0x50, + 0xE1, + 0xB0, + 0xA2, + 0xD4, + 0x45, + 0xB9, + 0xDE, + 0x5F, + 0x42, + 0xAC, + 0x14, + 0xA8, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerPauseReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0xCD, + 0xEC, + 0x5C, + 0x5C, + 0xC2, + 0x21, + 0x42, + 0xB1, + 0x6C, + 0xC3, + 0xC9, + 0x8C, + 0xE0, + 0x12, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerPlayReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x00, + 0xF0, + 0x9A, + 0x8B, + 0x57, + 0x56, + 0x4C, + 0xA0, + 0x06, + 0x16, + 0x15, + 0x9D, + 0x88, + 0x8A, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerPositionReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xA7, + 0x91, + 0x55, + 0x27, + 0xD6, + 0xDD, + 0x4B, + 0xA9, + 0x0D, + 0x86, + 0xA0, + 0x15, + 0xB2, + 0x49, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerPreviousReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x30, + 0x5E, + 0x52, + 0x32, + 0x46, + 0x76, + 0x4F, + 0x99, + 0xB1, + 0xD7, + 0x71, + 0x62, + 0x3F, + 0x62, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerRateReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x39, + 0xEA, + 0x18, + 0x16, + 0x4A, + 0x69, + 0x41, + 0x8B, + 0x05, + 0x3E, + 0xB9, + 0xF5, + 0xFF, + 0x78, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerRewindReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x59, + 0x08, + 0x9F, + 0xC0, + 0xA3, + 0x5D, + 0x42, + 0xAA, + 0xEF, + 0x97, + 0xBA, + 0x78, + 0x98, + 0xB1, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackCommandManagerShuffleReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x5C, + 0xA0, + 0x50, + 0xEE, + 0x63, + 0x96, + 0x4A, + 0xB7, + 0xB5, + 0xFE, + 0xE0, + 0x8B, + 0x9F, + 0xF9, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItem + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x97, + 0x70, + 0x04, + 0xAF, + 0xE4, + 0xAB, + 0x48, + 0xB2, + 0x83, + 0x69, + 0x29, + 0xE6, + 0x74, + 0xEC, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItem2 + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0xD1, + 0x59, + 0xD8, + 0xEF, + 0xD7, + 0x81, + 0x4B, + 0xAC, + 0x1F, + 0xF4, + 0x04, + 0x93, + 0xCB, + 0xB0, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItem3 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x82, + 0x32, + 0x0D, + 0x0A, + 0xB8, + 0x09, + 0x4D, + 0x9F, + 0xF8, + 0xF8, + 0x70, + 0x94, + 0xA1, + 0xC8, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItemError + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0xEF, + 0xFB, + 0x69, + 0xD6, + 0xDC, + 0xF9, + 0x4D, + 0xA4, + 0x50, + 0xDB, + 0xF4, + 0xC6, + 0xF1, + 0xC2, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItemFactory + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0xFC, + 0x33, + 0x71, + 0x69, + 0x17, + 0xF9, + 0x4F, + 0xA7, + 0xC1, + 0x38, + 0xD2, + 0xC4, + 0xD4, + 0x23, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItemFactory2 + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0xDF, + 0x7C, + 0xD7, + 0x47, + 0xB9, + 0x72, + 0x49, + 0xB3, + 0x5D, + 0xAD, + 0xFB, + 0x93, + 0x1A, + 0x71, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItemFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x13, + 0x03, + 0x77, + 0xA7, + 0xE9, + 0xC3, + 0x47, + 0x86, + 0x2C, + 0xC6, + 0x56, + 0xD3, + 0x06, + 0x83, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItemOpenedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0xBD, + 0xD9, + 0xCB, + 0x37, + 0x30, + 0xBE, + 0x4F, + 0xAE, + 0x8F, + 0x39, + 0xFC, + 0x39, + 0xED, + 0xF4, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackItemStatics + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0xE7, + 0x1B, + 0x4B, + 0x45, + 0x43, + 0x3C, + 0x40, + 0x8A, + 0x67, + 0xF5, + 0xDE, + 0x91, + 0xDF, + 0x4C, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackList + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xEE, + 0x77, + 0x7F, + 0x42, + 0xDC, + 0x26, + 0x4E, + 0xA9, + 0x8D, + 0x78, + 0x50, + 0xDF, + 0x8E, + 0xC9, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackList2 + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0xB4, + 0x09, + 0x0E, + 0x0A, + 0x60, + 0x74, + 0x42, + 0xA1, + 0x4B, + 0x0B, + 0x67, + 0x23, + 0xD0, + 0xF4, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackList3 + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0xBB, + 0x24, + 0xDD, + 0x47, + 0xBC, + 0x63, + 0x44, + 0xAA, + 0x90, + 0xC1, + 0x8B, + 0x7E, + 0x5F, + 0xFD, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSession + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x68, + 0x2B, + 0xC3, + 0x07, + 0x04, + 0xBA, + 0x41, + 0x89, + 0x46, + 0x8B, + 0x34, + 0x5A, + 0x5A, + 0x54, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSession2 + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x7C, + 0xBA, + 0xF8, + 0xC8, + 0x1F, + 0x97, + 0x40, + 0xAD, + 0x70, + 0xC0, + 0xFA, + 0x18, + 0xCC, + 0x00, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSession3 + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0xB4, + 0xA2, + 0x7B, + 0xE2, + 0xA3, + 0x5F, + 0x40, + 0xB7, + 0x7B, + 0xA4, + 0x81, + 0x2C, + 0x23, + 0x8B, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSessionBufferingStartedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xAF, + 0x6A, + 0xCD, + 0xE2, + 0x74, + 0xB5, + 0x43, + 0xB1, + 0x15, + 0x76, + 0x23, + 0x6C, + 0x33, + 0x79, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSessionOutputDegradationPolicyState + { + get + { + ReadOnlySpan data = + [ + 0x7D, + 0x72, + 0x8E, + 0x55, + 0x33, + 0xF6, + 0xF9, + 0x49, + 0x96, + 0x5A, + 0xAB, + 0xAA, + 0x1D, + 0xB7, + 0x09, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSource + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0xC2, + 0x9D, + 0xEF, + 0x17, + 0x93, + 0x96, + 0x46, + 0xB0, + 0x51, + 0x2B, + 0xAD, + 0x64, + 0x31, + 0x77, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackSphericalVideoProjection + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0xB3, + 0x05, + 0xD4, + 0x0E, + 0x6F, + 0x61, + 0x46, + 0xB8, + 0xEE, + 0xD4, + 0x87, + 0xBA, + 0x97, + 0x52, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlaybackTimedMetadataTrackList + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0x13, + 0xB4, + 0x72, + 0xFB, + 0xBB, + 0xA3, + 0x46, + 0x93, + 0x72, + 0x9C, + 0x9C, + 0x74, + 0x4B, + 0x94, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x83, + 0x1A, + 0x38, + 0xFF, + 0x6F, + 0x9B, + 0x49, + 0x8D, + 0x64, + 0x28, + 0x85, + 0xDF, + 0xC1, + 0x24, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer2 + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x12, + 0x84, + 0x3C, + 0x23, + 0x21, + 0xC5, + 0x4F, + 0x90, + 0x82, + 0x2F, + 0x88, + 0x3F, + 0x77, + 0xBD, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer3 + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x60, + 0x06, + 0xEE, + 0x1B, + 0x03, + 0xEB, + 0x4F, + 0xBD, + 0x9B, + 0x92, + 0xE0, + 0xA0, + 0xA8, + 0xD2, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer4 + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x5D, + 0x03, + 0x80, + 0x48, + 0x74, + 0x70, + 0x47, + 0xAF, + 0xCF, + 0x2A, + 0x57, + 0x45, + 0x09, + 0x14, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer5 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x37, + 0xE5, + 0xCF, + 0x6A, + 0xF8, + 0x46, + 0x44, + 0xBF, + 0x4D, + 0xC8, + 0xE7, + 0x92, + 0xB7, + 0xB4, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer6 + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0xA0, + 0xCA, + 0xE0, + 0x65, + 0xAE, + 0x4C, + 0x41, + 0xB0, + 0x10, + 0x8B, + 0xC5, + 0x5F, + 0x00, + 0xE6, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayer7 + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0xC4, + 0x1D, + 0x5D, + 0x00, + 0x45, + 0x31, + 0x45, + 0xB3, + 0xF4, + 0x77, + 0x7A, + 0x71, + 0x49, + 0x1F, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerDataReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x94, + 0x5A, + 0xC7, + 0x01, + 0xC8, + 0x2A, + 0x41, + 0x83, + 0x5B, + 0x83, + 0xFC, + 0x0E, + 0x62, + 0x2A, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerEffects + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0xDE, + 0xA1, + 0x85, + 0xB6, + 0xCA, + 0xC0, + 0x4C, + 0x8B, + 0xE3, + 0x60, + 0x35, + 0xF4, + 0xDE, + 0x25, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerEffects2 + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x9A, + 0x41, + 0xFA, + 0xBE, + 0x1B, + 0xC5, + 0x46, + 0xAE, + 0x1F, + 0x8E, + 0xE6, + 0x9F, + 0xB3, + 0xC2, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xE9, + 0x44, + 0x27, + 0xE3, + 0xA7, + 0x16, + 0x4F, + 0xBA, + 0xC4, + 0x79, + 0x14, + 0xEB, + 0xC0, + 0x83, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerRateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0x0D, + 0x60, + 0x40, + 0x61, + 0x3B, + 0xB2, + 0x4B, + 0x98, + 0x9F, + 0xFC, + 0x65, + 0x60, + 0x8B, + 0x6C, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerSource + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0x88, + 0x4F, + 0xBD, + 0x23, + 0x14, + 0x3E, + 0x4C, + 0x82, + 0xC5, + 0x0F, + 0xB1, + 0xAF, + 0x94, + 0xF7, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerSource2 + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x9B, + 0x44, + 0x82, + 0x22, + 0x73, + 0x0B, + 0x4C, + 0xB0, + 0x3B, + 0x3E, + 0x69, + 0xA4, + 0x82, + 0x60, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaPlayerSurface + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x53, + 0xD6, + 0x0E, + 0x36, + 0xB7, + 0xC3, + 0x49, + 0x83, + 0x0B, + 0x76, + 0x4A, + 0x38, + 0x45, + 0x31, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPlaybackMediaMarker + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x2F, + 0xD2, + 0xC4, + 0x1C, + 0x3C, + 0x44, + 0x44, + 0xB6, + 0xB9, + 0x77, + 0x8B, + 0x04, + 0x22, + 0xD4, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPlaybackMediaMarkerFactory + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0x0A, + 0x53, + 0x8C, + 0xAE, + 0xE0, + 0x1A, + 0x4E, + 0xA8, + 0xC8, + 0xE2, + 0x3F, + 0x98, + 0x2A, + 0x93, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPlaybackMediaMarkerReachedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xD1, + 0x8C, + 0x57, + 0xE2, + 0x90, + 0x60, + 0x4E, + 0xAB, + 0xC4, + 0x87, + 0x40, + 0xB0, + 0x1F, + 0x61, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPlaybackMediaMarkerSequence + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x0C, + 0x81, + 0xF2, + 0x8B, + 0x63, + 0xCF, + 0x46, + 0x88, + 0x17, + 0x1D, + 0x11, + 0x1F, + 0xE9, + 0xD8, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimedMetadataPresentationModeChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0x60, + 0x63, + 0xD1, + 0xDF, + 0x65, + 0xAE, + 0x45, + 0x8C, + 0xEF, + 0xDC, + 0x0B, + 0x53, + 0xFD, + 0xC2, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.protection/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.protection/IID.Manual.cs new file mode 100644 index 0000000000..1bf3b794e0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.protection/IID.Manual.cs @@ -0,0 +1,445 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.protection.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IComponentLoadFailedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x64, + 0xDA, + 0x95, + 0xB9, + 0x6D, + 0x4B, + 0x42, + 0x86, + 0xCA, + 0x09, + 0x1A, + 0xF4, + 0x32, + 0x08, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRebootNeededEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x2A, + 0xE1, + 0x64, + 0x3B, + 0x97, + 0x3A, + 0x4A, + 0xB2, + 0x60, + 0x91, + 0x89, + 0x8A, + 0x49, + 0xA8, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServiceRequestedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x90, + 0xD6, + 0xD2, + 0xC9, + 0xCA, + 0xE1, + 0x48, + 0x95, + 0xC0, + 0xD3, + 0x84, + 0x95, + 0xA8, + 0x40, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IComponentLoadFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x2E, + 0x97, + 0x95, + 0x46, + 0x77, + 0x7E, + 0x41, + 0x84, + 0x95, + 0xF0, + 0x31, + 0xBB, + 0xC5, + 0x86, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IComponentRenewalStatics + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0xCD, + 0xFB, + 0x6F, + 0x95, + 0xB7, + 0xC5, + 0x48, + 0x8B, + 0x7B, + 0xA7, + 0xC4, + 0xEF, + 0xE2, + 0x02, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHdcpSession + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x45, + 0x88, + 0x71, + 0xD7, + 0x64, + 0x6D, + 0x42, + 0x80, + 0x9B, + 0x1B, + 0xE4, + 0x61, + 0x94, + 0x1A, + 0x2A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProtectionManager + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x49, + 0x69, + 0x45, + 0x41, + 0xC7, + 0x4B, + 0x43, + 0xA7, + 0x9E, + 0x47, + 0x4C, + 0x12, + 0xD9, + 0x3D, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProtectionPMPServer + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x12, + 0x11, + 0x0C, + 0x26, + 0x7B, + 0x31, + 0x4D, + 0x95, + 0xBB, + 0x9C, + 0x1B, + 0x08, + 0xEF, + 0x7F, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProtectionPMPServerFactory + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x8E, + 0x2C, + 0x60, + 0xD2, + 0xF7, + 0x7E, + 0x48, + 0xAF, + 0x91, + 0xDB, + 0xC4, + 0x25, + 0x2B, + 0x21, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProtectionServiceCompletion + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0xCA, + 0x5C, + 0x8B, + 0xD5, + 0xCF, + 0xEE, + 0x44, + 0xA2, + 0xED, + 0xDF, + 0x76, + 0x01, + 0x0C, + 0x14, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProtectionServiceRequest + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x0E, + 0xDE, + 0xB1, + 0x94, + 0x20, + 0x8D, + 0x47, + 0x87, + 0xA4, + 0x8B, + 0x95, + 0x20, + 0x0F, + 0x85, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x5D, + 0xAC, + 0xC7, + 0x80, + 0x74, + 0x29, + 0x4D, + 0xA4, + 0x64, + 0x7B, + 0xCD, + 0x91, + 0x3D, + 0xD8, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRevocationAndRenewalInformation + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x93, + 0xA1, + 0xF3, + 0x01, + 0x25, + 0x9E, + 0x43, + 0xA6, + 0xE7, + 0x6F, + 0xC9, + 0x5E, + 0x17, + 0x5F, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRevocationAndRenewalItem + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0xC2, + 0x99, + 0x30, + 0xF0, + 0x3C, + 0xEA, + 0x49, + 0x90, + 0x2D, + 0xCA, + 0xF3, + 0x2D, + 0x2D, + 0xDE, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServiceRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x3B, + 0x28, + 0x34, + 0xB4, + 0xAB, + 0xC1, + 0x4F, + 0xBD, + 0x89, + 0x93, + 0xF1, + 0x06, + 0x57, + 0x3A, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServiceRequestedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x69, + 0x3C, + 0x55, + 0xFE, + 0xFA, + 0x28, + 0x41, + 0x8D, + 0xFA, + 0x13, + 0x0E, + 0x39, + 0x8A, + 0x13, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.speechrecognition/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.speechrecognition/IID.Manual.cs new file mode 100644 index 0000000000..41b76b5d7e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.speechrecognition/IID.Manual.cs @@ -0,0 +1,769 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.speechrecognition.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ISpeechContinuousRecognitionCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x69, + 0xD0, + 0xE3, + 0x0C, + 0xE3, + 0x18, + 0x5E, + 0x42, + 0x4B, + 0x7F, + 0xBE, + 0x81, + 0xF8, + 0xFB, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechContinuousRecognitionResultGeneratedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x1E, + 0x09, + 0x19, + 0x7E, + 0x6E, + 0x46, + 0x5A, + 0x40, + 0xFB, + 0x76, + 0x59, + 0x4F, + 0x78, + 0x65, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechContinuousRecognitionSession + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x3C, + 0x21, + 0x6A, + 0x14, + 0x66, + 0xF8, + 0x49, + 0x99, + 0xA2, + 0xB5, + 0xE9, + 0xB3, + 0xA0, + 0x85, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionCompilationResult + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x6C, + 0x7E, + 0x40, + 0xC7, + 0x6A, + 0xA4, + 0x4D, + 0x9C, + 0xC1, + 0x2F, + 0xCE, + 0x32, + 0xCF, + 0x74, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionConstraint + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x16, + 0xAC, + 0x79, + 0x68, + 0x4D, + 0xC4, + 0x43, + 0x89, + 0x11, + 0x40, + 0xDC, + 0x41, + 0x01, + 0xB5, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionGrammarFileConstraint + { + get + { + ReadOnlySpan data = + [ + 0x8F, + 0x1A, + 0x03, + 0xB5, + 0xCA, + 0x85, + 0xA4, + 0x4F, + 0xB1, + 0x1A, + 0x47, + 0x4F, + 0xC4, + 0x1B, + 0x38, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionGrammarFileConstraintFactory + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x70, + 0xA7, + 0x3D, + 0x79, + 0xC4, + 0x27, + 0x4C, + 0x9F, + 0x19, + 0x89, + 0x97, + 0x4E, + 0xF3, + 0x92, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionHypothesis + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x25, + 0x7B, + 0x7A, + 0xC5, + 0x99, + 0x7D, + 0x4F, + 0xBF, + 0x84, + 0x10, + 0xAA, + 0x13, + 0x02, + 0xB6, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionHypothesisGeneratedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0x1A, + 0x16, + 0x55, + 0x23, + 0x80, + 0x66, + 0x58, + 0x41, + 0x1D, + 0x12, + 0x13, + 0xBB, + 0x27, + 0x14, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionListConstraint + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0x87, + 0xC4, + 0x09, + 0xAD, + 0xE4, + 0x26, + 0x45, + 0x81, + 0xF2, + 0x49, + 0x46, + 0xFB, + 0x48, + 0x1D, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionListConstraintFactory + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0xCD, + 0xF3, + 0x40, + 0x2A, + 0x56, + 0x6A, + 0x42, + 0x9F, + 0x3B, + 0x3B, + 0x4E, + 0x28, + 0x2B, + 0xE1, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionQualityDegradingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x41, + 0xE2, + 0x4F, + 0x3A, + 0x8C, + 0x7E, + 0x4C, + 0x8D, + 0x0A, + 0x5B, + 0xD4, + 0xF5, + 0xB1, + 0x4A, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionResult + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x31, + 0x30, + 0x4E, + 0x4E, + 0x03, + 0x52, + 0x46, + 0x85, + 0x7E, + 0xD0, + 0x45, + 0x4C, + 0xC4, + 0xBE, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionResult2 + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0xD1, + 0x7E, + 0xAF, + 0x1B, + 0x45, + 0x66, + 0x41, + 0xA0, + 0xC1, + 0x1F, + 0xFE, + 0x84, + 0x03, + 0x2D, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionSemanticInterpretation + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xDA, + 0xE1, + 0xAA, + 0x32, + 0x7E, + 0x1F, + 0x4C, + 0x89, + 0xFE, + 0x0C, + 0x65, + 0xF4, + 0x86, + 0xF5, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionTopicConstraint + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0xDF, + 0x6F, + 0xBF, + 0x5D, + 0x82, + 0x69, + 0x4E, + 0xA6, + 0x81, + 0x36, + 0xE4, + 0x8C, + 0xF1, + 0xC9, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionTopicConstraintFactory + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x63, + 0x68, + 0x6E, + 0x05, + 0xEC, + 0xD7, + 0x47, + 0xA5, + 0xDF, + 0x56, + 0xA3, + 0x43, + 0x1E, + 0x58, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognitionVoiceCommandDefinitionConstraint + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x1C, + 0x79, + 0xF2, + 0xF4, + 0x1E, + 0xE7, + 0x4A, + 0x9D, + 0x77, + 0xB6, + 0xFF, + 0x10, + 0xB8, + 0xA3, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_WinRT_ISpeechRecognizer + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xC9, + 0xC3, + 0x0B, + 0x6A, + 0xC2, + 0xF2, + 0x40, + 0xAE, + 0xB5, + 0x80, + 0x96, + 0xB2, + 0xE4, + 0x80, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizer2 + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xBA, + 0xC9, + 0x63, + 0xE3, + 0x91, + 0xA4, + 0x4E, + 0x86, + 0xA1, + 0x7C, + 0x38, + 0x67, + 0xD0, + 0x84, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizerFactory + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x88, + 0xC4, + 0x60, + 0xB8, + 0x7F, + 0x33, + 0x40, + 0xAC, + 0x70, + 0xD0, + 0x46, + 0xF6, + 0x48, + 0x18, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizerStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x4F, + 0x3D, + 0x56, + 0x03, + 0xBA, + 0xAD, + 0x4B, + 0xAD, + 0x81, + 0xDD, + 0xC6, + 0xC4, + 0xDA, + 0xB0, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizerStatics + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x5E, + 0xA3, + 0x87, + 0xDC, + 0xA7, + 0x0B, + 0x4B, + 0xBC, + 0xC9, + 0x24, + 0xF4, + 0x7C, + 0x0B, + 0x7E, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x0D, + 0x1B, + 0x1D, + 0x65, + 0x75, + 0xF9, + 0x4E, + 0xA2, + 0xF3, + 0xBA, + 0x15, + 0x16, + 0x2A, + 0x96, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizerTimeouts + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0x6F, + 0xF7, + 0x2E, + 0x3C, + 0x6A, + 0xCA, + 0x4D, + 0xA1, + 0x53, + 0xDF, + 0x1B, + 0xC8, + 0x8A, + 0x79, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpeechRecognizerUIOptions + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0xD6, + 0x88, + 0x78, + 0x2B, + 0xB9, + 0xBA, + 0x44, + 0xA2, + 0x5F, + 0xD1, + 0x86, + 0x46, + 0x30, + 0x64, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoiceCommandManager + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x8D, + 0x3A, + 0xAA, + 0xE7, + 0xB6, + 0xE2, + 0x4E, + 0xBA, + 0xA9, + 0xDD, + 0x6B, + 0xAC, + 0xED, + 0x0A, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVoiceCommandSet + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0xDA, + 0xED, + 0x0B, + 0xE6, + 0x46, + 0x11, + 0x4B, + 0xA0, + 0x88, + 0x5C, + 0x68, + 0x63, + 0x28, + 0x99, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.streaming.adaptive/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.streaming.adaptive/IID.Manual.cs new file mode 100644 index 0000000000..a2294691d5 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.streaming.adaptive/IID.Manual.cs @@ -0,0 +1,769 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.streaming.adaptive.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAdaptiveMediaSource + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x32, + 0x73, + 0x4C, + 0x9F, + 0xD3, + 0x96, + 0x43, + 0xB4, + 0xD9, + 0x04, + 0x39, + 0x57, + 0xA7, + 0xC9, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSource2 + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x03, + 0x89, + 0x17, + 0x60, + 0x67, + 0xB9, + 0x4B, + 0xA5, + 0x8A, + 0xF7, + 0xAA, + 0x98, + 0xB0, + 0x8C, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSource3 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x23, + 0x70, + 0xBA, + 0x34, + 0xC3, + 0x1B, + 0x46, + 0xA3, + 0x6E, + 0xC9, + 0x9F, + 0x54, + 0xF7, + 0x17, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceAdvancedSettings + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x16, + 0xDB, + 0x55, + 0xEB, + 0x1A, + 0xDC, + 0x47, + 0xAA, + 0x08, + 0x9A, + 0x11, + 0x61, + 0x0B, + 0xA4, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceCorrelatedTimes + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x87, + 0x10, + 0x05, + 0x32, + 0xE0, + 0xE1, + 0x48, + 0xAB, + 0x8D, + 0x00, + 0x2B, + 0x0B, + 0x30, + 0x51, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceCreationResult + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0xB6, + 0x86, + 0x46, + 0x0F, + 0x80, + 0x31, + 0x4E, + 0x90, + 0x93, + 0x76, + 0xD4, + 0x78, + 0x20, + 0x13, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceCreationResult2 + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x43, + 0x32, + 0x1C, + 0x44, + 0x1C, + 0x4B, + 0x40, + 0xA2, + 0x01, + 0xDF, + 0x45, + 0xAC, + 0x78, + 0x98, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDiagnosticAvailableEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0x4F, + 0xF6, + 0x3A, + 0x9C, + 0x6D, + 0x4A, + 0x49, + 0xB7, + 0xA9, + 0xB3, + 0xA5, + 0xDE, + 0xE6, + 0xAD, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDiagnosticAvailableEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xD8, + 0x6D, + 0x8C, + 0xA5, + 0x16, + 0x9F, + 0x4D, + 0x81, + 0x0E, + 0x00, + 0xBD, + 0x90, + 0x1B, + 0x3E, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDiagnosticAvailableEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x0C, + 0x65, + 0xC3, + 0xEB, + 0xDA, + 0x03, + 0x41, + 0x84, + 0xDA, + 0x68, + 0x76, + 0x9A, + 0xD5, + 0x13, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDiagnostics + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0xEE, + 0x24, + 0x9B, + 0x2E, + 0x96, + 0x8C, + 0x44, + 0xAE, + 0xBF, + 0xB2, + 0x9B, + 0x56, + 0x09, + 0x8E, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadBitrateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x0A, + 0x0C, + 0x67, + 0x4E, + 0xE0, + 0xFF, + 0x4E, + 0x81, + 0x6A, + 0x17, + 0x39, + 0x9F, + 0x78, + 0xF4, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0xF4, + 0xF1, + 0xF3, + 0xAE, + 0x96, + 0xE0, + 0x4D, + 0xB5, + 0x40, + 0x2B, + 0x32, + 0x46, + 0xE6, + 0x96, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x0D, + 0x24, + 0x19, + 0x37, + 0x5B, + 0x1A, + 0x4A, + 0x89, + 0x70, + 0xD6, + 0x21, + 0xCB, + 0x6C, + 0xA8, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadCompletedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0x44, + 0x47, + 0x70, + 0x4A, + 0x96, + 0xE4, + 0x40, + 0xAF, + 0x95, + 0x91, + 0x77, + 0xDD, + 0x6D, + 0xFA, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadCompletedEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x8B, + 0x8A, + 0x0F, + 0xB2, + 0x93, + 0xC6, + 0x47, + 0xBA, + 0xDC, + 0x8B, + 0xE2, + 0xC8, + 0xF7, + 0xF6, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x90, + 0x73, + 0x37, + 0xAB, + 0xF4, + 0xA4, + 0x40, + 0xB1, + 0x35, + 0xC6, + 0xDF, + 0xD8, + 0xBD, + 0x7F, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadFailedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x95, + 0x91, + 0x70, + 0x7C, + 0x96, + 0x86, + 0x49, + 0x90, + 0xC5, + 0xC6, + 0xFC, + 0x4B, + 0x31, + 0xE2, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadFailedEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0x49, + 0x45, + 0x35, + 0xD0, + 0x32, + 0x11, + 0x10, + 0x4A, + 0x91, + 0x5A, + 0xC2, + 0x21, + 0x1B, + 0x5B, + 0x94, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadRequestedDeferral + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x8F, + 0xC6, + 0x05, + 0x20, + 0xFA, + 0xBD, + 0x4D, + 0x98, + 0x21, + 0x4B, + 0xF4, + 0xC9, + 0xBF, + 0x77, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0xDF, + 0x3F, + 0xC8, + 0xA9, + 0x44, + 0xA2, + 0x47, + 0xBF, + 0x96, + 0x03, + 0x39, + 0x8B, + 0x4B, + 0xFA, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadRequestedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x8B, + 0x7D, + 0xB3, + 0x44, + 0xAA, + 0x82, + 0x4D, + 0x82, + 0x5B, + 0x61, + 0x1D, + 0xE3, + 0xBC, + 0xFE, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadRequestedEventArgs3 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x50, + 0x3C, + 0x33, + 0x62, + 0x4F, + 0x81, + 0x44, + 0xAB, + 0x44, + 0x1E, + 0x47, + 0xB0, + 0x57, + 0x42, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadResult + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0xDC, + 0xAF, + 0xF4, + 0xEE, + 0xBC, + 0x6A, + 0x4A, + 0x9F, + 0x0A, + 0xFE, + 0xC4, + 0x1E, + 0x23, + 0x39, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadResult2 + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x2C, + 0x55, + 0x15, + 0x80, + 0x7B, + 0xC4, + 0x4A, + 0x86, + 0x60, + 0xA4, + 0xB9, + 0x7F, + 0x7C, + 0x70, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceDownloadStatistics + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0xCE, + 0x06, + 0xA3, + 0x6A, + 0xE9, + 0xFF, + 0x4D, + 0xA9, + 0xB8, + 0x1A, + 0xE0, + 0x8C, + 0x01, + 0xAE, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x9F, + 0xA2, + 0x23, + 0xDA, + 0x7D, + 0x51, + 0x4A, + 0x87, + 0xA9, + 0x6F, + 0xA8, + 0xC5, + 0xB2, + 0x92, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveMediaSourceStatics + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0xBD, + 0xA6, + 0x50, + 0xEF, + 0x66, + 0xD3, + 0x4C, + 0x95, + 0x79, + 0x9E, + 0x66, + 0x05, + 0x07, + 0xDC, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.streaming/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.streaming/IID.Manual.cs new file mode 100644 index 0000000000..81db83f823 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.streaming/IID.Manual.cs @@ -0,0 +1,418 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.streaming.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IConnectionStatusHandler + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0xC2, + 0x71, + 0xB5, + 0x72, + 0xA4, + 0xD5, + 0x48, + 0x88, + 0xD2, + 0x8A, + 0xDC, + 0xAF, + 0x1B, + 0x88, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceControllerFinderHandler + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0x7D, + 0x8A, + 0xA8, + 0x8C, + 0x98, + 0x03, + 0x44, + 0x9D, + 0x8A, + 0x01, + 0x5B, + 0xED, + 0x14, + 0x0B, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRenderingParametersUpdateHandler + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x9D, + 0x2D, + 0x3A, + 0xE9, + 0x72, + 0x11, + 0x43, + 0xB4, + 0x6C, + 0x27, + 0xC8, + 0xBB, + 0x7E, + 0x6C, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITransportParametersUpdateHandler + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x02, + 0xFD, + 0x16, + 0x61, + 0xDA, + 0xD7, + 0x49, + 0xAA, + 0xB2, + 0x76, + 0x86, + 0x7D, + 0xD4, + 0x2D, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActiveBasicDevice + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x69, + 0x4D, + 0xB6, + 0x79, + 0x6E, + 0xAF, + 0x49, + 0x99, + 0x33, + 0x90, + 0x8B, + 0x6E, + 0x9A, + 0x16, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActiveBasicDeviceStatics + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x25, + 0x33, + 0x6D, + 0x42, + 0x36, + 0x18, + 0x46, + 0x9D, + 0xB6, + 0x43, + 0x52, + 0x4F, + 0x4D, + 0xEA, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBasicDevice + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x6C, + 0xF2, + 0xF4, + 0x62, + 0x79, + 0xB7, + 0x48, + 0x80, + 0xF7, + 0xC3, + 0xA5, + 0xD7, + 0x53, + 0xBC, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceController + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0xB2, + 0xEE, + 0x4F, + 0xA7, + 0x50, + 0x2B, + 0x40, + 0x89, + 0x6A, + 0xBE, + 0x95, + 0x06, + 0x4D, + 0x6B, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDeviceIcon + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x1A, + 0xFB, + 0x8F, + 0x3D, + 0x02, + 0xE1, + 0x4D, + 0xB5, + 0x56, + 0xAB, + 0x5A, + 0xBF, + 0x01, + 0x92, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDevicePair + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x23, + 0xA4, + 0xF1, + 0xB4, + 0xB7, + 0x9C, + 0x44, + 0xA9, + 0x0D, + 0xAE, + 0xA8, + 0xE1, + 0x7C, + 0x5E, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaRenderer + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x2E, + 0x01, + 0x2C, + 0x75, + 0xD9, + 0xFB, + 0x47, + 0x96, + 0xAC, + 0xA6, + 0x41, + 0x8B, + 0x32, + 0x6D, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaRendererActionInformation + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0xBF, + 0xFB, + 0x66, + 0xB0, + 0x5A, + 0x4F, + 0x4A, + 0x8D, + 0x15, + 0xE5, + 0x05, + 0x6B, + 0x26, + 0xBE, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaRendererFactory + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0xB4, + 0x7A, + 0x65, + 0x09, + 0xB9, + 0xB2, + 0x42, + 0x94, + 0xD0, + 0xE3, + 0xA0, + 0xB1, + 0x34, + 0xE8, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSelectorStatics + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xD4, + 0x4C, + 0x8A, + 0x85, + 0xED, + 0x0F, + 0x4E, + 0xBD, + 0x68, + 0x8A, + 0x68, + 0x62, + 0xE4, + 0x63, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITransportParameters + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x4E, + 0x0C, + 0xEB, + 0x83, + 0x22, + 0x8D, + 0x43, + 0x8F, + 0xFF, + 0xDB, + 0xE9, + 0xDF, + 0x1C, + 0xB2, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media.transcoding/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media.transcoding/IID.Manual.cs new file mode 100644 index 0000000000..b7737243b2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media.transcoding/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.transcoding.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IMediaTranscoder + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x99, + 0x0C, + 0x19, + 0xAA, + 0xA0, + 0x34, + 0x4D, + 0x86, + 0xBC, + 0xEE, + 0xD1, + 0xB1, + 0x2C, + 0x2F, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaTranscoder2 + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x1D, + 0x53, + 0x40, + 0xE0, + 0x35, + 0x04, + 0x4F, + 0x85, + 0x74, + 0xCA, + 0x8B, + 0xC4, + 0xE5, + 0xA0, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPrepareTranscodeResult + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x5D, + 0xF2, + 0x05, + 0x4F, + 0x99, + 0x34, + 0x4A, + 0x9D, + 0x68, + 0x97, + 0xCC, + 0xCE, + 0x17, + 0x30, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.media/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.media/IID.Manual.cs new file mode 100644 index 0000000000..7d1b6d1215 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.media/IID.Manual.cs @@ -0,0 +1,1012 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.media.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAudioBuffer + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x58, + 0x17, + 0x35, + 0x4B, + 0x72, + 0x6A, + 0x4C, + 0xB1, + 0x30, + 0xF6, + 0x53, + 0x7F, + 0x9A, + 0xE0, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFrame + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0xC3, + 0x6A, + 0xE3, + 0xB2, + 0xAA, + 0x77, + 0x42, + 0x9E, + 0xD0, + 0x43, + 0xCE, + 0xDF, + 0x8E, + 0x29, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAudioFrameFactory + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0x0A, + 0xA9, + 0x91, + 0x22, + 0x24, + 0xA6, + 0x40, + 0xB9, + 0xAD, + 0x30, + 0xD0, + 0x24, + 0x04, + 0x31, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAutoRepeatModeChangeRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x7E, + 0x13, + 0xEA, + 0x52, + 0xD8, + 0x8E, + 0x43, + 0x88, + 0x2B, + 0xC9, + 0x90, + 0x10, + 0x9A, + 0x78, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageDisplayProperties + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0xC7, + 0x0B, + 0xCD, + 0xE7, + 0x54, + 0x1F, + 0x41, + 0x99, + 0x33, + 0xF0, + 0xE9, + 0x8B, + 0x0A, + 0x96, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_WinRT_IMediaControl + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0xFB, + 0xF1, + 0x98, + 0x8D, + 0x7A, + 0xCB, + 0x42, + 0xB6, + 0xFE, + 0x8F, + 0xE6, + 0x98, + 0x26, + 0x4F, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaExtension + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x51, + 0x91, + 0x07, + 0xDF, + 0x45, + 0x2B, + 0x44, + 0x8A, + 0x3F, + 0xF7, + 0x82, + 0x6A, + 0x63, + 0x70, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaExtensionManager + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0xEA, + 0x25, + 0x4A, + 0x2D, + 0x24, + 0xFB, + 0x4D, + 0x97, + 0xF4, + 0x69, + 0xB7, + 0xC4, + 0x25, + 0x76, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaExtensionManager2 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xBF, + 0xCE, + 0x5B, + 0x43, + 0x40, + 0xED, + 0x4F, + 0xAC, + 0xAF, + 0x54, + 0xEC, + 0x29, + 0xDF, + 0xB1, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaFrame + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x2F, + 0xB5, + 0xBF, + 0x43, + 0x59, + 0xD8, + 0x47, + 0x8E, + 0x10, + 0x05, + 0x30, + 0x8A, + 0xA5, + 0xFB, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaMarker + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0xDE, + 0x03, + 0x18, + 0xA5, + 0xDC, + 0x6F, + 0x4B, + 0x9C, + 0x20, + 0xE3, + 0xD3, + 0xC0, + 0x64, + 0x36, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaMarkerTypesStatics + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x80, + 0x19, + 0xBB, + 0x2F, + 0x48, + 0x43, + 0x47, + 0x88, + 0x32, + 0x45, + 0x85, + 0x38, + 0x21, + 0xEC, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaMarkers + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xB1, + 0xEA, + 0xAF, + 0xDD, + 0xF8, + 0x6E, + 0x46, + 0xAA, + 0x10, + 0x92, + 0x0B, + 0x52, + 0x35, + 0x3F, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaProcessingTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x64, + 0x85, + 0xEB, + 0x51, + 0xA3, + 0x4E, + 0x4F, + 0xB4, + 0xF0, + 0x9B, + 0xF2, + 0x40, + 0x89, + 0x93, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaTimelineController + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x61, + 0xD3, + 0x8E, + 0x78, + 0x0B, + 0x60, + 0x43, + 0xBF, + 0x71, + 0x0C, + 0x84, + 0x19, + 0x99, + 0xEA, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaTimelineController2 + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0xEA, + 0x74, + 0xEF, + 0x72, + 0x9E, + 0xF9, + 0x4D, + 0x83, + 0x55, + 0x6E, + 0x90, + 0xC8, + 0x1B, + 0xBA, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMediaTimelineControllerFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0xF8, + 0x21, + 0x88, + 0x77, + 0x3E, + 0xFB, + 0x43, + 0xBE, + 0x26, + 0x4F, + 0xC8, + 0x7A, + 0x04, + 0x48, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMusicDisplayProperties + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0x0C, + 0xBF, + 0x6B, + 0xA0, + 0xD0, + 0x26, + 0x4D, + 0x92, + 0xA0, + 0xF9, + 0x78, + 0xE1, + 0xD1, + 0x8E, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMusicDisplayProperties2 + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x84, + 0x36, + 0x00, + 0xD3, + 0x97, + 0xB9, + 0x44, + 0xB0, + 0x0F, + 0x00, + 0x8A, + 0xFC, + 0xEF, + 0xAF, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMusicDisplayProperties3 + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x1A, + 0xB5, + 0x4D, + 0x81, + 0x06, + 0x8C, + 0x4E, + 0x94, + 0x01, + 0xB8, + 0x15, + 0x9D, + 0x9E, + 0xEF, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPlaybackPositionChangeRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x3F, + 0x49, + 0xB4, + 0x28, + 0xEB, + 0x61, + 0x49, + 0x9C, + 0x14, + 0x33, + 0x5E, + 0x44, + 0xF3, + 0xE1, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPlaybackRateChangeRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0xC4, + 0xE2, + 0x2C, + 0xD6, + 0x3C, + 0x77, + 0x4F, + 0x9B, + 0xA7, + 0xEB, + 0x27, + 0xC2, + 0x6A, + 0x21, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShuffleEnabledChangeRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x93, + 0xB5, + 0x49, + 0xD0, + 0x4F, + 0x66, + 0x46, + 0xA3, + 0x14, + 0xC0, + 0xE0, + 0x19, + 0x40, + 0xD3, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControls + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x3F, + 0xFA, + 0x99, + 0x42, + 0x17, + 0xA6, + 0x42, + 0x90, + 0x2E, + 0x08, + 0x7D, + 0x41, + 0xF9, + 0x65, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControls2 + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0xD2, + 0x98, + 0xEA, + 0x3C, + 0x7F, + 0xF2, + 0x4A, + 0xA5, + 0x86, + 0x72, + 0x88, + 0x98, + 0x08, + 0xEF, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControlsButtonPressedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x71, + 0xF4, + 0xB7, + 0x6F, + 0xA5, + 0xC8, + 0x4D, + 0x9E, + 0x11, + 0x92, + 0x03, + 0x1F, + 0x4A, + 0x87, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControlsDisplayUpdater + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0xC5, + 0xBB, + 0x8A, + 0x55, + 0xFA, + 0xCF, + 0x4E, + 0xAD, + 0x8E, + 0xC9, + 0x84, + 0xE5, + 0xDD, + 0x15, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControlsPropertyChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0x09, + 0xCA, + 0xD0, + 0x9B, + 0x33, + 0xB3, + 0x4C, + 0x8E, + 0xEB, + 0x73, + 0x76, + 0x07, + 0xF5, + 0x6E, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControlsStatics + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x38, + 0xBA, + 0x43, + 0xA4, + 0xEC, + 0x32, + 0x48, + 0x91, + 0xAB, + 0xD4, + 0x15, + 0xFA, + 0xE4, + 0x84, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaTransportControlsTimelineProperties + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x31, + 0x25, + 0x51, + 0xA2, + 0xC3, + 0x5B, + 0x47, + 0x85, + 0x07, + 0x93, + 0x53, + 0x4D, + 0xC8, + 0x8F, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoDisplayProperties + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xFD, + 0x09, + 0x56, + 0x2D, + 0x5D, + 0x72, + 0x48, + 0x81, + 0x70, + 0x45, + 0xDE, + 0xE5, + 0xBC, + 0x2F, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoDisplayProperties2 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xE1, + 0x10, + 0xB4, + 0x52, + 0xAB, + 0xAB, + 0x41, + 0xA4, + 0x86, + 0xCC, + 0x10, + 0xFA, + 0xB1, + 0x52, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoEffectsStatics + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0xA5, + 0xCD, + 0x1F, + 0xF1, + 0xBA, + 0x21, + 0x45, + 0x98, + 0x0C, + 0x3B, + 0xCE, + 0xBB, + 0x44, + 0xCF, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoFrame + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x66, + 0xC0, + 0x0C, + 0xFC, + 0x90, + 0x92, + 0x4C, + 0xBD, + 0x95, + 0x7D, + 0xED, + 0x21, + 0x81, + 0x9D, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoFrame2 + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0x84, + 0x37, + 0x38, + 0x6C, + 0x33, + 0x66, + 0x43, + 0x8D, + 0x46, + 0x06, + 0x07, + 0x98, + 0x73, + 0x6C, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoFrameFactory + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0x6D, + 0x4B, + 0x01, + 0x28, + 0x22, + 0x92, + 0x4C, + 0x92, + 0xFF, + 0x50, + 0xC3, + 0x80, + 0xD3, + 0xE7, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoFrameStatics + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x55, + 0x2A, + 0xAB, + 0x11, + 0x61, + 0x33, + 0x4B, + 0x8E, + 0xC3, + 0x2B, + 0x20, + 0x9A, + 0x02, + 0xE1, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.networking.backgroundtransfer/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.networking.backgroundtransfer/IID.Manual.cs new file mode 100644 index 0000000000..509dbdfb12 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.networking.backgroundtransfer/IID.Manual.cs @@ -0,0 +1,1039 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.networking.backgroundtransfer.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBackgroundDownloader + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x93, + 0xC7, + 0xC1, + 0x49, + 0x66, + 0x1D, + 0x4B, + 0xA8, + 0x26, + 0xA4, + 0xB3, + 0xDD, + 0x23, + 0x4D, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundDownloader2 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x58, + 0x4A, + 0xA9, + 0x8D, + 0x34, + 0x35, + 0x4A, + 0x89, + 0x0E, + 0x8A, + 0x1E, + 0xF3, + 0x79, + 0x84, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundDownloader3 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x8C, + 0x1A, + 0xD1, + 0xE8, + 0x86, + 0xE2, + 0x48, + 0xB6, + 0x15, + 0x69, + 0x76, + 0xAA, + 0xBF, + 0x86, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundDownloaderFactory + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x6C, + 0x83, + 0x26, + 0x9E, + 0xD8, + 0xF4, + 0x46, + 0xA2, + 0x9A, + 0x4F, + 0x4D, + 0x4F, + 0x14, + 0x41, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundDownloaderStaticMethods + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x5A, + 0xA6, + 0x52, + 0x4E, + 0xC6, + 0x6C, + 0x42, + 0x99, + 0x19, + 0x54, + 0x0D, + 0x0D, + 0x21, + 0xA6, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundDownloaderStaticMethods2 + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x13, + 0xAA, + 0x2F, + 0xD4, + 0x1A, + 0xA5, + 0x4C, + 0xB2, + 0xCD, + 0x08, + 0xDB, + 0xF0, + 0x74, + 0x6A, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundDownloaderUserConsent + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xE9, + 0x14, + 0x5D, + 0x66, + 0x92, + 0x08, + 0x48, + 0xBD, + 0x71, + 0x59, + 0x25, + 0xF2, + 0xA3, + 0x13, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferBase + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0xA2, + 0x9D, + 0x2A, + 0x69, + 0xC7, + 0x8C, + 0x45, + 0xAF, + 0xE8, + 0xFE, + 0xB8, + 0xD4, + 0xD3, + 0xB2, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferCompletionGroup + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x02, + 0x93, + 0x2D, + 0x6B, + 0x98, + 0x4D, + 0x57, + 0x79, + 0x50, + 0x0A, + 0xDD, + 0x47, + 0xF5, + 0xD7, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferCompletionGroupTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0xE2, + 0x6B, + 0x7B, + 0x47, + 0x6E, + 0x36, + 0x51, + 0x7F, + 0xCB, + 0xFA, + 0x43, + 0x89, + 0xF4, + 0x6F, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferContentPart + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x56, + 0xE1, + 0xE8, + 0xD1, + 0xD7, + 0xD8, + 0x4E, + 0x83, + 0x8E, + 0x67, + 0x4A, + 0xC2, + 0x17, + 0xAC, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferContentPartFactory + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x98, + 0xEF, + 0x90, + 0x01, + 0x7A, + 0x0B, + 0x4A, + 0x9F, + 0x80, + 0xA0, + 0xB0, + 0xBB, + 0x37, + 0x0F, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferErrorStaticMethods + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x3B, + 0xD3, + 0xAA, + 0x92, + 0x11, + 0xF4, + 0x4B, + 0x8B, + 0x68, + 0x39, + 0xC5, + 0xAD, + 0xD2, + 0x44, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferGroup + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xE3, + 0xC3, + 0xD8, + 0x59, + 0x64, + 0x40, + 0x45, + 0x85, + 0xEB, + 0xAA, + 0xA1, + 0xC8, + 0x90, + 0x36, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferGroupStatics + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x50, + 0xEC, + 0x02, + 0x18, + 0x7D, + 0x5B, + 0x49, + 0xAA, + 0x22, + 0x32, + 0xA9, + 0x7D, + 0x45, + 0xD3, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferOperation + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x68, + 0xD0, + 0xDE, + 0xCA, + 0x90, + 0xFB, + 0x44, + 0x8F, + 0xB1, + 0x12, + 0x41, + 0x54, + 0xC0, + 0xD5, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferOperationPriority + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x43, + 0x85, + 0x04, + 0x54, + 0x52, + 0x3A, + 0x4B, + 0x91, + 0x5E, + 0x0A, + 0xA4, + 0x92, + 0x75, + 0xC0, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundTransferRangesDownloadedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x74, + 0xBC, + 0x3E, + 0x48, + 0xBF, + 0x88, + 0x4A, + 0x92, + 0x48, + 0xB0, + 0xC1, + 0x65, + 0x18, + 0x4F, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploader + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0xC9, + 0x95, + 0xC5, + 0xAD, + 0xCE, + 0x5B, + 0x46, + 0x88, + 0x01, + 0xC5, + 0x5A, + 0xC9, + 0x0A, + 0x01, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploader2 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x12, + 0x06, + 0x8E, + 0x34, + 0x0C, + 0x63, + 0x44, + 0x80, + 0x7F, + 0x19, + 0x8A, + 0x1B, + 0x8B, + 0xD4, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploader3 + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x94, + 0x5E, + 0xB9, + 0xF0, + 0x5B, + 0x3A, + 0x4B, + 0x8C, + 0x47, + 0x2C, + 0x61, + 0x99, + 0xA8, + 0x54, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploaderFactory + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x03, + 0x62, + 0x73, + 0xE7, + 0x10, + 0xA0, + 0x48, + 0xAC, + 0x3C, + 0x1A, + 0xC7, + 0x10, + 0x95, + 0xEC, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploaderStaticMethods + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0x5C, + 0x87, + 0xF2, + 0x05, + 0x9B, + 0x41, + 0x47, + 0x91, + 0x21, + 0x74, + 0x0A, + 0x83, + 0xE2, + 0x47, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploaderStaticMethods2 + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0xAC, + 0x19, + 0xE9, + 0x08, + 0xEA, + 0xF0, + 0x42, + 0xA2, + 0xAC, + 0x07, + 0xE4, + 0x67, + 0x54, + 0x90, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackgroundUploaderUserConsent + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x84, + 0xB3, + 0x3B, + 0x60, + 0x07, + 0x1D, + 0x46, + 0x90, + 0x7F, + 0x51, + 0x38, + 0xF8, + 0x4D, + 0x44, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentPrefetcher + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xF7, + 0xD6, + 0xA8, + 0xC1, + 0x7D, + 0xD9, + 0x4C, + 0x88, + 0x10, + 0x2A, + 0x6A, + 0xA9, + 0x41, + 0x7E, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentPrefetcherTime + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0xFD, + 0x61, + 0xE3, + 0x2A, + 0x13, + 0xDE, + 0x4F, + 0xA7, + 0xCC, + 0xFC, + 0xB0, + 0xE6, + 0x65, + 0x23, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadOperation + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0xEB, + 0x87, + 0xBD, + 0x14, + 0x57, + 0x09, + 0x4E, + 0xBA, + 0x68, + 0xBE, + 0xF7, + 0x39, + 0x03, + 0xB0, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadOperation2 + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0xED, + 0xCC, + 0xA3, + 0x9C, + 0x8F, + 0x53, + 0x43, + 0x9C, + 0xD4, + 0x29, + 0x0D, + 0xEE, + 0x38, + 0x7C, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadOperation3 + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x35, + 0x27, + 0x50, + 0x5E, + 0x7D, + 0xDC, + 0x4A, + 0xB8, + 0xD3, + 0xDF, + 0x5C, + 0x60, + 0x31, + 0xB9, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadOperation4 + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0xAE, + 0xDA, + 0x0C, + 0xEF, + 0x8C, + 0x4A, + 0x40, + 0x96, + 0x6D, + 0xF0, + 0x58, + 0x40, + 0x0B, + 0xED, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadOperation5 + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0xA8, + 0x99, + 0xA6, + 0x90, + 0x55, + 0x3A, + 0x46, + 0xB8, + 0xD6, + 0x1E, + 0x49, + 0x1A, + 0x27, + 0x60, + 0xA5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IResponseInformation + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x9A, + 0xBB, + 0xF8, + 0x13, + 0xF7, + 0x92, + 0x47, + 0x8B, + 0x68, + 0xD9, + 0xD2, + 0x97, + 0xF9, + 0x1D, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUnconstrainedTransferRequestResult + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0xB8, + 0x24, + 0x4C, + 0x44, + 0xD9, + 0x12, + 0x41, + 0xA9, + 0x8E, + 0x6A, + 0x69, + 0x52, + 0x2B, + 0x7E, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUploadOperation + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x24, + 0x56, + 0x3E, + 0x89, + 0x73, + 0x4C, + 0x43, + 0x8B, + 0x35, + 0x42, + 0x7F, + 0xD3, + 0x6B, + 0xBD, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUploadOperation2 + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x89, + 0x61, + 0x55, + 0x74, + 0x27, + 0xF6, + 0x4D, + 0x9F, + 0xA5, + 0x20, + 0x9F, + 0x2B, + 0xFB, + 0x12, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUploadOperation3 + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x2C, + 0xC9, + 0x42, + 0x39, + 0xDE, + 0x46, + 0x45, + 0xBC, + 0x62, + 0x37, + 0x74, + 0xB4, + 0x29, + 0x4D, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUploadOperation4 + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0xEF, + 0xED, + 0x50, + 0xC5, + 0xFA, + 0xEE, + 0x41, + 0xB0, + 0x30, + 0xDC, + 0x77, + 0xCA, + 0xEE, + 0x9F, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.networking.connectivity/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.networking.connectivity/IID.Manual.cs new file mode 100644 index 0000000000..1d78e7c9e2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.networking.connectivity/IID.Manual.cs @@ -0,0 +1,1066 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.networking.connectivity.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_INetworkStatusChangedEventHandler + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0x14, + 0xBA, + 0x71, + 0x8E, + 0x59, + 0xD0, + 0x49, + 0x84, + 0xEB, + 0x8F, + 0xEB, + 0xAE, + 0xDC, + 0xC1, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAttributedNetworkUsage + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0xB0, + 0x69, + 0xF7, + 0xA2, + 0xEC, + 0xEB, + 0x45, + 0xAD, + 0xE1, + 0xB0, + 0x36, + 0x8B, + 0x75, + 0x6C, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICellularApnContext + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x29, + 0xA5, + 0x6F, + 0xFD, + 0xEF, + 0x42, + 0x45, + 0x9A, + 0xB2, + 0x70, + 0x5B, + 0xBF, + 0x94, + 0x94, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICellularApnContext2 + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0xEB, + 0xB0, + 0x76, + 0x49, + 0xAC, + 0x50, + 0x43, + 0xB1, + 0xE5, + 0xDC, + 0x47, + 0x63, + 0xBC, + 0x69, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionCost + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xD8, + 0xD7, + 0xBA, + 0x16, + 0x34, + 0x10, + 0x4B, + 0xA2, + 0x02, + 0xBA, + 0xC0, + 0xB0, + 0x75, + 0xBD, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionCost2 + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x3A, + 0x11, + 0x8E, + 0x09, + 0xE2, + 0x49, + 0x45, + 0xBB, + 0x25, + 0x5E, + 0x0D, + 0xB6, + 0x91, + 0xCB, + 0x05, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfile + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x14, + 0xBA, + 0x71, + 0x8E, + 0x59, + 0xD0, + 0x49, + 0x84, + 0xEB, + 0x8F, + 0xEB, + 0xAE, + 0xDC, + 0xC1, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfile2 + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x51, + 0x04, + 0xE2, + 0x9F, + 0x4C, + 0x0C, + 0x40, + 0x91, + 0x50, + 0x7E, + 0xC7, + 0xD6, + 0xE2, + 0x88, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfile3 + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x25, + 0x8C, + 0x57, + 0xD9, + 0x4C, + 0x61, + 0x41, + 0x80, + 0x45, + 0x20, + 0x1C, + 0xFD, + 0x5B, + 0x11, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfile4 + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0x42, + 0x2D, + 0x7A, + 0xE0, + 0x81, + 0xE6, + 0x4A, + 0xAB, + 0xED, + 0xAB, + 0x9C, + 0xA1, + 0x3E, + 0xB7, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfile5 + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x1E, + 0x36, + 0x85, + 0x73, + 0x9C, + 0xE0, + 0x4B, + 0x8F, + 0x14, + 0x57, + 0x8E, + 0xEC, + 0x71, + 0xEE, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfile6 + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0xDF, + 0x27, + 0xDC, + 0x6F, + 0x7A, + 0x0E, + 0x5D, + 0x95, + 0x89, + 0x2F, + 0xE2, + 0xE5, + 0xB6, + 0xF9, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfileFilter + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x7C, + 0x4C, + 0x20, + 0x2D, + 0xBD, + 0x8D, + 0x4E, + 0xA4, + 0xB3, + 0x45, + 0x5E, + 0xC3, + 0x37, + 0x38, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfileFilter2 + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x8E, + 0x06, + 0xCD, + 0xFC, + 0xC3, + 0xAD, + 0x4F, + 0x9D, + 0xDC, + 0x59, + 0x3F, + 0xAA, + 0x4B, + 0x78, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionProfileFilter3 + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x09, + 0xAA, + 0x0A, + 0x14, + 0x50, + 0x7C, + 0x44, + 0x88, + 0x09, + 0xAE, + 0xE4, + 0xCB, + 0x0A, + 0xF9, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectionSession + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x5D, + 0x90, + 0xFF, + 0x3B, + 0xF8, + 0xB0, + 0x41, + 0x8A, + 0x0C, + 0x14, + 0x62, + 0xD9, + 0xC5, + 0x6B, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectivityInterval + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0x3F, + 0xAA, + 0x4F, + 0x46, + 0x67, + 0x24, + 0x48, + 0xA9, + 0x64, + 0xEE, + 0xD8, + 0xE8, + 0x7F, + 0x87, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IConnectivityManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xD4, + 0x20, + 0x51, + 0xB1, + 0x4F, + 0xB0, + 0x48, + 0xAF, + 0xC9, + 0x42, + 0xE0, + 0x09, + 0x2A, + 0x81, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPlanStatus + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x8B, + 0x7A, + 0x97, + 0x85, + 0x38, + 0xF3, + 0x40, + 0x88, + 0x51, + 0x42, + 0xCD, + 0x2B, + 0xD5, + 0x68, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataPlanUsage + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x49, + 0x21, + 0xB9, + 0x44, + 0x3B, + 0xFF, + 0x47, + 0xB3, + 0x61, + 0xBE, + 0x59, + 0xE6, + 0x9E, + 0xD1, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataUsage + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x1D, + 0x43, + 0xC1, + 0x46, + 0xB1, + 0x39, + 0x4D, + 0xB9, + 0x59, + 0x0C, + 0x69, + 0xB0, + 0x96, + 0xC5, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIPInformation + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x45, + 0x51, + 0xD8, + 0x8F, + 0x13, + 0xD7, + 0x47, + 0x9B, + 0x3A, + 0x36, + 0xBB, + 0x48, + 0x8C, + 0xEF, + 0x33, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanIdentifier + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x53, + 0xAA, + 0x48, + 0x08, + 0x11, + 0x46, + 0x45, + 0xA6, + 0xCB, + 0x9A, + 0x74, + 0xDA, + 0x4B, + 0x7B, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILanIdentifierData + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x83, + 0x4E, + 0xA7, + 0x39, + 0xD6, + 0xBE, + 0x45, + 0xA3, + 0x6A, + 0xC4, + 0xE4, + 0xAE, + 0xAF, + 0x6D, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkAdapter + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x2E, + 0x54, + 0x3B, + 0x88, + 0x53, + 0x6C, + 0x49, + 0xA8, + 0xA3, + 0xAF, + 0xFD, + 0x39, + 0xAE, + 0xC2, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xF8, + 0x74, + 0x50, + 0x0D, + 0x95, + 0x65, + 0x41, + 0x9C, + 0x15, + 0x36, + 0x56, + 0x19, + 0x48, + 0x1E, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkInformationStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0xED, + 0x9C, + 0x45, + 0x32, + 0x28, + 0xB6, + 0x49, + 0xBA, + 0x6E, + 0xE2, + 0x65, + 0xF0, + 0x47, + 0x86, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkItem + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x4D, + 0xBC, + 0x01, + 0xE0, + 0xF5, + 0x67, + 0x45, + 0xA2, + 0x8C, + 0x42, + 0x08, + 0x0C, + 0x83, + 0x1B, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkSecuritySettings + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x7E, + 0xA0, + 0x7C, + 0x7B, + 0x91, + 0x5F, + 0x4B, + 0xB8, + 0x4D, + 0x28, + 0xF7, + 0xA5, + 0xAC, + 0x54, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkStateChangeEventDetails + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0xF3, + 0x0C, + 0x1F, + 0xA6, + 0xD7, + 0xDD, + 0x44, + 0xA4, + 0xE9, + 0x68, + 0x7C, + 0x47, + 0x6B, + 0x90, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkStateChangeEventDetails2 + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0xC0, + 0x43, + 0xD6, + 0xD3, + 0x30, + 0x6A, + 0x4F, + 0xAD, + 0x47, + 0x6A, + 0x18, + 0x73, + 0xCE, + 0xB3, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INetworkUsage + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x8F, + 0xDA, + 0x49, + 0x85, + 0x99, + 0x27, + 0x49, + 0xBF, + 0x5B, + 0x07, + 0x2B, + 0x5C, + 0x65, + 0xF8, + 0xD9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProviderNetworkUsage + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x9E, + 0xC6, + 0x5E, + 0x31, + 0x79, + 0xC8, + 0x48, + 0xB8, + 0xF3, + 0x46, + 0x30, + 0x0F, + 0xA4, + 0x27, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProxyConfiguration + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x60, + 0x3A, + 0xEF, + 0x04, + 0x90, + 0xD6, + 0x4D, + 0xB7, + 0xD8, + 0xB3, + 0xE5, + 0x02, + 0xF4, + 0xAA, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRoutePolicy + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0xC4, + 0xAB, + 0x11, + 0xC7, + 0x0F, + 0xE4, + 0x42, + 0x87, + 0x42, + 0x56, + 0x99, + 0x23, + 0xB1, + 0xCA, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRoutePolicyFactory + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x79, + 0x02, + 0x36, + 0x8E, + 0xA1, + 0xB5, + 0x4D, + 0xA6, + 0x97, + 0xF5, + 0x8F, + 0xA7, + 0x36, + 0x4E, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWlanConnectionProfileDetails + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x98, + 0x20, + 0x56, + 0x5A, + 0xB3, + 0xF1, + 0x4B, + 0xA8, + 0x84, + 0xB7, + 0x55, + 0x7E, + 0x88, + 0xFF, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWwanConnectionProfileDetails + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0xA8, + 0x4D, + 0x0E, + 0x5F, + 0x83, + 0xF3, + 0x4D, + 0x82, + 0xFD, + 0xDF, + 0x55, + 0x6E, + 0xBC, + 0x09, + 0xEF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWwanConnectionProfileDetails2 + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0x4E, + 0x75, + 0x7A, + 0xED, + 0xA1, + 0xB2, + 0x48, + 0x8E, + 0x92, + 0xB4, + 0x60, + 0x03, + 0x3D, + 0x52, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.networking.sockets/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.networking.sockets/IID.Manual.cs new file mode 100644 index 0000000000..0a9c8a5ece --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.networking.sockets/IID.Manual.cs @@ -0,0 +1,1660 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.networking.sockets.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IControlChannelTrigger + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x31, + 0x14, + 0x7D, + 0x96, + 0xEE, + 0xE8, + 0x40, + 0xA1, + 0x99, + 0x87, + 0x03, + 0xCD, + 0x96, + 0x9E, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IControlChannelTrigger2 + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0xD2, + 0x00, + 0xAF, + 0xBE, + 0x51, + 0x14, + 0x45, + 0x97, + 0x25, + 0x35, + 0x56, + 0xE1, + 0x87, + 0x95, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IControlChannelTriggerEventDetails + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xE0, + 0x36, + 0x1B, + 0xBB, + 0x89, + 0x36, + 0x42, + 0x96, + 0xAC, + 0x71, + 0xD0, + 0x12, + 0xBB, + 0x48, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IControlChannelTriggerFactory + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x7C, + 0x4B, + 0xDA, + 0x71, + 0x8D, + 0x6F, + 0x44, + 0x88, + 0xC3, + 0xB9, + 0x51, + 0x84, + 0xA2, + 0xD6, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IControlChannelTriggerResetEventDetails + { + get + { + ReadOnlySpan data = + [ + 0x8E, + 0x03, + 0x51, + 0x68, + 0xC4, + 0x8E, + 0xFE, + 0x42, + 0x9B, + 0xB2, + 0x21, + 0xE9, + 0x1B, + 0x7B, + 0xFC, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocket + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x5B, + 0xE2, + 0x7F, + 0xBC, + 0xC3, + 0x77, + 0x46, + 0x84, + 0x46, + 0xCA, + 0x28, + 0xA4, + 0x65, + 0xA3, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocket2 + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xA3, + 0x3B, + 0xD8, + 0x9D, + 0x9A, + 0x85, + 0x41, + 0xA2, + 0x0A, + 0x14, + 0x24, + 0xC9, + 0xC2, + 0xA7, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocket3 + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x4F, + 0x54, + 0x37, + 0x92, + 0xAB, + 0x06, + 0x43, + 0x9A, + 0xC1, + 0x0C, + 0x38, + 0x12, + 0x83, + 0xD9, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocketControl + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0x3F, + 0xAC, + 0x52, + 0x9A, + 0x34, + 0x35, + 0x41, + 0xBB, + 0x58, + 0xB7, + 0x9B, + 0x26, + 0x47, + 0xD3, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocketControl2 + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0xD5, + 0xEA, + 0x33, + 0x9C, + 0x97, + 0x15, + 0x44, + 0x82, + 0xA1, + 0x3C, + 0xFA, + 0xF6, + 0x46, + 0xC1, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocketControl3 + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x82, + 0xEB, + 0xD4, + 0x6D, + 0x1F, + 0x98, + 0x45, + 0x9B, + 0x57, + 0xD4, + 0x2A, + 0x00, + 0x1D, + 0xF3, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocketInformation + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x56, + 0x1A, + 0x5F, + 0xFB, + 0x55, + 0xCD, + 0x48, + 0x97, + 0x06, + 0x7A, + 0x97, + 0x4F, + 0x7B, + 0x15, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocketMessageReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0xDC, + 0x2D, + 0x9E, + 0x12, + 0x17, + 0xE4, + 0x4C, + 0xB1, + 0x79, + 0x8C, + 0x65, + 0x2C, + 0x6D, + 0x10, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDatagramSocketStatics + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x2A, + 0xC6, + 0xE9, + 0x94, + 0x14, + 0x21, + 0x4A, + 0xBB, + 0x7E, + 0x85, + 0x89, + 0xFC, + 0x75, + 0x1D, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocket + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x7D, + 0x72, + 0x33, + 0xD5, + 0x34, + 0x46, + 0x47, + 0xAD, + 0x7B, + 0x8D, + 0xDE, + 0x5B, + 0xC2, + 0xEF, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocket2 + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xCE, + 0xD0, + 0xBE, + 0xC8, + 0xF9, + 0x0A, + 0x44, + 0x9A, + 0xD5, + 0x73, + 0x72, + 0x81, + 0xD9, + 0x74, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocket3 + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0xDE, + 0xD9, + 0x59, + 0xAF, + 0x71, + 0x49, + 0x43, + 0x84, + 0x87, + 0x91, + 0x1F, + 0xCF, + 0x68, + 0x15, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocketControl + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x38, + 0x18, + 0x81, + 0x29, + 0xC6, + 0x0A, + 0x4F, + 0x80, + 0xFB, + 0x81, + 0xFC, + 0x05, + 0x53, + 0x88, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocketControl2 + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xD7, + 0x0F, + 0xE3, + 0x0C, + 0x08, + 0x0A, + 0x40, + 0xA7, + 0x12, + 0x27, + 0xDF, + 0xA9, + 0xE7, + 0x44, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocketMessageReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x22, + 0x8C, + 0x47, + 0x4B, + 0x4C, + 0xED, + 0x42, + 0x9E, + 0xD7, + 0x1E, + 0xF9, + 0xF9, + 0x4F, + 0xA3, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageWebSocketMessageReceivedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x06, + 0xCE, + 0x89, + 0x6F, + 0xDD, + 0x07, + 0x4A, + 0x87, + 0xF9, + 0xF9, + 0xEB, + 0x4D, + 0x89, + 0xD8, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServerMessageWebSocket + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x92, + 0xAC, + 0xE3, + 0x3B, + 0x81, + 0xFD, + 0x5E, + 0x7E, + 0x11, + 0xAE, + 0x23, + 0x05, + 0xFC, + 0x77, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServerMessageWebSocketControl + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xF0, + 0xC2, + 0x69, + 0x1F, + 0x1C, + 0x7A, + 0x58, + 0x45, + 0x19, + 0x21, + 0x81, + 0x61, + 0x01, + 0x92, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServerMessageWebSocketInformation + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xB4, + 0x32, + 0xFC, + 0x48, + 0x44, + 0x05, + 0x55, + 0x6C, + 0xC9, + 0x09, + 0xAF, + 0xA8, + 0x91, + 0x5F, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServerStreamWebSocket + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x5B, + 0xED, + 0x2C, + 0xF6, + 0x74, + 0xE4, + 0x55, + 0x79, + 0xDF, + 0x91, + 0x32, + 0x68, + 0x0D, + 0xFE, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IServerStreamWebSocketInformation + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xB4, + 0x32, + 0xFC, + 0x48, + 0x44, + 0x05, + 0x55, + 0x6C, + 0xC9, + 0x09, + 0xAB, + 0xA8, + 0x91, + 0x5F, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketActivityContext + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x4D, + 0xB0, + 0x43, + 0x85, + 0x4C, + 0x96, + 0x43, + 0xA6, + 0x37, + 0x1D, + 0x97, + 0x3F, + 0x6E, + 0xBD, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketActivityContextFactory + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0xC3, + 0x9F, + 0xB9, + 0x8C, + 0x08, + 0x88, + 0x43, + 0x83, + 0xAE, + 0x25, + 0x25, + 0x13, + 0x8E, + 0x04, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketActivityInformation + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x42, + 0x8A, + 0x8D, + 0x7E, + 0xA8, + 0x74, + 0x4B, + 0x99, + 0x68, + 0x18, + 0x5B, + 0x25, + 0x11, + 0xDE, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketActivityInformationStatics + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0xB4, + 0x70, + 0x85, + 0x7D, + 0x7E, + 0x36, + 0x47, + 0x80, + 0x41, + 0x13, + 0x27, + 0xA6, + 0x54, + 0x3C, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketActivityTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x06, + 0xF4, + 0x45, + 0x9F, + 0xFC, + 0x81, + 0x4F, + 0xAC, + 0xAD, + 0x35, + 0x5F, + 0xEF, + 0x51, + 0xE6, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISocketErrorStatics + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x37, + 0x83, + 0x82, + 0x56, + 0x7D, + 0x8E, + 0x4D, + 0xB7, + 0xB4, + 0xA0, + 0x7D, + 0xD7, + 0xC1, + 0xBC, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocket + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x2C, + 0xA2, + 0x69, + 0x7B, + 0xFC, + 0x57, + 0x48, + 0xAF, + 0x38, + 0xF6, + 0xE7, + 0xDE, + 0x6A, + 0x5B, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocket2 + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0xE5, + 0xD0, + 0x29, + 0x14, + 0xF3, + 0x09, + 0x4D, + 0xAD, + 0xF0, + 0x0F, + 0xBD, + 0x96, + 0x7F, + 0xBD, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocket3 + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x0B, + 0x43, + 0x3F, + 0x28, + 0x9D, + 0x54, + 0x48, + 0xBA, + 0xC3, + 0x23, + 0x01, + 0x94, + 0x1E, + 0xC2, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketControl + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xAD, + 0x25, + 0xFE, + 0xAB, + 0x92, + 0xF3, + 0x4A, + 0x99, + 0x92, + 0x0F, + 0x4C, + 0x85, + 0xE3, + 0x6C, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketControl2 + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x9A, + 0xD0, + 0xC2, + 0x0F, + 0x06, + 0xC1, + 0x44, + 0xB8, + 0xE2, + 0x1F, + 0xBF, + 0x60, + 0xBD, + 0x62, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketControl3 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x44, + 0x6A, + 0xC5, + 0x74, + 0x4E, + 0x3E, + 0x40, + 0x89, + 0x4C, + 0xB3, + 0x1C, + 0xAE, + 0x5C, + 0x73, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketControl4 + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x2B, + 0x4E, + 0x96, + 0x27, + 0xEC, + 0x88, + 0x48, + 0xB3, + 0xCE, + 0xC7, + 0x4B, + 0x41, + 0x84, + 0x23, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketInformation + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0xAE, + 0x80, + 0x3B, + 0x68, + 0x5E, + 0x05, + 0x42, + 0x88, + 0xF0, + 0xDC, + 0x85, + 0xD2, + 0xE2, + 0x5D, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketInformation2 + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0x84, + 0xC2, + 0x12, + 0xDC, + 0x4B, + 0xE4, + 0x4E, + 0x97, + 0x6A, + 0xCF, + 0x13, + 0x0E, + 0x9D, + 0x92, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListener + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x34, + 0x51, + 0xFF, + 0x9F, + 0xDF, + 0xF0, + 0x4D, + 0xBF, + 0x82, + 0x0E, + 0xC5, + 0xD7, + 0xB3, + 0x5A, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListener2 + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0xC1, + 0x8D, + 0x65, + 0x3E, + 0xBB, + 0x58, + 0x44, + 0xB2, + 0x32, + 0xED, + 0x10, + 0x88, + 0x69, + 0x4B, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListener3 + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x20, + 0x98, + 0x47, + 0xF8, + 0xBD, + 0x19, + 0x49, + 0x85, + 0x42, + 0x28, + 0xD4, + 0x50, + 0xE7, + 0x45, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListenerConnectionReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x2E, + 0x47, + 0x0C, + 0x3F, + 0x37, + 0x7B, + 0x44, + 0x85, + 0xB1, + 0xDD, + 0xD4, + 0x54, + 0x88, + 0x03, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListenerControl + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0xC5, + 0xD8, + 0x20, + 0x8A, + 0x8D, + 0xBA, + 0x4D, + 0x97, + 0x22, + 0xA1, + 0x6C, + 0x4D, + 0x98, + 0x49, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListenerControl2 + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0xB6, + 0x8B, + 0x94, + 0x3E, + 0x2C, + 0x4B, + 0x40, + 0xB8, + 0xB0, + 0x8E, + 0xB2, + 0x49, + 0xA2, + 0xB0, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketListenerInformation + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xA8, + 0x2B, + 0xE6, + 0x3A, + 0xA6, + 0x0B, + 0x43, + 0xBF, + 0x62, + 0x29, + 0xE9, + 0x3E, + 0x56, + 0x33, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamSocketStatics + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0xBC, + 0x20, + 0xA4, + 0x2E, + 0x6E, + 0xF5, + 0x4A, + 0xB5, + 0x56, + 0x35, + 0x5A, + 0xE0, + 0xCD, + 0x4F, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamWebSocket + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x49, + 0x4A, + 0xBD, + 0x89, + 0xB2, + 0xBB, + 0x45, + 0x97, + 0xEB, + 0xC7, + 0x52, + 0x52, + 0x05, + 0xA8, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamWebSocket2 + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x08, + 0x4D, + 0xAA, + 0xF5, + 0x93, + 0x78, + 0x46, + 0x82, + 0x36, + 0x57, + 0xCC, + 0xE5, + 0x41, + 0x7E, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamWebSocketControl + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x78, + 0xF4, + 0xB4, + 0x5A, + 0xA4, + 0xDB, + 0x48, + 0x95, + 0x3A, + 0x64, + 0x5B, + 0x7D, + 0x96, + 0x4C, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamWebSocketControl2 + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x9F, + 0x5D, + 0x21, + 0x58, + 0xFA, + 0xDA, + 0x40, + 0x9F, + 0x11, + 0xA4, + 0x8D, + 0xAF, + 0xE9, + 0x50, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocket + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x39, + 0x77, + 0xF8, + 0xB1, + 0x99, + 0x18, + 0x4E, + 0xBC, + 0x08, + 0x85, + 0x0C, + 0x9A, + 0xDF, + 0x15, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketClosedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x8D, + 0xB7, + 0xCE, + 0xA8, + 0xD0, + 0x03, + 0x47, + 0xA0, + 0x91, + 0xC8, + 0xC2, + 0xC0, + 0x91, + 0x5B, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketControl + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0xBD, + 0xC4, + 0x2E, + 0xA5, + 0xD9, + 0x5A, + 0x45, + 0x98, + 0x11, + 0xDE, + 0x24, + 0xD4, + 0x53, + 0x37, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketControl2 + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0xBE, + 0xC3, + 0x79, + 0xCA, + 0xF2, + 0x1E, + 0x46, + 0xAF, + 0x4E, + 0x96, + 0x65, + 0xBC, + 0x2D, + 0x06, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketErrorStatics + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0xF3, + 0xCD, + 0x27, + 0x61, + 0x1F, + 0x09, + 0x47, + 0x8E, + 0x02, + 0x61, + 0x28, + 0x3A, + 0xDA, + 0x4E, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketInformation + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xE3, + 0x01, + 0x5E, + 0x2A, + 0xC9, + 0xA5, + 0x47, + 0xB2, + 0x5F, + 0x07, + 0x84, + 0x76, + 0x39, + 0xD1, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketInformation2 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x39, + 0x1D, + 0xCE, + 0xB7, + 0xA1, + 0x43, + 0x4D, + 0x82, + 0x69, + 0x8D, + 0x5B, + 0x98, + 0x1B, + 0xD4, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebSocketServerCustomValidationRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xFE, + 0xEF, + 0xFF, + 0x2A, + 0x02, + 0xB7, + 0x4A, + 0x8B, + 0x36, + 0xE1, + 0x0A, + 0xF4, + 0x64, + 0x0E, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.networking/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.networking/IID.Manual.cs new file mode 100644 index 0000000000..9a9d45d6ea --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.networking/IID.Manual.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.networking.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IEndpointPair + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0xAA, + 0xA0, + 0x33, + 0xFA, + 0xF8, + 0x30, + 0x4B, + 0xB8, + 0x56, + 0x76, + 0x51, + 0x7C, + 0x3B, + 0xD0, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEndpointPairFactory + { + get + { + ReadOnlySpan data = + [ + 0x71, + 0xD9, + 0x09, + 0xB6, + 0xE0, + 0x64, + 0x2B, + 0x44, + 0xAA, + 0x6F, + 0xCC, + 0x8C, + 0x8F, + 0x18, + 0x1F, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHostName + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0xCA, + 0x8E, + 0xBF, + 0x96, + 0xED, + 0xA7, + 0x49, + 0x90, + 0x84, + 0xD4, + 0x16, + 0xCA, + 0xE8, + 0x8D, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHostNameFactory + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x23, + 0x8C, + 0x45, + 0x2F, + 0x71, + 0x76, + 0x45, + 0xAD, + 0xF1, + 0xC2, + 0x0B, + 0x2C, + 0x64, + 0x35, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHostNameStatics + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0xD4, + 0x8C, + 0xF6, + 0x88, + 0xA3, + 0x8B, + 0x4E, + 0x91, + 0xEA, + 0x54, + 0xDD, + 0x6D, + 0xD9, + 0x01, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.perception.spatial/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.perception.spatial/IID.Manual.cs new file mode 100644 index 0000000000..34a096b8cd --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.perception.spatial/IID.Manual.cs @@ -0,0 +1,823 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.perception.spatial.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ISpatialAnchor + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xE5, + 0x29, + 0x05, + 0x34, + 0x1D, + 0x02, + 0x37, + 0xBC, + 0xEC, + 0xEA, + 0xBF, + 0xF5, + 0x78, + 0xA8, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchor2 + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0xC9, + 0x17, + 0xED, + 0x95, + 0xA6, + 0xF6, + 0x4C, + 0x92, + 0xFD, + 0x97, + 0x26, + 0x3B, + 0xA7, + 0x10, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorExportSufficiency + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x5B, + 0xC2, + 0x77, + 0x09, + 0x34, + 0x88, + 0x40, + 0xB9, + 0x1B, + 0xFD, + 0xFD, + 0x05, + 0xD1, + 0x64, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorExporter + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0x43, + 0x2A, + 0x9A, + 0xFB, + 0x24, + 0x69, + 0x42, + 0x89, + 0xC5, + 0x88, + 0x30, + 0x4A, + 0xEE, + 0xF2, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorExporterStatics + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x07, + 0x25, + 0xED, + 0x75, + 0x24, + 0x9C, + 0x43, + 0x85, + 0xFF, + 0x7F, + 0xED, + 0x34, + 0x1F, + 0xDC, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0x0E, + 0xE3, + 0x88, + 0xB7, + 0xF3, + 0x0B, + 0x42, + 0xB0, + 0x86, + 0x8A, + 0x80, + 0xC0, + 0x7D, + 0x91, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorRawCoordinateSystemAdjustedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x1E, + 0xE8, + 0xA1, + 0xC7, + 0x56, + 0x17, + 0x31, + 0xA2, + 0xE4, + 0x81, + 0xE0, + 0xFC, + 0xF2, + 0x8E, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorStatics + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x86, + 0x92, + 0xA9, + 0x74, + 0x01, + 0x1C, + 0x31, + 0xAE, + 0x79, + 0x0E, + 0x51, + 0x07, + 0x66, + 0x9F, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorStore + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0x36, + 0xBC, + 0xB0, + 0x6A, + 0x48, + 0xB0, + 0x3C, + 0x9E, + 0x6F, + 0x12, + 0x45, + 0x16, + 0x5C, + 0x4D, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialAnchorTransferManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xF9, + 0xBB, + 0x03, + 0xD8, + 0x12, + 0xCE, + 0x4B, + 0x88, + 0x35, + 0xC5, + 0xDF, + 0x3A, + 0xC0, + 0xAD, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialBoundingVolume + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x65, + 0x20, + 0xFB, + 0xC3, + 0x68, + 0xDF, + 0x33, + 0xB7, + 0xAF, + 0x4C, + 0x78, + 0x72, + 0x07, + 0x99, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialBoundingVolumeStatics + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x91, + 0x88, + 0x05, + 0xE1, + 0xB3, + 0xD8, + 0x36, + 0xB0, + 0x17, + 0x56, + 0x61, + 0x81, + 0xA5, + 0xB1, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialCoordinateSystem + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xCA, + 0xEB, + 0x69, + 0xA3, + 0x60, + 0x86, + 0x35, + 0xA6, + 0x53, + 0x59, + 0xA7, + 0xBD, + 0x67, + 0x6D, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntity + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0xE9, + 0x6D, + 0x16, + 0xEB, + 0xE1, + 0x4C, + 0x45, + 0xBA, + 0x08, + 0xE6, + 0xC0, + 0x66, + 0x8D, + 0xDC, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityAddedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xF4, + 0x97, + 0xA3, + 0x6A, + 0x15, + 0x07, + 0x47, + 0xAC, + 0x2C, + 0xD3, + 0x1D, + 0x57, + 0x0E, + 0xD3, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityFactory + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0xE3, + 0xF1, + 0xE1, + 0x9F, + 0x34, + 0x25, + 0x42, + 0xA2, + 0xF3, + 0x4B, + 0x01, + 0xC1, + 0x5F, + 0xE0, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x18, + 0x74, + 0x91, + 0x6D, + 0x53, + 0x9F, + 0x4E, + 0xAB, + 0xF6, + 0x41, + 0x5B, + 0x54, + 0x44, + 0xD6, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityStore + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x88, + 0x97, + 0x32, + 0x13, + 0xE5, + 0x06, + 0x4F, + 0x88, + 0x9D, + 0x1B, + 0xE3, + 0x0E, + 0xCF, + 0x43, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityStoreStatics + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x38, + 0x4B, + 0x6B, + 0x50, + 0x7C, + 0x92, + 0x4E, + 0x8A, + 0x62, + 0x4D, + 0x1D, + 0x4B, + 0x7C, + 0xCD, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityUpdatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x17, + 0x67, + 0xE5, + 0x7B, + 0x62, + 0xCB, + 0x43, + 0xA4, + 0x9F, + 0xB3, + 0xBE, + 0x6D, + 0x47, + 0xDE, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialEntityWatcher + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0x5F, + 0xB8, + 0xB3, + 0x5E, + 0x6D, + 0xBC, + 0x4B, + 0x80, + 0x5D, + 0x5F, + 0xE5, + 0xB9, + 0xBA, + 0x19, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialLocation + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0xD2, + 0x81, + 0x1D, + 0xA1, + 0x24, + 0xD5, + 0x37, + 0x8F, + 0xA1, + 0x39, + 0xB4, + 0xF9, + 0xAD, + 0x67, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialLocation2 + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x24, + 0x7F, + 0x11, + 0xA7, + 0x38, + 0x18, + 0x4A, + 0xB4, + 0x04, + 0xAB, + 0x8F, + 0xAB, + 0xE1, + 0xD7, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialLocator + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x89, + 0x47, + 0xF6, + 0x0C, + 0x9E, + 0xB6, + 0x3B, + 0x99, + 0x7E, + 0xB6, + 0x4E, + 0xCC, + 0xA2, + 0x4C, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialLocatorAttachedFrameOfReference + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x4E, + 0x77, + 0xE1, + 0x4F, + 0x1F, + 0x9C, + 0x49, + 0x96, + 0x25, + 0xEF, + 0x5E, + 0x6E, + 0xD7, + 0xA0, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialLocatorPositionalTrackingDeactivatingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0x40, + 0xA8, + 0xB8, + 0xF4, + 0xE3, + 0x8B, + 0x36, + 0x90, + 0x61, + 0x9E, + 0xA9, + 0xD1, + 0xD6, + 0xCC, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialLocatorStatics + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x33, + 0x6E, + 0xB7, + 0xC2, + 0xA7, + 0x1B, + 0x36, + 0xBB, + 0x82, + 0x56, + 0xE9, + 0x3B, + 0x89, + 0xB1, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialStageFrameOfReference + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x34, + 0x8A, + 0x7A, + 0x0D, + 0xAD, + 0x90, + 0x45, + 0xAB, + 0x86, + 0x33, + 0x06, + 0x2B, + 0x67, + 0x49, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialStageFrameOfReferenceStatics + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x5C, + 0x8D, + 0xF7, + 0xA4, + 0xA0, + 0x9C, + 0x49, + 0x8D, + 0x91, + 0xA8, + 0xC9, + 0x65, + 0xD4, + 0x06, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpatialStationaryFrameOfReference + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xCC, + 0xDB, + 0x09, + 0xF8, + 0xBC, + 0x7F, + 0x3E, + 0xBE, + 0x7E, + 0x7E, + 0xDC, + 0xCB, + 0xB1, + 0x78, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.perception/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.perception/IID.Manual.cs new file mode 100644 index 0000000000..5eb0fd1599 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.perception/IID.Manual.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.perception.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPerceptionTimestamp + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x48, + 0xC2, + 0x87, + 0x2E, + 0xA2, + 0xDB, + 0x4A, + 0xBA, + 0x26, + 0xD7, + 0x8E, + 0xF6, + 0x39, + 0xBC, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPerceptionTimestamp2 + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0xB7, + 0x54, + 0xE3, + 0xD1, + 0x2B, + 0xB7, + 0x41, + 0x9E, + 0xD0, + 0x74, + 0xA1, + 0x5C, + 0x35, + 0x45, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPerceptionTimestampHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x11, + 0xA6, + 0x47, + 0xDF, + 0xA9, + 0xDC, + 0x4E, + 0x85, + 0x5D, + 0xF4, + 0xD3, + 0x39, + 0xD9, + 0x67, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPerceptionTimestampHelperStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0xA7, + 0xD1, + 0x73, + 0xB9, + 0x3F, + 0x71, + 0x45, + 0x87, + 0xD4, + 0x3C, + 0x92, + 0x0A, + 0x5E, + 0x86, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web.core/IID.Manual.cs new file mode 100644 index 0000000000..d6993f0a63 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web.core/IID.Manual.cs @@ -0,0 +1,179 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IWebAuthenticationAddAccountResponse + { + get + { + ReadOnlySpan data = + [ + 0x7f, + 0xb0, + 0x13, + 0xe8, + 0x0b, + 0xd8, + 0x54, + 0x2b, + 0xb4, + 0x86, + 0x83, + 0x23, + 0x16, + 0x3a, + 0x4b, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWebAuthenticationAddAccountResponseFactory + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x5f, + 0x90, + 0x3e, + 0x77, + 0xbe, + 0x53, + 0x65, + 0x81, + 0xd9, + 0x03, + 0x21, + 0xcd, + 0xd8, + 0x21, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWebAuthenticationAddAccountResult + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xfa, + 0xd0, + 0x3c, + 0x90, + 0x1d, + 0x5f, + 0xfa, + 0x92, + 0x59, + 0x70, + 0x1d, + 0x3c, + 0xa0, + 0x8e, + 0xf2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWebAuthenticationCoreManagerStatics5 + { + get + { + ReadOnlySpan data = + [ + 0xd0, + 0x7c, + 0x1d, + 0xed, + 0x27, + 0x0f, + 0x45, + 0x54, + 0x99, + 0x66, + 0x27, + 0xb7, + 0xdf, + 0x05, + 0xb9, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWebAuthenticationTransferTokenRequest + { + get + { + ReadOnlySpan data = + [ + 0x7a, + 0xcf, + 0xa5, + 0xb6, + 0x52, + 0x9d, + 0x5e, + 0x76, + 0x98, + 0x46, + 0xf3, + 0xfd, + 0x99, + 0x93, + 0x04, + 0xd0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid IID_IWebAuthenticationTransferTokenRequestFactory + { + get + { + ReadOnlySpan data = + [ + 0x5f, + 0x16, + 0xb6, + 0x27, + 0x04, + 0xc4, + 0x5f, + 0x0b, + 0x86, + 0x83, + 0x8b, + 0xab, + 0x58, + 0x96, + 0x56, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web.provider/IID.Manual.cs new file mode 100644 index 0000000000..f9a871213a --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web.provider/IID.Manual.cs @@ -0,0 +1,688 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.authentication.web.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IWebAccountClientView + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x66, + 0xBD, + 0xE7, + 0xC7, + 0x0B, + 0x66, + 0x4C, + 0xBF, + 0xD4, + 0x65, + 0xD3, + 0x08, + 0x2C, + 0xBC, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountClientViewFactory + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x16, + 0x6D, + 0x61, + 0x22, + 0xDE, + 0x55, + 0x48, + 0xA3, + 0x26, + 0x06, + 0xCE, + 0xBF, + 0x2A, + 0x3F, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0xE1, + 0xE8, + 0xB2, + 0x9A, + 0xD4, + 0x32, + 0x40, + 0x84, + 0xBF, + 0x1A, + 0x28, + 0x47, + 0x74, + 0x7B, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0xA8, + 0xA7, + 0x68, + 0x5F, + 0x2D, + 0x53, + 0x46, + 0x8B, + 0xB0, + 0xBD, + 0x2F, + 0xA6, + 0xBD, + 0x2D, + 0x87, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x23, + 0x45, + 0xDD, + 0x4F, + 0x8A, + 0xA2, + 0x4A, + 0xB1, + 0x5E, + 0x03, + 0xF5, + 0x50, + 0xAF, + 0x13, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountManagerStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0xC2, + 0xEB, + 0x59, + 0xDB, + 0xF7, + 0x2F, + 0x41, + 0xBC, + 0x3F, + 0xF2, + 0xFE, + 0xA0, + 0x44, + 0x30, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountMapManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x44, + 0xFA, + 0xE8, + 0x1B, + 0x3A, + 0xA4, + 0x48, + 0x8E, + 0x90, + 0x1E, + 0x59, + 0xCA, + 0x6F, + 0x54, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderAddAccountOperation + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0xDC, + 0xEB, + 0x73, + 0x78, + 0x43, + 0x79, + 0x4C, + 0x93, + 0x35, + 0xA5, + 0xD7, + 0xAB, + 0x81, + 0x59, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderBaseReportOperation + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0xAC, + 0xA4, + 0xBB, + 0x3B, + 0x99, + 0x57, + 0x4D, + 0xBB, + 0xE4, + 0x14, + 0x21, + 0xE3, + 0x66, + 0x8B, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderDeleteAccountOperation + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x48, + 0xBB, + 0x0A, + 0x01, + 0x9E, + 0xC9, + 0x49, + 0xA3, + 0x55, + 0x7D, + 0x48, + 0xCA, + 0xF7, + 0xD6, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderManageAccountOperation + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0xDC, + 0x20, + 0xED, + 0x1B, + 0xD2, + 0x3E, + 0x46, + 0xA9, + 0xB7, + 0xC1, + 0xFD, + 0x0E, + 0xDA, + 0xE9, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderOperation + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x24, + 0x5D, + 0x6D, + 0xB1, + 0x10, + 0x9A, + 0x41, + 0xA4, + 0x4E, + 0xF9, + 0xC5, + 0x16, + 0x15, + 0x74, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderRetrieveCookiesOperation + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x04, + 0x04, + 0x5A, + 0xA3, + 0x0F, + 0xB1, + 0x4A, + 0xA0, + 0x1C, + 0x20, + 0xB1, + 0x10, + 0x35, + 0x85, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderSignOutAccountOperation + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0xE2, + 0x90, + 0xB8, + 0x55, + 0x0C, + 0xBC, + 0x47, + 0x8C, + 0x72, + 0x04, + 0xA6, + 0xFC, + 0x7C, + 0xAC, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderSilentReportOperation + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x45, + 0xB5, + 0xE0, + 0x0F, + 0x3B, + 0xDA, + 0x44, + 0x92, + 0x4C, + 0x7B, + 0x18, + 0xBA, + 0xAA, + 0x62, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderTokenObjects + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x28, + 0x8F, + 0x40, + 0x28, + 0x13, + 0xDB, + 0x42, + 0x89, + 0xA4, + 0x0B, + 0xCE, + 0x7A, + 0x71, + 0x7D, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderTokenObjects2 + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xB8, + 0x20, + 0x10, + 0xA5, + 0x5C, + 0xFF, + 0x4F, + 0x95, + 0xFB, + 0xB8, + 0x20, + 0x27, + 0x3F, + 0xC3, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderTokenOperation + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x13, + 0xC6, + 0x95, + 0x34, + 0x20, + 0x38, + 0x4C, + 0x94, + 0x34, + 0xD2, + 0x6C, + 0x14, + 0xB2, + 0xB4, + 0xB2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderUIReportOperation + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x92, + 0xFF, + 0x28, + 0x80, + 0x8F, + 0xFB, + 0x42, + 0x94, + 0x4F, + 0xB2, + 0x10, + 0x7B, + 0xBD, + 0x42, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountScopeManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0xE3, + 0x6C, + 0x5C, + 0xB2, + 0x12, + 0x3A, + 0x42, + 0xBF, + 0x3D, + 0x85, + 0xB8, + 0xD7, + 0xE5, + 0x36, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebProviderTokenRequest + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x77, + 0x18, + 0x1E, + 0x05, + 0x88, + 0x4B, + 0x45, + 0x9F, + 0x11, + 0x46, + 0x8D, + 0x2A, + 0xF1, + 0x09, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebProviderTokenRequest2 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x2E, + 0xD7, + 0xB5, + 0xB1, + 0x10, + 0xA6, + 0x4A, + 0x88, + 0xB1, + 0x0B, + 0x6C, + 0x9E, + 0x0C, + 0x1E, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebProviderTokenRequest3 + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x16, + 0x27, + 0x1B, + 0x89, + 0x42, + 0x6E, + 0x44, + 0x92, + 0x56, + 0xDA, + 0xFB, + 0x6F, + 0x66, + 0xA5, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebProviderTokenResponse + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x37, + 0x21, + 0xEF, + 0x55, + 0xEF, + 0x86, + 0x41, + 0xB7, + 0xCE, + 0x8C, + 0xB2, + 0xE7, + 0xF9, + 0x84, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebProviderTokenResponseFactory + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xD9, + 0x49, + 0xFA, + 0xBA, + 0x25, + 0x77, + 0x40, + 0x9C, + 0xFA, + 0x9D, + 0xB4, + 0xDE, + 0xA7, + 0xB7, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web/IID.Manual.cs new file mode 100644 index 0000000000..8855650bd2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.authentication.web/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.authentication.web.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IWebAuthenticationBrokerStatics + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0x9F, + 0x14, + 0x2F, + 0x73, + 0xE6, + 0xB5, + 0x40, + 0xBC, + 0x22, + 0x20, + 0x1A, + 0x68, + 0x64, + 0xA3, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAuthenticationBrokerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xFB, + 0xCD, + 0x73, + 0xE7, + 0x14, + 0xDA, + 0x41, + 0xA9, + 0x71, + 0xAA, + 0xF4, + 0x41, + 0x0B, + 0x62, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAuthenticationResult + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0x2B, + 0x00, + 0x64, + 0xE9, + 0xED, + 0x0A, + 0x47, + 0xA5, + 0xCD, + 0x03, + 0x23, + 0xFA, + 0xF6, + 0xE2, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.credentials/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.credentials/IID.Manual.cs new file mode 100644 index 0000000000..223ed0ddce --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.credentials/IID.Manual.cs @@ -0,0 +1,445 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.credentials.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICredentialFactory + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x13, + 0xEF, + 0x54, + 0x26, + 0xBF, + 0xB5, + 0x47, + 0x97, + 0xDD, + 0xDE, + 0x77, + 0x9B, + 0x7C, + 0xAD, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyCredential + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0xEF, + 0x85, + 0x95, + 0x7B, + 0x45, + 0x47, + 0x48, + 0xB1, + 0x1A, + 0xFA, + 0x96, + 0x0B, + 0xBD, + 0xB1, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyCredentialAttestationResult + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xB3, + 0xAA, + 0x78, + 0xC1, + 0xA3, + 0x03, + 0x41, + 0xB6, + 0xCC, + 0x47, + 0x2C, + 0x44, + 0x17, + 0x1C, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyCredentialManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x46, + 0xAC, + 0x6A, + 0xF1, + 0x0E, + 0xE0, + 0x4C, + 0x82, + 0x90, + 0x41, + 0x06, + 0xDA, + 0x6A, + 0x63, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyCredentialOperationResult + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x86, + 0x37, + 0xF5, + 0x61, + 0x52, + 0xDD, + 0x4C, + 0x97, + 0x6D, + 0xCC, + 0x90, + 0x9A, + 0xC7, + 0x16, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyCredentialRetrievalResult + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x77, + 0xCD, + 0x58, + 0x87, + 0x8D, + 0x49, + 0x42, + 0x9B, + 0x58, + 0xF6, + 0x59, + 0x8C, + 0xC9, + 0x64, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPasswordCredential + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0x89, + 0xB1, + 0x6A, + 0x20, + 0xC7, + 0xA7, + 0x41, + 0xA6, + 0xC1, + 0xFE, + 0xAD, + 0xB3, + 0x63, + 0x29, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPasswordVault + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x2C, + 0xFD, + 0x61, + 0xD4, + 0xC8, + 0xC1, + 0x48, + 0xA5, + 0x4F, + 0xBC, + 0x5A, + 0x64, + 0x20, + 0x5A, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccount + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x3E, + 0x47, + 0x69, + 0x31, + 0x80, + 0xBE, + 0x49, + 0x80, + 0xBB, + 0x96, + 0xCB, + 0x46, + 0xD9, + 0x9A, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccount2 + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0xD6, + 0x56, + 0x7B, + 0x0B, + 0x99, + 0xB5, + 0x4E, + 0x94, + 0xA7, + 0x56, + 0x21, + 0xF3, + 0xA8, + 0xB8, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountFactory + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0xFB, + 0x9A, + 0xAC, + 0xE9, + 0x1D, + 0x92, + 0x4E, + 0xB7, + 0x8F, + 0x05, + 0x81, + 0xA8, + 0x7F, + 0x6E, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProvider + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0xC8, + 0xDC, + 0x29, + 0xB9, + 0x7A, + 0x7C, + 0x4A, + 0xA3, + 0x36, + 0xB9, + 0x42, + 0xF9, + 0xDB, + 0xF7, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProvider2 + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0xEB, + 0x01, + 0x4A, + 0x42, + 0x4E, + 0xD4, + 0x41, + 0xB5, + 0x18, + 0xE0, + 0x08, + 0xA5, + 0x16, + 0x36, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProvider3 + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x51, + 0x1C, + 0xDA, + 0x0D, + 0x97, + 0x49, + 0x4D, + 0x82, + 0x5C, + 0xF2, + 0x70, + 0x6F, + 0x8C, + 0xA7, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProvider4 + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0xD8, + 0x8F, + 0x71, + 0x96, + 0xE7, + 0x10, + 0x42, + 0xB7, + 0x4E, + 0x84, + 0xD2, + 0x98, + 0x94, + 0xB0, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebAccountProviderFactory + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x7D, + 0x76, + 0x1D, + 0xE1, + 0xE1, + 0x9A, + 0x4B, + 0xA7, + 0x74, + 0x5C, + 0x7C, + 0x7E, + 0x3B, + 0xF3, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography.certificates/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography.certificates/IID.Manual.cs new file mode 100644 index 0000000000..85827ae460 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography.certificates/IID.Manual.cs @@ -0,0 +1,1174 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.cryptography.certificates.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICertificate + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x74, + 0x3F, + 0x33, + 0xD8, + 0x04, + 0xB3, + 0x43, + 0xB2, + 0x78, + 0x8C, + 0x5F, + 0xCC, + 0x9B, + 0xE5, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificate2 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x37, + 0xB8, + 0x17, + 0x25, + 0x8A, + 0x96, + 0x4D, + 0xA4, + 0x92, + 0x8F, + 0xC2, + 0x9A, + 0xC4, + 0xFD, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificate3 + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0xA9, + 0x51, + 0xBE, + 0x5F, + 0xAE, + 0x52, + 0x46, + 0xAC, + 0xE7, + 0xC6, + 0xD7, + 0xE7, + 0x72, + 0x4C, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateChain + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x53, + 0xBF, + 0x20, + 0x91, + 0x36, + 0x01, + 0x45, + 0xA6, + 0x2C, + 0xFD, + 0x97, + 0x27, + 0x8B, + 0x31, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateEnrollmentManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0xEF, + 0x46, + 0x88, + 0x86, + 0xA9, + 0xFB, + 0x48, + 0x9F, + 0xD7, + 0x9A, + 0xEC, + 0x06, + 0x93, + 0x5B, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateEnrollmentManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x1C, + 0x5B, + 0xDC, + 0x29, + 0x64, + 0x14, + 0x40, + 0x99, + 0x9C, + 0x5D, + 0x97, + 0x35, + 0x80, + 0x2D, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateEnrollmentManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x82, + 0xEC, + 0xFD, + 0x7C, + 0x61, + 0x5A, + 0x42, + 0xB7, + 0x2D, + 0x39, + 0x8B, + 0x26, + 0xAC, + 0x72, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateExtension + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0x06, + 0xCF, + 0x84, + 0xE6, + 0xA9, + 0x4D, + 0x45, + 0x8E, + 0x45, + 0x2E, + 0xA7, + 0xC4, + 0xBC, + 0xD5, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateFactory + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x22, + 0xB4, + 0x17, + 0xAF, + 0x4B, + 0xA2, + 0x44, + 0x96, + 0x08, + 0x04, + 0xFB, + 0x62, + 0xB1, + 0x69, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateKeyUsages + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x20, + 0xC6, + 0x6A, + 0xCF, + 0xE1, + 0x6A, + 0x48, + 0xB4, + 0x85, + 0xA6, + 0x9C, + 0x83, + 0xE4, + 0x6F, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateQuery + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0x2A, + 0x08, + 0x5B, + 0x28, + 0xA7, + 0x16, + 0x49, + 0xB5, + 0xEE, + 0xFF, + 0xCB, + 0x8A, + 0xCF, + 0x24, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateQuery2 + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x0A, + 0x5A, + 0x93, + 0xD9, + 0x0B, + 0x75, + 0x4F, + 0xB8, + 0xC2, + 0xE2, + 0x7A, + 0x7F, + 0x74, + 0xEE, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateRequestProperties + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x84, + 0x7E, + 0x48, + 0xE2, + 0x94, + 0xCE, + 0x4D, + 0x88, + 0x33, + 0x1A, + 0x70, + 0x0A, + 0x37, + 0xA2, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateRequestProperties2 + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xC9, + 0xA0, + 0x3D, + 0x3F, + 0xD7, + 0xF3, + 0x4F, + 0xA0, + 0xA6, + 0x06, + 0x77, + 0xC0, + 0xAD, + 0xA0, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateRequestProperties3 + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xF6, + 0x87, + 0xE6, + 0x4D, + 0x73, + 0xB1, + 0x46, + 0x9D, + 0x4C, + 0x6E, + 0xDF, + 0xDB, + 0xFC, + 0x84, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateRequestProperties4 + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x9A, + 0x42, + 0x4E, + 0x61, + 0x1C, + 0xEA, + 0x4F, + 0xB8, + 0xFE, + 0x13, + 0x5F, + 0xB1, + 0x9C, + 0xDC, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateStore + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0xF7, + 0xBF, + 0xB0, + 0x4E, + 0x34, + 0x31, + 0x43, + 0xAF, + 0x14, + 0xA7, + 0xF7, + 0xA7, + 0xEB, + 0xC9, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateStore2 + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x8E, + 0xE6, + 0xC7, + 0x7D, + 0x41, + 0x1A, + 0x4D, + 0xBA, + 0xBD, + 0x15, + 0x68, + 0x7E, + 0x54, + 0x99, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateStoresStatics + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0xC7, + 0xEC, + 0xFB, + 0xFE, + 0xC6, + 0xE7, + 0x4D, + 0x99, + 0xCF, + 0x74, + 0xC3, + 0xE5, + 0x96, + 0xE0, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICertificateStoresStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x0B, + 0x90, + 0xFA, + 0xD4, + 0xA0, + 0x8C, + 0x4B, + 0xBC, + 0x55, + 0xC0, + 0xA3, + 0x7E, + 0xB1, + 0x41, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IChainBuildingParameters + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0xA9, + 0x2B, + 0x42, + 0x8D, + 0x7C, + 0xB7, + 0x47, + 0xB5, + 0x9B, + 0xB1, + 0x27, + 0x03, + 0x73, + 0x3A, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IChainValidationParameters + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x3B, + 0x74, + 0xC4, + 0xB0, + 0x7E, + 0x56, + 0x4B, + 0xA0, + 0x40, + 0xB9, + 0xC8, + 0xE6, + 0x55, + 0xDD, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsAttachedSignature + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x9D, + 0x89, + 0x61, + 0x57, + 0x37, + 0xCB, + 0x4E, + 0xBD, + 0xDC, + 0x0C, + 0xA3, + 0x57, + 0xD7, + 0xA9, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsAttachedSignatureFactory + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0xFC, + 0xC8, + 0xD0, + 0x57, + 0xF7, + 0x64, + 0x4C, + 0xA3, + 0x62, + 0x52, + 0xCC, + 0x1C, + 0x77, + 0xCF, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsAttachedSignatureStatics + { + get + { + ReadOnlySpan data = + [ + 0x8E, + 0x9C, + 0x98, + 0x87, + 0xAD, + 0xB0, + 0x8D, + 0x49, + 0xA7, + 0xF5, + 0x78, + 0xB5, + 0x9B, + 0xCE, + 0x4B, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsDetachedSignature + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xF1, + 0x1E, + 0x0F, + 0x5E, + 0xF6, + 0x36, + 0x45, + 0x83, + 0x39, + 0x59, + 0x44, + 0x08, + 0x1D, + 0xB2, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsDetachedSignatureFactory + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x35, + 0xAB, + 0xC4, + 0x7F, + 0xAE, + 0x87, + 0x43, + 0xAD, + 0x19, + 0x00, + 0xF1, + 0x50, + 0xE4, + 0x8E, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsDetachedSignatureStatics + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x4C, + 0x11, + 0x3D, + 0x9B, + 0xBF, + 0x82, + 0x46, + 0x9B, + 0xE6, + 0x91, + 0xF5, + 0x7C, + 0x05, + 0x38, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsSignerInfo + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x20, + 0xD0, + 0x50, + 0x2F, + 0x1D, + 0x1A, + 0x4C, + 0xB5, + 0xC5, + 0xD0, + 0x18, + 0x8F, + 0xF9, + 0x1F, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICmsTimestampInfo + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x00, + 0x5F, + 0x2F, + 0x18, + 0x2C, + 0x88, + 0x4F, + 0x84, + 0x35, + 0xC5, + 0x34, + 0x08, + 0x60, + 0x76, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyAlgorithmNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x65, + 0x90, + 0x47, + 0xC7, + 0x7A, + 0x81, + 0x45, + 0x8C, + 0x3B, + 0xD0, + 0x70, + 0x27, + 0x14, + 0x04, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyAlgorithmNamesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x56, + 0x9B, + 0xC9, + 0xFD, + 0xE1, + 0x4A, + 0x4A, + 0x89, + 0x3D, + 0xA2, + 0x6F, + 0x33, + 0xDD, + 0x8B, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyAttestationHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0xE2, + 0x48, + 0x16, + 0x44, + 0xF6, + 0x26, + 0x43, + 0x88, + 0xBE, + 0x3A, + 0xF1, + 0x02, + 0xD3, + 0x0E, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyAttestationHelperStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x0B, + 0x59, + 0x9C, + 0xC6, + 0xA6, + 0x5E, + 0x4A, + 0x9E, + 0x64, + 0xE8, + 0x5D, + 0x52, + 0x79, + 0xDF, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyStorageProviderNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x6A, + 0x18, + 0xAF, + 0x29, + 0x55, + 0x02, + 0x46, + 0xBD, + 0x94, + 0x0A, + 0xAB, + 0x91, + 0x95, + 0x7B, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyStorageProviderNamesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x74, + 0x2D, + 0x26, + 0x2E, + 0x9C, + 0xCC, + 0x41, + 0x88, + 0x12, + 0xC4, + 0xD9, + 0x71, + 0xDD, + 0x7C, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPfxImportParameters + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x35, + 0x0D, + 0x68, + 0x08, + 0x9A, + 0xC8, + 0x47, + 0x86, + 0x4A, + 0x2E, + 0xDD, + 0x4D, + 0x8E, + 0xB4, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStandardCertificateStoreNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x4A, + 0x15, + 0x0C, + 0x96, + 0xA4, + 0xF8, + 0x41, + 0x8F, + 0xE5, + 0x9E, + 0x96, + 0xF3, + 0x6E, + 0xFB, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISubjectAlternativeNameInfo + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x59, + 0x28, + 0x58, + 0x9D, + 0x56, + 0x20, + 0x4C, + 0xBE, + 0x7B, + 0x4E, + 0x1C, + 0x9A, + 0x0B, + 0xC5, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISubjectAlternativeNameInfo2 + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x78, + 0x7A, + 0x43, + 0x51, + 0x1C, + 0xEA, + 0x41, + 0xB3, + 0x4A, + 0x3D, + 0x65, + 0x43, + 0x98, + 0xA3, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserCertificateEnrollmentManager + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x37, + 0x31, + 0x96, + 0xE1, + 0x22, + 0x19, + 0x48, + 0xB2, + 0x0B, + 0xAB, + 0x46, + 0xA6, + 0xEC, + 0xA0, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserCertificateEnrollmentManager2 + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x9C, + 0xAD, + 0x0D, + 0xDE, + 0x65, + 0x2A, + 0x49, + 0xB8, + 0x6D, + 0xFC, + 0x5C, + 0x48, + 0x2C, + 0x37, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserCertificateStore + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x1D, + 0xFB, + 0xC9, + 0x9F, + 0x78, + 0x4E, + 0x4B, + 0x91, + 0x80, + 0x04, + 0x5A, + 0x75, + 0x7A, + 0xAC, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography.core/IID.Manual.cs new file mode 100644 index 0000000000..dcf1de7bca --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography.core/IID.Manual.cs @@ -0,0 +1,823 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.cryptography.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAsymmetricAlgorithmNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xFC, + 0xF6, + 0xCA, + 0xC0, + 0x67, + 0xAA, + 0x46, + 0x84, + 0xF9, + 0x75, + 0x2E, + 0x77, + 0x44, + 0x9F, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAsymmetricAlgorithmNamesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0xC0, + 0x41, + 0xF1, + 0xFF, + 0x4B, + 0x23, + 0x4F, + 0xBA, + 0x66, + 0x60, + 0x45, + 0xB1, + 0x37, + 0xD5, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAsymmetricKeyAlgorithmProvider + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0xFF, + 0xD2, + 0xE8, + 0x59, + 0x62, + 0x88, + 0x4E, + 0xB7, + 0xE0, + 0x94, + 0x19, + 0x1F, + 0xDE, + 0x69, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAsymmetricKeyAlgorithmProvider2 + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x2A, + 0x32, + 0x4E, + 0x4D, + 0x7C, + 0x97, + 0x49, + 0xAC, + 0x4F, + 0x1B, + 0x84, + 0x8B, + 0x36, + 0x30, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAsymmetricKeyAlgorithmProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0xDE, + 0x5B, + 0x42, + 0xF3, + 0xA7, + 0xA6, + 0x47, + 0xA8, + 0xD2, + 0xC4, + 0x8D, + 0x60, + 0x33, + 0xA6, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICryptographicEngineStatics + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x06, + 0xEA, + 0x9F, + 0xF7, + 0x6F, + 0x85, + 0x4C, + 0xA0, + 0x95, + 0x95, + 0xEB, + 0x31, + 0x71, + 0x5E, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICryptographicEngineStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x48, + 0x59, + 0x67, + 0x9F, + 0xDF, + 0x91, + 0x41, + 0x92, + 0xC7, + 0x6C, + 0xE6, + 0xF5, + 0x84, + 0x20, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICryptographicKey + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x3B, + 0x2A, + 0xED, + 0x7B, + 0x8E, + 0x09, + 0x40, + 0x84, + 0x01, + 0xFF, + 0xD1, + 0xA6, + 0x2E, + 0xEB, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEccCurveNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x93, + 0xFF, + 0xB3, + 0xEB, + 0xAE, + 0x9E, + 0x40, + 0xB7, + 0xD4, + 0x9B, + 0x95, + 0x29, + 0x5A, + 0xAE, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IEncryptedAndAuthenticatedData + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0x2F, + 0xA4, + 0x6F, + 0xCB, + 0x1E, + 0x00, + 0x4B, + 0xBE, + 0xA5, + 0x60, + 0xB8, + 0x3F, + 0x86, + 0x2F, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHashAlgorithmNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x05, + 0x5E, + 0x6B, + 0x96, + 0xDE, + 0x0A, + 0x4F, + 0x8D, + 0x57, + 0xDC, + 0xC9, + 0xDA, + 0xE3, + 0x6C, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHashAlgorithmProvider + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x30, + 0x9B, + 0xBE, + 0xC3, + 0xB2, + 0x2B, + 0x42, + 0xBC, + 0xE1, + 0xEC, + 0x90, + 0xEF, + 0xB5, + 0xD7, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHashAlgorithmProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x97, + 0xAC, + 0x9F, + 0xC4, + 0x5C, + 0x36, + 0x43, + 0xAE, + 0x38, + 0x62, + 0x12, + 0xB7, + 0x5A, + 0x91, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHashComputation + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0xD1, + 0x04, + 0x59, + 0x31, + 0xAD, + 0x03, + 0x46, + 0xA3, + 0xA4, + 0xB1, + 0xBD, + 0xA9, + 0x8E, + 0x25, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationAlgorithmNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x36, + 0x6E, + 0x7B, + 0xD2, + 0x94, + 0x39, + 0x47, + 0xA5, + 0x7B, + 0x02, + 0x2E, + 0x0C, + 0x3A, + 0x40, + 0x2A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationAlgorithmNamesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xAB, + 0x3F, + 0x95, + 0x57, + 0x44, + 0x60, + 0x6F, + 0x46, + 0x97, + 0xF4, + 0x33, + 0x7B, + 0x78, + 0x08, + 0x38, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationAlgorithmProvider + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xA8, + 0xFB, + 0xE1, + 0x71, + 0x46, + 0xB7, + 0x43, + 0x91, + 0x58, + 0x76, + 0x3A, + 0xAA, + 0x98, + 0xB6, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationAlgorithmProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0x09, + 0x22, + 0x0A, + 0x1C, + 0x0A, + 0x3B, + 0x44, + 0x94, + 0x18, + 0xB9, + 0x49, + 0x8A, + 0xEB, + 0x16, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationParameters + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x59, + 0xF0, + 0x7B, + 0x7B, + 0x04, + 0x8C, + 0x4A, + 0x96, + 0x4A, + 0x46, + 0x9F, + 0xFD, + 0x55, + 0x22, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationParameters2 + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x66, + 0x41, + 0xCD, + 0x7E, + 0x41, + 0x4C, + 0x4F, + 0xB6, + 0x66, + 0xC0, + 0xD8, + 0x79, + 0xF3, + 0xF8, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationParametersStatics + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x1F, + 0x96, + 0xEA, + 0x7F, + 0xF3, + 0x46, + 0x41, + 0x9D, + 0xFE, + 0xA4, + 0x56, + 0xF1, + 0x73, + 0x5F, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyDerivationParametersStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x3D, + 0x78, + 0xA5, + 0xE3, + 0x58, + 0xFB, + 0x4E, + 0xB2, + 0x83, + 0xA1, + 0x65, + 0x31, + 0x26, + 0xE1, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMacAlgorithmNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0x26, + 0x41, + 0x41, + 0x1E, + 0xFB, + 0xA4, + 0x43, + 0x89, + 0x5E, + 0xA9, + 0x02, + 0x6E, + 0x43, + 0x90, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMacAlgorithmProvider + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0xC5, + 0x3F, + 0x4A, + 0xBD, + 0x1C, + 0xCE, + 0x41, + 0xA0, + 0x92, + 0xAA, + 0x0B, + 0xC5, + 0xD2, + 0xD2, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMacAlgorithmProvider2 + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x2A, + 0xA3, + 0x6D, + 0x31, + 0xD9, + 0xED, + 0x42, + 0x8E, + 0x7E, + 0xC3, + 0x01, + 0xCA, + 0xEE, + 0x11, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMacAlgorithmProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xC1, + 0xBD, + 0xC9, + 0x77, + 0xCC, + 0xF0, + 0x4D, + 0x9E, + 0x4E, + 0xB9, + 0x21, + 0xE0, + 0x80, + 0x64, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPersistedKeyProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0x48, + 0x27, + 0x77, + 0xD4, + 0xD9, + 0xF5, + 0x4C, + 0xB6, + 0x68, + 0xE0, + 0x45, + 0x7D, + 0xF3, + 0x08, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISymmetricAlgorithmNamesStatics + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x72, + 0x70, + 0x68, + 0x96, + 0xC9, + 0xAE, + 0x4E, + 0x84, + 0xD7, + 0x79, + 0xB2, + 0xAE, + 0xB7, + 0x3B, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISymmetricKeyAlgorithmProvider + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x4A, + 0x7E, + 0x3D, + 0xD0, + 0x3B, + 0x02, + 0x49, + 0x8A, + 0xC8, + 0x47, + 0x0D, + 0x50, + 0xD2, + 0x13, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISymmetricKeyAlgorithmProviderStatics + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x23, + 0x3B, + 0x8D, + 0x37, + 0x1F, + 0x1F, + 0x49, + 0xB6, + 0x0E, + 0xF5, + 0x43, + 0x1B, + 0x26, + 0xB4, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography/IID.Manual.cs new file mode 100644 index 0000000000..9dbb572f0e --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.cryptography/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.cryptography.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICryptographicBufferStatics + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x7E, + 0x0B, + 0x32, + 0xB0, + 0x3C, + 0xDF, + 0x4C, + 0x86, + 0x63, + 0x1D, + 0x28, + 0x91, + 0x00, + 0x65, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.security.enterprisedata/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.security.enterprisedata/IID.Manual.cs new file mode 100644 index 0000000000..c6431bccc5 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.security.enterprisedata/IID.Manual.cs @@ -0,0 +1,715 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.security.enterprisedata.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBufferProtectUnprotectResult + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x5E, + 0x99, + 0x47, + 0xEC, + 0x6C, + 0x3A, + 0x4E, + 0xB2, + 0x51, + 0x9E, + 0x74, + 0x85, + 0xD7, + 0x9E, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataProtectionInfo + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xB0, + 0x20, + 0x84, + 0x31, + 0x5E, + 0x05, + 0x44, + 0x95, + 0x40, + 0x3F, + 0x94, + 0x3A, + 0xF0, + 0xCB, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataProtectionManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x9B, + 0x14, + 0xB6, + 0x44, + 0x91, + 0xE4, + 0x4E, + 0x8A, + 0x8A, + 0x30, + 0xB5, + 0xF3, + 0x61, + 0x43, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileProtectionInfo + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x64, + 0xE9, + 0x4E, + 0x7E, + 0x14, + 0xD0, + 0x4D, + 0x8F, + 0xAF, + 0x52, + 0x53, + 0xED, + 0x91, + 0xAD, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileProtectionInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x3A, + 0x12, + 0x82, + 0x7A, + 0x55, + 0x8D, + 0x49, + 0x8E, + 0x94, + 0x94, + 0x4C, + 0xD5, + 0x83, + 0x64, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileProtectionManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xFC, + 0x46, + 0x58, + 0x13, + 0xE6, + 0x6B, + 0x42, + 0xBB, + 0x38, + 0x88, + 0xCB, + 0xA1, + 0xDC, + 0x9A, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileProtectionManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0xA7, + 0xD2, + 0x83, + 0x83, + 0x04, + 0xAB, + 0x41, + 0xB2, + 0xD5, + 0xBC, + 0x7F, + 0x23, + 0xD7, + 0x4E, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileProtectionManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0x84, + 0x18, + 0x69, + 0x4F, + 0x62, + 0xD6, + 0x46, + 0xB2, + 0x41, + 0xE9, + 0xCD, + 0x5F, + 0xDF, + 0x3E, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileRevocationManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0xBC, + 0x6B, + 0x25, + 0x5D, + 0x1C, + 0x60, + 0x42, + 0x8C, + 0x75, + 0x91, + 0x44, + 0xCF, + 0xB7, + 0x8B, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileUnprotectOptions + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x12, + 0x13, + 0x7D, + 0x0D, + 0x3B, + 0xD8, + 0x4D, + 0xA1, + 0xF8, + 0x1E, + 0xC5, + 0x38, + 0x22, + 0xE2, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileUnprotectOptionsFactory + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xB3, + 0xAE, + 0x51, + 0x8C, + 0xDA, + 0x3F, + 0x4C, + 0x9B, + 0xFB, + 0xCB, + 0x73, + 0xA7, + 0xCC, + 0xE0, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectedAccessResumedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x59, + 0xCA, + 0x4D, + 0xAC, + 0x80, + 0x5D, + 0x95, + 0x4E, + 0x8C, + 0x5F, + 0x85, + 0x39, + 0x45, + 0x0E, + 0xEB, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectedAccessSuspendingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x93, + 0xA1, + 0x75, + 0x44, + 0xA3, + 0x9F, + 0x42, + 0xB9, + 0x75, + 0x04, + 0xFC, + 0x1F, + 0x88, + 0xC1, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectedContainerExportResult + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0xEF, + 0x48, + 0x39, + 0xFB, + 0xF7, + 0x42, + 0x4B, + 0xAF, + 0xB0, + 0xDF, + 0x70, + 0xB4, + 0x15, + 0x43, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectedContainerImportResult + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x80, + 0xB7, + 0xCD, + 0xBB, + 0xE7, + 0x1A, + 0x4D, + 0x93, + 0x39, + 0x34, + 0xDC, + 0x41, + 0x14, + 0x9F, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectedContentRevokedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x68, + 0x68, + 0x63, + 0xB9, + 0x58, + 0xEE, + 0x47, + 0x93, + 0xD9, + 0xF0, + 0xF7, + 0x41, + 0xCF, + 0x43, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectedFileCreateResult + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xED, + 0xE3, + 0x28, + 0xE7, + 0xE9, + 0x03, + 0x4A, + 0x9F, + 0x53, + 0xBD, + 0xB1, + 0x61, + 0x72, + 0x69, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyAuditInfo + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xB7, + 0x5A, + 0x42, + 0xB7, + 0xFE, + 0xFC, + 0x44, + 0xB3, + 0xBB, + 0xC3, + 0xC4, + 0xD7, + 0xEC, + 0xBE, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyAuditInfoFactory + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x18, + 0xD4, + 0x7E, + 0xE8, + 0x92, + 0xD5, + 0x42, + 0x83, + 0xD4, + 0x25, + 0x44, + 0x0B, + 0x42, + 0x35, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyManager + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x3E, + 0x70, + 0xD5, + 0x8D, + 0xA0, + 0xE6, + 0x47, + 0xA2, + 0x40, + 0x99, + 0x34, + 0xD7, + 0x16, + 0x5E, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyManager2 + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0x52, + 0xF7, + 0xAB, + 0x35, + 0x84, + 0x7F, + 0x41, + 0x99, + 0xB6, + 0x51, + 0xBE, + 0xAF, + 0x36, + 0x58, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0xFC, + 0xBF, + 0xC0, + 0x3D, + 0x8C, + 0x56, + 0x4D, + 0x88, + 0x04, + 0xC6, + 0x8F, + 0x0A, + 0xD3, + 0x2E, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x9A, + 0x8F, + 0xB6, + 0xE0, + 0x39, + 0x49, + 0x46, + 0xB2, + 0xE4, + 0x07, + 0x0A, + 0xB8, + 0xA5, + 0x79, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x9E, + 0xFF, + 0x48, + 0x6F, + 0x6A, + 0x9F, + 0x4D, + 0xBC, + 0xED, + 0x18, + 0xAB, + 0x53, + 0x7A, + 0xA0, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtectionPolicyManagerStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x94, + 0xB7, + 0x20, + 0xBD, + 0xCC, + 0x0F, + 0x49, + 0x8C, + 0x83, + 0x49, + 0xCC, + 0xB7, + 0x7A, + 0xEA, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IThreadNetworkContext + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0xA8, + 0x4E, + 0xFA, + 0x13, + 0xEF, + 0x5A, + 0x40, + 0xB1, + 0x2C, + 0xD7, + 0x34, + 0x8C, + 0x6F, + 0x41, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage.fileproperties/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage.fileproperties/IID.Manual.cs new file mode 100644 index 0000000000..f764250af6 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage.fileproperties/IID.Manual.cs @@ -0,0 +1,256 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.fileproperties.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBasicProperties + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x55, + 0x5D, + 0xD0, + 0x5E, + 0x78, + 0x66, + 0x4A, + 0xBE, + 0x02, + 0x9B, + 0xEE, + 0xC5, + 0x8A, + 0xEA, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDocumentProperties + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x19, + 0xAB, + 0x7E, + 0x21, + 0x18, + 0x23, + 0x49, + 0xB4, + 0xA9, + 0x0A, + 0xEA, + 0x40, + 0x4D, + 0x00, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IGeotagHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x32, + 0x49, + 0x41, + 0x24, + 0x25, + 0x55, + 0x46, + 0x86, + 0xA6, + 0xED, + 0x16, + 0xF5, + 0xFC, + 0x71, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImageProperties + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x94, + 0x3C, + 0x52, + 0xFF, + 0xFC, + 0x75, + 0x42, + 0xAF, + 0xEE, + 0xEC, + 0xDB, + 0x9A, + 0xB4, + 0x79, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMusicProperties + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0xAB, + 0x8A, + 0xBC, + 0xEC, + 0x66, + 0x9A, + 0x41, + 0xBC, + 0x5D, + 0xCA, + 0x65, + 0xA4, + 0xCB, + 0x46, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItemContentProperties + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x4B, + 0x29, + 0x05, + 0x38, + 0xBC, + 0xBF, + 0x48, + 0x85, + 0xD7, + 0x77, + 0x0E, + 0x0E, + 0x2A, + 0xE0, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItemExtraProperties + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0x61, + 0x43, + 0xC5, + 0xCD, + 0x54, + 0x2B, + 0x43, + 0xBD, + 0xBC, + 0x4B, + 0x19, + 0xC4, + 0xB4, + 0x70, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IThumbnailProperties + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xD4, + 0x3D, + 0x69, + 0xE7, + 0xDB, + 0xB5, + 0x49, + 0xB3, + 0xB3, + 0x28, + 0x93, + 0xAC, + 0x5D, + 0x34, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVideoProperties + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xE5, + 0x9A, + 0x71, + 0xDE, + 0x68, + 0xB8, + 0x4D, + 0x97, + 0xDE, + 0x49, + 0x99, + 0x8C, + 0x05, + 0x9F, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage.pickers.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage.pickers.provider/IID.Manual.cs new file mode 100644 index 0000000000..3b3ad85284 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage.pickers.provider/IID.Manual.cs @@ -0,0 +1,256 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.pickers.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IFileOpenPickerUI + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x5A, + 0xA4, + 0xDD, + 0xD4, + 0xF9, + 0xC4, + 0x40, + 0x8A, + 0xF5, + 0xC5, + 0xB6, + 0xB5, + 0xA6, + 0x1D, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x3D, + 0x04, + 0x13, + 0xCA, + 0x7F, + 0x2B, + 0x4C, + 0x9E, + 0xCA, + 0x68, + 0x90, + 0xF9, + 0xF0, + 0x01, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePickerUI + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xC1, + 0x56, + 0x96, + 0x56, + 0x3E, + 0xCC, + 0x43, + 0x8A, + 0x39, + 0x33, + 0xC7, + 0x3D, + 0x9D, + 0x54, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPickerClosingDeferral + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xF7, + 0xF7, + 0x7A, + 0x67, + 0x1A, + 0x31, + 0x4A, + 0xAE, + 0x80, + 0xE9, + 0x07, + 0x70, + 0x8A, + 0x61, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPickerClosingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0xF2, + 0x59, + 0x7E, + 0x32, + 0xB3, + 0x12, + 0x4F, + 0x8B, + 0x9F, + 0xA8, + 0xC2, + 0xF0, + 0x6B, + 0x32, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPickerClosingOperation + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0xFB, + 0xE9, + 0x4C, + 0xEE, + 0xBE, + 0x39, + 0x4E, + 0xA7, + 0x73, + 0xFC, + 0x5F, + 0x0E, + 0xAE, + 0x32, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITargetFileRequest + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x33, + 0xBD, + 0x42, + 0x88, + 0x7F, + 0x8B, + 0x47, + 0x8E, + 0x81, + 0x69, + 0x0B, + 0x20, + 0x34, + 0x06, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITargetFileRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0x9D, + 0xEE, + 0x4A, + 0x15, + 0xBF, + 0xA9, + 0x4D, + 0x95, + 0xF6, + 0xF6, + 0xB7, + 0xD5, + 0x58, + 0x22, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITargetFileRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xDB, + 0x63, + 0xB1, + 0x51, + 0x1B, + 0x89, + 0x4C, + 0xA5, + 0x91, + 0x0F, + 0xD4, + 0x0B, + 0x3C, + 0x57, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage.pickers/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage.pickers/IID.Manual.cs new file mode 100644 index 0000000000..a70ed489d2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage.pickers/IID.Manual.cs @@ -0,0 +1,418 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.pickers.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IFileOpenPicker + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x27, + 0xA8, + 0x2C, + 0xC5, + 0x12, + 0x5F, + 0x4C, + 0x89, + 0x77, + 0x94, + 0x54, + 0x77, + 0x93, + 0xC2, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPicker2 + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x6C, + 0xEB, + 0x8C, + 0x46, + 0xB4, + 0xF7, + 0x46, + 0xB2, + 0x65, + 0x90, + 0xF8, + 0xE5, + 0x5A, + 0xD6, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPicker3 + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0xC5, + 0xA5, + 0xD9, + 0xDC, + 0xC5, + 0x98, + 0x5B, + 0xBD, + 0x80, + 0xA8, + 0xD0, + 0xCA, + 0x05, + 0x84, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPickerStatics + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0x57, + 0x21, + 0x68, + 0x02, + 0x2F, + 0x33, + 0x48, + 0x96, + 0xD4, + 0xAB, + 0xBF, + 0xAD, + 0x72, + 0xB6, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPickerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x74, + 0x91, + 0xE8, + 0xDD, + 0xED, + 0x98, + 0x5C, + 0xB6, + 0xF3, + 0x36, + 0x6F, + 0xDF, + 0xCA, + 0xD3, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileOpenPickerWithOperationId + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xB5, + 0x57, + 0x3F, + 0x22, + 0x25, + 0xA5, + 0x4C, + 0xAA, + 0x73, + 0xA1, + 0x55, + 0x09, + 0xF1, + 0xFC, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePicker + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xFF, + 0x86, + 0x32, + 0x7F, + 0x61, + 0xC5, + 0x4C, + 0xAF, + 0x6A, + 0xB3, + 0xFD, + 0xF2, + 0x9A, + 0xD1, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePicker2 + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x13, + 0xC3, + 0x0E, + 0x4B, + 0xD2, + 0x9A, + 0x44, + 0x81, + 0x97, + 0xE8, + 0x91, + 0x04, + 0xFD, + 0x42, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePicker3 + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xEC, + 0x8A, + 0x69, + 0x3C, + 0xBA, + 0x51, + 0x4E, + 0xBD, + 0x90, + 0x4A, + 0xBC, + 0xBB, + 0xF4, + 0xCF, + 0xAF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePicker4 + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x3A, + 0xD8, + 0xE7, + 0xFA, + 0xDD, + 0xE0, + 0x5D, + 0x8B, + 0x70, + 0xC8, + 0x42, + 0xC2, + 0x19, + 0x88, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileSavePickerStatics + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xCF, + 0xE3, + 0x28, + 0x1C, + 0x96, + 0x2C, + 0x5E, + 0xAE, + 0xD7, + 0xE6, + 0x47, + 0x37, + 0xF4, + 0xCE, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFolderPicker + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0x77, + 0x4F, + 0x08, + 0xFB, + 0xF3, + 0x0A, + 0x40, + 0x99, + 0xB1, + 0x7B, + 0x4A, + 0x77, + 0x2F, + 0xD6, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFolderPicker2 + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0xBA, + 0xB3, + 0x8E, + 0x85, + 0xDC, + 0x16, + 0x46, + 0xBE, + 0x94, + 0x96, + 0x60, + 0x88, + 0x1F, + 0x2F, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFolderPicker3 + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x1E, + 0x3B, + 0x67, + 0x26, + 0xD3, + 0xC0, + 0x53, + 0xBD, + 0x24, + 0xA2, + 0x5C, + 0x71, + 0x4C, + 0xEE, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFolderPickerStatics + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x47, + 0xE3, + 0x9B, + 0xA1, + 0x7C, + 0x42, + 0x59, + 0xA3, + 0xC8, + 0x46, + 0xF2, + 0x55, + 0x1E, + 0xCF, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage.provider/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage.provider/IID.Manual.cs new file mode 100644 index 0000000000..02d75a054b --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage.provider/IID.Manual.cs @@ -0,0 +1,931 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.provider.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IStorageProviderKnownFolderSyncRequestedHandler + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0xB4, + 0xCB, + 0xC4, + 0xDD, + 0x13, + 0x8E, + 0x5C, + 0x8B, + 0x96, + 0x33, + 0x6F, + 0xC3, + 0x0C, + 0x62, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileUpdaterStatics + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x09, + 0xC9, + 0x9F, + 0xCF, + 0x7B, + 0x88, + 0x48, + 0xA8, + 0x1E, + 0x10, + 0x2D, + 0x70, + 0x34, + 0xD7, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileUpdaterUI + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0x41, + 0x6F, + 0x9E, + 0xF2, + 0xBA, + 0x97, + 0x4A, + 0xB6, + 0x00, + 0x93, + 0x33, + 0xF5, + 0xDF, + 0x80, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileUpdaterUI2 + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0xA2, + 0x56, + 0x88, + 0x99, + 0x86, + 0x40, + 0x43, + 0x9F, + 0x49, + 0xF7, + 0xCA, + 0xD7, + 0xFE, + 0x89, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileUpdateRequest + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0x25, + 0xC8, + 0x40, + 0xFE, + 0xC1, + 0x93, + 0x4D, + 0xA7, + 0x92, + 0x1E, + 0x73, + 0x6B, + 0xC7, + 0x08, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileUpdateRequest2 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x46, + 0x48, + 0x82, + 0xBE, + 0xBD, + 0x7B, + 0x44, + 0xA2, + 0xEE, + 0x7A, + 0xFE, + 0x6A, + 0x03, + 0x2A, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileUpdateRequestDeferral + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0xDB, + 0xCE, + 0xFF, + 0xDE, + 0x8A, + 0xA5, + 0x44, + 0xBB, + 0x00, + 0x16, + 0x4C, + 0x4E, + 0x72, + 0xF1, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileUpdateRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x93, + 0x0A, + 0x7B, + 0x05, + 0x39, + 0x8D, + 0x43, + 0xAA, + 0xEF, + 0x78, + 0xAE, + 0x26, + 0x5F, + 0x8D, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderFileTypeInfo + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0xB9, + 0x55, + 0x19, + 0x84, + 0x01, + 0x88, + 0x5A, + 0x87, + 0xDF, + 0x45, + 0x44, + 0xF4, + 0x64, + 0x36, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderFileTypeInfoFactory + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x2C, + 0xA1, + 0x3F, + 0xE6, + 0xCC, + 0x5D, + 0x5D, + 0x80, + 0xB1, + 0x38, + 0x9E, + 0x7C, + 0xF9, + 0x2D, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderGetContentInfoForPathResult + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x71, + 0x64, + 0x25, + 0x89, + 0xAA, + 0x12, + 0x4D, + 0x82, + 0xE3, + 0xF7, + 0x2A, + 0x92, + 0xE3, + 0x39, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderGetPathForContentUriResult + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x1A, + 0x71, + 0x63, + 0x18, + 0x41, + 0xA6, + 0x45, + 0xAC, + 0xB6, + 0x22, + 0xC4, + 0x9D, + 0x01, + 0x9F, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderItemPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0x1C, + 0x2C, + 0x2D, + 0x04, + 0x27, + 0x29, + 0x47, + 0x8F, + 0xA9, + 0x7E, + 0x6B, + 0x8E, + 0x15, + 0x8C, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderItemProperty + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xB5, + 0x6C, + 0x47, + 0x0B, + 0x73, + 0x88, + 0x41, + 0xB7, + 0xB5, + 0x63, + 0xB7, + 0x16, + 0xED, + 0x47, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderItemPropertyDefinition + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x83, + 0xB3, + 0xC5, + 0x1F, + 0xFF, + 0x98, + 0x42, + 0x83, + 0x1E, + 0xFF, + 0x1C, + 0x08, + 0x08, + 0x96, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderItemPropertySource + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x9C, + 0x6F, + 0x8F, + 0x32, + 0xF6, + 0x9B, + 0x4A, + 0x8D, + 0x99, + 0xD2, + 0xD7, + 0xA1, + 0x1D, + 0xF5, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderKnownFolderEntry + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0x7D, + 0xFA, + 0xEF, + 0x44, + 0x1D, + 0x6B, + 0x59, + 0x84, + 0x64, + 0x92, + 0x88, + 0x00, + 0xC5, + 0xE2, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderKnownFolderSyncInfo + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x17, + 0xB0, + 0x98, + 0xC1, + 0xFF, + 0x11, + 0x5B, + 0xAE, + 0x77, + 0xCC, + 0x17, + 0xAF, + 0xEC, + 0x10, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderKnownFolderSyncInfoSource + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0x93, + 0x35, + 0x51, + 0xC0, + 0xF7, + 0xD0, + 0x53, + 0xBB, + 0xB6, + 0x1C, + 0xDC, + 0x09, + 0x8E, + 0xBD, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderKnownFolderSyncInfoSourceFactory + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0x03, + 0xEE, + 0xAA, + 0xF6, + 0xA7, + 0xBE, + 0x50, + 0xA9, + 0xB0, + 0x8E, + 0x82, + 0xD0, + 0xC8, + 0x10, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderKnownFolderSyncRequestArgs + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xD5, + 0xA6, + 0xED, + 0xE8, + 0xB4, + 0x2F, + 0x54, + 0xAB, + 0x8D, + 0xF3, + 0x61, + 0x3F, + 0x25, + 0x0A, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderMoreInfoUI + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xE5, + 0x38, + 0xEF, + 0xCB, + 0xA7, + 0x7D, + 0x5E, + 0x9B, + 0x5E, + 0x22, + 0x74, + 0x98, + 0x42, + 0x69, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderPropertyCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x2F, + 0x8D, + 0x65, + 0xB7, + 0x63, + 0x67, + 0x45, + 0xAC, + 0xF9, + 0x51, + 0xAB, + 0xE3, + 0x01, + 0xDD, + 0xA5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderQuotaUI + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x95, + 0x62, + 0xBA, + 0x2E, + 0x31, + 0x4F, + 0x54, + 0x9F, + 0xD5, + 0x1F, + 0x81, + 0xB2, + 0x1F, + 0x36, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderStatusUI + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xA7, + 0xB6, + 0xD6, + 0x8D, + 0x19, + 0x80, + 0x5B, + 0x97, + 0x7F, + 0x5F, + 0xF7, + 0x3D, + 0xA3, + 0x31, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderStatusUISource + { + get + { + ReadOnlySpan data = + [ + 0x49, + 0xC2, + 0x06, + 0xA3, + 0x66, + 0x3D, + 0x70, + 0x5E, + 0x90, + 0x07, + 0xE4, + 0x3D, + 0xF9, + 0x60, + 0x51, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderStatusUISourceFactory + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x6B, + 0xE4, + 0x12, + 0x5A, + 0x4E, + 0xD1, + 0x58, + 0xA6, + 0x2F, + 0x03, + 0x76, + 0xE8, + 0xEE, + 0x7D, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderSyncRootInfo + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0x05, + 0x13, + 0x7C, + 0xF9, + 0x99, + 0xAC, + 0x41, + 0x89, + 0x04, + 0xAB, + 0x05, + 0x5D, + 0x65, + 0x49, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderSyncRootInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xB0, + 0x51, + 0xCF, + 0xF1, + 0x7C, + 0x66, + 0x51, + 0xBD, + 0xBA, + 0xEF, + 0xD9, + 0x5F, + 0x52, + 0x9E, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderSyncRootInfo3 + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x66, + 0x7A, + 0x50, + 0xF6, + 0xBE, + 0xFD, + 0x56, + 0x85, + 0x5E, + 0x75, + 0xAC, + 0xE2, + 0xE4, + 0x5C, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderSyncRootManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0xFB, + 0x99, + 0x3E, + 0xE3, + 0x8F, + 0x40, + 0x4B, + 0xAB, + 0xC7, + 0xF6, + 0xFC, + 0x3D, + 0x74, + 0xC9, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderSyncRootManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0xCF, + 0xB6, + 0xEF, + 0x74, + 0x13, + 0x4E, + 0x54, + 0x9D, + 0xF1, + 0x55, + 0x98, + 0xD2, + 0xE9, + 0xCF, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderUICommand + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0x07, + 0x3E, + 0x0C, + 0x46, + 0xD8, + 0x8F, + 0x56, + 0x94, + 0x84, + 0x10, + 0x5C, + 0xC5, + 0x7B, + 0x50, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProviderUriSource + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x06, + 0x98, + 0xB2, + 0xE0, + 0x8B, + 0x62, + 0x49, + 0x8B, + 0xB6, + 0x0D, + 0x4C, + 0x2E, + 0x14, + 0xD4, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage.search/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage.search/IID.Manual.cs new file mode 100644 index 0000000000..651694f407 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage.search/IID.Manual.cs @@ -0,0 +1,472 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.search.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IContentIndexer + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x7F, + 0x76, + 0xB1, + 0x98, + 0xF6, + 0x82, + 0x49, + 0xB0, + 0x5F, + 0x3A, + 0x6E, + 0x8C, + 0xAB, + 0x01, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentIndexerQuery + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0xB0, + 0xE3, + 0x70, + 0xFC, + 0x4B, + 0x8A, + 0x42, + 0x88, + 0x89, + 0xCC, + 0x51, + 0xDA, + 0x9A, + 0x7B, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentIndexerQueryOperations + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0x3E, + 0x82, + 0x28, + 0x86, + 0x47, + 0xF1, + 0x42, + 0x97, + 0x30, + 0x79, + 0x2B, + 0x35, + 0x66, + 0xB1, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentIndexerStatics + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x83, + 0x48, + 0x8C, + 0x7E, + 0xB3, + 0x60, + 0x4C, + 0x9B, + 0xA8, + 0xB7, + 0x60, + 0xFD, + 0xA3, + 0xE5, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIndexableContent + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xA0, + 0xF1, + 0xCC, + 0xB5, + 0xD4, + 0x3A, + 0x48, + 0xB0, + 0x6E, + 0xE0, + 0xDB, + 0x1E, + 0xC4, + 0x20, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IQueryOptions + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x46, + 0x5E, + 0x1E, + 0x45, + 0x0F, + 0x38, + 0x48, + 0xA8, + 0xE9, + 0xD0, + 0x47, + 0x9D, + 0x44, + 0x6C, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IQueryOptionsFactory + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x1F, + 0x2E, + 0x03, + 0xC1, + 0xA9, + 0x71, + 0x4E, + 0x80, + 0x11, + 0x0D, + 0xEE, + 0x9D, + 0x48, + 0x11, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IQueryOptionsWithProviderFilter + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x10, + 0x9D, + 0x5B, + 0xC4, + 0x15, + 0xDD, + 0x44, + 0xB8, + 0x9A, + 0x47, + 0xA5, + 0x9B, + 0x7D, + 0x7C, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFileQueryResult + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xA4, + 0xFD, + 0x52, + 0xAA, + 0x2B, + 0x2C, + 0x41, + 0xB2, + 0x9F, + 0xD4, + 0xB1, + 0x77, + 0x8E, + 0xFA, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFileQueryResult2 + { + get + { + ReadOnlySpan data = + [ + 0xDD, + 0xB9, + 0x5D, + 0x4E, + 0x41, + 0x71, + 0xC4, + 0x46, + 0x8B, + 0xE3, + 0xE9, + 0xDC, + 0x9E, + 0x27, + 0x27, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolderQueryOperations + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0xCC, + 0x43, + 0xCB, + 0x6B, + 0x44, + 0x4F, + 0x4A, + 0xBE, + 0x97, + 0x75, + 0x77, + 0x71, + 0xBE, + 0x52, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolderQueryResult + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0xC9, + 0x54, + 0x66, + 0x66, + 0x7D, + 0xFA, + 0x46, + 0xAE, + 0xCF, + 0xE4, + 0xA4, + 0xBA, + 0xA9, + 0x3A, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItemQueryResult + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x80, + 0x94, + 0xE8, + 0x58, + 0x9D, + 0xB8, + 0x47, + 0xB2, + 0xB2, + 0x41, + 0xB0, + 0x7F, + 0x47, + 0x95, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeTrackerTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xA3, + 0xC7, + 0x1D, + 0xA3, + 0xB7, + 0xF2, + 0x4D, + 0x9D, + 0x61, + 0xEB, + 0xA8, + 0x5A, + 0x03, + 0x43, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryContentChangedTriggerDetails + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x19, + 0x37, + 0x2A, + 0xBF, + 0xAB, + 0x1D, + 0x4E, + 0x8A, + 0xA5, + 0x63, + 0x85, + 0xD8, + 0x88, + 0x47, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageQueryResultBase + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xD7, + 0x97, + 0xC2, + 0x53, + 0x73, + 0xAB, + 0x47, + 0xBA, + 0x58, + 0x8C, + 0x61, + 0x42, + 0x5D, + 0xC5, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IValueAndLanguage + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x48, + 0x91, + 0xB9, + 0xEE, + 0xA1, + 0xC4, + 0x4B, + 0x92, + 0xA5, + 0x46, + 0x69, + 0x68, + 0xE3, + 0x04, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage.streams/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage.streams/IID.Manual.cs new file mode 100644 index 0000000000..1ce96844c2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage.streams/IID.Manual.cs @@ -0,0 +1,526 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.streams.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBuffer + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x0F, + 0x5A, + 0x90, + 0x53, + 0xBC, + 0xDF, + 0x11, + 0x8C, + 0x49, + 0x00, + 0x1E, + 0x4F, + 0xC6, + 0x86, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBufferFactory + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x91, + 0xAF, + 0x71, + 0x0F, + 0xC1, + 0x4B, + 0x48, + 0xBC, + 0x50, + 0x14, + 0xBC, + 0x62, + 0x3B, + 0x3A, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBufferStatics + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0xE6, + 0x01, + 0xE9, + 0x16, + 0xD7, + 0x5A, + 0x47, + 0xA9, + 0x0A, + 0xAF, + 0x72, + 0x29, + 0xB1, + 0xE7, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContentTypeProvider + { + get + { + ReadOnlySpan data = + [ + 0xA5, + 0x98, + 0xD0, + 0x97, + 0x99, + 0x3B, + 0xE9, + 0x4D, + 0x88, + 0xA5, + 0xE1, + 0x1D, + 0x2F, + 0x50, + 0xC7, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataReader + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x00, + 0xB5, + 0xE2, + 0xC1, + 0xB4, + 0x14, + 0x43, + 0xA4, + 0xB8, + 0xFB, + 0x81, + 0x3A, + 0x2F, + 0x27, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataReaderFactory + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x78, + 0x52, + 0xD7, + 0xDA, + 0x57, + 0x15, + 0x4E, + 0x91, + 0x4C, + 0x06, + 0x80, + 0x66, + 0x99, + 0xA0, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataReaderStatics + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0xBF, + 0xFC, + 0x11, + 0x3A, + 0xF9, + 0x1B, + 0x47, + 0xB1, + 0x21, + 0xF3, + 0x79, + 0xE3, + 0x49, + 0x31, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataWriter + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0x92, + 0xB8, + 0x64, + 0x41, + 0xD3, + 0x22, + 0x49, + 0xB3, + 0x8A, + 0xDD, + 0x4A, + 0xF8, + 0x80, + 0x8C, + 0x4E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDataWriterFactory + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x67, + 0x8C, + 0x33, + 0x84, + 0x8B, + 0x2B, + 0x4C, + 0x9C, + 0x50, + 0x7B, + 0x87, + 0x67, + 0x84, + 0x7A, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileRandomAccessStreamStatics + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x01, + 0x55, + 0x73, + 0x57, + 0x3B, + 0x5D, + 0x4B, + 0x83, + 0x45, + 0x55, + 0x4D, + 0x2F, + 0xC6, + 0x21, + 0xF0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputStream + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x0F, + 0x5A, + 0x90, + 0x53, + 0xBC, + 0xDF, + 0x11, + 0x8C, + 0x49, + 0x00, + 0x1E, + 0x4F, + 0xC6, + 0x86, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputStreamReference + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x9D, + 0x92, + 0x43, + 0xC9, + 0x5E, + 0x5A, + 0x4B, + 0x91, + 0x9C, + 0x42, + 0x05, + 0xB0, + 0xC8, + 0x04, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IOutputStream + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0x0F, + 0x5A, + 0x90, + 0x53, + 0xBC, + 0xDF, + 0x11, + 0x8C, + 0x49, + 0x00, + 0x1E, + 0x4F, + 0xC6, + 0x86, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPropertySetSerializer + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0xBF, + 0x8E, + 0x6E, + 0x3D, + 0xEF, + 0x76, + 0x43, + 0xB2, + 0x0E, + 0x5B, + 0xE6, + 0x38, + 0xAE, + 0xAC, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRandomAccessStream + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0x0F, + 0x5A, + 0x90, + 0x53, + 0xBC, + 0xDF, + 0x11, + 0x8C, + 0x49, + 0x00, + 0x1E, + 0x4F, + 0xC6, + 0x86, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRandomAccessStreamReference + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x31, + 0xEE, + 0x33, + 0xD6, + 0x1D, + 0x3A, + 0x4E, + 0x80, + 0x67, + 0xD1, + 0xC1, + 0x62, + 0xE8, + 0x64, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRandomAccessStreamReferenceStatics + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x09, + 0x73, + 0x85, + 0xBF, + 0x3F, + 0x7D, + 0x4E, + 0x98, + 0x6F, + 0xEF, + 0x3B, + 0x1A, + 0x07, + 0xA9, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRandomAccessStreamStatics + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0xED, + 0x4C, + 0x52, + 0x29, + 0x6E, + 0xE5, + 0x4C, + 0x95, + 0x73, + 0x6B, + 0x75, + 0x3D, + 0xB6, + 0x6C, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRandomAccessStreamWithContentType + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x48, + 0x25, + 0xCC, + 0x3D, + 0x4B, + 0x8F, + 0x43, + 0x92, + 0x32, + 0x10, + 0xC7, + 0x6B, + 0xC7, + 0xE0, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.storage/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.storage/IID.Manual.cs new file mode 100644 index 0000000000..b88a0abd13 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.storage/IID.Manual.cs @@ -0,0 +1,1849 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.storage.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IApplicationDataSetVersionHandler + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0x91, + 0x57, + 0xA0, + 0x9F, + 0xCC, + 0x87, + 0x46, + 0xAC, + 0xAB, + 0xA3, + 0x64, + 0xFD, + 0x78, + 0x54, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamedFileDataRequestedHandler + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0xA8, + 0xF6, + 0xFE, + 0xE1, + 0x2F, + 0x07, + 0x4D, + 0xA3, + 0x5B, + 0xB7, + 0x7C, + 0x50, + 0xB5, + 0xF4, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDataPaths + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0xD6, + 0x01, + 0x73, + 0xA2, + 0x79, + 0xC9, + 0x48, + 0x9E, + 0xC0, + 0x3F, + 0xDA, + 0x09, + 0x2F, + 0x79, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDataPathsStatics + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x2A, + 0xEB, + 0xD8, + 0xD9, + 0xA9, + 0x14, + 0x4B, + 0xB9, + 0x99, + 0xE3, + 0x92, + 0x13, + 0x79, + 0xD9, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationData + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x6F, + 0xDA, + 0xC3, + 0x44, + 0xB7, + 0x45, + 0x4B, + 0xB0, + 0xB8, + 0x22, + 0x3A, + 0x09, + 0x38, + 0xD0, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationData2 + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xCD, + 0x65, + 0x9E, + 0xA3, + 0x0B, + 0x32, + 0x4E, + 0xBE, + 0x29, + 0xB0, + 0x2D, + 0xE6, + 0x60, + 0x76, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationData3 + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x2C, + 0x22, + 0xDC, + 0x72, + 0x27, + 0x1D, + 0x4C, + 0xAA, + 0x2C, + 0xC9, + 0xF7, + 0x43, + 0xAD, + 0xE8, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationDataContainer + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xFD, + 0xAE, + 0xC5, + 0x67, + 0xF4, + 0xBA, + 0x40, + 0x85, + 0x66, + 0xAB, + 0x64, + 0x0A, + 0x44, + 0x1E, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationDataStatics + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0x14, + 0x12, + 0x56, + 0x43, + 0xE8, + 0xE3, + 0x45, + 0x94, + 0xD8, + 0x06, + 0x16, + 0x9E, + 0x3C, + 0x8E, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationDataStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x62, + 0x60, + 0xCD, + 0x49, + 0xCF, + 0xA4, + 0x40, + 0xA4, + 0x7C, + 0xC7, + 0xF0, + 0xDB, + 0xBA, + 0x81, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICachedFileManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x22, + 0xFC, + 0x8F, + 0x82, + 0xE7, + 0x5D, + 0x49, + 0xB6, + 0x14, + 0x65, + 0x4C, + 0x4F, + 0x0B, + 0x23, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadsFolderStatics + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x2E, + 0x86, + 0x27, + 0x4E, + 0x40, + 0xDF, + 0x47, + 0xA1, + 0xE2, + 0xE3, + 0x73, + 0x08, + 0xBE, + 0x7B, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDownloadsFolderStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x45, + 0x30, + 0xE9, + 0xF8, + 0x8E, + 0x8E, + 0x4F, + 0x8D, + 0x15, + 0xAC, + 0x0E, + 0x26, + 0x5F, + 0x39, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFileIOStatics + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0x11, + 0x74, + 0x88, + 0x54, + 0x7F, + 0x32, + 0x47, + 0xA5, + 0xF0, + 0x5E, + 0x43, + 0xE3, + 0xB8, + 0xC2, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersCameraRollStatics + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x5E, + 0x11, + 0x5D, + 0xE8, + 0x27, + 0x2F, + 0x49, + 0xB8, + 0xE5, + 0x2F, + 0x90, + 0x89, + 0x6C, + 0xD4, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersPlaylistsStatics + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0xEC, + 0xD5, + 0xDA, + 0x6F, + 0x30, + 0x6A, + 0x4D, + 0xB4, + 0x96, + 0x46, + 0xBA, + 0x8E, + 0xB1, + 0x06, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersSavedPicturesStatics + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x93, + 0x5C, + 0x05, + 0x3D, + 0x25, + 0x7C, + 0x46, + 0xB6, + 0xCA, + 0xA9, + 0x7D, + 0xA1, + 0xE9, + 0xA1, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersStatics + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x75, + 0x2A, + 0x5A, + 0x02, + 0x48, + 0x2D, + 0x45, + 0x9A, + 0xD9, + 0x43, + 0x51, + 0xAD, + 0xA7, + 0xEC, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0xD0, + 0x4B, + 0x19, + 0x6E, + 0xCF, + 0x07, + 0x4D, + 0x9D, + 0x53, + 0xE9, + 0x16, + 0x3A, + 0x25, + 0x36, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x43, + 0x19, + 0xC5, + 0x42, + 0x97, + 0xD5, + 0x4E, + 0x82, + 0x3D, + 0xFC, + 0x14, + 0x01, + 0x14, + 0x87, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownFoldersStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0xE6, + 0x22, + 0x17, + 0xF9, + 0x9F, + 0x21, + 0x4B, + 0xBE, + 0xD5, + 0x90, + 0xEC, + 0xB1, + 0x3A, + 0x19, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPathIOStatics + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0x37, + 0x2F, + 0x0F, + 0xC7, + 0x8E, + 0x81, + 0x43, + 0x92, + 0x2B, + 0x8F, + 0x6C, + 0x07, + 0xD2, + 0x88, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISetVersionDeferral + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x08, + 0x35, + 0x03, + 0x1A, + 0x78, + 0x7A, + 0x43, + 0xB0, + 0x78, + 0x3F, + 0x32, + 0xBA, + 0xDC, + 0xFE, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISetVersionRequest + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x6B, + 0xC7, + 0xB9, + 0x56, + 0x10, + 0x69, + 0x4E, + 0x83, + 0x30, + 0x16, + 0x26, + 0x19, + 0x95, + 0x6F, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFile + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x61, + 0x3F, + 0xFA, + 0x14, + 0x42, + 0x8C, + 0x42, + 0xA6, + 0x4C, + 0x14, + 0xC9, + 0xAC, + 0x73, + 0x15, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFile2 + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x4B, + 0x4E, + 0x95, + 0x77, + 0x0A, + 0xFB, + 0x42, + 0xB7, + 0x77, + 0xC2, + 0xED, + 0x58, + 0xA5, + 0x2E, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFilePropertiesWithAvailability + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xBE, + 0xCB, + 0xAF, + 0x2B, + 0x58, + 0x33, + 0x41, + 0x96, + 0x48, + 0xE4, + 0x4C, + 0xA4, + 0x6E, + 0xE4, + 0x91, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFileStatics + { + get + { + ReadOnlySpan data = + [ + 0x10, + 0xC7, + 0x84, + 0x59, + 0xF2, + 0xDA, + 0xC8, + 0x43, + 0x8B, + 0xB4, + 0xA4, + 0xD3, + 0xEA, + 0xCF, + 0xD0, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFileStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0xA7, + 0x76, + 0x5C, + 0x2E, + 0x21, + 0xF9, + 0x4A, + 0x8F, + 0x04, + 0x74, + 0x0C, + 0xAE, + 0x10, + 0x89, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolder + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0xCB, + 0xD1, + 0x72, + 0xEF, + 0xB3, + 0x75, + 0x4F, + 0xA8, + 0x0B, + 0x6F, + 0xD9, + 0xDA, + 0xE2, + 0x94, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolder2 + { + get + { + ReadOnlySpan data = + [ + 0xB9, + 0xE8, + 0x27, + 0xE8, + 0xD9, + 0x08, + 0x8E, + 0x4A, + 0xA0, + 0xAC, + 0xFE, + 0x5E, + 0xD3, + 0xCB, + 0xBB, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolder3 + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0x78, + 0x61, + 0x9F, + 0xE1, + 0xBD, + 0x24, + 0x41, + 0xAE, + 0xB3, + 0xB0, + 0x6A, + 0xD9, + 0x6F, + 0x98, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolderStatics + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0x27, + 0xF3, + 0x08, + 0xD5, + 0x85, + 0xB9, + 0x48, + 0xAE, + 0xE9, + 0x28, + 0x51, + 0x1E, + 0x33, + 0x9F, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageFolderStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x6D, + 0x65, + 0xB4, + 0xD2, + 0x71, + 0x7D, + 0x46, + 0x8B, + 0x29, + 0x37, + 0x1F, + 0x0F, + 0x62, + 0xBF, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItem + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0xA9, + 0x07, + 0x42, + 0x2F, + 0xCA, + 0xF7, + 0x42, + 0xBD, + 0xE8, + 0x8B, + 0x10, + 0x45, + 0x7A, + 0x7F, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItem2 + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x26, + 0xF9, + 0x53, + 0x3C, + 0x08, + 0x83, + 0x42, + 0xB4, + 0x5B, + 0x81, + 0xC0, + 0x07, + 0x23, + 0x7E, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItemProperties + { + get + { + ReadOnlySpan data = + [ + 0x78, + 0x44, + 0x66, + 0x86, + 0x29, + 0x80, + 0xFE, + 0x46, + 0xA7, + 0x89, + 0x1C, + 0x2F, + 0x3E, + 0x2F, + 0xFB, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItemProperties2 + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xA9, + 0x86, + 0x8E, + 0xB9, + 0x04, + 0xD2, + 0x4B, + 0x92, + 0x9D, + 0xFE, + 0xF3, + 0xF7, + 0x16, + 0x21, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageItemPropertiesWithProvider + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xF3, + 0x1B, + 0x86, + 0x68, + 0x63, + 0xEE, + 0x4D, + 0xB4, + 0x0E, + 0x74, + 0x68, + 0x4A, + 0x5C, + 0xE7, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibrary + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x71, + 0xDD, + 0x1E, + 0x5E, + 0x0E, + 0x6C, + 0x4D, + 0xB5, + 0xE8, + 0x93, + 0x18, + 0x98, + 0x3D, + 0x6A, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibrary2 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xE3, + 0x0C, + 0x5B, + 0xB3, + 0xFC, + 0x31, + 0x40, + 0xAF, + 0xB0, + 0xA6, + 0x8D, + 0x7B, + 0xD4, + 0x45, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibrary3 + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0x12, + 0x28, + 0x8A, + 0x54, + 0x21, + 0x01, + 0x42, + 0x81, + 0x13, + 0xD2, + 0xC0, + 0x5C, + 0xE1, + 0xAD, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChange + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0x0B, + 0x98, + 0x00, + 0xE2, + 0x2B, + 0x09, + 0x49, + 0xAA, + 0x48, + 0x15, + 0x9F, + 0x52, + 0x03, + 0xA5, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeReader + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0xBC, + 0x05, + 0xF2, + 0xA2, + 0xFC, + 0xF9, + 0x41, + 0x89, + 0x54, + 0xEE, + 0x2E, + 0x99, + 0x1E, + 0xB9, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeReader2 + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x86, + 0xF4, + 0xAB, + 0xCC, + 0xFB, + 0x4F, + 0x4A, + 0x99, + 0x9E, + 0xE7, + 0xAB, + 0x7C, + 0x64, + 0x6D, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeTracker + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x73, + 0x15, + 0x9E, + 0x73, + 0x60, + 0xF6, + 0x44, + 0x96, + 0x81, + 0x74, + 0x92, + 0xD1, + 0x28, + 0x6C, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeTracker2 + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0x1C, + 0x05, + 0xCD, + 0x9F, + 0x0F, + 0xF9, + 0x42, + 0x8F, + 0xB3, + 0x15, + 0x8D, + 0x82, + 0xE1, + 0x38, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryChangeTrackerOptions + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0xBC, + 0x52, + 0xBB, + 0x6D, + 0x1A, + 0xC0, + 0x59, + 0xAD, + 0x2A, + 0x82, + 0x3A, + 0x20, + 0x53, + 0x24, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryLastChangeId + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x82, + 0x81, + 0x52, + 0xE1, + 0xBB, + 0xBC, + 0x53, + 0x82, + 0xCA, + 0x81, + 0xCC, + 0x7F, + 0x03, + 0x93, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryLastChangeIdStatics + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x91, + 0xA4, + 0x81, + 0xA3, + 0x2C, + 0x09, + 0x53, + 0xB0, + 0xD1, + 0xCF, + 0x07, + 0x88, + 0xE4, + 0x07, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryStatics + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0xA6, + 0x08, + 0x42, + 0x4A, + 0x68, + 0xC6, + 0x49, + 0x9E, + 0x59, + 0x90, + 0x12, + 0x1E, + 0xE0, + 0x50, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageLibraryStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x8D, + 0xB0, + 0xFF, + 0x75, + 0xFA, + 0x95, + 0x46, + 0xB9, + 0xD1, + 0x7F, + 0x81, + 0xF9, + 0x78, + 0x32, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProvider + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0xEE, + 0x05, + 0xE7, + 0x78, + 0xD4, + 0xD6, + 0x47, + 0xBA, + 0x46, + 0x1A, + 0x8E, + 0xBE, + 0x11, + 0x4A, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageProvider2 + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x19, + 0x0D, + 0x01, + 0x04, + 0x34, + 0x4B, + 0x41, + 0x9F, + 0xD7, + 0xCD, + 0x44, + 0x47, + 0x2E, + 0xAA, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStorageStreamTransaction + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0xF3, + 0x7C, + 0xF6, + 0x3D, + 0xA5, + 0x94, + 0x4D, + 0xAE, + 0x2C, + 0x67, + 0x23, + 0x2D, + 0x93, + 0xAC, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStreamedFileDataRequest + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xFC, + 0x73, + 0x16, + 0xBD, + 0xDA, + 0x50, + 0x4D, + 0xBE, + 0xEE, + 0x18, + 0x0B, + 0x8A, + 0x81, + 0x91, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemAudioProperties + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x38, + 0x8F, + 0x3F, + 0x8C, + 0x30, + 0xE1, + 0x47, + 0x92, + 0x4D, + 0x86, + 0x45, + 0x34, + 0x8E, + 0x5D, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemDataPaths + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xBF, + 0x2A, + 0xE3, + 0xFA, + 0xD8, + 0xEC, + 0x45, + 0xA9, + 0x42, + 0xD2, + 0xE2, + 0x6F, + 0xB6, + 0x0B, + 0xA5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemDataPathsStatics + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x6F, + 0xF9, + 0xE0, + 0x20, + 0x99, + 0xCA, + 0x4B, + 0xB3, + 0x79, + 0xF9, + 0x6F, + 0xDF, + 0x7C, + 0xAA, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemGPSProperties + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x6E, + 0xF4, + 0xC0, + 0x74, + 0xC1, + 0x1A, + 0x48, + 0xBC, + 0x25, + 0x92, + 0x19, + 0x86, + 0xF6, + 0xA6, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemImageProperties + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0x2E, + 0x1B, + 0x01, + 0x39, + 0x8B, + 0x08, + 0x43, + 0xBE, + 0xA1, + 0xE8, + 0xAA, + 0x61, + 0xE4, + 0x78, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMediaProperties + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0x33, + 0x2B, + 0xA4, + 0x15, + 0x84, + 0xDC, + 0x40, + 0x8C, + 0x44, + 0x98, + 0x36, + 0x1D, + 0x23, + 0x54, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMusicProperties + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x88, + 0x79, + 0xB4, + 0xAF, + 0x67, + 0xC3, + 0x4B, + 0x8D, + 0x39, + 0x5B, + 0x89, + 0x02, + 0x20, + 0x26, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemPhotoProperties + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0xFC, + 0x34, + 0x47, + 0x21, + 0xAB, + 0x24, + 0x44, + 0xB7, + 0x35, + 0xF4, + 0x35, + 0x3A, + 0x56, + 0xC8, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemProperties + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x71, + 0x7A, + 0x91, + 0xF3, + 0x85, + 0xD1, + 0x4D, + 0xB0, + 0x01, + 0xA5, + 0x0B, + 0xFD, + 0x21, + 0xC8, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemVideoProperties + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0xF7, + 0x40, + 0x20, + 0xF8, + 0x67, + 0x22, + 0x43, + 0x9B, + 0x80, + 0x4F, + 0xA9, + 0xFE, + 0xFB, + 0x83, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataPaths + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x39, + 0xC5, + 0xF9, + 0xC4, + 0xAB, + 0xFF, + 0x46, + 0x8A, + 0x2B, + 0xDC, + 0x9D, + 0x7F, + 0xA6, + 0xE5, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDataPathsStatics + { + get + { + ReadOnlySpan data = + [ + 0xEF, + 0x9D, + 0xB2, + 0x01, + 0x62, + 0xE0, + 0xA1, + 0x48, + 0x8B, + 0x0C, + 0xF2, + 0xC7, + 0xA9, + 0xCA, + 0x56, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.system.diagnostics/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.system.diagnostics/IID.Manual.cs new file mode 100644 index 0000000000..a5a9db6353 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.system.diagnostics/IID.Manual.cs @@ -0,0 +1,580 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.system.diagnostics.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDiagnosticActionResult + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0xA2, + 0x65, + 0xC2, + 0x3B, + 0xE7, + 0x97, + 0x40, + 0xB2, + 0x8F, + 0x34, + 0x42, + 0xF0, + 0x3D, + 0xD8, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDiagnosticInvoker + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x27, + 0x7B, + 0x18, + 0xE3, + 0x02, + 0x86, + 0x4F, + 0x84, + 0xFC, + 0xFD, + 0xD8, + 0x92, + 0xB5, + 0x94, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDiagnosticInvoker2 + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x94, + 0xBF, + 0xE3, + 0x5A, + 0x15, + 0x52, + 0x4B, + 0xA8, + 0xEC, + 0x07, + 0x0C, + 0x44, + 0xF9, + 0x50, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDiagnosticInvokerStatics + { + get + { + ReadOnlySpan data = + [ + 0xDE, + 0xD8, + 0xFA, + 0x5C, + 0x5C, + 0xF1, + 0x54, + 0x45, + 0xA8, + 0x13, + 0xC1, + 0x13, + 0xC3, + 0x88, + 0x1B, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessCpuUsage + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x24, + 0xBB, + 0x0B, + 0xBF, + 0xC8, + 0x3A, + 0x42, + 0xA8, + 0x10, + 0xB5, + 0x59, + 0xAE, + 0x43, + 0x54, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessCpuUsageReport + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0x9C, + 0x6D, + 0x8A, + 0x87, + 0x39, + 0x2F, + 0x4E, + 0xA1, + 0x19, + 0x6B, + 0x5F, + 0xA2, + 0x14, + 0xF1, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessDiagnosticInfo + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xB0, + 0x30, + 0xE8, + 0x0E, + 0x30, + 0xE6, + 0x4E, + 0xA0, + 0xAB, + 0x5B, + 0x5F, + 0x52, + 0x31, + 0xB4, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessDiagnosticInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0xCB, + 0x58, + 0x95, + 0x0B, + 0x3D, + 0xEC, + 0x49, + 0xAB, + 0x70, + 0x4F, + 0x7A, + 0x11, + 0x28, + 0x05, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessDiagnosticInfoStatics + { + get + { + ReadOnlySpan data = + [ + 0x60, + 0xB2, + 0x41, + 0x2F, + 0x9F, + 0xB4, + 0x8C, + 0x42, + 0xAA, + 0x0E, + 0x84, + 0x74, + 0x4F, + 0x49, + 0xCA, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessDiagnosticInfoStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0x98, + 0x86, + 0x4A, + 0x99, + 0x98, + 0x44, + 0x4A, + 0xA2, + 0x9B, + 0x09, + 0x16, + 0x63, + 0xBE, + 0x09, + 0xB6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessDiskUsage + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x8B, + 0xD7, + 0x5A, + 0x51, + 0x7E, + 0x53, + 0x4E, + 0xBF, + 0xAA, + 0x5A, + 0x6E, + 0xE1, + 0xAA, + 0xBB, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessDiskUsageReport + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x27, + 0x16, + 0x40, + 0x5D, + 0x53, + 0x1F, + 0x4C, + 0x81, + 0xB8, + 0xDA, + 0x54, + 0xE1, + 0xBE, + 0x63, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessMemoryUsage + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x22, + 0x0B, + 0xF5, + 0x7C, + 0x82, + 0xB7, + 0x42, + 0xB0, + 0x7C, + 0x0E, + 0x32, + 0x62, + 0x7E, + 0x6B, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessMemoryUsageReport + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0x7C, + 0xC7, + 0xC2, + 0x51, + 0x19, + 0x85, + 0x46, + 0x85, + 0x32, + 0x7E, + 0x74, + 0x9E, + 0xCF, + 0x8E, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemCpuUsage + { + get + { + ReadOnlySpan data = + [ + 0xAC, + 0xB3, + 0x37, + 0x60, + 0xD6, + 0x02, + 0x34, + 0x42, + 0x83, + 0x62, + 0x7F, + 0xE3, + 0xAD, + 0xC8, + 0x1F, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemCpuUsageReport + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0xD0, + 0x26, + 0x2C, + 0x83, + 0x94, + 0x62, + 0x4F, + 0xAB, + 0x57, + 0x82, + 0xB2, + 0x9D, + 0x97, + 0x19, + 0xB8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemDiagnosticInfo + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0xFE, + 0x90, + 0xA2, + 0xF3, + 0xDF, + 0x7F, + 0x40, + 0x9A, + 0x1B, + 0x0B, + 0x2B, + 0x31, + 0x7C, + 0xA8, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemDiagnosticInfoStatics + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0xAC, + 0x04, + 0xD4, + 0x7D, + 0xFC, + 0xF0, + 0x45, + 0x9A, + 0x3F, + 0x39, + 0x20, + 0x3A, + 0xED, + 0x9F, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemDiagnosticInfoStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xD1, + 0xDE, + 0x79, + 0xF9, + 0x6A, + 0xA9, + 0x4D, + 0xA4, + 0x22, + 0x15, + 0xF7, + 0x32, + 0x55, + 0xB3, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMemoryUsage + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0xC5, + 0xFF, + 0x17, + 0x02, + 0x17, + 0xCF, + 0x49, + 0xAA, + 0x27, + 0x2F, + 0x0A, + 0x32, + 0x59, + 0x14, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemMemoryUsageReport + { + get + { + ReadOnlySpan data = + [ + 0x87, + 0x3C, + 0x66, + 0x38, + 0x9F, + 0x2A, + 0x3A, + 0x40, + 0xBD, + 0x19, + 0x2C, + 0xF3, + 0xE8, + 0x16, + 0x95, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.system.power/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.system.power/IID.Manual.cs new file mode 100644 index 0000000000..a583c590a0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.system.power/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.system.power.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IBackgroundEnergyManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0x1D, + 0x16, + 0xB3, + 0x80, + 0x11, + 0x76, + 0x43, + 0x96, + 0xE1, + 0x40, + 0x95, + 0x56, + 0x81, + 0x47, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IForegroundEnergyManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x68, + 0xF8, + 0x9F, + 0x77, + 0xE6, + 0x14, + 0x48, + 0x9A, + 0x20, + 0x53, + 0x37, + 0xCA, + 0x73, + 0x2B, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPowerManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x82, + 0x94, + 0x13, + 0xCE, + 0x62, + 0x64, + 0x43, + 0x98, + 0xD5, + 0xAA, + 0x28, + 0xC7, + 0xFB, + 0xD1, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.system.remotesystems/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.system.remotesystems/IID.Manual.cs new file mode 100644 index 0000000000..6929767bcc --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.system.remotesystems/IID.Manual.cs @@ -0,0 +1,1849 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.system.remotesystems.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IKnownRemoteSystemCapabilitiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0xE3, + 0x08, + 0x81, + 0x8A, + 0x7F, + 0xE4, + 0x44, + 0x92, + 0xCD, + 0x03, + 0xB6, + 0x46, + 0x9B, + 0x94, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystem + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0x38, + 0x58, + 0xED, + 0x10, + 0x1E, + 0x8C, + 0x4A, + 0xB4, + 0xA6, + 0x4E, + 0x5F, + 0xD6, + 0xF9, + 0x77, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystem2 + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0xE4, + 0xDF, + 0x09, + 0x8B, + 0xFB, + 0x08, + 0x4A, + 0xA7, + 0x58, + 0x68, + 0x76, + 0x43, + 0x5D, + 0x76, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystem3 + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0xB4, + 0xB4, + 0x72, + 0xC6, + 0xB7, + 0xBE, + 0x40, + 0x83, + 0x1B, + 0x73, + 0x56, + 0x2F, + 0x12, + 0xFF, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystem4 + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0xFF, + 0x64, + 0xF1, + 0x87, + 0xB9, + 0xA5, + 0x4C, + 0x99, + 0x26, + 0xFA, + 0x04, + 0x38, + 0xBE, + 0x62, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystem5 + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xD7, + 0x2A, + 0xEB, + 0xE2, + 0xE5, + 0xE2, + 0x4A, + 0xA7, + 0xA7, + 0xA1, + 0x09, + 0x7A, + 0x09, + 0x8E, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystem6 + { + get + { + ReadOnlySpan data = + [ + 0x42, + 0xA9, + 0xCD, + 0xD4, + 0x27, + 0xC0, + 0x3E, + 0x53, + 0x93, + 0x84, + 0x3A, + 0x19, + 0xB4, + 0xF7, + 0xEE, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemAddedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x0F, + 0x56, + 0x39, + 0x8F, + 0x34, + 0xE5, + 0x97, + 0x46, + 0x88, + 0x36, + 0x7A, + 0xBE, + 0xA1, + 0x51, + 0x51, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemApp + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0xBC, + 0xE5, + 0x80, + 0x4D, + 0xD5, + 0xB1, + 0x41, + 0x9B, + 0x16, + 0x68, + 0x10, + 0xA8, + 0x71, + 0xED, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemApp2 + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0xBF, + 0x69, + 0x63, + 0x96, + 0x0A, + 0x7A, + 0x57, + 0x8F, + 0xF6, + 0xC3, + 0x59, + 0x04, + 0xDF, + 0xA8, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemAppRegistration + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0x47, + 0x79, + 0xB4, + 0x35, + 0x70, + 0x5A, + 0x4A, + 0xB8, + 0xDF, + 0x96, + 0x2D, + 0x8F, + 0x84, + 0x31, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemAppRegistrationStatics + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0x98, + 0xB9, + 0x01, + 0xD2, + 0xCF, + 0x3F, + 0x45, + 0xAE, + 0x25, + 0xC2, + 0x53, + 0x9F, + 0x08, + 0x6A, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemAuthorizationKindFilter + { + get + { + ReadOnlySpan data = + [ + 0x8E, + 0xDE, + 0x0D, + 0x6B, + 0xD0, + 0x04, + 0xF4, + 0x40, + 0xA2, + 0x7F, + 0xC2, + 0xAC, + 0xBB, + 0xD6, + 0xB7, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemAuthorizationKindFilterFactory + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0xDF, + 0x65, + 0xAD, + 0x6A, + 0xB6, + 0xA4, + 0x45, + 0x81, + 0x77, + 0x8C, + 0xAE, + 0xD7, + 0x5D, + 0x9E, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionInfo + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x8B, + 0x27, + 0x23, + 0x09, + 0x0D, + 0xCB, + 0x52, + 0x9C, + 0x6A, + 0xEE, + 0xD2, + 0x94, + 0x0B, + 0xEE, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionInfoStatics + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x1E, + 0x83, + 0xAC, + 0xC5, + 0x66, + 0xD7, + 0x56, + 0xA4, + 0xCE, + 0x70, + 0x5D, + 0x94, + 0x92, + 0x5A, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionRequest + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x41, + 0xED, + 0x84, + 0x5E, + 0x8D, + 0x72, + 0x4D, + 0x82, + 0x38, + 0x76, + 0x21, + 0x57, + 0x6C, + 0x7A, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionRequest2 + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x6D, + 0xDF, + 0x12, + 0xFC, + 0xBF, + 0x3A, + 0x48, + 0x8A, + 0xBE, + 0xD3, + 0x4A, + 0x6C, + 0x19, + 0xF9, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionRequest3 + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xC3, + 0x86, + 0xDE, + 0xCC, + 0xC9, + 0x50, + 0x5A, + 0xB8, + 0xD9, + 0xBA, + 0x7B, + 0x34, + 0xBB, + 0x8D, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionRequestFactory + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x0A, + 0x0A, + 0xAA, + 0xEB, + 0xBA, + 0x75, + 0x45, + 0xB5, + 0x30, + 0x81, + 0x0B, + 0xB9, + 0x78, + 0x63, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionRequestStatics + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x14, + 0xCA, + 0x86, + 0x14, + 0x82, + 0x5C, + 0x42, + 0x89, + 0x32, + 0xDB, + 0x49, + 0x03, + 0x2D, + 0x13, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemConnectionRequestStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x27, + 0x10, + 0x0F, + 0x46, + 0xEC, + 0x64, + 0x8E, + 0x59, + 0xA8, + 0x00, + 0x4F, + 0x2E, + 0xE5, + 0x8D, + 0xEF, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemDiscoveryTypeFilter + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x04, + 0xD9, + 0x42, + 0x5A, + 0xEE, + 0xDA, + 0x43, + 0xAC, + 0x6A, + 0x6F, + 0xEE, + 0x25, + 0x46, + 0x07, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemDiscoveryTypeFilterFactory + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xB9, + 0x9E, + 0x9F, + 0x60, + 0xC2, + 0x61, + 0x41, + 0x92, + 0xF2, + 0x9C, + 0x02, + 0x1F, + 0x23, + 0xFE, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemEnumerationCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0x3D, + 0xE8, + 0xC6, + 0x30, + 0x40, + 0x54, + 0x43, + 0xA0, + 0x60, + 0x14, + 0xF1, + 0xB2, + 0x2C, + 0x54, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemFilter + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xA9, + 0x3B, + 0x4A, + 0xEB, + 0x99, + 0xEB, + 0x45, + 0xBA, + 0x16, + 0x03, + 0x67, + 0x72, + 0x8F, + 0xF3, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemKindFilter + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0xC9, + 0xE1, + 0x38, + 0xC3, + 0x22, + 0xF6, + 0x4E, + 0x90, + 0x1A, + 0xBB, + 0xB1, + 0xC7, + 0xAA, + 0xD4, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemKindFilterFactory + { + get + { + ReadOnlySpan data = + [ + 0xEE, + 0x18, + 0xFB, + 0xA1, + 0xEA, + 0x99, + 0xBC, + 0x40, + 0x9A, + 0x39, + 0xC6, + 0x70, + 0xAA, + 0x80, + 0x4A, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemKindStatics + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x76, + 0x31, + 0xF6, + 0x14, + 0xAB, + 0xD0, + 0x41, + 0x95, + 0x53, + 0x79, + 0x6A, + 0xAD, + 0xB8, + 0x82, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemKindStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xA3, + 0xE3, + 0xB9, + 0x66, + 0x04, + 0x49, + 0x47, + 0x91, + 0xE8, + 0x65, + 0xF9, + 0xD1, + 0x9A, + 0x96, + 0xA5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x16, + 0x3D, + 0x8B, + 0x06, + 0x73, + 0xEA, + 0x49, + 0xB7, + 0xDF, + 0x67, + 0xD5, + 0x71, + 0x4C, + 0xB0, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSession + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x6A, + 0x47, + 0x69, + 0xDA, + 0x9A, + 0x0F, + 0x49, + 0x95, + 0x49, + 0xD3, + 0x1C, + 0xB1, + 0x4C, + 0x9E, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionAddedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x54, + 0xD7, + 0x85, + 0xD5, + 0x97, + 0xBC, + 0x39, + 0x4C, + 0x99, + 0xB4, + 0xBE, + 0xCA, + 0x76, + 0xE0, + 0x4C, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionController + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0x2D, + 0x8B, + 0xE4, + 0x20, + 0x68, + 0x67, + 0x48, + 0xB4, + 0x25, + 0xD8, + 0x9C, + 0x0A, + 0x3E, + 0xF7, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionControllerFactory + { + get + { + ReadOnlySpan data = + [ + 0x6B, + 0x2F, + 0xCC, + 0xBF, + 0x3D, + 0xAC, + 0x99, + 0x41, + 0x82, + 0xCD, + 0x66, + 0x70, + 0xA7, + 0x73, + 0xEF, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionCreationResult + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0x12, + 0x98, + 0xA7, + 0xDE, + 0x37, + 0x8C, + 0x44, + 0x8B, + 0x83, + 0xA3, + 0x0A, + 0xA3, + 0xC4, + 0xEA, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionDisconnectedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0xC6, + 0x0B, + 0xDE, + 0xC5, + 0x77, + 0x1C, + 0x46, + 0x82, + 0x09, + 0x7C, + 0x6C, + 0x5D, + 0x31, + 0x11, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionInfo + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0xF6, + 0x4D, + 0xFF, + 0x0A, + 0x8B, + 0x9A, + 0x4E, + 0x99, + 0x05, + 0x69, + 0xE4, + 0xB8, + 0x41, + 0xC5, + 0x88, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionInvitation + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xCC, + 0x32, + 0x3E, + 0xD7, + 0x51, + 0x66, + 0x47, + 0xA1, + 0x21, + 0x25, + 0x51, + 0x6C, + 0x3B, + 0x82, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionInvitationListener + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0x00, + 0xF4, + 0x08, + 0x71, + 0xBC, + 0xE1, + 0x49, + 0x87, + 0x4A, + 0x31, + 0xDD, + 0xFF, + 0x9A, + 0x27, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionInvitationReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x4A, + 0x96, + 0x5E, + 0x0D, + 0xA1, + 0xDB, + 0x4E, + 0x8D, + 0xEA, + 0x54, + 0xD2, + 0x0A, + 0xC1, + 0x95, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionJoinRequest + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x00, + 0x60, + 0x20, + 0x94, + 0x79, + 0x31, + 0x43, + 0x86, + 0xD1, + 0xD8, + 0x9D, + 0x88, + 0x25, + 0x85, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionJoinRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x4F, + 0xCA, + 0xDB, + 0xB9, + 0x82, + 0x16, + 0x48, + 0x9C, + 0x24, + 0xE4, + 0x0E, + 0x61, + 0x77, + 0x4B, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionJoinResult + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x1F, + 0x7B, + 0xCE, + 0x3E, + 0xA0, + 0xA4, + 0x41, + 0x90, + 0x0B, + 0x1E, + 0x79, + 0x32, + 0x8C, + 0x12, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionMessageChannel + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0xD1, + 0x24, + 0x95, + 0xD9, + 0x73, + 0x10, + 0x4C, + 0xB7, + 0x51, + 0xC2, + 0x67, + 0x84, + 0x43, + 0x71, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionMessageChannelFactory + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x1C, + 0x5E, + 0x29, + 0x16, + 0xBD, + 0x98, + 0x42, + 0xB7, + 0xCE, + 0x41, + 0x54, + 0x82, + 0xB0, + 0xE1, + 0x1D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionOptions + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0xD7, + 0x0E, + 0x74, + 0x18, + 0x84, + 0x01, + 0x4F, + 0x93, + 0x53, + 0xE2, + 0x1C, + 0x9E, + 0xCC, + 0x6C, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionParticipant + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x05, + 0x90, + 0x7E, + 0xF9, + 0xAC, + 0x29, + 0x47, + 0x8A, + 0x17, + 0x44, + 0xE7, + 0xBA, + 0xED, + 0x5D, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionParticipantAddedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x57, + 0x5A, + 0xD3, + 0xA1, + 0xC9, + 0xB7, + 0x4B, + 0xB6, + 0xB0, + 0x79, + 0xBB, + 0x91, + 0xAD, + 0xF9, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionParticipantRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xF0, + 0x6E, + 0x86, + 0x68, + 0xDE, + 0xBF, + 0x4A, + 0x88, + 0xA1, + 0xF9, + 0x0D, + 0x16, + 0x27, + 0x41, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionParticipantWatcher + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x02, + 0xDD, + 0xDC, + 0x87, + 0xAA, + 0x79, + 0x4D, + 0xB6, + 0xCC, + 0x44, + 0x59, + 0xB3, + 0xE9, + 0x20, + 0x75, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x91, + 0x82, + 0xAF, + 0xA1, + 0x39, + 0xEA, + 0x4D, + 0x9D, + 0x63, + 0x43, + 0x79, + 0x8D, + 0x5B, + 0xBB, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionStatics + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x89, + 0x24, + 0x85, + 0x20, + 0xFD, + 0xE3, + 0x44, + 0x95, + 0x65, + 0xE7, + 0x5A, + 0x3B, + 0x14, + 0xC6, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionUpdatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0x50, + 0x87, + 0x16, + 0x1E, + 0x23, + 0x91, + 0x4C, + 0x8E, + 0xC8, + 0xB3, + 0xA3, + 0x9D, + 0x9E, + 0x55, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionValueSetReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x17, + 0xF3, + 0x06, + 0xA5, + 0x2D, + 0x58, + 0x4E, + 0xA7, + 0x8F, + 0x9E, + 0x8D, + 0x07, + 0x84, + 0xEE, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemSessionWatcher + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0xE3, + 0x03, + 0x80, + 0x41, + 0x0C, + 0x62, + 0x4A, + 0xB6, + 0xD7, + 0xBD, + 0xBE, + 0x2B, + 0x19, + 0xBE, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemStatics + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0xB3, + 0x85, + 0xA4, + 0x2B, + 0xFF, + 0x47, + 0x4B, + 0xBE, + 0x62, + 0x74, + 0x3F, + 0x2F, + 0x14, + 0x0F, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0xED, + 0x98, + 0x0C, + 0x99, + 0x6F, + 0x52, + 0x4C, + 0xA2, + 0x72, + 0xEA, + 0x4F, + 0x36, + 0x47, + 0x17, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0xF1, + 0x95, + 0x99, + 0x3C, + 0x0B, + 0xC5, + 0x5A, + 0xB3, + 0x25, + 0xCC, + 0x73, + 0xF4, + 0x37, + 0xDF, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemStatusTypeFilter + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x51, + 0x39, + 0x0C, + 0xB6, + 0xCB, + 0x77, + 0x47, + 0x85, + 0x34, + 0x2E, + 0x0C, + 0x52, + 0x1A, + 0xFF, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemStatusTypeFilterFactory + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x78, + 0xCF, + 0x33, + 0x24, + 0xD7, + 0x25, + 0x41, + 0xAC, + 0x7A, + 0x8D, + 0x28, + 0x1E, + 0x44, + 0xC9, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemUpdatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0xFF, + 0x02, + 0x75, + 0xCB, + 0xDB, + 0x55, + 0x41, + 0xB4, + 0xCA, + 0xB3, + 0x0A, + 0x04, + 0xF2, + 0x76, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemWatcher + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x0C, + 0x60, + 0x5D, + 0x07, + 0x2C, + 0xC5, + 0x48, + 0x88, + 0x9C, + 0x45, + 0x5D, + 0x2B, + 0x09, + 0x97, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemWatcher2 + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x67, + 0x43, + 0x73, + 0xCA, + 0x19, + 0xF9, + 0x48, + 0xA4, + 0xCD, + 0x78, + 0x0F, + 0x7A, + 0xD5, + 0x8C, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemWatcher3 + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x0F, + 0x9C, + 0xF7, + 0x13, + 0xA9, + 0xD3, + 0x55, + 0x84, + 0x13, + 0x41, + 0x8F, + 0xCF, + 0x15, + 0xBA, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemWatcherErrorOccurredEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0xC6, + 0xC5, + 0x74, + 0x14, + 0x51, + 0x26, + 0x44, + 0x92, + 0x16, + 0x20, + 0xD8, + 0x1F, + 0x85, + 0x19, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemWebAccountFilter + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x58, + 0xB7, + 0x3F, + 0xC8, + 0x87, + 0x8F, + 0x5D, + 0x97, + 0x7E, + 0xF6, + 0x9F, + 0x96, + 0xD6, + 0x72, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteSystemWebAccountFilterFactory + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x27, + 0x8A, + 0x34, + 0x4D, + 0x5F, + 0x27, + 0x51, + 0xB4, + 0xA7, + 0xBF, + 0x99, + 0xD5, + 0x25, + 0x2B, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.system/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.system/IID.Manual.cs new file mode 100644 index 0000000000..e550cf7175 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.system/IID.Manual.cs @@ -0,0 +1,2200 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.system.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDispatcherQueueHandler + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xDC, + 0xA2, + 0xDF, + 0x2D, + 0x1A, + 0x17, + 0x49, + 0x98, + 0xF2, + 0x93, + 0x9A, + 0xF1, + 0xD6, + 0xE0, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppActivationResult + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x89, + 0x52, + 0x6B, + 0x6E, + 0xF4, + 0xB0, + 0x4E, + 0xAA, + 0x6C, + 0x38, + 0xAF, + 0x55, + 0x7C, + 0xF9, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfo + { + get + { + ReadOnlySpan data = + [ + 0x9A, + 0xA6, + 0x48, + 0xE3, + 0x89, + 0x88, + 0xA3, + 0x4C, + 0xBE, + 0x07, + 0xD5, + 0xFF, + 0xFF, + 0x5F, + 0x08, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfo2 + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0xFB, + 0x46, + 0xDF, + 0x1A, + 0x19, + 0x6C, + 0x44, + 0x94, + 0x73, + 0x8F, + 0xBC, + 0x23, + 0x74, + 0xA3, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfo3 + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0xC6, + 0x95, + 0xC8, + 0x61, + 0xDD, + 0x65, + 0x4C, + 0xBA, + 0xBD, + 0x81, + 0xA1, + 0x0B, + 0x4F, + 0x98, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfoStatics + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x25, + 0x69, + 0xCE, + 0xCA, + 0x10, + 0xC8, + 0x40, + 0xA9, + 0xCA, + 0xC5, + 0xC9, + 0x65, + 0x01, + 0x86, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfoStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x86, + 0x4B, + 0xB2, + 0x05, + 0x00, + 0x10, + 0x90, + 0x4C, + 0xBB, + 0x9F, + 0x72, + 0x35, + 0x07, + 0x1C, + 0x50, + 0xFE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfoWatcher + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x50, + 0x57, + 0x75, + 0xD3, + 0x01, + 0x9A, + 0x48, + 0x93, + 0x25, + 0x52, + 0xF9, + 0xCC, + 0x6E, + 0xDE, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppDiagnosticInfoWatcherEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xC7, + 0x17, + 0x70, + 0xDA, + 0xE1, + 0x65, + 0x4C, + 0x99, + 0xDF, + 0x04, + 0x6D, + 0xFF, + 0x5B, + 0xE7, + 0x1A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppExecutionStateChangeResult + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x9B, + 0x03, + 0x6F, + 0x1B, + 0xF9, + 0xF8, + 0x4D, + 0xAE, + 0x77, + 0x30, + 0x33, + 0xCC, + 0xB6, + 0x91, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppMemoryReport + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x33, + 0x65, + 0x6D, + 0x6F, + 0x4D, + 0xBC, + 0x45, + 0x9C, + 0x5E, + 0xE4, + 0x9B, + 0x3F, + 0xF2, + 0x75, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppMemoryReport2 + { + get + { + ReadOnlySpan data = + [ + 0x38, + 0x37, + 0x7F, + 0x5F, + 0xB7, + 0x51, + 0xDC, + 0x42, + 0xB7, + 0xED, + 0x79, + 0xBA, + 0x46, + 0xD2, + 0x88, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppMemoryUsageLimitChangingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x66, + 0xF8, + 0x79, + 0xCA, + 0xFE, + 0xA5, + 0x4D, + 0x9E, + 0x40, + 0x2B, + 0xC6, + 0x3E, + 0xFD, + 0xC9, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupBackgroundTaskReport + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0xE7, + 0x66, + 0x25, + 0x5D, + 0xB0, + 0xC2, + 0x40, + 0x9D, + 0xC1, + 0x1A, + 0x4F, + 0x03, + 0x9E, + 0xA1, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupInfo + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0xF7, + 0x13, + 0xB9, + 0x07, + 0xE8, + 0xF4, + 0x49, + 0x84, + 0x5E, + 0x7B, + 0x8B, + 0xDC, + 0xFE, + 0x8E, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupInfo2 + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x23, + 0x9B, + 0xEE, + 0x05, + 0xD3, + 0x6B, + 0x4D, + 0x92, + 0xF7, + 0x6A, + 0xFD, + 0xAD, + 0x72, + 0xDE, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupInfoWatcher + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0xA0, + 0xB0, + 0xD9, + 0x5A, + 0x6E, + 0x72, + 0x4C, + 0x8B, + 0x17, + 0x09, + 0xFE, + 0xC4, + 0xA2, + 0x12, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupInfoWatcherEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x76, + 0x78, + 0x7A, + 0x02, + 0x63, + 0x2F, + 0x4D, + 0xBF, + 0x89, + 0x1C, + 0x12, + 0xD0, + 0xB2, + 0xA6, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0xED, + 0xDB, + 0x1B, + 0xE6, + 0xFE, + 0xD4, + 0x4F, + 0x98, + 0xDD, + 0xE9, + 0x2A, + 0x2C, + 0xC2, + 0x99, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupMemoryReport + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x06, + 0x8C, + 0x2C, + 0xB1, + 0x7D, + 0x51, + 0x4C, + 0xA2, + 0x25, + 0x7F, + 0xAE, + 0x2D, + 0x49, + 0xE4, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppResourceGroupStateReport + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x9F, + 0x84, + 0x52, + 0x70, + 0x2F, + 0x36, + 0x42, + 0xAB, + 0x40, + 0xD0, + 0x4D, + 0xB0, + 0xC7, + 0xB9, + 0x31, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerHost + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0xCA, + 0x50, + 0x5D, + 0xD2, + 0x92, + 0x09, + 0x54, + 0xB5, + 0x6F, + 0x7F, + 0x73, + 0xE1, + 0x0E, + 0xA4, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerHost2 + { + get + { + ReadOnlySpan data = + [ + 0x95, + 0xEE, + 0x0B, + 0x3A, + 0xE4, + 0x29, + 0xBF, + 0x51, + 0x80, + 0x95, + 0xA3, + 0xC0, + 0x68, + 0xE3, + 0xC7, + 0x2A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerHostFactory + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x3C, + 0x7C, + 0x25, + 0x04, + 0xCE, + 0x98, + 0x5F, + 0x96, + 0xBB, + 0x3E, + 0xBD, + 0x3E, + 0x92, + 0x75, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerRegistration + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0xAE, + 0x73, + 0x6F, + 0x69, + 0x45, + 0x3F, + 0x5C, + 0x9B, + 0xA0, + 0x99, + 0x12, + 0x3E, + 0xEA, + 0x32, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerRegistration2 + { + get + { + ReadOnlySpan data = + [ + 0x97, + 0xAC, + 0x4D, + 0xD5, + 0x39, + 0xCB, + 0x1F, + 0x5F, + 0x88, + 0x3E, + 0x01, + 0x85, + 0x37, + 0x30, + 0xBD, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerRegistrationManager + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0x9A, + 0x2C, + 0xE6, + 0x94, + 0xAC, + 0x50, + 0x57, + 0xAC, + 0x1B, + 0x6C, + 0xFB, + 0x6F, + 0x25, + 0x02, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerRegistrationManager2 + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0xCA, + 0xDF, + 0xBD, + 0x1A, + 0xB5, + 0x69, + 0x5E, + 0xAE, + 0xFD, + 0x70, + 0x88, + 0xD9, + 0xF2, + 0xB1, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerRegistrationManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0xDD, + 0xCE, + 0xD5, + 0x29, + 0x57, + 0x76, + 0x5B, + 0xA1, + 0xD4, + 0x02, + 0x85, + 0xF2, + 0x95, + 0xC1, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppUriHandlerRegistrationManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x83, + 0xF7, + 0x14, + 0x90, + 0x68, + 0x80, + 0x50, + 0x90, + 0xA7, + 0x98, + 0x82, + 0x4A, + 0x7F, + 0x07, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDateTimeSettingsStatics + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x50, + 0x21, + 0x5D, + 0xEE, + 0x47, + 0xAB, + 0x48, + 0xA5, + 0x2B, + 0x9F, + 0x19, + 0x54, + 0x27, + 0x8D, + 0x82, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueue + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x88, + 0x3E, + 0x60, + 0x38, + 0xA3, + 0xFE, + 0x4F, + 0xA4, + 0x57, + 0xA5, + 0xCF, + 0xB9, + 0xCE, + 0xB8, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueue2 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xC6, + 0x22, + 0xC8, + 0xEF, + 0x30, + 0x6E, + 0x50, + 0xBD, + 0x1E, + 0xA6, + 0x47, + 0xAE, + 0x66, + 0x75, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueueController + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x4E, + 0xF3, + 0x22, + 0xDB, + 0x50, + 0x36, + 0x4E, + 0xA9, + 0x8D, + 0x61, + 0xC0, + 0x1B, + 0x38, + 0x4D, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueueControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x98, + 0x6C, + 0x0A, + 0x98, + 0x51, + 0xA2, + 0x49, + 0xA3, + 0x13, + 0x3F, + 0x70, + 0xD1, + 0xF1, + 0x3C, + 0x27, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueueShutdownStartingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x4C, + 0x72, + 0xC4, + 0x97, + 0xFF, + 0xC0, + 0x40, + 0xA2, + 0x26, + 0xCC, + 0x0A, + 0xAA, + 0x54, + 0x5E, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueueStatics + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x83, + 0x6D, + 0xA9, + 0x71, + 0x93, + 0x17, + 0x45, + 0x92, + 0x45, + 0xD0, + 0x82, + 0x4A, + 0xC1, + 0x2C, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDispatcherQueueTimer + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0xBB, + 0xEA, + 0x5F, + 0x1C, + 0xA3, + 0x27, + 0x47, + 0xB1, + 0xAC, + 0x37, + 0x45, + 0x46, + 0x49, + 0xD5, + 0x6A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFolderLauncherOptions + { + get + { + ReadOnlySpan data = + [ + 0x7D, + 0xC2, + 0x91, + 0xBB, + 0x87, + 0x6B, + 0x2A, + 0x43, + 0xBD, + 0x04, + 0x77, + 0x6C, + 0x6F, + 0x5F, + 0xB2, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownUserPropertiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0x91, + 0x55, + 0x77, + 0xC5, + 0x70, + 0xE5, + 0x48, + 0xB6, + 0x37, + 0x5B, + 0xA3, + 0x44, + 0x1E, + 0x4E, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownUserPropertiesStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0x07, + 0x45, + 0x5B, + 0x20, + 0xF6, + 0x7E, + 0x57, + 0xB1, + 0xB3, + 0xDD, + 0x56, + 0x64, + 0x4D, + 0x79, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILaunchUriResult + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0xA8, + 0x27, + 0xEC, + 0xD5, + 0xF6, + 0xCA, + 0x45, + 0x91, + 0x3A, + 0x70, + 0xA4, + 0x0C, + 0x5C, + 0x82, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherOptions + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x21, + 0xFA, + 0xBA, + 0x71, + 0xB0, + 0xD8, + 0x4C, + 0x85, + 0x3E, + 0x34, + 0x12, + 0x03, + 0xE5, + 0x57, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherOptions2 + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x8E, + 0xA0, + 0x3B, + 0x40, + 0x6E, + 0xCE, + 0x4D, + 0xA1, + 0xA3, + 0x2F, + 0x53, + 0x95, + 0x0A, + 0xFB, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherOptions3 + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0x06, + 0x77, + 0xF0, + 0x63, + 0x4B, + 0x3A, + 0x4E, + 0x91, + 0x07, + 0x4E, + 0x68, + 0x78, + 0x41, + 0x92, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherOptions4 + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0xD1, + 0x6F, + 0xEF, + 0xFB, + 0xE6, + 0x14, + 0x48, + 0xA4, + 0x4E, + 0x57, + 0xE8, + 0xB9, + 0xD9, + 0xA0, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherStatics + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x51, + 0x71, + 0x27, + 0x3E, + 0x9E, + 0xF6, + 0x42, + 0x91, + 0xA4, + 0x5D, + 0xFD, + 0xEB, + 0x23, + 0x24, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x2F, + 0xBA, + 0x59, + 0xCB, + 0x24, + 0x02, + 0x4C, + 0xA4, + 0xC4, + 0x82, + 0x94, + 0x56, + 0x9D, + 0x54, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x61, + 0x42, + 0x23, + 0xB3, + 0x9D, + 0x83, + 0x46, + 0xAA, + 0x42, + 0xDC, + 0x6F, + 0x51, + 0xD3, + 0x38, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherStatics4 + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x81, + 0xEC, + 0xB9, + 0xA5, + 0xB5, + 0xC6, + 0x41, + 0xB3, + 0xB3, + 0xDD, + 0x1B, + 0x31, + 0x78, + 0xBC, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherStatics5 + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0xEF, + 0x24, + 0x5B, + 0x95, + 0xD8, + 0xEA, + 0x5F, + 0x91, + 0x53, + 0x1A, + 0xC4, + 0x9A, + 0xED, + 0x9B, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherUIOptions + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0xDA, + 0x25, + 0x1B, + 0xA6, + 0x8A, + 0xE9, + 0x41, + 0x82, + 0x51, + 0x41, + 0x65, + 0xF5, + 0x98, + 0x5F, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILauncherViewOptions + { + get + { + ReadOnlySpan data = + [ + 0xF1, + 0x29, + 0x9B, + 0x8A, + 0xA7, + 0x7C, + 0xDE, + 0x49, + 0x9B, + 0xD3, + 0x3C, + 0x5B, + 0x71, + 0x84, + 0xF6, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0x27, + 0x6C, + 0x5C, + 0xCA, + 0xD7, + 0x79, + 0x47, + 0x91, + 0x88, + 0x40, + 0x57, + 0x21, + 0x9C, + 0xE6, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x1F, + 0x35, + 0xEE, + 0x6E, + 0x62, + 0x6D, + 0x3F, + 0x42, + 0x94, + 0x79, + 0xB0, + 0x1F, + 0x9C, + 0x9F, + 0x76, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryManagerStatics3 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x59, + 0x9B, + 0x14, + 0xAD, + 0x92, + 0x35, + 0x4E, + 0x89, + 0xEB, + 0x50, + 0xDF, + 0xB4, + 0xC0, + 0xD9, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMemoryManagerStatics4 + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x48, + 0xA9, + 0xC5, + 0x4E, + 0xE8, + 0x86, + 0x48, + 0x8A, + 0x0D, + 0x44, + 0xB3, + 0x19, + 0x0E, + 0x3B, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessLauncherOptions + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0xB9, + 0x80, + 0x30, + 0x44, + 0xF4, + 0x83, + 0x4A, + 0xBE, + 0xAF, + 0xA5, + 0x49, + 0xA0, + 0xF3, + 0x22, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessLauncherResult + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x89, + 0x4C, + 0x54, + 0xD8, + 0x86, + 0x91, + 0x49, + 0x8E, + 0x75, + 0xEC, + 0xE8, + 0xA4, + 0x3B, + 0x6B, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessLauncherStatics + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0x66, + 0xAB, + 0x33, + 0x0E, + 0x2D, + 0x8B, + 0x44, + 0xA6, + 0xA0, + 0xC1, + 0x3C, + 0x38, + 0x36, + 0xD0, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProcessMemoryReport + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x05, + 0x73, + 0x08, + 0x70, + 0x9B, + 0x82, + 0x47, + 0x87, + 0x41, + 0x3A, + 0x98, + 0x2B, + 0x6C, + 0xE5, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProtocolForResultsOperation + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0x29, + 0x81, + 0xD5, + 0xE9, + 0x6D, + 0x28, + 0x4D, + 0x93, + 0x78, + 0xF8, + 0x67, + 0x82, + 0xE1, + 0x82, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteLauncherOptions + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x27, + 0x3A, + 0x9E, + 0x91, + 0x28, + 0xDF, + 0x4C, + 0xA2, + 0xD6, + 0x9D, + 0xFF, + 0x7D, + 0x02, + 0xE6, + 0x93, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRemoteLauncherStatics + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x7A, + 0xDB, + 0xD7, + 0x0C, + 0xA3, + 0xB7, + 0x48, + 0x9F, + 0x21, + 0x05, + 0x10, + 0x26, + 0xA4, + 0xE5, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShutdownManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xED, + 0x47, + 0xE2, + 0x72, + 0x5B, + 0xDD, + 0x6C, + 0x4D, + 0xB1, + 0xD0, + 0xC5, + 0x7A, + 0x7B, + 0xBB, + 0x5F, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShutdownManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xA0, + 0x69, + 0x0F, + 0x34, + 0x9C, + 0xC7, + 0x43, + 0xA8, + 0xC3, + 0x70, + 0xB3, + 0x0A, + 0x7F, + 0x75, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimeZoneSettingsStatics + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x2B, + 0x3B, + 0x9B, + 0x01, + 0xA1, + 0xAE, + 0x41, + 0x9F, + 0xBD, + 0x02, + 0x87, + 0x28, + 0xBA, + 0xB7, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITimeZoneSettingsStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xB8, + 0x0D, + 0x5C, + 0x55, + 0xA8, + 0x39, + 0xFA, + 0x49, + 0xB4, + 0xF6, + 0xA2, + 0xC7, + 0xFC, + 0x28, + 0x42, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUser + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x26, + 0x9A, + 0xDF, + 0x46, + 0xE7, + 0xCD, + 0x4B, + 0xB5, + 0xD4, + 0x12, + 0x01, + 0x03, + 0xC4, + 0x20, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUser2 + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x56, + 0xBA, + 0x98, + 0xE3, + 0xA6, + 0x8E, + 0x51, + 0x89, + 0xD9, + 0xD3, + 0xB2, + 0xB1, + 0x99, + 0x1A, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserAuthenticationStatusChangeDeferral + { + get + { + ReadOnlySpan data = + [ + 0x68, + 0x95, + 0xB5, + 0x88, + 0x30, + 0xBB, + 0xFB, + 0x42, + 0xA2, + 0x70, + 0xE9, + 0x90, + 0x2E, + 0x40, + 0xEF, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserAuthenticationStatusChangingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x0F, + 0x03, + 0x8C, + 0x11, + 0xA7, + 0x1E, + 0x4C, + 0xAB, + 0x48, + 0x04, + 0x17, + 0x9C, + 0x15, + 0x93, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x59, + 0x64, + 0x08, + 0xC6, + 0x18, + 0xDB, + 0x48, + 0xBC, + 0x99, + 0x72, + 0x4F, + 0xB9, + 0x20, + 0x3C, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserChangedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0xCB, + 0x2C, + 0x6B, + 0x01, + 0x6F, + 0x0C, + 0x56, + 0x97, + 0xAD, + 0xFC, + 0x7F, + 0x32, + 0xEC, + 0x58, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDeviceAssociationChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x6F, + 0x1F, + 0xBD, + 0x5D, + 0xBB, + 0x7B, + 0x4D, + 0xA5, + 0xF0, + 0xC8, + 0xCD, + 0x11, + 0xA3, + 0x8D, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserDeviceAssociationStatics + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0x1E, + 0x49, + 0x7E, + 0x5A, + 0xF8, + 0x07, + 0x4C, + 0x8D, + 0xA9, + 0x7F, + 0xE3, + 0xD0, + 0x54, + 0x23, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserPicker + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x80, + 0x54, + 0x7D, + 0xE3, + 0xF1, + 0x6C, + 0x4A, + 0x8D, + 0xDC, + 0xA9, + 0xBB, + 0x0F, + 0x48, + 0x8A, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserPickerStatics + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x90, + 0x32, + 0xDE, + 0x73, + 0x7E, + 0xF6, + 0x4D, + 0xA1, + 0xAE, + 0x4D, + 0x7E, + 0xCA, + 0x82, + 0xB4, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserStatics + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xB2, + 0x5E, + 0x15, + 0x2A, + 0x24, + 0xE0, + 0x45, + 0xA2, + 0xE9, + 0x31, + 0x71, + 0xFC, + 0x6A, + 0x7F, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x7E, + 0xA3, + 0x74, + 0xB5, + 0x2E, + 0x87, + 0x44, + 0xB0, + 0xD5, + 0x2C, + 0x67, + 0x90, + 0xE0, + 0x13, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserWatcher + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xB2, + 0x5E, + 0x15, + 0x2A, + 0x24, + 0xE0, + 0x45, + 0xA2, + 0xE9, + 0x31, + 0x71, + 0xFC, + 0x6A, + 0x7F, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.composition.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.composition.core/IID.Manual.cs new file mode 100644 index 0000000000..4d12f736c2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.composition.core/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.composition.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICompositorController + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0xF3, + 0x75, + 0x2D, + 0xA7, + 0x70, + 0x95, + 0x43, + 0xBA, + 0x2D, + 0xCE, + 0xF0, + 0xB1, + 0x83, + 0x99, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.composition.desktop/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.composition.desktop/IID.Manual.cs new file mode 100644 index 0000000000..2ca1e02b9b --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.composition.desktop/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.composition.desktop.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDesktopWindowTarget + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0xD6, + 0x29, + 0x63, + 0x66, + 0x33, + 0x0E, + 0x49, + 0x9D, + 0xB3, + 0x25, + 0x31, + 0x29, + 0x29, + 0xAC, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.composition/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.composition/IID.Manual.cs new file mode 100644 index 0000000000..ed98dd45a7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.composition/IID.Manual.cs @@ -0,0 +1,4981 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.composition.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAmbientLight + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x30, + 0x81, + 0xA4, + 0xC4, + 0xB7, + 0xF7, + 0x46, + 0xB9, + 0xBF, + 0xDA, + 0xF4, + 0x3A, + 0x44, + 0xE6, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAmbientLight2 + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0xA6, + 0x64, + 0x3B, + 0x97, + 0x5F, + 0x94, + 0x4C, + 0x86, + 0xE5, + 0x04, + 0x2D, + 0xD3, + 0x86, + 0xB2, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAnimationController + { + get + { + ReadOnlySpan data = + [ + 0xD2, + 0xEF, + 0x34, + 0xC9, + 0x22, + 0x07, + 0x5F, + 0x4F, + 0xA4, + 0xE2, + 0x95, + 0x10, + 0xF3, + 0xD4, + 0x3B, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAnimationControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x64, + 0x11, + 0xE7, + 0x1B, + 0x65, + 0x00, + 0x48, + 0xB9, + 0xE5, + 0x6A, + 0x3B, + 0xCF, + 0xED, + 0x33, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAnimationObject + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x1E, + 0x14, + 0xE7, + 0xB8, + 0x04, + 0xC5, + 0x4F, + 0xA4, + 0xDC, + 0x19, + 0x53, + 0x92, + 0xE5, + 0x78, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAnimationPropertyInfo + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x6F, + 0x71, + 0xF4, + 0x77, + 0xED, + 0x3C, + 0x4E, + 0xB3, + 0x28, + 0x5C, + 0x39, + 0x85, + 0xB3, + 0x73, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAnimationPropertyInfo2 + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x20, + 0x17, + 0x59, + 0x72, + 0x74, + 0x18, + 0x52, + 0x8B, + 0x39, + 0xDF, + 0xFE, + 0x61, + 0x5A, + 0xE6, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x0D, + 0x56, + 0xB8, + 0x3C, + 0x5E, + 0x5D, + 0x54, + 0xB2, + 0x63, + 0x79, + 0x87, + 0xA2, + 0xBD, + 0x27, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBooleanKeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x3A, + 0xE2, + 0x95, + 0xF4, + 0xD1, + 0x72, + 0x49, + 0x97, + 0x70, + 0x3E, + 0xFE, + 0x68, + 0xD8, + 0x2E, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBounceEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xB4, + 0xFD, + 0xE7, + 0xD5, + 0xAA, + 0x74, + 0x51, + 0x94, + 0x21, + 0xEE, + 0xF8, + 0xB7, + 0x5A, + 0x6A, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBounceScalarNaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x0D, + 0xA3, + 0xBA, + 0x33, + 0xA6, + 0x18, + 0x46, + 0x9B, + 0x06, + 0x7F, + 0x7C, + 0x72, + 0xC8, + 0x7C, + 0xFF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBounceVector2NaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0x41, + 0x34, + 0xDA, + 0x54, + 0x21, + 0x3C, + 0x4B, + 0x88, + 0xAA, + 0x47, + 0x36, + 0x12, + 0x04, + 0xEC, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBounceVector3NaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0xBC, + 0xDA, + 0x47, + 0xD3, + 0x10, + 0x18, + 0x45, + 0x86, + 0xF1, + 0x09, + 0xCA, + 0xF7, + 0x42, + 0xD1, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICircleEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x22, + 0x07, + 0x1E, + 0x82, + 0x6F, + 0x28, + 0x5A, + 0x87, + 0x48, + 0x2E, + 0x92, + 0xFC, + 0x46, + 0xEE, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColorKeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0xE9, + 0xB5, + 0xAD, + 0x93, + 0x05, + 0x8E, + 0x93, + 0x45, + 0x84, + 0xA3, + 0xDC, + 0xA1, + 0x52, + 0x78, + 0x1E, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x4C, + 0x4C, + 0x46, + 0xAA, + 0x1C, + 0x61, + 0x40, + 0x9B, + 0x40, + 0xE1, + 0x3F, + 0xDE, + 0x15, + 0x03, + 0xCA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimation2 + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x60, + 0x9B, + 0x36, + 0x0F, + 0xA8, + 0x48, + 0x49, + 0x93, + 0xE3, + 0xED, + 0x23, + 0xFB, + 0x38, + 0xC6, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimation3 + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0x03, + 0x1E, + 0xD5, + 0xA4, + 0x7D, + 0xD7, + 0x4B, + 0xBC, + 0x2D, + 0xF4, + 0x51, + 0x75, + 0x29, + 0xF4, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimation4 + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x37, + 0x01, + 0x77, + 0xBC, + 0x76, + 0x23, + 0x4E, + 0xBF, + 0xED, + 0xFE, + 0x9C, + 0xC2, + 0x0F, + 0x6E, + 0xC9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimationBase + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0x29, + 0x2C, + 0x1C, + 0x18, + 0xE8, + 0xD3, + 0x48, + 0xA6, + 0xDD, + 0xD7, + 0x8C, + 0x82, + 0xF8, + 0xAC, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimationFactory + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0xC4, + 0xF6, + 0x10, + 0x51, + 0x6E, + 0x25, + 0x4C, + 0xBB, + 0xD3, + 0x58, + 0x6A, + 0x9B, + 0xEC, + 0x3E, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionAnimationGroup + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0xC9, + 0x7C, + 0x5E, + 0x14, + 0xCD, + 0x07, + 0x4E, + 0x8A, + 0x55, + 0xC7, + 0x25, + 0x27, + 0xAA, + 0xBD, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionBackdropBrush + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xAE, + 0xAC, + 0xC5, + 0x98, + 0x38, + 0x9E, + 0x49, + 0x8D, + 0x7F, + 0x22, + 0x4E, + 0x91, + 0x28, + 0x6A, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionBatchCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xDA, + 0x00, + 0x0D, + 0x64, + 0x94, + 0x0A, + 0x45, + 0xA5, + 0x62, + 0x2E, + 0x26, + 0x98, + 0xB0, + 0xA8, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionBrush + { + get + { + ReadOnlySpan data = + [ + 0x08, + 0x76, + 0x0D, + 0xAB, + 0xC0, + 0x30, + 0xE9, + 0x40, + 0xB5, + 0x68, + 0xB6, + 0x0A, + 0x6B, + 0xD1, + 0xFB, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionBrushFactory + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0xFB, + 0x53, + 0xDA, + 0x50, + 0x46, + 0xC4, + 0x47, + 0xAD, + 0x76, + 0x76, + 0x53, + 0x79, + 0x60, + 0x7E, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionCapabilities + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x35, + 0x53, + 0x82, + 0x17, + 0xB5, + 0xBC, + 0x48, + 0xB1, + 0xE8, + 0x4B, + 0x35, + 0x61, + 0xA2, + 0xE1, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionCapabilitiesStatics + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0xA8, + 0xB7, + 0xF7, + 0x16, + 0x64, + 0xE5, + 0x49, + 0x8D, + 0xDF, + 0xAF, + 0xE9, + 0x49, + 0xE2, + 0x05, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionClip + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0x2A, + 0xCD, + 0x1C, + 0xC7, + 0xCF, + 0xCE, + 0x4A, + 0x99, + 0x83, + 0x14, + 0x6B, + 0xB8, + 0xEB, + 0x6A, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionClip2 + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xE0, + 0x93, + 0x58, + 0x16, + 0x35, + 0xE1, + 0x40, + 0x89, + 0xE0, + 0x5B, + 0xA9, + 0x24, + 0x92, + 0x72, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionClipFactory + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x4C, + 0x48, + 0xB9, + 0xC7, + 0x20, + 0xED, + 0x4A, + 0xAC, + 0x4A, + 0x9C, + 0x78, + 0xBA, + 0x13, + 0x02, + 0xCF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionColorBrush + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x4C, + 0x26, + 0x2B, + 0x35, + 0xBF, + 0x31, + 0x48, + 0x86, + 0x42, + 0xCF, + 0x70, + 0xC2, + 0x0F, + 0xFF, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionColorGradientStop + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0xCA, + 0x00, + 0x6F, + 0x01, + 0xC8, + 0x41, + 0x4E, + 0x9A, + 0x8F, + 0xA5, + 0x3E, + 0x20, + 0xF5, + 0x77, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionColorGradientStopCollection + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0x20, + 0x1D, + 0x9F, + 0x04, + 0x7B, + 0x1D, + 0x4B, + 0x90, + 0xBC, + 0x9F, + 0xA3, + 0x2C, + 0x0C, + 0xFD, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionCommitBatch + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xDA, + 0x00, + 0x0D, + 0x07, + 0xCA, + 0x00, + 0x44, + 0x8C, + 0x8E, + 0xCB, + 0x5D, + 0xB0, + 0x85, + 0x59, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionContainerShape + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x85, + 0x5E, + 0x4F, + 0x5B, + 0x2E, + 0xA8, + 0x44, + 0x98, + 0x2C, + 0xAA, + 0x0F, + 0x69, + 0xC1, + 0x60, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionDrawingSurface + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0xC3, + 0x66, + 0xA1, + 0xD0, + 0xFA, + 0x11, + 0x4D, + 0x9E, + 0x67, + 0xE4, + 0x33, + 0x16, + 0x2F, + 0xF4, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionDrawingSurface2 + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0xE8, + 0xD0, + 0xFA, + 0x54, + 0xE3, + 0xE8, + 0x44, + 0x8E, + 0x3D, + 0xC4, + 0x88, + 0x0D, + 0x5A, + 0x21, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionDrawingSurfaceFactory + { + get + { + ReadOnlySpan data = + [ + 0x0A, + 0xB0, + 0x97, + 0x94, + 0x2D, + 0x31, + 0xB9, + 0x46, + 0x9D, + 0xB3, + 0x41, + 0x2F, + 0xD7, + 0x94, + 0x64, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x56, + 0xE3, + 0x45, + 0x51, + 0x79, + 0xBF, + 0xA8, + 0x4E, + 0x8C, + 0xC2, + 0x6B, + 0x5B, + 0x47, + 0x2E, + 0x6C, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEasingFunctionFactory + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0x07, + 0x84, + 0x60, + 0xA0, + 0x3D, + 0x49, + 0x49, + 0x82, + 0x00, + 0x72, + 0x06, + 0xC0, + 0x01, + 0x90, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEasingFunctionStatics + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x66, + 0xA7, + 0x17, + 0x36, + 0x29, + 0xEA, + 0x53, + 0xB5, + 0xAF, + 0xC6, + 0x42, + 0xF4, + 0xA6, + 0x10, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEffectBrush + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x79, + 0x7F, + 0xBF, + 0xCC, + 0x83, + 0xBF, + 0x44, + 0xA4, + 0x47, + 0x3E, + 0x3C, + 0x07, + 0x17, + 0x89, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEffectFactory + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x24, + 0x56, + 0xBE, + 0x7E, + 0xBA, + 0x10, + 0x45, + 0x98, + 0x50, + 0x41, + 0xC0, + 0xB4, + 0xFF, + 0x74, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEffectSourceParameter + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0xB1, + 0x8A, + 0x85, + 0x92, + 0x32, + 0x4E, + 0x4E, + 0xB3, + 0xBB, + 0x2B, + 0x6C, + 0x65, + 0x44, + 0xA6, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEffectSourceParameterFactory + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0xF2, + 0xD9, + 0xB3, + 0xA3, + 0xAB, + 0x24, + 0x47, + 0xAC, + 0xF3, + 0xD0, + 0x39, + 0x74, + 0x64, + 0xDB, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionEllipseGeometry + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0xF8, + 0x01, + 0x48, + 0xAD, + 0xF6, + 0x93, + 0x4B, + 0xAF, + 0xA9, + 0x89, + 0x7B, + 0x64, + 0xE5, + 0x7B, + 0x1F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGeometricClip + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0xB5, + 0x40, + 0xC8, + 0xC9, + 0x81, + 0x44, + 0x44, + 0xA2, + 0xC1, + 0xCC, + 0xAE, + 0xCE, + 0x3A, + 0x50, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGeometry + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0x21, + 0x85, + 0xE9, + 0x17, + 0x6A, + 0x07, + 0x42, + 0xAB, + 0xD8, + 0x5F, + 0xD3, + 0xDD, + 0x61, + 0x2A, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGeometryFactory + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0xBF, + 0xFE, + 0xBF, + 0x25, + 0x8C, + 0x0B, + 0x48, + 0x9F, + 0x56, + 0xFE, + 0xD6, + 0xB2, + 0x88, + 0x05, + 0x5D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGradientBrush + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x09, + 0x97, + 0x1D, + 0xC6, + 0xFF, + 0x0E, + 0x4C, + 0xA9, + 0xAB, + 0x34, + 0x14, + 0x4D, + 0x4C, + 0x90, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGradientBrush2 + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0xD5, + 0x9D, + 0x89, + 0xC7, + 0xB4, + 0x33, + 0x4B, + 0xA1, + 0xB6, + 0x26, + 0x4A, + 0xDD, + 0xC2, + 0x6D, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGradientBrushFactory + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x65, + 0xD7, + 0x56, + 0x89, + 0xF1, + 0xC9, + 0x48, + 0x9C, + 0x8D, + 0x94, + 0xDA, + 0xF1, + 0xBE, + 0xC0, + 0x10, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGraphicsDevice + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0xC6, + 0x22, + 0xFB, + 0xA2, + 0x80, + 0x67, + 0x46, + 0x99, + 0x36, + 0xDB, + 0xEA, + 0xF6, + 0xEE, + 0xFE, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGraphicsDevice2 + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0xBD, + 0xB8, + 0x0F, + 0xF0, + 0xC0, + 0xCC, + 0x4B, + 0x9F, + 0xB8, + 0x08, + 0x49, + 0x82, + 0x49, + 0x0D, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGraphicsDevice3 + { + get + { + ReadOnlySpan data = + [ + 0x14, + 0x75, + 0xF6, + 0x37, + 0xEF, + 0xD3, + 0xD1, + 0x49, + 0xB6, + 0x9D, + 0x0D, + 0x8E, + 0xAB, + 0xEB, + 0x36, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionGraphicsDevice4 + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0xBF, + 0x73, + 0x5A, + 0x7F, + 0xA9, + 0xF5, + 0x4C, + 0xBA, + 0x46, + 0x98, + 0xEF, + 0x35, + 0x8E, + 0x71, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionLight + { + get + { + ReadOnlySpan data = + [ + 0xC2, + 0xD7, + 0xA6, + 0x41, + 0x5D, + 0x2E, + 0xC1, + 0x4B, + 0xB0, + 0x9E, + 0x8F, + 0x0A, + 0x03, + 0xE3, + 0xD8, + 0xD3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionLight2 + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0xDA, + 0xBC, + 0xA7, + 0x5D, + 0xF3, + 0x5D, + 0x42, + 0x9B, + 0x98, + 0x23, + 0xF4, + 0x20, + 0x5F, + 0x66, + 0x69, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionLight3 + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x00, + 0x0B, + 0x4B, + 0x07, + 0xDF, + 0x59, + 0x49, + 0xB7, + 0xA4, + 0x4F, + 0x7E, + 0x42, + 0x33, + 0xF8, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionLightFactory + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xF3, + 0x9C, + 0x06, + 0x3C, + 0xDA, + 0x44, + 0x4B, + 0x83, + 0x8A, + 0x5E, + 0x03, + 0xD5, + 0x1A, + 0xCE, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionLineGeometry + { + get + { + ReadOnlySpan data = + [ + 0xA4, + 0x15, + 0x76, + 0xDD, + 0x9A, + 0x0C, + 0x67, + 0x4B, + 0x8D, + 0xCE, + 0x44, + 0x0A, + 0x5B, + 0xF9, + 0xCD, + 0xEC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionLinearGradientBrush + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0xC5, + 0x3B, + 0x98, + 0xDB, + 0xA9, + 0x3C, + 0x41, + 0xA2, + 0xD8, + 0x2A, + 0x90, + 0x56, + 0xFC, + 0x52, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionMaskBrush + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0xF0, + 0x2C, + 0x52, + 0x6B, + 0xBE, + 0x41, + 0x4F, + 0xBE, + 0x49, + 0xF9, + 0x22, + 0x6D, + 0x47, + 0x1B, + 0x4A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionMipmapSurface + { + get + { + ReadOnlySpan data = + [ + 0x5C, + 0x67, + 0x63, + 0x48, + 0x4A, + 0xCF, + 0x1C, + 0x4B, + 0x9E, + 0xCE, + 0xC5, + 0xEC, + 0x0C, + 0x2B, + 0x2F, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionNineGridBrush + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x54, + 0x51, + 0xF2, + 0x8C, + 0xBC, + 0xE7, + 0x4B, + 0xB8, + 0x0F, + 0x86, + 0x85, + 0xB8, + 0x3C, + 0x01, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObject + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0xAD, + 0xB4, + 0xBC, + 0x09, + 0x76, + 0x50, + 0x45, + 0x93, + 0x4F, + 0x16, + 0x00, + 0x2A, + 0x68, + 0xFD, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObject2 + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x4E, + 0x87, + 0xEF, + 0xFF, + 0x5C, + 0x68, + 0x4B, + 0x9E, + 0x30, + 0xA1, + 0x51, + 0x9D, + 0x08, + 0xBA, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObject3 + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x79, + 0xC2, + 0x4B, + 0xCD, + 0xDA, + 0xF2, + 0x4C, + 0x98, + 0xB1, + 0x98, + 0x6B, + 0x76, + 0xE7, + 0xEB, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObject4 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x78, + 0xB3, + 0x0B, + 0x6B, + 0x34, + 0x7C, + 0x4A, + 0x96, + 0x6B, + 0x73, + 0x10, + 0x96, + 0x65, + 0x53, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObject5 + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x39, + 0x7F, + 0x1D, + 0x30, + 0xA1, + 0x65, + 0x52, + 0xA6, + 0x2B, + 0x60, + 0xB8, + 0xE6, + 0x68, + 0x96, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObjectFactory + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x5C, + 0x20, + 0x51, + 0x8A, + 0x55, + 0x2A, + 0x4F, + 0x8D, + 0x39, + 0x37, + 0xBF, + 0xE1, + 0xE2, + 0x0D, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionObjectStatics + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x05, + 0xED, + 0xC1, + 0xA2, + 0x1B, + 0xBA, + 0x44, + 0xA9, + 0x04, + 0x6A, + 0x88, + 0x2A, + 0x0A, + 0x5A, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionPath + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0x1D, + 0xDA, + 0x66, + 0x10, + 0x2E, + 0x22, + 0x4F, + 0x8A, + 0x06, + 0x0A, + 0x81, + 0x51, + 0x91, + 0x9E, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionPathFactory + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0x8C, + 0x1E, + 0x9C, + 0x33, + 0x0F, + 0x51, + 0x47, + 0x94, + 0x37, + 0xEB, + 0x3F, + 0xB9, + 0xD3, + 0xAB, + 0x07, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionPathGeometry + { + get + { + ReadOnlySpan data = + [ + 0x7E, + 0x41, + 0x6A, + 0x0B, + 0x77, + 0x2C, + 0x23, + 0x4C, + 0xAF, + 0x5E, + 0x63, + 0x04, + 0xC1, + 0x47, + 0xBB, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionProjectedShadow + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x8E, + 0x5B, + 0x28, + 0x28, + 0x43, + 0x3F, + 0x52, + 0xBC, + 0xF2, + 0x55, + 0x57, + 0xC5, + 0x2C, + 0x3B, + 0x25, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionProjectedShadowCaster + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0xD4, + 0xD7, + 0xB1, + 0x36, + 0x1E, + 0x62, + 0x5A, + 0xBE, + 0x56, + 0xA1, + 0x61, + 0x12, + 0xFD, + 0xD1, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionProjectedShadowCasterCollection + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x5C, + 0x52, + 0xD2, + 0x7F, + 0xE0, + 0xA3, + 0x58, + 0xAC, + 0x91, + 0x37, + 0xF7, + 0x3E, + 0xE9, + 0x17, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionProjectedShadowCasterCollectionStatics + { + get + { + ReadOnlySpan data = + [ + 0x36, + 0xB1, + 0xFB, + 0x56, + 0x4F, + 0xE9, + 0x99, + 0x52, + 0xAB, + 0x5B, + 0x6E, + 0x15, + 0xE3, + 0x8B, + 0xD8, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionProjectedShadowReceiver + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x98, + 0x77, + 0x13, + 0x49, + 0x6A, + 0x6A, + 0x53, + 0x9B, + 0xE4, + 0xA9, + 0x6A, + 0x8E, + 0x52, + 0x98, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionProjectedShadowReceiverUnorderedCollection + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0xE3, + 0xB3, + 0x02, + 0xD2, + 0x27, + 0x9F, + 0x59, + 0xAC, + 0x4B, + 0xAB, + 0x78, + 0x7C, + 0xDD, + 0xE6, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionPropertySet + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xD2, + 0xD6, + 0xC9, + 0x67, + 0x5F, + 0x53, + 0x44, + 0x91, + 0x17, + 0x9E, + 0xAD, + 0xD4, + 0x30, + 0xD3, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionPropertySet2 + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x73, + 0x80, + 0xDE, + 0x11, + 0xA2, + 0x55, + 0x44, + 0x88, + 0x80, + 0x7D, + 0x0F, + 0x3F, + 0x6A, + 0x44, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionRadialGradientBrush + { + get + { + ReadOnlySpan data = + [ + 0xC5, + 0x50, + 0x3B, + 0x3D, + 0xFA, + 0xE3, + 0xE2, + 0x4C, + 0xB9, + 0xFC, + 0x3E, + 0xE1, + 0x25, + 0x61, + 0x78, + 0x8F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionRectangleGeometry + { + get + { + ReadOnlySpan data = + [ + 0x28, + 0x14, + 0xD5, + 0x0C, + 0x56, + 0x53, + 0x46, + 0x42, + 0xAE, + 0xCF, + 0x7A, + 0x0B, + 0x76, + 0x97, + 0x54, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionRoundedRectangleGeometry + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0xC8, + 0x70, + 0x87, + 0x50, + 0x1D, + 0x8B, + 0x4B, + 0xB0, + 0x13, + 0x7C, + 0x9A, + 0x0E, + 0x46, + 0x93, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionScopedBatch + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xDA, + 0x00, + 0x0D, + 0x07, + 0xFB, + 0xFD, + 0x46, + 0x8C, + 0x72, + 0x62, + 0x80, + 0xD1, + 0xA3, + 0xD1, + 0xDD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionShadow + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x52, + 0x9E, + 0x32, + 0x35, + 0x43, + 0xCC, + 0x49, + 0xB1, + 0x4A, + 0x37, + 0x78, + 0x2D, + 0x10, + 0xF0, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionShadowFactory + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x49, + 0x1F, + 0x22, + 0xBA, + 0xDC, + 0x91, + 0x4B, + 0x99, + 0x9E, + 0x1D, + 0xC2, + 0x17, + 0xA0, + 0x15, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionShape + { + get + { + ReadOnlySpan data = + [ + 0xF7, + 0xE2, + 0x7C, + 0xB4, + 0x88, + 0x9A, + 0xC4, + 0x42, + 0x9E, + 0x87, + 0x2E, + 0x50, + 0x0C, + 0xA8, + 0x68, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionShapeFactory + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x36, + 0xFC, + 0x1D, + 0x5A, + 0xB0, + 0xEF, + 0x44, + 0x82, + 0xB0, + 0x12, + 0x11, + 0x8B, + 0xCD, + 0x4C, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSpriteShape + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x61, + 0x1B, + 0x40, + 0x07, + 0x00, + 0x63, + 0x43, + 0xB1, + 0xF3, + 0x6B, + 0xCC, + 0x00, + 0x3F, + 0xB8, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSupportsSystemBackdrop + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0xAF, + 0x7D, + 0x39, + 0xC2, + 0xB6, + 0xB9, + 0x5B, + 0x95, + 0x1D, + 0xF5, + 0x70, + 0x7D, + 0xE8, + 0xB7, + 0xBC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSurface + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0x54, + 0x27, + 0x15, + 0xC7, + 0x42, + 0xA6, + 0x47, + 0xA4, + 0x08, + 0x66, + 0x8F, + 0x79, + 0xA9, + 0x0D, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSurfaceBrush + { + get + { + ReadOnlySpan data = + [ + 0x79, + 0x6D, + 0x01, + 0xAD, + 0x4C, + 0x1E, + 0x0D, + 0x4C, + 0x9C, + 0x29, + 0x83, + 0x33, + 0x8C, + 0x87, + 0xC1, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSurfaceBrush2 + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x74, + 0x71, + 0xD2, + 0xF5, + 0x64, + 0x92, + 0x46, + 0x9D, + 0xC7, + 0x71, + 0xB6, + 0x1D, + 0x7E, + 0x58, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSurfaceBrush3 + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xB2, + 0x0B, + 0x55, + 0xE0, + 0x1F, + 0xE5, + 0x42, + 0x81, + 0x95, + 0x1E, + 0xEF, + 0xA8, + 0x7F, + 0xF0, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionSurfaceFacade + { + get + { + ReadOnlySpan data = + [ + 0xC8, + 0x22, + 0x16, + 0xE0, + 0x32, + 0x23, + 0xC7, + 0x55, + 0x88, + 0x68, + 0xA7, + 0x31, + 0x2C, + 0x5C, + 0x22, + 0x9D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionTarget + { + get + { + ReadOnlySpan data = + [ + 0xBA, + 0xA8, + 0xBE, + 0xA1, + 0x26, + 0xD7, + 0x63, + 0x46, + 0x81, + 0x29, + 0x6B, + 0x5E, + 0x79, + 0x27, + 0xFF, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionTargetFactory + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x9D, + 0xCD, + 0x93, + 0x16, + 0x85, + 0x14, + 0x4B, + 0xA8, + 0xCE, + 0xF4, + 0x9E, + 0x21, + 0x19, + 0xEC, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionTexture + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0x03, + 0x7D, + 0x34, + 0x0A, + 0x1C, + 0x0B, + 0x4C, + 0xB2, + 0x32, + 0x85, + 0x70, + 0xB2, + 0xB1, + 0xA4, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionTextureFactory + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x52, + 0xD9, + 0x09, + 0x1C, + 0x47, + 0xB5, + 0x5A, + 0xB0, + 0x53, + 0xB5, + 0x68, + 0xEE, + 0x46, + 0xEB, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionTransform + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x45, + 0xD5, + 0x7C, + 0xED, + 0xFB, + 0x12, + 0x41, + 0xAB, + 0xC5, + 0x18, + 0x59, + 0x06, + 0xDD, + 0x92, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionTransformFactory + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0xCA, + 0xAE, + 0xAA, + 0x49, + 0xC1, + 0x7A, + 0x51, + 0x8F, + 0x72, + 0x6B, + 0xFF, + 0x7A, + 0x65, + 0xCE, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionViewBox + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0xBF, + 0x40, + 0xB4, + 0x8F, + 0x06, + 0x37, + 0x45, + 0x84, + 0xC6, + 0x4E, + 0xCB, + 0xE0, + 0x19, + 0xE1, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionVirtualDrawingSurface + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x84, + 0xC3, + 0xA9, + 0x40, + 0x87, + 0x94, + 0x4F, + 0x8B, + 0x9D, + 0xB6, + 0x85, + 0x21, + 0xE7, + 0x86, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionVirtualDrawingSurfaceFactory + { + get + { + ReadOnlySpan data = + [ + 0x6C, + 0x10, + 0x66, + 0x67, + 0x6B, + 0xD5, + 0x49, + 0x4A, + 0xB1, + 0xDF, + 0x50, + 0x76, + 0xA0, + 0x62, + 0x07, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositionVisualSurface + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0xD8, + 0x24, + 0xB2, + 0x6E, + 0x4F, + 0x3F, + 0x4A, + 0x8C, + 0xAE, + 0x3D, + 0xC1, + 0xCD, + 0xA7, + 0x4F, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0xCA, + 0x03, + 0xB4, + 0x8C, + 0x7F, + 0x83, + 0x4E, + 0x98, + 0x5F, + 0xCC, + 0x45, + 0x06, + 0x00, + 0x36, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor2 + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x81, + 0x50, + 0x73, + 0x24, + 0x5E, + 0xDA, + 0x45, + 0xA3, + 0x8F, + 0xE3, + 0x2C, + 0xC3, + 0x49, + 0xA9, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor3 + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x8E, + 0xDD, + 0xC9, + 0xB1, + 0x6E, + 0x3C, + 0x4E, + 0xA6, + 0x58, + 0x67, + 0x5D, + 0x9C, + 0x64, + 0xD4, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor4 + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0xE7, + 0x47, + 0xAE, + 0x10, + 0x79, + 0x25, + 0x44, + 0xA4, + 0x82, + 0xA0, + 0x5B, + 0x75, + 0x8A, + 0xDC, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor5 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x31, + 0xEA, + 0x48, + 0xCD, + 0x7F, + 0x76, + 0x40, + 0xA7, + 0x9C, + 0x90, + 0xCC, + 0x4B, + 0x85, + 0x2C, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor6 + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0xB2, + 0x38, + 0x7A, + 0xC8, + 0xCE, + 0xEB, + 0x4E, + 0x83, + 0x0F, + 0xD8, + 0xD0, + 0x7A, + 0xED, + 0xEB, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor7 + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0x3F, + 0x48, + 0xD3, + 0x12, + 0x9A, + 0xBA, + 0x53, + 0xBF, + 0xC8, + 0x88, + 0xB7, + 0xFF, + 0x79, + 0x77, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositor8 + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0xDE, + 0x0B, + 0x9A, + 0x7B, + 0xFE, + 0x62, + 0x5F, + 0xA3, + 0x66, + 0x9C, + 0xF8, + 0xEF, + 0xFE, + 0x21, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositorStatics + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0xB9, + 0x0D, + 0x08, + 0x1E, + 0x12, + 0x97, + 0x4D, + 0x8B, + 0x74, + 0x1D, + 0xFC, + 0xF9, + 0x19, + 0x87, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositorWithBlurredWallpaperBackdropBrush + { + get + { + ReadOnlySpan data = + [ + 0x90, + 0xB1, + 0x8F, + 0x0D, + 0x22, + 0xF1, + 0x8D, + 0x5B, + 0x9F, + 0xDD, + 0x54, + 0x3B, + 0x0D, + 0x8E, + 0xB7, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositorWithProjectedShadow + { + get + { + ReadOnlySpan data = + [ + 0x0E, + 0x33, + 0xE6, + 0xA2, + 0x60, + 0x8A, + 0x38, + 0x5A, + 0xBB, + 0x85, + 0xB4, + 0x4E, + 0xA9, + 0x01, + 0x67, + 0x7C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositorWithRadialGradient + { + get + { + ReadOnlySpan data = + [ + 0xA7, + 0xC1, + 0xB9, + 0x98, + 0x71, + 0x8E, + 0x53, + 0x4B, + 0xB4, + 0xA8, + 0x69, + 0xBA, + 0x5D, + 0x19, + 0xDC, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompositorWithVisualSurface + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x65, + 0xA1, + 0xCF, + 0x23, + 0x01, + 0x51, + 0x45, + 0x88, + 0x91, + 0x89, + 0xBD, + 0xCC, + 0x40, + 0x32, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContainerVisual + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xBC, + 0xF6, + 0x02, + 0x20, + 0xED, + 0x73, + 0x47, + 0xAF, + 0xE6, + 0xD4, + 0x9B, + 0x4A, + 0x93, + 0xDB, + 0x32, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IContainerVisualFactory + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0xA6, + 0x63, + 0x03, + 0xDA, + 0xC7, + 0x9A, + 0x4D, + 0x95, + 0xF4, + 0x69, + 0xB5, + 0xC8, + 0xDF, + 0x67, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICubicBezierEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x06, + 0x35, + 0x32, + 0xE8, + 0xC1, + 0xF9, + 0x44, + 0x96, + 0xB8, + 0xC9, + 0x8A, + 0xCF, + 0x0A, + 0xE6, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDelegatedInkTrailVisual + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x60, + 0x6E, + 0x85, + 0xAB, + 0xE1, + 0x23, + 0x5B, + 0x8E, + 0x3D, + 0xD5, + 0x13, + 0xF2, + 0x21, + 0xC9, + 0x98, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDelegatedInkTrailVisualStatics + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x6B, + 0xAF, + 0x0D, + 0xC6, + 0x42, + 0x5C, + 0x55, + 0x92, + 0x67, + 0xE0, + 0xAC, + 0x66, + 0x3A, + 0xF8, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDistantLight + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xFA, + 0x8C, + 0x31, + 0xE3, + 0x5C, + 0x55, + 0x4B, + 0xAB, + 0x5D, + 0x07, + 0xA0, + 0x03, + 0x53, + 0xAC, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDistantLight2 + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0xAA, + 0xCD, + 0xDB, + 0x4B, + 0x29, + 0xD7, + 0x48, + 0xB6, + 0x0E, + 0x76, + 0xDF, + 0x64, + 0xAA, + 0x39, + 0x2B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDropShadow + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x7C, + 0x97, + 0xCB, + 0x54, + 0xA1, + 0x51, + 0x48, + 0x85, + 0xE7, + 0xA8, + 0x92, + 0x4C, + 0x84, + 0xFA, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDropShadow2 + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x18, + 0x42, + 0x6C, + 0xB9, + 0x15, + 0x2D, + 0x4C, + 0x8D, + 0x4A, + 0x07, + 0x67, + 0xDF, + 0x11, + 0x97, + 0x7A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IElasticEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x62, + 0xDE, + 0x66, + 0x4E, + 0x05, + 0x94, + 0x55, + 0x84, + 0x75, + 0xC2, + 0x2C, + 0xB5, + 0x1F, + 0x1B, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IExponentialEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x1A, + 0x7D, + 0x6F, + 0xD2, + 0x98, + 0x38, + 0x56, + 0xA3, + 0x4A, + 0x00, + 0x48, + 0x65, + 0x54, + 0xC7, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IExpressionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x31, + 0x54, + 0xCC, + 0x6A, + 0x3D, + 0x7D, + 0xF3, + 0x4B, + 0xAB, + 0xB6, + 0xF4, + 0x4B, + 0xDC, + 0x48, + 0x88, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IImplicitAnimationCollection + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0xA3, + 0x98, + 0x05, + 0x92, + 0x0A, + 0x9D, + 0x4C, + 0xA4, + 0x27, + 0xB2, + 0x55, + 0x19, + 0x25, + 0x0D, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInsetClip + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0xE6, + 0x73, + 0x1E, + 0xC7, + 0x84, + 0x7A, + 0x47, + 0xB4, + 0x74, + 0x58, + 0x80, + 0xE0, + 0x44, + 0x2E, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x7F, + 0x6E, + 0x12, + 0xE9, + 0x3A, + 0x40, + 0x45, + 0x9A, + 0x8A, + 0xDE, + 0xAE, + 0x8A, + 0x4A, + 0x4A, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyFrameAnimation2 + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x88, + 0xB4, + 0xF4, + 0x40, + 0x29, + 0xC0, + 0x4E, + 0xA4, + 0x1A, + 0xEB, + 0x6D, + 0x80, + 0x1A, + 0x2F, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyFrameAnimation3 + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0xF0, + 0x5B, + 0x84, + 0xDE, + 0xD8, + 0x2F, + 0x46, + 0x87, + 0x53, + 0xC8, + 0x0D, + 0x43, + 0xC6, + 0xFF, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyFrameAnimationFactory + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x03, + 0x08, + 0xBF, + 0x2A, + 0x71, + 0xC1, + 0x4F, + 0x8C, + 0x87, + 0x97, + 0x08, + 0x59, + 0xED, + 0x8D, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILayerVisual + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x39, + 0x84, + 0xAF, + 0x44, + 0x04, + 0x87, + 0x48, + 0x8E, + 0x83, + 0xB4, + 0x0B, + 0x25, + 0x3F, + 0x82, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILayerVisual2 + { + get + { + ReadOnlySpan data = + [ + 0xEB, + 0xAE, + 0xF9, + 0x98, + 0x23, + 0x6F, + 0xF1, + 0x49, + 0x90, + 0xB1, + 0x1F, + 0x59, + 0xA1, + 0x4F, + 0xBC, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ILinearEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x97, + 0x00, + 0x94, + 0xA6, + 0xC7, + 0xB3, + 0x46, + 0xAC, + 0xF7, + 0x1A, + 0x26, + 0x8A, + 0x0A, + 0x11, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0xE1, + 0x8D, + 0x43, + 0x9B, + 0x76, + 0x21, + 0x48, + 0xA9, + 0x49, + 0x28, + 0x4A, + 0x65, + 0x47, + 0xE8, + 0x73, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INaturalMotionAnimationFactory + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xCB, + 0x3A, + 0xF5, + 0x6A, + 0xCF, + 0x87, + 0x43, + 0xA3, + 0xFE, + 0x52, + 0x21, + 0xF3, + 0xE7, + 0xE0, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPathKeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0xC9, + 0x18, + 0x0D, + 0x9D, + 0x76, + 0x15, + 0x3F, + 0x4B, + 0xBE, + 0x60, + 0x1D, + 0x50, + 0x31, + 0xF5, + 0xE7, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointLight + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x45, + 0x85, + 0xB1, + 0x5A, + 0x0C, + 0xB0, + 0x4A, + 0xBE, + 0xDC, + 0x4F, + 0x35, + 0x46, + 0x94, + 0x82, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointLight2 + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x8F, + 0xE9, + 0xEF, + 0x78, + 0x06, + 0x69, + 0x4F, + 0xB1, + 0x64, + 0xA8, + 0x10, + 0xD9, + 0x95, + 0xBC, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointLight3 + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x83, + 0x0A, + 0x4C, + 0xE9, + 0xD4, + 0x8A, + 0x46, + 0x87, + 0xAE, + 0x7B, + 0xA4, + 0x3A, + 0xB2, + 0x94, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPowerEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x53, + 0xFF, + 0xC3, + 0x8B, + 0x13, + 0x15, + 0x58, + 0x89, + 0x1A, + 0xB7, + 0xF6, + 0x15, + 0xCC, + 0xC5, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IQuaternionKeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x58, + 0x4E, + 0x40, + 0xF6, + 0xEC, + 0x40, + 0x42, + 0x85, + 0x20, + 0x67, + 0x12, + 0x79, + 0xCF, + 0x36, + 0xBC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRectangleClip + { + get + { + ReadOnlySpan data = + [ + 0x9E, + 0x54, + 0xE7, + 0xB3, + 0xB4, + 0x00, + 0x53, + 0x5B, + 0x8B, + 0xE8, + 0x35, + 0x3F, + 0x6C, + 0x43, + 0x31, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRedirectVisual + { + get + { + ReadOnlySpan data = + [ + 0x40, + 0xE3, + 0xC6, + 0x8C, + 0x75, + 0x8B, + 0x22, + 0x54, + 0xB0, + 0x6F, + 0x09, + 0xFF, + 0xE9, + 0xF8, + 0x61, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRenderingDeviceReplacedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7D, + 0xAC, + 0x31, + 0x3A, + 0xBF, + 0x28, + 0x7A, + 0x4E, + 0x85, + 0x24, + 0x71, + 0x67, + 0x9D, + 0x48, + 0x0F, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScalarKeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x8F, + 0x28, + 0xAE, + 0x2C, + 0x25, + 0x95, + 0x4B, + 0xA7, + 0x25, + 0xBF, + 0x85, + 0xE3, + 0x80, + 0x00, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScalarNaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x45, + 0xA9, + 0x94, + 0x92, + 0xBF, + 0x5B, + 0x49, + 0xB5, + 0xBD, + 0xD2, + 0xC6, + 0x59, + 0x43, + 0x07, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScalarNaturalMotionAnimationFactory + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xA4, + 0x5A, + 0x83, + 0x1C, + 0x67, + 0xDD, + 0x41, + 0xAF, + 0x48, + 0xAE, + 0x8D, + 0xEF, + 0x8B, + 0x15, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShapeVisual + { + get + { + ReadOnlySpan data = + [ + 0xC3, + 0x13, + 0xBD, + 0xF2, + 0x7E, + 0xBA, + 0x0F, + 0x4B, + 0x91, + 0x26, + 0xFF, + 0xB7, + 0x53, + 0x6B, + 0x81, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISineEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0x18, + 0xB5, + 0xF1, + 0x63, + 0x95, + 0x74, + 0x54, + 0xBD, + 0x13, + 0x44, + 0xB2, + 0xDF, + 0x4B, + 0x1D, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpotLight + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0xE2, + 0x9F, + 0x5A, + 0xA1, + 0x44, + 0x95, + 0x4F, + 0xA4, + 0x22, + 0x8F, + 0xA5, + 0x11, + 0x6B, + 0xDB, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpotLight2 + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x61, + 0xEE, + 0x64, + 0x86, + 0x06, + 0xEA, + 0x4D, + 0xA9, + 0xE8, + 0xBC, + 0x3A, + 0x8C, + 0x70, + 0x14, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpotLight3 + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x3E, + 0xD0, + 0xE4, + 0x1F, + 0x13, + 0x0E, + 0x48, + 0x85, + 0x9E, + 0xB8, + 0x27, + 0x05, + 0xB7, + 0x43, + 0x60, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpringScalarNaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x5F, + 0xA9, + 0x72, + 0x05, + 0xF9, + 0x37, + 0xBE, + 0x4F, + 0xB8, + 0x7B, + 0x5C, + 0xD0, + 0x3A, + 0x89, + 0x50, + 0x1C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpringVector2NaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0xB5, + 0x94, + 0xF4, + 0x23, + 0x73, + 0xEE, + 0x0F, + 0x4F, + 0xA4, + 0x23, + 0x40, + 0x2B, + 0x94, + 0x6D, + 0xF4, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpringVector3NaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x49, + 0x87, + 0x6C, + 0x7B, + 0xD5, + 0x94, + 0x47, + 0x8E, + 0x2D, + 0xCE, + 0xCB, + 0x11, + 0xE1, + 0x94, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpriteVisual + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x55, + 0xE0, + 0x08, + 0xD1, + 0x1A, + 0x97, + 0x4F, + 0x97, + 0x57, + 0x40, + 0x2D, + 0x76, + 0xE4, + 0x23, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISpriteVisual2 + { + get + { + ReadOnlySpan data = + [ + 0x64, + 0x96, + 0x8C, + 0x58, + 0x7A, + 0x99, + 0x50, + 0x48, + 0x91, + 0xFE, + 0x53, + 0xCB, + 0x58, + 0xF8, + 0x1C, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStepEasingFunction + { + get + { + ReadOnlySpan data = + [ + 0x4B, + 0xA7, + 0xCA, + 0xD0, + 0x0C, + 0x56, + 0x0B, + 0x4A, + 0xA5, + 0xF6, + 0x20, + 0x6C, + 0xA8, + 0xC3, + 0xEC, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector2KeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x45, + 0x41, + 0xDF, + 0x29, + 0x4E, + 0x11, + 0x4F, + 0xB5, + 0x5E, + 0xBF, + 0x2A, + 0x6E, + 0xB3, + 0x62, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector2NaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x7D, + 0x0B, + 0x3E, + 0x0F, + 0x12, + 0xE5, + 0x9D, + 0x47, + 0xA0, + 0x0C, + 0x77, + 0xC9, + 0x3A, + 0x30, + 0xA3, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector2NaturalMotionAnimationFactory + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0xFF, + 0x74, + 0x8C, + 0x61, + 0x07, + 0xA2, + 0x48, + 0xBD, + 0xDB, + 0x6A, + 0xFC, + 0xC5, + 0x2B, + 0x89, + 0xD8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector3KeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x9D, + 0x03, + 0xC8, + 0x81, + 0xA2, + 0xC2, + 0x43, + 0xA7, + 0x3D, + 0xB6, + 0x8E, + 0x3C, + 0x53, + 0x3C, + 0x40, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector3NaturalMotionAnimation + { + get + { + ReadOnlySpan data = + [ + 0x2C, + 0x04, + 0x17, + 0x9C, + 0xCA, + 0xE2, + 0xAD, + 0x45, + 0x96, + 0x9E, + 0x4E, + 0x78, + 0xB7, + 0xB9, + 0xAD, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector3NaturalMotionAnimationFactory + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0x1D, + 0xA8, + 0x21, + 0x80, + 0x08, + 0x7B, + 0x45, + 0xAC, + 0x87, + 0xB6, + 0x09, + 0x01, + 0x8C, + 0x87, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVector4KeyFrameAnimation + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0x94, + 0x57, + 0x24, + 0xDD, + 0xAD, + 0x85, + 0x43, + 0x96, + 0x06, + 0xB6, + 0xA3, + 0xD5, + 0xE4, + 0xE1, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisual + { + get + { + ReadOnlySpan data = + [ + 0x2D, + 0x20, + 0x7E, + 0x11, + 0x59, + 0xA8, + 0x89, + 0x4C, + 0x87, + 0x3B, + 0xC2, + 0xAA, + 0x56, + 0x67, + 0x88, + 0xE3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisual2 + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0xB6, + 0x52, + 0x30, + 0xC3, + 0x56, + 0x3E, + 0x4C, + 0x8B, + 0xF3, + 0xF6, + 0xE1, + 0xAD, + 0x47, + 0x3F, + 0x06, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisual3 + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0x58, + 0xBE, + 0x30, + 0xB6, + 0xF4, + 0xB7, + 0x4A, + 0x80, + 0xDD, + 0x37, + 0x38, + 0xCB, + 0xAC, + 0x9F, + 0x2C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisual4 + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0xBF, + 0x76, + 0x94, + 0x4B, + 0xE2, + 0xF9, + 0x5B, + 0x9E, + 0xBE, + 0x62, + 0x74, + 0x10, + 0x9B, + 0x27, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisualCollection + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x55, + 0x74, + 0x8B, + 0x3E, + 0xFD, + 0x98, + 0x4A, + 0x84, + 0xA8, + 0xE9, + 0x49, + 0x46, + 0x8C, + 0x6B, + 0xCB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisualElement + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x46, + 0xE6, + 0x01, + 0x82, + 0x1D, + 0xF4, + 0x42, + 0x8E, + 0x3F, + 0xA7, + 0x22, + 0xDE, + 0xD3, + 0x3F, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisualElement2 + { + get + { + ReadOnlySpan data = + [ + 0xA0, + 0xE8, + 0x3A, + 0x99, + 0x57, + 0x60, + 0x40, + 0x5E, + 0x91, + 0x8C, + 0xE0, + 0x6E, + 0x0B, + 0x7E, + 0x7C, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisualFactory + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0xF9, + 0x0F, + 0xAD, + 0x02, + 0xB5, + 0xB5, + 0x4E, + 0x87, + 0xB4, + 0x9A, + 0x38, + 0xA7, + 0x1D, + 0x01, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisualUnorderedCollection + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xAA, + 0x8F, + 0x33, + 0xC8, + 0x54, + 0xA7, + 0x40, + 0x80, + 0x29, + 0xC9, + 0xCE, + 0xEB, + 0x0A, + 0xA2, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.core/IID.Manual.cs new file mode 100644 index 0000000000..b6d3b015b9 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.core/IID.Manual.cs @@ -0,0 +1,1471 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IDispatchedHandler + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0x76, + 0xF2, + 0xD1, + 0xD8, + 0x98, + 0x36, + 0x46, + 0xBF, + 0x49, + 0xEB, + 0x79, + 0x50, + 0x75, + 0x48, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIdleDispatchedHandler + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x0C, + 0x2B, + 0xA4, + 0x21, + 0x7F, + 0xBC, + 0x4A, + 0x99, + 0xC1, + 0x8F, + 0x01, + 0x00, + 0x7F, + 0x08, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAcceleratorKeyEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0x4C, + 0x1C, + 0xFF, + 0x87, + 0x92, + 0x0B, + 0x47, + 0x83, + 0x6E, + 0x90, + 0x86, + 0xE3, + 0x12, + 0x6A, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAcceleratorKeyEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0xA9, + 0x00, + 0xD3, + 0x7E, + 0x2F, + 0x73, + 0x48, + 0xA5, + 0x55, + 0x16, + 0x6E, + 0x59, + 0x6E, + 0xE1, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAutomationProviderRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x58, + 0xF2, + 0x1F, + 0x96, + 0xBF, + 0x21, + 0x42, + 0x4B, + 0xA2, + 0x98, + 0xFA, + 0x47, + 0x9D, + 0x4C, + 0x52, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBackRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0xD2, + 0x03, + 0xD6, + 0x11, + 0xE4, + 0x4E, + 0x4A, + 0xBA, + 0x41, + 0x6A, + 0x32, + 0x7A, + 0x86, + 0x75, + 0xBC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICharacterReceivedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x65, + 0x84, + 0xC5, + 0xB2, + 0x99, + 0xCC, + 0x4B, + 0xBD, + 0x33, + 0x04, + 0xE6, + 0x3F, + 0x42, + 0x90, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IClosestInteractiveBoundsRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x11, + 0x7C, + 0x34, + 0xF8, + 0xF6, + 0xE3, + 0x40, + 0xB2, + 0x9F, + 0xAE, + 0x50, + 0xD3, + 0xE8, + 0x64, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreAcceleratorKeys + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0xF7, + 0xFD, + 0x9F, + 0xC9, + 0xB8, + 0xF0, + 0x4E, + 0xB7, + 0xD2, + 0x1D, + 0xE6, + 0x26, + 0x56, + 0x1F, + 0xC8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreClosestInteractiveBoundsRequested + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0x04, + 0x03, + 0xF3, + 0xBF, + 0xE8, + 0x8E, + 0x4E, + 0xAE, + 0x69, + 0xC9, + 0xDA, + 0xDD, + 0x57, + 0xA1, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreComponentFocusable + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x6F, + 0xF9, + 0x52, + 0x42, + 0x87, + 0x11, + 0x44, + 0xAE, + 0x69, + 0x79, + 0xA8, + 0x5F, + 0x29, + 0xAC, + 0x8B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreCursor + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x3A, + 0x89, + 0x96, + 0x1D, + 0x11, + 0x2C, + 0x44, + 0x8A, + 0x77, + 0xB8, + 0x79, + 0x92, + 0xF8, + 0xE2, + 0xD6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreCursorFactory + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x96, + 0x35, + 0xF6, + 0x9D, + 0xA7, + 0xD3, + 0x4E, + 0x8C, + 0x32, + 0xA9, + 0xEF, + 0x9D, + 0x6B, + 0x76, + 0xA4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreDispatcher + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x2F, + 0xDB, + 0x60, + 0x05, + 0xB7, + 0xDE, + 0x4F, + 0xA7, + 0xD6, + 0xEB, + 0xBB, + 0x18, + 0x91, + 0xD3, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreDispatcher2 + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x63, + 0x5E, + 0x6F, + 0xAA, + 0xE3, + 0xAE, + 0x4E, + 0xB0, + 0xE0, + 0xDC, + 0xF3, + 0x21, + 0xCA, + 0x4B, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreDispatcherWithTaskPriority + { + get + { + ReadOnlySpan data = + [ + 0xAD, + 0xEC, + 0xFA, + 0xBA, + 0x4D, + 0x48, + 0xBE, + 0x41, + 0xBA, + 0x80, + 0x1D, + 0x58, + 0xC6, + 0x52, + 0x63, + 0xEA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreIndependentInputSourceController + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x26, + 0x63, + 0x09, + 0xFE, + 0x84, + 0x8A, + 0x57, + 0x83, + 0xCA, + 0x64, + 0x25, + 0x30, + 0x9C, + 0xCD, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreIndependentInputSourceControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x4E, + 0xDC, + 0x3E, + 0x8A, + 0x9A, + 0x91, + 0x56, + 0x85, + 0x86, + 0xFC, + 0xA4, + 0xCB, + 0x57, + 0x52, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputSourceBase + { + get + { + ReadOnlySpan data = + [ + 0x07, + 0x88, + 0x48, + 0x9F, + 0x80, + 0x45, + 0xE8, + 0x4B, + 0xBE, + 0x68, + 0x92, + 0xA9, + 0x31, + 0x17, + 0x13, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreKeyboardInputSource + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x90, + 0x1C, + 0x23, + 0x69, + 0xE4, + 0xF1, + 0x4D, + 0xB2, + 0x08, + 0x6E, + 0x49, + 0x0D, + 0x71, + 0xCB, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreKeyboardInputSource2 + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0xCB, + 0x24, + 0xFA, + 0x63, + 0xF9, + 0xA5, + 0x47, + 0x87, + 0x78, + 0x20, + 0x7C, + 0x48, + 0x2B, + 0x0A, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICorePointerInputSource + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0xBB, + 0xF1, + 0xBB, + 0x7A, + 0xE4, + 0xEB, + 0x48, + 0x88, + 0x07, + 0xF8, + 0xF8, + 0xD3, + 0xEA, + 0x45, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICorePointerInputSource2 + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x70, + 0x03, + 0xD7, + 0x16, + 0x45, + 0x86, + 0x47, + 0xB1, + 0xE5, + 0x27, + 0x51, + 0xD5, + 0x63, + 0xF9, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICorePointerRedirector + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0x0C, + 0x9D, + 0x8F, + 0x88, + 0x56, + 0x0C, + 0x4B, + 0xA9, + 0xF1, + 0xF9, + 0x31, + 0xF7, + 0xFA, + 0x3D, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTouchHitTesting + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0xA2, + 0xD8, + 0xB1, + 0xCF, + 0x3A, + 0x24, + 0x41, + 0x9F, + 0xA3, + 0xEA, + 0x8A, + 0xBA, + 0x35, + 0x3C, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindow + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0xD5, + 0xB9, + 0x79, + 0x9E, + 0x87, + 0x89, + 0x4B, + 0xB7, + 0x98, + 0x79, + 0xE4, + 0x75, + 0x98, + 0x03, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindow2 + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x1B, + 0x2B, + 0x7C, + 0x17, + 0x69, + 0x61, + 0x43, + 0x9C, + 0x02, + 0x0D, + 0x9E, + 0x3A, + 0x42, + 0x0B, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindow3 + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0x0D, + 0xC2, + 0x32, + 0xEF, + 0xFA, + 0x75, + 0x43, + 0xA2, + 0xAB, + 0x32, + 0x64, + 0x0E, + 0x48, + 0x15, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindow4 + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xF0, + 0xCA, + 0x35, + 0xF0, + 0x47, + 0x6C, + 0x43, + 0xAF, + 0x97, + 0x0D, + 0xD8, + 0x8F, + 0x6F, + 0x5F, + 0x02, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindow5 + { + get + { + ReadOnlySpan data = + [ + 0xE1, + 0xE1, + 0x4A, + 0x4B, + 0x6D, + 0x2E, + 0xAA, + 0x4E, + 0xBD, + 0xA1, + 0x1C, + 0x5C, + 0xC1, + 0xBE, + 0xE1, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowDialog + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x2C, + 0x39, + 0xE7, + 0x8D, + 0xC7, + 0x7E, + 0x42, + 0x8B, + 0x2C, + 0x01, + 0xFF, + 0x42, + 0x0C, + 0x69, + 0xD5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowDialogFactory + { + get + { + ReadOnlySpan data = + [ + 0x55, + 0xA8, + 0xB2, + 0xCF, + 0x59, + 0x1C, + 0x13, + 0x4B, + 0xB1, + 0xE5, + 0x16, + 0xE2, + 0x98, + 0x05, + 0xF7, + 0xC4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x1E, + 0x2B, + 0x27, + 0x33, + 0xC6, + 0xA5, + 0x4D, + 0xA2, + 0x6C, + 0xC6, + 0xD0, + 0xF5, + 0x6B, + 0x29, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowFlyout + { + get + { + ReadOnlySpan data = + [ + 0x4D, + 0x85, + 0x9D, + 0xE8, + 0x50, + 0x20, + 0xBB, + 0x40, + 0xB3, + 0x44, + 0xF6, + 0xF3, + 0x55, + 0xEE, + 0xB3, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowFlyoutFactory + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xC6, + 0xC4, + 0xDE, + 0xE8, + 0x93, + 0x7C, + 0x4F, + 0xBE, + 0x27, + 0xCE, + 0xFA, + 0xA1, + 0xAF, + 0x68, + 0xA7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowPopupShowingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0x5F, + 0x15, + 0x26, + 0xA5, + 0x5B, + 0xA4, + 0x4E, + 0xA3, + 0xB4, + 0x2D, + 0xC7, + 0xD6, + 0x3C, + 0x8E, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowResizeManager + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0xB9, + 0xF0, + 0xB8, + 0x50, + 0xB3, + 0xB3, + 0x48, + 0xA1, + 0x98, + 0x5C, + 0x1A, + 0x84, + 0x70, + 0x02, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowResizeManagerLayoutCapability + { + get + { + ReadOnlySpan data = + [ + 0x7B, + 0xF2, + 0x74, + 0xBB, + 0x44, + 0xA5, + 0x01, + 0x43, + 0x80, + 0xE6, + 0x0A, + 0xE0, + 0x33, + 0xEF, + 0x45, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowResizeManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x45, + 0x90, + 0x4A, + 0xAE, + 0x70, + 0x6D, + 0xDB, + 0x49, + 0x8E, + 0x68, + 0x46, + 0xFF, + 0xBD, + 0x17, + 0xD3, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowStatic + { + get + { + ReadOnlySpan data = + [ + 0x05, + 0x90, + 0x23, + 0x4D, + 0x2A, + 0x3C, + 0xB1, + 0x41, + 0x90, + 0x22, + 0x53, + 0x6B, + 0xB9, + 0xCF, + 0x93, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreWindowWithContext + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0x02, + 0xC4, + 0x9A, + 0x75, + 0x35, + 0x3B, + 0x4C, + 0xAF, + 0x66, + 0xE8, + 0xC5, + 0x29, + 0xD4, + 0xD0, + 0x6C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IIdleDispatchedHandlerArgs + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x6A, + 0xBB, + 0x98, + 0x1C, + 0xDC, + 0xCB, + 0x43, + 0xB4, + 0xED, + 0xD1, + 0xC0, + 0xEB, + 0x23, + 0x91, + 0xF3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInitializeWithCoreWindow + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x20, + 0x8F, + 0x18, + 0x73, + 0x98, + 0x4A, + 0x46, + 0xAC, + 0xE5, + 0x57, + 0xE0, + 0x10, + 0xF4, + 0x65, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputEnabledEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0x1D, + 0x37, + 0x80, + 0xD8, + 0x2F, + 0x24, + 0x4C, + 0xAA, + 0x86, + 0x31, + 0x63, + 0xA8, + 0x7B, + 0x4E, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x30, + 0xE9, + 0xF5, + 0x5F, + 0x44, + 0x25, + 0x17, + 0x4A, + 0xBD, + 0x78, + 0x1F, + 0x2F, + 0xDE, + 0xBB, + 0x10, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKeyEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0xDD, + 0x3A, + 0x58, + 0x90, + 0x07, + 0x71, + 0x45, + 0x9B, + 0x12, + 0x64, + 0x5E, + 0xF9, + 0xD7, + 0x9E, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPointerEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB1, + 0x9C, + 0x0D, + 0x92, + 0xFC, + 0xA5, + 0x21, + 0x4A, + 0x8C, + 0x09, + 0x49, + 0xDF, + 0xE6, + 0xFF, + 0xE2, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemNavigationManager + { + get + { + ReadOnlySpan data = + [ + 0x18, + 0x31, + 0x02, + 0x93, + 0x50, + 0xCF, + 0xA6, + 0x42, + 0x97, + 0x06, + 0x69, + 0x10, + 0x7F, + 0xA1, + 0x22, + 0xE1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemNavigationManager2 + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x04, + 0x51, + 0x8C, + 0xBE, + 0x67, + 0xAE, + 0x49, + 0x95, + 0x09, + 0x67, + 0x1C, + 0x1E, + 0x54, + 0xA3, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ISystemNavigationManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0xB5, + 0x52, + 0xDC, + 0xE0, + 0xBE, + 0x05, + 0x43, + 0x8C, + 0x54, + 0x68, + 0x22, + 0x8E, + 0xD6, + 0x83, + 0xB5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITouchHitTestingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xB8, + 0xF3, + 0x22, + 0x7C, + 0x0B, + 0x4E, + 0x42, + 0x9D, + 0xF7, + 0x33, + 0xD4, + 0xF9, + 0x62, + 0x93, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IVisibilityChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0x18, + 0x99, + 0xBF, + 0x01, + 0xD8, + 0x64, + 0x45, + 0xA4, + 0x95, + 0xB1, + 0xE8, + 0x4F, + 0x8A, + 0xD0, + 0x85, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0x65, + 0x9D, + 0x17, + 0x58, + 0x46, + 0xB6, + 0x4C, + 0xAA, + 0x13, + 0x41, + 0xD0, + 0x94, + 0xEA, + 0x25, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowSizeChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC7, + 0x0E, + 0x20, + 0x5A, + 0x26, + 0x04, + 0xDC, + 0x47, + 0xB8, + 0x6C, + 0x6F, + 0x47, + 0x59, + 0x15, + 0xE4, + 0x51, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.input.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.input.core/IID.Manual.cs new file mode 100644 index 0000000000..9b6da593df --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.input.core/IID.Manual.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.input.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IRadialControllerIndependentInputSource + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x7E, + 0x57, + 0x3D, + 0xEE, + 0x4C, + 0xE6, + 0x11, + 0xB5, + 0x35, + 0x00, + 0x1B, + 0xDC, + 0x06, + 0xAB, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRadialControllerIndependentInputSource2 + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0xAA, + 0x73, + 0x70, + 0xF3, + 0x35, + 0xEB, + 0x4E, + 0x87, + 0x51, + 0xBE, + 0x4D, + 0x0A, + 0x66, + 0xFA, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRadialControllerIndependentInputSourceStatics + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0x7E, + 0x57, + 0x3D, + 0xEE, + 0x4C, + 0xE6, + 0x11, + 0xB5, + 0x35, + 0x00, + 0x1B, + 0xDC, + 0x06, + 0xAB, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.input/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.input/IID.Manual.cs new file mode 100644 index 0000000000..96029ba2e2 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.input/IID.Manual.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IPointerPointPhysicalPosition + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x31, + 0x85, + 0xa3, + 0xa5, + 0xe7, + 0x48, + 0x59, + 0x9c, + 0x0b, + 0x89, + 0x34, + 0x02, + 0x04, + 0x80, + 0x6c, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.notifications/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.notifications/IID.Manual.cs new file mode 100644 index 0000000000..c16dadf48d --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.notifications/IID.Manual.cs @@ -0,0 +1,1795 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.notifications.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAdaptiveNotificationContent + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0xBE, + 0x0D, + 0xEB, + 0x48, + 0x74, + 0x8D, + 0x44, + 0x9D, + 0xB8, + 0xD7, + 0x8A, + 0xCD, + 0x2A, + 0xBB, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAdaptiveNotificationText + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0xA3, + 0xD4, + 0x46, + 0x9A, + 0x60, + 0x26, + 0x43, + 0xA4, + 0x0B, + 0xBF, + 0xDE, + 0x87, + 0x20, + 0x34, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBadgeNotification + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0xB4, + 0x5C, + 0x07, + 0x8A, + 0xD0, + 0x2F, + 0x4E, + 0x92, + 0x33, + 0x7E, + 0x28, + 0x9C, + 0x1F, + 0x77, + 0x22, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBadgeNotificationFactory + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x55, + 0xF2, + 0xED, + 0x18, + 0x06, + 0x59, + 0x4D, + 0x94, + 0x8A, + 0x5A, + 0x61, + 0x04, + 0x0C, + 0x52, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBadgeUpdateManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0xBC, + 0x21, + 0x6B, + 0x99, + 0x86, + 0x03, + 0xE5, + 0x44, + 0xBA, + 0x8D, + 0x0C, + 0x10, + 0x77, + 0xA6, + 0x2E, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBadgeUpdateManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0xAA, + 0x0F, + 0x40, + 0x33, + 0xD5, + 0x6D, + 0x05, + 0x41, + 0xAE, + 0xBC, + 0x9B, + 0x50, + 0xFC, + 0xA4, + 0x92, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBadgeUpdateManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xCE, + 0x35, + 0x9A, + 0x97, + 0x40, + 0xF9, + 0xBF, + 0x48, + 0x94, + 0xE8, + 0xCA, + 0x24, + 0x4D, + 0x40, + 0x0B, + 0x41, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IBadgeUpdater + { + get + { + ReadOnlySpan data = + [ + 0xD4, + 0x1F, + 0xFA, + 0xB5, + 0x62, + 0x75, + 0x6C, + 0x4F, + 0xBF, + 0xA3, + 0x1B, + 0x6E, + 0xD2, + 0xE5, + 0x7F, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownAdaptiveNotificationHintsStatics + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0x65, + 0x20, + 0x06, + 0x96, + 0xD4, + 0x7D, + 0x49, + 0x86, + 0x92, + 0x4F, + 0x7D, + 0x7C, + 0x27, + 0x70, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownAdaptiveNotificationTextStylesStatics + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x92, + 0x21, + 0x20, + 0x96, + 0x89, + 0xAA, + 0x45, + 0x8B, + 0xA1, + 0xD4, + 0x61, + 0xD7, + 0x2C, + 0x2A, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IKnownNotificationBindingsStatics + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x7B, + 0x42, + 0x79, + 0xB7, + 0xA8, + 0x58, + 0x4D, + 0x89, + 0xEA, + 0x76, + 0xA7, + 0xB7, + 0xBC, + 0xCD, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INotification + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x37, + 0x80, + 0x10, + 0x76, + 0xEB, + 0x82, + 0x4F, + 0x97, + 0xBC, + 0xDA, + 0x07, + 0x53, + 0x0A, + 0x2E, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INotificationBinding + { + get + { + ReadOnlySpan data = + [ + 0x85, + 0x4B, + 0x9E, + 0xF2, + 0x70, + 0x03, + 0xD3, + 0x4A, + 0xB4, + 0xEA, + 0xDA, + 0x9E, + 0x35, + 0xE7, + 0xEA, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INotificationData + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x23, + 0xFD, + 0x9F, + 0x6A, + 0x9D, + 0xAF, + 0x4A, + 0xB6, + 0xAC, + 0xFF, + 0x17, + 0xF0, + 0xC1, + 0xF2, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INotificationDataFactory + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0xE3, + 0xC1, + 0x23, + 0x10, + 0x1C, + 0xFB, + 0x46, + 0x80, + 0x40, + 0xDE, + 0xC3, + 0x84, + 0x62, + 0x1C, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_INotificationVisual + { + get + { + ReadOnlySpan data = + [ + 0x8E, + 0x5B, + 0x83, + 0x68, + 0x56, + 0xAA, + 0x11, + 0x4E, + 0x86, + 0xD3, + 0x5F, + 0x9A, + 0x69, + 0x57, + 0xBC, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledTileNotification + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0xA6, + 0xBC, + 0x0A, + 0xDC, + 0x99, + 0x78, + 0x4C, + 0xA1, + 0x1C, + 0xC9, + 0xE7, + 0xF8, + 0x6D, + 0x7E, + 0xF7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledTileNotificationFactory + { + get + { + ReadOnlySpan data = + [ + 0x8A, + 0x13, + 0x83, + 0x33, + 0xC0, + 0x98, + 0x3B, + 0x4C, + 0xBB, + 0xD6, + 0x4A, + 0x63, + 0x3C, + 0x7C, + 0xFC, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledToastNotification + { + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x77, + 0xF5, + 0x79, + 0xE7, + 0x0D, + 0xCD, + 0x48, + 0x97, + 0x40, + 0x9B, + 0x37, + 0x04, + 0x90, + 0xC8, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledToastNotification2 + { + get + { + ReadOnlySpan data = + [ + 0x9C, + 0xA0, + 0x6E, + 0xA6, + 0xB4, + 0x31, + 0xB0, + 0x43, + 0xB5, + 0xDD, + 0x7A, + 0x40, + 0xE8, + 0x53, + 0x63, + 0xB1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledToastNotification3 + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0x9E, + 0x42, + 0x98, + 0x32, + 0xBD, + 0x3B, + 0x4A, + 0x9D, + 0x15, + 0x22, + 0xAE, + 0xA4, + 0x94, + 0x62, + 0xA1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledToastNotification4 + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0x61, + 0x47, + 0x1D, + 0xEF, + 0xBD, + 0x4A, + 0x4E, + 0x96, + 0xBE, + 0x01, + 0x01, + 0x36, + 0x9B, + 0x58, + 0xD2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledToastNotificationFactory + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xD1, + 0xBE, + 0xE7, + 0xB9, + 0x0B, + 0x89, + 0x41, + 0x83, + 0x94, + 0x31, + 0x76, + 0x1B, + 0x47, + 0x6F, + 0xD7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IScheduledToastNotificationShowingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0xF6, + 0x73, + 0x61, + 0x2A, + 0x41, + 0x2C, + 0x5E, + 0xA6, + 0xED, + 0xA0, + 0x20, + 0x9A, + 0xEF, + 0x9A, + 0x09, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IShownTileNotification + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0x89, + 0x2D, + 0x34, + 0xF2, + 0x5A, + 0x1A, + 0x48, + 0xA6, + 0xA3, + 0xF2, + 0xFD, + 0xC7, + 0x8D, + 0xE8, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileFlyoutNotification + { + get + { + ReadOnlySpan data = + [ + 0x61, + 0xB2, + 0x53, + 0x9A, + 0x0C, + 0xC7, + 0xBE, + 0x42, + 0xB2, + 0xF3, + 0xF4, + 0x2A, + 0xA9, + 0x7D, + 0x34, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileFlyoutNotificationFactory + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0x6F, + 0x55, + 0xEF, + 0x26, + 0x52, + 0x2B, + 0x4F, + 0xB2, + 0x78, + 0x88, + 0xA3, + 0x5D, + 0xFE, + 0x56, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileFlyoutUpdateManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x3B, + 0x36, + 0x04, + 0xC0, + 0x1A, + 0x99, + 0x4B, + 0x88, + 0xE7, + 0xAD, + 0xA8, + 0x3E, + 0x95, + 0x3D, + 0x48, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileFlyoutUpdater + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xC7, + 0x40, + 0x8D, + 0x65, + 0xC4, + 0x52, + 0x40, + 0xA7, + 0x40, + 0x5C, + 0x26, + 0x54, + 0xC1, + 0xA0, + 0x89, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileNotification + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0xC8, + 0xAE, + 0xEB, + 0xEC, + 0x50, + 0x18, + 0x4C, + 0xB4, + 0xD0, + 0x3A, + 0xF0, + 0x2E, + 0x55, + 0x40, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileNotificationFactory + { + get + { + ReadOnlySpan data = + [ + 0x6E, + 0xDD, + 0xAB, + 0xC6, + 0x28, + 0x49, + 0xC8, + 0x46, + 0xBD, + 0xBF, + 0x81, + 0xA0, + 0x47, + 0xDE, + 0xA0, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileUpdateManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x13, + 0x14, + 0x55, + 0xE2, + 0x2E, + 0x2D, + 0x4E, + 0x9C, + 0xC1, + 0x21, + 0x6A, + 0x20, + 0xDE, + 0xCC, + 0x9F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileUpdateManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0x9E, + 0x15, + 0xDA, + 0xA9, + 0x3E, + 0x86, + 0x49, + 0x8D, + 0x84, + 0xB0, + 0x9D, + 0x5E, + 0x12, + 0x27, + 0x6D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileUpdateManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0x1D, + 0x1C, + 0x73, + 0x14, + 0x8E, + 0x7C, + 0x4B, + 0xA3, + 0x4B, + 0x9D, + 0x22, + 0xDE, + 0x76, + 0xC8, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileUpdater + { + get + { + ReadOnlySpan data = + [ + 0x8B, + 0xA4, + 0x42, + 0x09, + 0x91, + 0x1D, + 0xEC, + 0x44, + 0x92, + 0x43, + 0xC1, + 0xE8, + 0x21, + 0xC2, + 0x9A, + 0x20, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITileUpdater2 + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x6E, + 0x26, + 0xA2, + 0xEE, + 0x15, + 0xED, + 0x43, + 0x83, + 0xF5, + 0x65, + 0xB3, + 0x52, + 0xBB, + 0x1A, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastActivatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF3, + 0x92, + 0xBF, + 0xE3, + 0x97, + 0xC1, + 0x6F, + 0x43, + 0x82, + 0x65, + 0x06, + 0x25, + 0x82, + 0x4F, + 0x8D, + 0xAC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastActivatedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0xA5, + 0x7D, + 0xAB, + 0x61, + 0xCC, + 0x8E, + 0x56, + 0x81, + 0xBE, + 0x30, + 0x4A, + 0xC3, + 0x10, + 0x38, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastCollection + { + get + { + ReadOnlySpan data = + [ + 0xB0, + 0xC3, + 0x8B, + 0x0A, + 0xBE, + 0xE0, + 0x58, + 0x48, + 0xBC, + 0x2A, + 0x89, + 0xDF, + 0xE0, + 0xB3, + 0x28, + 0x63, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastCollectionFactory + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0xD3, + 0x4D, + 0x16, + 0xC4, + 0x73, + 0xF7, + 0x44, + 0xB4, + 0xFF, + 0xFB, + 0x6D, + 0x4B, + 0xF1, + 0xF4, + 0xC6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastCollectionManager + { + get + { + ReadOnlySpan data = + [ + 0xFE, + 0x21, + 0x18, + 0x2A, + 0x9D, + 0x17, + 0xBC, + 0x49, + 0xB7, + 0x9D, + 0xA5, + 0x27, + 0x92, + 0x0D, + 0x36, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastDismissedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0xD9, + 0x89, + 0x3F, + 0xCB, + 0xD9, + 0x38, + 0x45, + 0xA0, + 0xF0, + 0xFF, + 0xE7, + 0x65, + 0x99, + 0x38, + 0xF8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastFailedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x68, + 0x17, + 0x35, + 0xD4, + 0xCF, + 0xF8, + 0x44, + 0xAD, + 0x64, + 0xF5, + 0x00, + 0xFD, + 0x89, + 0x6C, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotification + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x26, + 0x7E, + 0x99, + 0x9E, + 0x05, + 0x60, + 0x4E, + 0x8B, + 0x06, + 0x17, + 0x60, + 0x91, + 0x7C, + 0x8B, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotification2 + { + get + { + ReadOnlySpan data = + [ + 0xD1, + 0x9F, + 0xFB, + 0x9D, + 0x3A, + 0x14, + 0x0E, + 0x49, + 0x90, + 0xBF, + 0xB9, + 0xFB, + 0xA7, + 0x13, + 0x2D, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotification3 + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0xAE, + 0xE8, + 0x31, + 0x41, + 0x81, + 0x99, + 0x4F, + 0xBC, + 0x0A, + 0xC4, + 0xED, + 0x21, + 0x29, + 0x7D, + 0x77, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotification4 + { + get + { + ReadOnlySpan data = + [ + 0x35, + 0x49, + 0x15, + 0x15, + 0xEA, + 0x28, + 0x27, + 0x47, + 0x88, + 0xE9, + 0xC5, + 0x86, + 0x80, + 0xE2, + 0xD1, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotification6 + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0xFE, + 0xEB, + 0x43, + 0xAE, + 0x89, + 0x1E, + 0x5C, + 0xA2, + 0x79, + 0x3A, + 0xEC, + 0xFE, + 0x9B, + 0x6F, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationActionTriggerDetail + { + get + { + ReadOnlySpan data = + [ + 0x5A, + 0x13, + 0x45, + 0x94, + 0xF3, + 0x38, + 0xF6, + 0x42, + 0x96, + 0xAA, + 0x79, + 0x55, + 0xB0, + 0xF0, + 0x3D, + 0xA2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationFactory + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x4B, + 0x12, + 0x04, + 0xC6, + 0x82, + 0x29, + 0x42, + 0xB1, + 0x09, + 0xFD, + 0x9E, + 0xD4, + 0x66, + 0x2B, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationHistory + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0xDC, + 0xAD, + 0x5C, + 0xD3, + 0x01, + 0x97, + 0x4C, + 0x98, + 0x6F, + 0x05, + 0x33, + 0x48, + 0x3F, + 0xEE, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationHistory2 + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0xD2, + 0xC3, + 0x3B, + 0x31, + 0x2F, + 0x92, + 0x40, + 0x91, + 0x29, + 0x8A, + 0xD5, + 0xAB, + 0xF0, + 0x67, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationHistoryChangedTriggerDetail + { + get + { + ReadOnlySpan data = + [ + 0xFA, + 0x7F, + 0x03, + 0xDB, + 0x68, + 0x00, + 0x2C, + 0x41, + 0x9C, + 0x83, + 0x26, + 0x7C, + 0x37, + 0xF6, + 0x56, + 0x70, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationHistoryChangedTriggerDetail2 + { + get + { + ReadOnlySpan data = + [ + 0x82, + 0xE9, + 0x36, + 0x0B, + 0x71, + 0xC8, + 0xFB, + 0x49, + 0xBA, + 0xBB, + 0x25, + 0xBD, + 0xBC, + 0x4C, + 0xC4, + 0x5B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerForUser + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x57, + 0xAB, + 0x79, + 0xFE, + 0x43, + 0x7B, + 0x48, + 0x8A, + 0x7F, + 0x99, + 0x56, + 0x72, + 0x00, + 0xAE, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerForUser2 + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x64, + 0x9C, + 0x67, + 0xAB, + 0x81, + 0xC2, + 0x42, + 0x88, + 0x19, + 0xC9, + 0x58, + 0x76, + 0x77, + 0x53, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerForUser3 + { + get + { + ReadOnlySpan data = + [ + 0x76, + 0xB1, + 0xFC, + 0x3E, + 0xC1, + 0x6C, + 0xDC, + 0x56, + 0x97, + 0x3B, + 0x25, + 0x1F, + 0x7A, + 0xAC, + 0xB1, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x3F, + 0x10, + 0xAC, + 0x50, + 0x35, + 0xD2, + 0x98, + 0x45, + 0xBB, + 0xEF, + 0x98, + 0xFE, + 0x4D, + 0x1A, + 0x3A, + 0xD4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0x3C, + 0xB9, + 0x7A, + 0x48, + 0x0E, + 0x50, + 0x47, + 0xBA, + 0x9D, + 0x1A, + 0x41, + 0x13, + 0x98, + 0x18, + 0x47, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerStatics4 + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x3F, + 0x99, + 0x8F, + 0x16, + 0xE5, + 0xFB, + 0x45, + 0x81, + 0x30, + 0x39, + 0x8E, + 0x93, + 0xFA, + 0x52, + 0xC3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotificationManagerStatics5 + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0xF5, + 0xF5, + 0xD6, + 0x0D, + 0xD4, + 0x7C, + 0x40, + 0x89, + 0x89, + 0x88, + 0xCA, + 0xB4, + 0x2C, + 0xFD, + 0x14, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotifier + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x7B, + 0x92, + 0x75, + 0xF3, + 0x03, + 0xEC, + 0x41, + 0x91, + 0xD3, + 0x6E, + 0x5B, + 0xAC, + 0x1B, + 0x38, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotifier2 + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0x89, + 0x43, + 0x35, + 0x01, + 0x7C, + 0xD5, + 0x4B, + 0x9C, + 0x20, + 0x60, + 0x43, + 0x40, + 0xCD, + 0x2B, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IToastNotifier3 + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0xA0, + 0x75, + 0xAE, + 0x0C, + 0x3B, + 0xAD, + 0x51, + 0xB7, + 0xE8, + 0xB0, + 0x8A, + 0xB6, + 0x05, + 0x25, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_WinRT_IUserNotification + { + get + { + ReadOnlySpan data = + [ + 0x2F, + 0xE5, + 0xF7, + 0xAD, + 0x53, + 0x4E, + 0xD5, + 0x42, + 0x9C, + 0x33, + 0xEB, + 0x5E, + 0xA5, + 0x15, + 0xB2, + 0x3E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUserNotificationChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x39, + 0x68, + 0xBD, + 0xB6, + 0xCF, + 0x79, + 0x25, + 0x4B, + 0x82, + 0xC0, + 0x0C, + 0xE1, + 0xEE, + 0xF8, + 0x1F, + 0x8C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.popups/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.popups/IID.Manual.cs new file mode 100644 index 0000000000..e8e7f19a24 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.popups/IID.Manual.cs @@ -0,0 +1,175 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.popups.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IUICommandInvokedHandler + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0x7A, + 0xF7, + 0xDA, + 0x7A, + 0xC2, + 0x98, + 0x42, + 0x9A, + 0xC6, + 0x29, + 0x22, + 0xC4, + 0x5E, + 0x7D, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageDialog + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x9B, + 0xF5, + 0x33, + 0x25, + 0x53, + 0xAB, + 0x43, + 0x9A, + 0xB3, + 0xBD, + 0xAE, + 0x44, + 0x0E, + 0x41, + 0x21, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IMessageDialogFactory + { + get + { + ReadOnlySpan data = + [ + 0x77, + 0x17, + 0x16, + 0x2D, + 0x6F, + 0xA6, + 0xA5, + 0x4E, + 0xBB, + 0x87, + 0x79, + 0x3F, + 0xFA, + 0x49, + 0x41, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IPopupMenu + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0xC6, + 0x9B, + 0x4E, + 0x0D, + 0x88, + 0xFC, + 0x47, + 0xA0, + 0xA1, + 0x72, + 0xB6, + 0x39, + 0xE6, + 0x25, + 0x59, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUICommand + { + get + { + ReadOnlySpan data = + [ + 0x75, + 0x3A, + 0xF9, + 0x4F, + 0x45, + 0x41, + 0xFF, + 0x47, + 0xAC, + 0x7F, + 0xDF, + 0xF1, + 0xC1, + 0xFA, + 0x5B, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUICommandFactory + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0x81, + 0x1A, + 0xA2, + 0xB0, + 0x26, + 0x76, + 0x46, + 0xAE, + 0x94, + 0x54, + 0x04, + 0x1B, + 0xC1, + 0x25, + 0xE8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.text.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.text.core/IID.Manual.cs new file mode 100644 index 0000000000..fb661cfa62 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.text.core/IID.Manual.cs @@ -0,0 +1,526 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.text.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICoreTextCompositionCompletedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0xEB, + 0x34, + 0x1F, + 0x9F, + 0xB7, + 0x21, + 0x41, + 0xA5, + 0xE7, + 0xFD, + 0xA9, + 0xB8, + 0x61, + 0x6E, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextCompositionSegment + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x6B, + 0x6C, + 0x77, + 0xAD, + 0x4E, + 0xA7, + 0x4D, + 0x8F, + 0x47, + 0x3A, + 0x88, + 0xB5, + 0x23, + 0xCC, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextCompositionStartedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x16, + 0x6B, + 0x27, + 0xE7, + 0x64, + 0xB0, + 0x4A, + 0xBC, + 0x4B, + 0xA0, + 0x2D, + 0x73, + 0x83, + 0x5B, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextEditContext + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x08, + 0x66, + 0xBF, + 0x41, + 0x40, + 0xC3, + 0x47, + 0xB2, + 0x63, + 0xA9, + 0x18, + 0xEB, + 0x5E, + 0xAE, + 0xF2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextEditContext2 + { + get + { + ReadOnlySpan data = + [ + 0xBB, + 0x7D, + 0x86, + 0xB1, + 0x3B, + 0x08, + 0xE1, + 0x49, + 0xB2, + 0x81, + 0x2B, + 0x35, + 0xD6, + 0x2B, + 0xF4, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextFormatUpdatingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0xBD, + 0x10, + 0x73, + 0xA8, + 0xB4, + 0xB1, + 0x43, + 0xB3, + 0x7B, + 0x07, + 0x24, + 0xD4, + 0xAC, + 0xA7, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextLayoutBounds + { + get + { + ReadOnlySpan data = + [ + 0x74, + 0xC9, + 0x72, + 0xE9, + 0x36, + 0x44, + 0x17, + 0x49, + 0x80, + 0xD0, + 0xA5, + 0x25, + 0xE4, + 0xCA, + 0x67, + 0x80, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextLayoutRequest + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0xA8, + 0x55, + 0x25, + 0xFD, + 0x51, + 0x03, + 0x4F, + 0x98, + 0xBF, + 0xAC, + 0x78, + 0x17, + 0x4D, + 0x68, + 0xE0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextLayoutRequest2 + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0xE6, + 0x6D, + 0x67, + 0x3D, + 0xCD, + 0xCD, + 0x4B, + 0xBF, + 0x01, + 0x7F, + 0x71, + 0x10, + 0x95, + 0x45, + 0x11, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextLayoutRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x6A, + 0xDC, + 0xB1, + 0x7B, + 0x9A, + 0x9E, + 0x4E, + 0xA5, + 0x66, + 0x4A, + 0x6B, + 0x5F, + 0x8A, + 0xD6, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextSelectionRequest + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0x04, + 0xA7, + 0xF0, + 0x8B, + 0x20, + 0x01, + 0x43, + 0x88, + 0x3C, + 0x74, + 0xCA, + 0x74, + 0x85, + 0xFD, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextSelectionRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x2B, + 0x68, + 0xC6, + 0x13, + 0x14, + 0xF6, + 0x1A, + 0x42, + 0x8F, + 0x4B, + 0x9E, + 0xC8, + 0xA5, + 0xA3, + 0x7F, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextSelectionUpdatingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x83, + 0x45, + 0xD4, + 0x7F, + 0xFE, + 0xD5, + 0x4B, + 0x8A, + 0x26, + 0x09, + 0x22, + 0xC1, + 0xB3, + 0xE6, + 0x39, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextServicesManager + { + get + { + ReadOnlySpan data = + [ + 0x83, + 0x7D, + 0x50, + 0xC2, + 0x0A, + 0x6E, + 0x8A, + 0x4A, + 0xBD, + 0xF8, + 0x19, + 0x48, + 0x87, + 0x48, + 0x54, + 0xBA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextServicesManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xA3, + 0x20, + 0x15, + 0xCF, + 0xE2, + 0x65, + 0x4D, + 0xAE, + 0xB9, + 0xB3, + 0x2D, + 0x86, + 0xFE, + 0x39, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextServicesStatics + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x9A, + 0x85, + 0x91, + 0xCF, + 0xEC, + 0xA4, + 0x47, + 0x8A, + 0xE7, + 0x09, + 0x8A, + 0x9C, + 0x6F, + 0xBB, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextTextRequest + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x50, + 0xD9, + 0x50, + 0x1E, + 0xF5, + 0xC1, + 0x4C, + 0x8C, + 0xA1, + 0xE6, + 0x34, + 0x6D, + 0x1A, + 0x61, + 0xBE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextTextRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xD0, + 0xA2, + 0x96, + 0xF0, + 0xC6, + 0x41, + 0x02, + 0x4C, + 0x8B, + 0x1A, + 0xD9, + 0x53, + 0xB0, + 0x0C, + 0xAB, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreTextTextUpdatingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x8D, + 0x91, + 0xA7, + 0xEE, + 0x2B, + 0xCC, + 0x03, + 0x4F, + 0x8F, + 0xF6, + 0x02, + 0xFD, + 0x21, + 0x7D, + 0xB4, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.text/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.text/IID.Manual.cs new file mode 100644 index 0000000000..d7fc952aac --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.text/IID.Manual.cs @@ -0,0 +1,364 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.text.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IContentLinkInfo + { + get + { + ReadOnlySpan data = + [ + 0x25, + 0x25, + 0xD5, + 0x1E, + 0x5F, + 0x1C, + 0xCB, + 0x48, + 0xB3, + 0x35, + 0x78, + 0xB5, + 0x0A, + 0x2E, + 0xE6, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFontWeights + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0xA4, + 0x80, + 0x78, + 0xAB, + 0x01, + 0x97, + 0x49, + 0x85, + 0x17, + 0xDF, + 0x82, + 0x2A, + 0x0C, + 0x45, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFontWeightsStatics + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x79, + 0xB5, + 0xB3, + 0xA9, + 0x1B, + 0xEB, + 0x48, + 0x9D, + 0xAD, + 0xC0, + 0x95, + 0xE8, + 0xC2, + 0x3B, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IRichEditTextRange + { + get + { + ReadOnlySpan data = + [ + 0x15, + 0x35, + 0x4E, + 0x37, + 0x8A, + 0xBA, + 0x6E, + 0x4A, + 0x8C, + 0x59, + 0x0D, + 0xDE, + 0x3D, + 0x0C, + 0xF5, + 0xCD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextCharacterFormat + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0xF3, + 0xDE, + 0x5A, + 0xFB, + 0x05, + 0x2D, + 0x44, + 0x80, + 0x65, + 0x64, + 0x2A, + 0xFE, + 0xA0, + 0x2C, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextConstantsStatics + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x7C, + 0x9E, + 0x77, + 0x9D, + 0x18, + 0xFA, + 0x4B, + 0x97, + 0xC8, + 0x10, + 0xDB, + 0x13, + 0x5D, + 0x97, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextDocument + { + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x4D, + 0xEE, + 0xBE, + 0xB2, + 0x90, + 0x8C, + 0x40, + 0xA2, + 0xF6, + 0x0A, + 0x0A, + 0xC3, + 0x1E, + 0x33, + 0xE4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextDocument2 + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0x11, + 0x31, + 0xF2, + 0x89, + 0x8C, + 0xC9, + 0x49, + 0x91, + 0x18, + 0xF0, + 0x57, + 0xCB, + 0xB8, + 0x14, + 0xEE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextDocument3 + { + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x03, + 0xAB, + 0x75, + 0xF8, + 0xA6, + 0x1D, + 0x44, + 0xAA, + 0x18, + 0x0A, + 0x85, + 0x1D, + 0x6E, + 0x5E, + 0x3C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextDocument4 + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x20, + 0x9C, + 0x61, + 0x3B, + 0xCB, + 0x21, + 0x45, + 0x98, + 0x1F, + 0x28, + 0x65, + 0xB1, + 0xB9, + 0x3F, + 0x04, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextParagraphFormat + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0xCF, + 0xF8, + 0x2C, + 0x76, + 0x46, + 0x8A, + 0x49, + 0x93, + 0xF5, + 0xBB, + 0xDB, + 0xFC, + 0x0B, + 0xD8, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextRange + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0x4E, + 0x9E, + 0x5B, + 0x72, + 0xC0, + 0xA0, + 0x42, + 0x89, + 0x45, + 0xAF, + 0x50, + 0x3E, + 0xE5, + 0x47, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ITextSelection + { + get + { + ReadOnlySpan data = + [ + 0x24, + 0x67, + 0xD3, + 0xA6, + 0x8F, + 0xF2, + 0x0A, + 0x43, + 0xB2, + 0xCF, + 0xC3, + 0x43, + 0x67, + 0x1E, + 0xC0, + 0xE9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.viewmanagement.core/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.viewmanagement.core/IID.Manual.cs new file mode 100644 index 0000000000..895f07ffe7 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.viewmanagement.core/IID.Manual.cs @@ -0,0 +1,526 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.viewmanagement.core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_ICoreFrameworkInputView + { + get + { + ReadOnlySpan data = + [ + 0xAE, + 0x94, + 0x7C, + 0xD7, + 0xB8, + 0x46, + 0x4A, + 0x5D, + 0x94, + 0x89, + 0x8D, + 0xDE, + 0xC3, + 0xD6, + 0x39, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreFrameworkInputViewAnimationStartingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x1C, + 0x90, + 0xEC, + 0xC0, + 0xA4, + 0xBB, + 0x1B, + 0x50, + 0xAE, + 0x8B, + 0x65, + 0xC9, + 0xE7, + 0x56, + 0xA7, + 0x19, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreFrameworkInputViewOcclusionsChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x49, + 0x49, + 0x6F, + 0xF3, + 0x2C, + 0xC8, + 0xD1, + 0x53, + 0xA7, + 0x5D, + 0x2B, + 0x2B, + 0xAF, + 0x0D, + 0x9B, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreFrameworkInputViewStatics + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0xD9, + 0xEB, + 0x6E, + 0xC2, + 0xEA, + 0x8B, + 0x5F, + 0x97, + 0x5F, + 0x77, + 0x2E, + 0xE3, + 0xE4, + 0x2E, + 0xEB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputView + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0xCD, + 0x70, + 0xC7, + 0x01, + 0x70, + 0x32, + 0x4C, + 0xBF, + 0x94, + 0x25, + 0xC1, + 0xF5, + 0x54, + 0xCB, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputView2 + { + get + { + ReadOnlySpan data = + [ + 0xC1, + 0x26, + 0xD7, + 0x0E, + 0x9A, + 0xE0, + 0xE8, + 0x4A, + 0xAE, + 0xDF, + 0xDF, + 0xA4, + 0x85, + 0x7D, + 0x1A, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputView3 + { + get + { + ReadOnlySpan data = + [ + 0x53, + 0x16, + 0x94, + 0xBC, + 0xB9, + 0x3A, + 0x49, + 0x48, + 0x8F, + 0x58, + 0x46, + 0xE7, + 0xF0, + 0x35, + 0x3C, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputView4 + { + get + { + ReadOnlySpan data = + [ + 0xD6, + 0x63, + 0x28, + 0x00, + 0xEF, + 0xD9, + 0xEB, + 0x57, + 0x8C, + 0xEF, + 0x77, + 0xF6, + 0xCE, + 0x1B, + 0x7E, + 0xE7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputView5 + { + get + { + ReadOnlySpan data = + [ + 0xE0, + 0x16, + 0x63, + 0x13, + 0xD5, + 0xC6, + 0x57, + 0x5C, + 0x81, + 0x1E, + 0x1A, + 0xD8, + 0xA9, + 0x9B, + 0xA6, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewAnimationStartingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xF2, + 0x4A, + 0x14, + 0xA9, + 0x5C, + 0xB5, + 0xA1, + 0x5E, + 0xB8, + 0xAB, + 0x53, + 0x40, + 0xF3, + 0xE9, + 0x48, + 0x97, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewHidingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x47, + 0xDA, + 0xEA, + 0xC5, + 0xBA, + 0x36, + 0x53, + 0x84, + 0x8D, + 0x41, + 0x08, + 0x35, + 0x84, + 0xDA, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewOcclusion + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0xCE, + 0x36, + 0xCC, + 0x65, + 0x38, + 0x77, + 0x41, + 0xB5, + 0xF5, + 0x8B, + 0x65, + 0xE0, + 0xB9, + 0xCE, + 0x84, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewOcclusionsChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xE8, + 0x27, + 0x10, + 0xBE, + 0xEE, + 0xB3, + 0xF7, + 0x4D, + 0x95, + 0x54, + 0x89, + 0xCD, + 0xC6, + 0x60, + 0x82, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewShowingEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x1B, + 0x26, + 0x52, + 0xCA, + 0x9E, + 0xFB, + 0xAF, + 0x5D, + 0xA9, + 0x8C, + 0x26, + 0x2B, + 0x8B, + 0x76, + 0xAF, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewStatics + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0x97, + 0x9B, + 0x7D, + 0xBE, + 0xED, + 0xCF, + 0x49, + 0xA5, + 0x4F, + 0x33, + 0x7D, + 0xE0, + 0x52, + 0x90, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x08, + 0xBC, + 0x7E, + 0x49, + 0xD0, + 0x52, + 0x4E, + 0x87, + 0xB0, + 0x1E, + 0x90, + 0xE9, + 0x8C, + 0x49, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICoreInputViewTransferringXYFocusEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x9F, + 0x16, + 0xDE, + 0x04, + 0x02, + 0xBA, + 0x50, + 0x48, + 0x8B, + 0x55, + 0xD8, + 0x2D, + 0x03, + 0xBA, + 0x6D, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettingsController + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0x1A, + 0xA5, + 0x78, + 0xC0, + 0x15, + 0x1B, + 0x5A, + 0xA7, + 0x5B, + 0xAC, + 0xBF, + 0x9C, + 0xB8, + 0xBB, + 0x9E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettingsControllerStatics + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x68, + 0x3C, + 0xEB, + 0x20, + 0xC2, + 0x8C, + 0x57, + 0x81, + 0x19, + 0x7D, + 0xB3, + 0x24, + 0xED, + 0x26, + 0xA6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.viewmanagement/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.viewmanagement/IID.Manual.cs new file mode 100644 index 0000000000..9a9fe2d0d4 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.viewmanagement/IID.Manual.cs @@ -0,0 +1,1336 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.viewmanagement.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAccessibilitySettings + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x81, + 0x0E, + 0xFE, + 0xC0, + 0xC4, + 0x62, + 0x45, + 0xB9, + 0x62, + 0x13, + 0x27, + 0xB5, + 0x2A, + 0xD5, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IActivationViewSwitcher + { + get + { + ReadOnlySpan data = + [ + 0xB6, + 0x1B, + 0xA7, + 0xDC, + 0x50, + 0x73, + 0x2B, + 0x49, + 0xAA, + 0xC7, + 0xC8, + 0xA1, + 0x3D, + 0x72, + 0x24, + 0xAD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationView + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0xD5, + 0x22, + 0xD2, + 0x61, + 0x43, + 0x1E, + 0x45, + 0x96, + 0xC4, + 0x60, + 0xF4, + 0xF9, + 0x74, + 0x2D, + 0xB0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationView2 + { + get + { + ReadOnlySpan data = + [ + 0x96, + 0xB1, + 0x76, + 0xE8, + 0x45, + 0xA5, + 0xDC, + 0x40, + 0xB5, + 0x94, + 0x45, + 0x0C, + 0xBA, + 0x68, + 0xCC, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationView3 + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x9C, + 0x3C, + 0x90, + 0x3A, + 0x79, + 0xDF, + 0x4F, + 0xA2, + 0xB2, + 0xAF, + 0x1A, + 0xC2, + 0x1E, + 0x31, + 0x08, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationView4 + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0xCB, + 0xE5, + 0x15, + 0x0F, + 0x9E, + 0xB5, + 0x46, + 0xBC, + 0x3F, + 0x9B, + 0xF6, + 0x53, + 0xE7, + 0x4B, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationView7 + { + get + { + ReadOnlySpan data = + [ + 0x47, + 0x96, + 0x36, + 0xA0, + 0xAF, + 0x5F, + 0xA6, + 0x5A, + 0x9C, + 0x38, + 0xBE, + 0xFB, + 0xB1, + 0x2A, + 0x07, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationView9 + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x16, + 0x65, + 0x9C, + 0x1A, + 0x02, + 0x01, + 0x5F, + 0x93, + 0xE5, + 0x9B, + 0xDA, + 0xD2, + 0x64, + 0x75, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewConsolidatedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xEC, + 0x49, + 0x44, + 0x51, + 0xA2, + 0x7E, + 0xE7, + 0x4D, + 0xA6, + 0xA6, + 0x7D, + 0xFB, + 0xAA, + 0xEB, + 0xB6, + 0xFB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewConsolidatedEventArgs2 + { + get + { + ReadOnlySpan data = + [ + 0xCC, + 0x9E, + 0x19, + 0x1C, + 0xC1, + 0x6D, + 0xF4, + 0x40, + 0xAF, + 0xEE, + 0x07, + 0xD9, + 0xEA, + 0x29, + 0x64, + 0x30, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewFullscreenStatics + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x2E, + 0x79, + 0xBC, + 0xFE, + 0x64, + 0x65, + 0x4B, + 0xA0, + 0xC0, + 0x90, + 0x1C, + 0xE2, + 0xB6, + 0x86, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewInteropStatics + { + get + { + ReadOnlySpan data = + [ + 0x5D, + 0xFB, + 0x46, + 0xC4, + 0x93, + 0x47, + 0x96, + 0x48, + 0xA8, + 0xE2, + 0xBE, + 0x57, + 0xA8, + 0xBB, + 0x0F, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewScaling + { + get + { + ReadOnlySpan data = + [ + 0x23, + 0xDC, + 0x0D, + 0x1D, + 0xF3, + 0x23, + 0x2D, + 0x4B, + 0x84, + 0xFE, + 0x74, + 0xBF, + 0x37, + 0xB4, + 0x8B, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewScalingStatics + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0xEC, + 0x8F, + 0xB0, + 0x46, + 0xB9, + 0xC8, + 0x45, + 0xA5, + 0xE3, + 0x71, + 0xF5, + 0xAA, + 0x78, + 0xF8, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewStatics + { + get + { + ReadOnlySpan data = + [ + 0x06, + 0x63, + 0x0A, + 0x01, + 0x33, + 0xC4, + 0xE5, + 0x44, + 0xA9, + 0xF2, + 0xBD, + 0x84, + 0xD4, + 0x03, + 0x0A, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xE5, + 0x8A, + 0x33, + 0xAF, + 0x64, + 0xCF, + 0x3C, + 0x42, + 0x85, + 0xE5, + 0xF3, + 0xE7, + 0x24, + 0x48, + 0xFB, + 0x23, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x94, + 0x75, + 0x8D, + 0xA2, + 0x41, + 0x8C, + 0x13, + 0x4E, + 0x97, + 0x19, + 0x51, + 0x64, + 0x79, + 0x6F, + 0xE4, + 0xC7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewStatics4 + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x8D, + 0xFD, + 0x08, + 0x11, + 0x26, + 0x36, + 0x53, + 0xA3, + 0x15, + 0xD9, + 0x8E, + 0x63, + 0x66, + 0xC9, + 0xDB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewSwitcherStatics + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0x2F, + 0x5F, + 0x97, + 0x56, + 0xE6, + 0x5E, + 0x4C, + 0xA0, + 0xA1, + 0x71, + 0x7C, + 0x6F, + 0xFA, + 0x7D, + 0x64, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewSwitcherStatics2 + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0x95, + 0xE9, + 0x60, + 0xC2, + 0x4F, + 0xC4, + 0x48, + 0xB8, + 0xE3, + 0x39, + 0x5F, + 0x2B, + 0x9F, + 0x0F, + 0xC1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewSwitcherStatics3 + { + get + { + ReadOnlySpan data = + [ + 0x20, + 0x94, + 0x05, + 0x92, + 0xA7, + 0x80, + 0x6D, + 0x48, + 0xB2, + 0x1F, + 0xC7, + 0xA4, + 0xA2, + 0x42, + 0xA3, + 0x83, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewTitleBar + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x4A, + 0x92, + 0x00, + 0x2B, + 0x93, + 0x6B, + 0x4A, + 0x9C, + 0x4B, + 0xDC, + 0x38, + 0xC8, + 0x24, + 0x78, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewTransferContext + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0xBC, + 0x74, + 0x85, + 0x17, + 0x3C, + 0x8E, + 0x40, + 0x94, + 0x08, + 0x8A, + 0x1A, + 0x9E, + 0xA8, + 0x1B, + 0xFA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewTransferContextStatics + { + get + { + ReadOnlySpan data = + [ + 0x92, + 0x9D, + 0xA8, + 0x15, + 0x79, + 0xDD, + 0x0B, + 0x4B, + 0xBC, + 0x47, + 0xD5, + 0xF1, + 0x95, + 0xF1, + 0x46, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IApplicationViewWithContext + { + get + { + ReadOnlySpan data = + [ + 0x12, + 0xD5, + 0x55, + 0xBD, + 0xC1, + 0x9D, + 0xFC, + 0x44, + 0x85, + 0x01, + 0x66, + 0x66, + 0x25, + 0xDF, + 0x60, + 0xDC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputPane + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0xDA, + 0x0A, + 0x64, + 0xF3, + 0x06, + 0x87, + 0x4C, + 0xA6, + 0x78, + 0x98, + 0x29, + 0xC9, + 0x12, + 0x7C, + 0x28, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputPane2 + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x3F, + 0x6B, + 0x8A, + 0x90, + 0x70, + 0x93, + 0x47, + 0x94, + 0x4C, + 0xC3, + 0xF2, + 0xCD, + 0xE2, + 0x62, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputPaneControl + { + get + { + ReadOnlySpan data = + [ + 0x4F, + 0xB2, + 0x8B, + 0x08, + 0x2F, + 0x96, + 0x9D, + 0x48, + 0xAA, + 0x6E, + 0xC6, + 0xBE, + 0x1A, + 0x0A, + 0x6E, + 0x52, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputPaneStatics + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0xAF, + 0xF4, + 0x95, + 0x47, + 0xEF, + 0x4A, + 0x42, + 0x97, + 0x41, + 0xFD, + 0x28, + 0x15, + 0xEB, + 0xA2, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputPaneStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x52, + 0x63, + 0x1B, + 0xEC, + 0xD9, + 0x31, + 0x45, + 0x84, + 0x45, + 0x71, + 0xBA, + 0xB9, + 0xFB, + 0x82, + 0x8E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IInputPaneVisibilityEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xE0, + 0x43, + 0xD2, + 0x07, + 0xD9, + 0xCC, + 0x4F, + 0xBB, + 0x8D, + 0xF7, + 0x7B, + 0xAA, + 0x50, + 0x28, + 0xF1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProjectionManagerStatics + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x91, + 0x5F, + 0xB6, + 0xF0, + 0xE2, + 0xFD, + 0x4F, + 0xBA, + 0x95, + 0x34, + 0x24, + 0x16, + 0x47, + 0xE4, + 0x5C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IProjectionManagerStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x43, + 0x2F, + 0x3D, + 0xF3, + 0x49, + 0x27, + 0xDE, + 0x4C, + 0xB9, + 0x77, + 0xC0, + 0xC4, + 0x1E, + 0x74, + 0x15, + 0xD1, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStatusBar + { + get + { + ReadOnlySpan data = + [ + 0xBF, + 0xC5, + 0xFC, + 0x0F, + 0xD0, + 0x98, + 0x64, + 0x48, + 0xB1, + 0xE8, + 0xB3, + 0xF4, + 0x02, + 0x0B, + 0xE8, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStatusBarProgressIndicator + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x26, + 0xCB, + 0x76, + 0xD7, + 0xA3, + 0xCF, + 0x49, + 0x82, + 0x00, + 0x4F, + 0x3E, + 0xED, + 0xCA, + 0x27, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IStatusBarStatics + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x3F, + 0x46, + 0x8B, + 0x2F, + 0x42, + 0x61, + 0x45, + 0x88, + 0x06, + 0xFB, + 0x12, + 0x89, + 0xCA, + 0xDF, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettings + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x16, + 0x36, + 0x85, + 0x63, + 0x1C, + 0x27, + 0x46, + 0xBC, + 0xB1, + 0x3A, + 0x89, + 0xE0, + 0xBC, + 0x9C, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettings2 + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x24, + 0xD8, + 0xBA, + 0x21, + 0x27, + 0xF9, + 0x44, + 0xBB, + 0x91, + 0x2B, + 0xB2, + 0x28, + 0xBE, + 0x44, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettings3 + { + get + { + ReadOnlySpan data = + [ + 0xE4, + 0x1B, + 0x02, + 0x03, + 0x54, + 0x52, + 0x81, + 0x47, + 0x81, + 0x94, + 0x51, + 0x68, + 0xF7, + 0xD0, + 0x6D, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettings4 + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0x30, + 0xBB, + 0x52, + 0x9B, + 0x91, + 0x6B, + 0x4D, + 0x9B, + 0x78, + 0x8D, + 0xD6, + 0x6F, + 0xF4, + 0xB9, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettings5 + { + get + { + ReadOnlySpan data = + [ + 0x88, + 0xD5, + 0x49, + 0x53, + 0xB5, + 0x0C, + 0x05, + 0x5F, + 0xBD, + 0x34, + 0x70, + 0x6B, + 0x32, + 0x31, + 0xF0, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettings6 + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x9B, + 0xF1, + 0xAE, + 0x31, + 0xFE, + 0x04, + 0x5A, + 0xAD, + 0xA4, + 0x46, + 0x9A, + 0xAE, + 0xC6, + 0xDF, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettingsAnimationsEnabledChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x3D, + 0x4B, + 0x7B, + 0x0C, + 0xA1, + 0x2E, + 0x3E, + 0x53, + 0x89, + 0x4D, + 0x41, + 0x5B, + 0xC5, + 0x24, + 0x3C, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettingsAutoHideScrollBarsChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xB2, + 0xD4, + 0xAF, + 0x87, + 0x46, + 0x91, + 0x02, + 0x5F, + 0x8F, + 0x6B, + 0x06, + 0xD4, + 0x54, + 0x17, + 0x4C, + 0x0F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUISettingsMessageDurationChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x52, + 0xAD, + 0x8A, + 0x33, + 0x5D, + 0x4A, + 0x59, + 0x5B, + 0x80, + 0x02, + 0xD9, + 0x30, + 0xF6, + 0x08, + 0xFD, + 0x6E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUIViewSettings + { + get + { + ReadOnlySpan data = + [ + 0xF6, + 0x57, + 0x36, + 0xC6, + 0x50, + 0x88, + 0x0D, + 0x47, + 0x88, + 0xF8, + 0x45, + 0x5E, + 0x16, + 0xEA, + 0x2C, + 0x26, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUIViewSettingsStatics + { + get + { + ReadOnlySpan data = + [ + 0xA5, + 0x97, + 0x5C, + 0x59, + 0xF6, + 0xF8, + 0xCF, + 0x41, + 0xB0, + 0xFB, + 0xAA, + 0xCD, + 0xB8, + 0x1F, + 0xD5, + 0xF6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IViewModePreferences + { + get + { + ReadOnlySpan data = + [ + 0x3A, + 0xCD, + 0x8F, + 0x87, + 0x99, + 0x0B, + 0xC9, + 0x42, + 0x84, + 0xD0, + 0xD3, + 0xF1, + 0xD4, + 0x03, + 0x55, + 0x4B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IViewModePreferencesStatics + { + get + { + ReadOnlySpan data = + [ + 0x65, + 0x0A, + 0xB6, + 0x69, + 0xE5, + 0x5D, + 0xD8, + 0x40, + 0x83, + 0x06, + 0x38, + 0x33, + 0xDF, + 0x7A, + 0x22, + 0x74, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui.windowmanagement/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui.windowmanagement/IID.Manual.cs new file mode 100644 index 0000000000..bd83e567b0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui.windowmanagement/IID.Manual.cs @@ -0,0 +1,661 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.windowmanagement.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IAppWindow + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x14, + 0x30, + 0x66, + 0x5E, + 0xB7, + 0xBD, + 0x5D, + 0x99, + 0x5C, + 0xF0, + 0x11, + 0x7F, + 0xA3, + 0xFB, + 0x61, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0xF3, + 0xE1, + 0x1D, + 0x55, + 0xA6, + 0xAD, + 0x55, + 0xB2, + 0xB6, + 0xEB, + 0x24, + 0x0F, + 0x88, + 0x03, + 0x56, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowCloseRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xDA, + 0x01, + 0xFF, + 0xE9, + 0xA2, + 0xE7, + 0xA8, + 0x57, + 0x8B, + 0x5E, + 0x39, + 0xC4, + 0x00, + 0x3A, + 0xFD, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowClosedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x16, + 0xF8, + 0x7D, + 0xCC, + 0x20, + 0x95, + 0x06, + 0x5A, + 0x82, + 0x1E, + 0x45, + 0x6A, + 0xD8, + 0xB3, + 0x58, + 0xAA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowFrame + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0x26, + 0xE2, + 0x9E, + 0x5D, + 0x7E, + 0xAF, + 0x52, + 0x84, + 0x6B, + 0x01, + 0xDC, + 0x6C, + 0x29, + 0x65, + 0x67, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowFrameStyle + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0x29, + 0x41, + 0xAC, + 0xAC, + 0xE1, + 0x30, + 0x52, + 0x94, + 0x4A, + 0xC6, + 0x08, + 0x73, + 0xDC, + 0xF4, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowPlacement + { + get + { + ReadOnlySpan data = + [ + 0x5E, + 0x81, + 0xDC, + 0x03, + 0xA9, + 0xE7, + 0x57, + 0x58, + 0x9C, + 0x03, + 0x7D, + 0x67, + 0x05, + 0x94, + 0x41, + 0x0E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowPresentationConfiguration + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0x3E, + 0xA4, + 0xB5, + 0x33, + 0xDF, + 0x67, + 0x5E, + 0xBD, + 0x31, + 0x10, + 0x72, + 0x45, + 0x73, + 0x00, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowPresentationConfigurationFactory + { + get + { + ReadOnlySpan data = + [ + 0xA6, + 0x06, + 0x36, + 0xFD, + 0x75, + 0x78, + 0xE8, + 0x5D, + 0x84, + 0xFF, + 0x63, + 0x51, + 0xEE, + 0x13, + 0xDD, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowPresenter + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0xED, + 0xE9, + 0x5A, + 0xFD, + 0xE1, + 0x17, + 0x53, + 0xAD, + 0x78, + 0x5A, + 0x3E, + 0xD2, + 0x71, + 0xBB, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowStatics + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x3E, + 0x1F, + 0xFF, + 0x69, + 0xB7, + 0xEF, + 0x50, + 0x98, + 0x73, + 0x10, + 0x8C, + 0xD0, + 0xE8, + 0x97, + 0x46, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowTitleBar + { + get + { + ReadOnlySpan data = + [ + 0x84, + 0x2C, + 0x93, + 0x6E, + 0x44, + 0xF6, + 0x1D, + 0x54, + 0xA2, + 0xD7, + 0x0C, + 0x26, + 0x24, + 0x37, + 0x84, + 0x2D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowTitleBarOcclusion + { + get + { + ReadOnlySpan data = + [ + 0xFD, + 0xCF, + 0xA3, + 0xFE, + 0xCF, + 0x2C, + 0xC3, + 0x5F, + 0xAE, + 0xAE, + 0xF8, + 0x43, + 0x87, + 0x6B, + 0xF3, + 0x7E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IAppWindowTitleBarVisibility + { + get + { + ReadOnlySpan data = + [ + 0xE3, + 0xA4, + 0x15, + 0xA2, + 0x7E, + 0x6E, + 0x51, + 0x56, + 0x8C, + 0x3B, + 0x62, + 0x48, + 0x19, + 0x52, + 0x81, + 0x54, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_ICompactOverlayPresentationConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x0F, + 0x75, + 0xE5, + 0xA7, + 0x30, + 0x57, + 0xC6, + 0x56, + 0x8E, + 0x1F, + 0xD6, + 0x3F, + 0xF4, + 0xD7, + 0x98, + 0x0D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDefaultPresentationConfiguration + { + get + { + ReadOnlySpan data = + [ + 0x3B, + 0xB5, + 0xC2, + 0xD8, + 0x68, + 0x21, + 0x03, + 0x57, + 0xA8, + 0x53, + 0xD5, + 0x25, + 0x58, + 0x9F, + 0xE2, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IDisplayRegion + { + get + { + ReadOnlySpan data = + [ + 0xA2, + 0xC3, + 0x50, + 0xDB, + 0x94, + 0x40, + 0x47, + 0x5F, + 0x8C, + 0xB1, + 0xEA, + 0x01, + 0xDD, + 0xAF, + 0xAA, + 0x94, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IFullScreenPresentationConfiguration + { + get + { + ReadOnlySpan data = + [ + 0xD8, + 0xDC, + 0xD3, + 0x43, + 0xA8, + 0xD2, + 0x3D, + 0x50, + 0xA6, + 0x26, + 0x15, + 0x53, + 0x3D, + 0x6D, + 0x5F, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowServicesStatics + { + get + { + ReadOnlySpan data = + [ + 0x19, + 0xD5, + 0xF4, + 0xCF, + 0xA6, + 0x50, + 0x64, + 0x5C, + 0x97, + 0xF6, + 0xC2, + 0xD9, + 0x6A, + 0xDD, + 0x7F, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowingEnvironment + { + get + { + ReadOnlySpan data = + [ + 0xC0, + 0x63, + 0x43, + 0x26, + 0x49, + 0x2A, + 0x17, + 0x54, + 0xB3, + 0xAE, + 0x48, + 0xA7, + 0x1C, + 0x63, + 0xA3, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowingEnvironmentAddedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x7F, + 0x5B, + 0x2A, + 0xFF, + 0x83, + 0xF1, + 0x66, + 0x5C, + 0x99, + 0xB2, + 0x42, + 0x90, + 0x82, + 0x06, + 0x92, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowingEnvironmentChangedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0xCF, + 0x60, + 0x41, + 0x3D, + 0x02, + 0x9A, + 0x5E, + 0xB4, + 0x31, + 0x35, + 0x0E, + 0x67, + 0xDC, + 0x97, + 0x8A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowingEnvironmentRemovedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x54, + 0x5B, + 0x2E, + 0xFF, + 0xBE, + 0x53, + 0x5E, + 0x93, + 0x16, + 0x7E, + 0x77, + 0x5F, + 0xE5, + 0x68, + 0xB3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWindowingEnvironmentStatics + { + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x9F, + 0x4E, + 0x87, + 0x42, + 0xC6, + 0xAB, + 0x55, + 0x8A, + 0xA2, + 0x16, + 0x2F, + 0x73, + 0x4A, + 0x9A, + 0x72, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.ui/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.ui/IID.Manual.cs new file mode 100644 index 0000000000..847e8482ca --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.ui/IID.Manual.cs @@ -0,0 +1,202 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.ui.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IColorHelper + { + get + { + ReadOnlySpan data = + [ + 0xE7, + 0xFB, + 0x3C, + 0x19, + 0xC7, + 0x65, + 0x40, + 0x45, + 0xAD, + 0x08, + 0x62, + 0x83, + 0xBA, + 0x76, + 0x87, + 0x9A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColorHelperStatics + { + get + { + ReadOnlySpan data = + [ + 0xEA, + 0xDB, + 0x04, + 0x85, + 0x6A, + 0xFB, + 0x44, + 0x41, + 0xA6, + 0xC2, + 0x33, + 0x49, + 0x9C, + 0x92, + 0x84, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColorHelperStatics2 + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xAF, + 0xD9, + 0x24, + 0xB0, + 0x6E, + 0x94, + 0x4B, + 0x85, + 0x5C, + 0xFC, + 0xF0, + 0x81, + 0x8D, + 0x9A, + 0x16, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColors + { + get + { + ReadOnlySpan data = + [ + 0x26, + 0x93, + 0x8C, + 0x9B, + 0xA6, + 0x4C, + 0xE5, + 0x4C, + 0x89, + 0x94, + 0x9E, + 0xFF, + 0x65, + 0xCA, + 0xBD, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IColorsStatics + { + get + { + ReadOnlySpan data = + [ + 0x04, + 0x2E, + 0xF5, + 0xCF, + 0xA6, + 0xCC, + 0x14, + 0x46, + 0xA1, + 0x7E, + 0x75, + 0x49, + 0x10, + 0xC8, + 0x4A, + 0x99, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUIContentRoot + { + get + { + ReadOnlySpan data = + [ + 0xC6, + 0xBA, + 0xFC, + 0x1D, + 0x6B, + 0xB3, + 0xB9, + 0x5C, + 0x9B, + 0xC5, + 0x2B, + 0x7A, + 0x0E, + 0xDD, + 0xC3, + 0x78, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IUIContext + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0xFA, + 0x5C, + 0xBB, + 0xD8, + 0x5B, + 0xD0, + 0x59, + 0xA5, + 0x9E, + 0x1C, + 0x17, + 0xA4, + 0xD6, + 0xD2, + 0x43, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.web.http.filters/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.web.http.filters/IID.Manual.cs new file mode 100644 index 0000000000..ec87888cf4 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.web.http.filters/IID.Manual.cs @@ -0,0 +1,256 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.web.http.filters.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IHttpBaseProtocolFilter + { + get + { + ReadOnlySpan data = + [ + 0x09, + 0x9B, + 0xC8, + 0x71, + 0x31, + 0xE1, + 0x54, + 0x4B, + 0xA5, + 0x3C, + 0xEB, + 0x43, + 0xFF, + 0x37, + 0xE9, + 0xBB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpBaseProtocolFilter2 + { + get + { + ReadOnlySpan data = + [ + 0x13, + 0x00, + 0xC3, + 0x2E, + 0x27, + 0x94, + 0x00, + 0x49, + 0xA0, + 0x17, + 0xFA, + 0x7D, + 0xA3, + 0xB5, + 0xC9, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpBaseProtocolFilter3 + { + get + { + ReadOnlySpan data = + [ + 0x4C, + 0x4D, + 0x3F, + 0xD4, + 0x42, + 0xBD, + 0xAE, + 0x43, + 0x87, + 0x17, + 0xAD, + 0x2C, + 0x8F, + 0x4B, + 0x29, + 0x37, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpBaseProtocolFilter4 + { + get + { + ReadOnlySpan data = + [ + 0xCF, + 0x6C, + 0xE3, + 0x9F, + 0x83, + 0x29, + 0x93, + 0x48, + 0x94, + 0x1F, + 0xEB, + 0x51, + 0x8C, + 0xA8, + 0xCE, + 0xF9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpBaseProtocolFilter5 + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0x49, + 0x6E, + 0x41, + 0xE3, + 0x31, + 0x16, + 0x48, + 0xBF, + 0x09, + 0xE0, + 0x18, + 0xEE, + 0x8D, + 0xC1, + 0xF5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpBaseProtocolFilterStatics + { + get + { + ReadOnlySpan data = + [ + 0x0C, + 0xEE, + 0x4D, + 0x6D, + 0x08, + 0xE9, + 0x4E, + 0x49, + 0xB5, + 0xA3, + 0x12, + 0x63, + 0xC9, + 0xB8, + 0x24, + 0x2A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCacheControl + { + get + { + ReadOnlySpan data = + [ + 0xB4, + 0x1C, + 0x7E, + 0xC7, + 0xEA, + 0x3C, + 0xB5, + 0x4E, + 0xAC, + 0x85, + 0x04, + 0xE1, + 0x86, + 0xE6, + 0x3A, + 0xB7, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpFilter + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x6D, + 0xCB, + 0xA4, + 0x02, + 0x09, + 0x9E, + 0x43, + 0xBF, + 0xD7, + 0xE1, + 0x25, + 0x52, + 0xB1, + 0x65, + 0xCE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpServerCustomValidationRequestedEventArgs + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0xFE, + 0x65, + 0x31, + 0xDD, + 0xE7, + 0xB7, + 0x48, + 0xA3, + 0x61, + 0x93, + 0x9C, + 0x75, + 0x0E, + 0x63, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.web.http.headers/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.web.http.headers/IID.Manual.cs new file mode 100644 index 0000000000..179315b1d0 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.web.http.headers/IID.Manual.cs @@ -0,0 +1,1795 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.web.http.headers.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IHttpCacheDirectiveHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0x6B, + 0x58, + 0x9A, + 0xD0, + 0xD5, + 0xBE, + 0x4F, + 0xBD, + 0x9D, + 0xB5, + 0xB3, + 0x63, + 0x68, + 0x11, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpChallengeHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xAF, + 0x61, + 0x33, + 0x39, + 0x7D, + 0x0F, + 0x20, + 0x48, + 0x9F, + 0xDD, + 0xA2, + 0xB9, + 0x56, + 0xEE, + 0xAE, + 0xAB, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpChallengeHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x81, + 0x5F, + 0x9E, + 0xCA, + 0xE0, + 0xAE, + 0x53, + 0x43, + 0xA1, + 0x0B, + 0xE6, + 0x25, + 0xBA, + 0xBD, + 0x64, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpChallengeHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0xC4, + 0x52, + 0xC4, + 0x9C, + 0xD9, + 0xAA, + 0x40, + 0x93, + 0x99, + 0x90, + 0xEE, + 0xB9, + 0x8F, + 0xC6, + 0x13, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpChallengeHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x72, + 0x8A, + 0xD3, + 0xF3, + 0x01, + 0xFC, + 0x01, + 0x4D, + 0xA0, + 0x08, + 0xFC, + 0xB7, + 0xC4, + 0x59, + 0xD6, + 0x35, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpConnectionOptionHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x7A, + 0xF2, + 0x4A, + 0xCB, + 0x90, + 0x4E, + 0xEB, + 0x45, + 0x8D, + 0xCD, + 0xFD, + 0x14, + 0x08, + 0xF4, + 0xC4, + 0x4F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpConnectionOptionHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x6C, + 0xF5, + 0xE4, + 0x42, + 0x51, + 0x00, + 0x4E, + 0x8E, + 0x0F, + 0x01, + 0x95, + 0x09, + 0x33, + 0x76, + 0x29, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpConnectionOptionHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x1E, + 0xCC, + 0x3C, + 0xD9, + 0x7D, + 0x0B, + 0x3F, + 0x4C, + 0xA5, + 0x8D, + 0xA2, + 0xA1, + 0xBD, + 0xEA, + 0xBC, + 0x0A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpConnectionOptionHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x37, + 0x5D, + 0xA7, + 0xAA, + 0x46, + 0xA9, + 0x1F, + 0x4B, + 0x85, + 0xAF, + 0x48, + 0xB6, + 0x8B, + 0x3C, + 0x50, + 0xBD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0xF9, + 0xF7, + 0xBC, + 0x76, + 0x93, + 0x85, + 0x4D, + 0xBC, + 0xCC, + 0x9F, + 0x4F, + 0x9A, + 0xCA, + 0xB4, + 0x34, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x21, + 0x17, + 0x22, + 0x7D, + 0xDB, + 0xA6, + 0x6E, + 0x43, + 0x8E, + 0x83, + 0x91, + 0x59, + 0x61, + 0x92, + 0x81, + 0x9C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xD7, + 0x2B, + 0x3D, + 0xC5, + 0x2B, + 0x33, + 0x50, + 0x43, + 0x85, + 0x10, + 0x2E, + 0x67, + 0xA2, + 0x28, + 0x9A, + 0x5A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x2E, + 0x60, + 0xD8, + 0x94, + 0xBF, + 0xF9, + 0xF7, + 0x42, + 0xAA, + 0x46, + 0xED, + 0x27, + 0x2A, + 0x41, + 0xE2, + 0x12, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingWithQualityHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xD5, + 0x1C, + 0x53, + 0x94, + 0x13, + 0x8B, + 0x73, + 0x4D, + 0x86, + 0x51, + 0xF7, + 0x6B, + 0x38, + 0xF8, + 0x84, + 0x95, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingWithQualityHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x3E, + 0x75, + 0x0D, + 0x7C, + 0x99, + 0xE8, + 0x78, + 0x43, + 0xB5, + 0xC8, + 0x41, + 0x2D, + 0x82, + 0x07, + 0x11, + 0xCC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingWithQualityHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x1A, + 0xEE, + 0x5E, + 0xC4, + 0x53, + 0xC5, + 0xFC, + 0x46, + 0xAD, + 0xE2, + 0xD7, + 0x5C, + 0x1D, + 0x53, + 0xDF, + 0x7B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentCodingWithQualityHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0x35, + 0xC9, + 0xE8, + 0x89, + 0x8F, + 0x01, + 0x48, + 0x8E, + 0x75, + 0x4C, + 0x9A, + 0xBF, + 0xC3, + 0xDE, + 0x71, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentDispositionHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xDC, + 0xEE, + 0xA2, + 0xF2, + 0x29, + 0x26, + 0x49, + 0x4B, + 0x99, + 0x08, + 0x96, + 0xA1, + 0x68, + 0xE9, + 0x36, + 0x5E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentDispositionHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xC4, + 0xBB, + 0x15, + 0x99, + 0x6C, + 0x45, + 0x81, + 0x4E, + 0x82, + 0x95, + 0xB2, + 0xAB, + 0x3C, + 0xBC, + 0xF5, + 0x45, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentDispositionHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x60, + 0xC5, + 0x29, + 0x37, + 0x5A, + 0xE4, + 0x46, + 0xB0, + 0x74, + 0xC5, + 0x17, + 0x7D, + 0x69, + 0xCA, + 0x66, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentHeaderCollection + { + get + { + ReadOnlySpan data = + [ + 0x44, + 0x2A, + 0x61, + 0x40, + 0xAE, + 0x47, + 0x7E, + 0x4B, + 0x91, + 0x24, + 0x69, + 0x62, + 0x8B, + 0x64, + 0xAA, + 0x18, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentRangeHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xD3, + 0x67, + 0xD9, + 0x04, + 0xF6, + 0xA4, + 0x5C, + 0x49, + 0x95, + 0x30, + 0x85, + 0x79, + 0xFC, + 0xBA, + 0x8A, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentRangeHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0xD6, + 0x5B, + 0x3F, + 0x3C, + 0xA0, + 0x56, + 0x44, + 0x9A, + 0x6F, + 0xEF, + 0x27, + 0xEC, + 0xD0, + 0x3C, + 0xAE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContentRangeHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0x46, + 0xA3, + 0x80, + 0x4C, + 0x17, + 0xAE, + 0x4F, + 0x82, + 0x1C, + 0x13, + 0x4C, + 0xD2, + 0x94, + 0xAA, + 0x38, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookiePairHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x17, + 0x62, + 0xD4, + 0xCB, + 0x29, + 0x4B, + 0x2B, + 0x41, + 0xBD, + 0x90, + 0xB3, + 0xD8, + 0x14, + 0xAB, + 0x8E, + 0x1B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookiePairHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x50, + 0x43, + 0xF4, + 0xF3, + 0x1E, + 0x58, + 0xCC, + 0x4E, + 0x9F, + 0x59, + 0xE5, + 0x07, + 0xD0, + 0x4F, + 0x06, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookiePairHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x6F, + 0x32, + 0x5E, + 0x63, + 0x6F, + 0x14, + 0x56, + 0x4F, + 0xAA, + 0x21, + 0x2C, + 0xB7, + 0xD6, + 0xD5, + 0x8B, + 0x1E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookiePairHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x6D, + 0x86, + 0x6E, + 0xAF, + 0x06, + 0x62, + 0x44, + 0x81, + 0x58, + 0x99, + 0x38, + 0x8D, + 0x5D, + 0xCA, + 0x81, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCredentialsHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0xC3, + 0x4C, + 0xC3, + 0x2E, + 0x54, + 0x77, + 0x41, + 0xA6, + 0xC7, + 0xB6, + 0x74, + 0xCE, + 0x19, + 0x3F, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCredentialsHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x91, + 0x9E, + 0x1D, + 0xF2, + 0x1C, + 0x4D, + 0x82, + 0x41, + 0xBF, + 0xD1, + 0x34, + 0x47, + 0x0A, + 0x62, + 0xF9, + 0x50, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCredentialsHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xE6, + 0x2B, + 0x9B, + 0xA6, + 0x8C, + 0xCE, + 0x43, + 0x44, + 0xA3, + 0x5A, + 0x1B, + 0x72, + 0x7B, + 0x13, + 0x10, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpDateOrDeltaHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xAA, + 0xFC, + 0xEA, + 0xDC, + 0xC4, + 0xE2, + 0x49, + 0xA2, + 0x7D, + 0x04, + 0x3A, + 0xDF, + 0x58, + 0x67, + 0xA3, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpDateOrDeltaHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x59, + 0x26, + 0x7C, + 0x72, + 0x66, + 0x90, + 0x4E, + 0x9A, + 0x9A, + 0xF3, + 0x97, + 0x66, + 0xF7, + 0xF5, + 0x76, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpExpectationHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xCD, + 0x85, + 0xE5, + 0x4C, + 0x99, + 0x3A, + 0xAF, + 0x43, + 0xA2, + 0xE6, + 0xEC, + 0x23, + 0x2F, + 0xEA, + 0x96, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpExpectationHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0xB3, + 0x21, + 0x85, + 0xE7, + 0xE2, + 0xA0, + 0xC4, + 0x4A, + 0x9E, + 0x66, + 0x79, + 0x70, + 0x6C, + 0xB9, + 0xFD, + 0x58, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpExpectationHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xCB, + 0x75, + 0xA2, + 0x4E, + 0x3E, + 0xD5, + 0x68, + 0x48, + 0x88, + 0x56, + 0x1E, + 0x21, + 0xA5, + 0x03, + 0x0D, + 0xC0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpExpectationHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0xAB, + 0x19, + 0x30, + 0xE5, + 0xCF, + 0x3B, + 0x47, + 0xA5, + 0x7F, + 0xFB, + 0xA5, + 0xB1, + 0x4E, + 0xB2, + 0x57, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpLanguageHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0xA3, + 0x7C, + 0xBD, + 0x9E, + 0x19, + 0x82, + 0xF6, + 0x44, + 0x99, + 0x02, + 0x8C, + 0x56, + 0xDF, + 0xD3, + 0x34, + 0x0C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpLanguageRangeWithQualityHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x02, + 0xE1, + 0x56, + 0x72, + 0x80, + 0x00, + 0xB4, + 0x4D, + 0xA0, + 0x83, + 0x7D, + 0xE7, + 0xB2, + 0xE5, + 0xBA, + 0x4C, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpLanguageRangeWithQualityHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0xBD, + 0x5A, + 0x5D, + 0x88, + 0x4F, + 0x4B, + 0x0A, + 0x48, + 0x89, + 0xCE, + 0x8A, + 0xED, + 0xCE, + 0xE6, + 0xE3, + 0xA0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpLanguageRangeWithQualityHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x70, + 0x39, + 0xB8, + 0x7B, + 0x0F, + 0x78, + 0x83, + 0x4C, + 0x9F, + 0xE4, + 0xDC, + 0x30, + 0x87, + 0xF6, + 0xBD, + 0x55, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpLanguageRangeWithQualityHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x46, + 0xE1, + 0x41, + 0x25, + 0x08, + 0xF3, + 0xF5, + 0x46, + 0xB6, + 0x95, + 0x42, + 0xF5, + 0x40, + 0x24, + 0xEC, + 0x68, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x33, + 0x85, + 0xB2, + 0x16, + 0x28, + 0xE7, + 0xCB, + 0x4F, + 0xBD, + 0xB0, + 0x08, + 0xA4, + 0x31, + 0xA1, + 0x48, + 0x44, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x47, + 0xD7, + 0xBE, + 0x17, + 0xCD, + 0xDD, + 0x42, + 0x93, + 0x67, + 0xAB, + 0x9C, + 0x5B, + 0x56, + 0xDD, + 0x7D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xDF, + 0x83, + 0x4D, + 0xE0, + 0x41, + 0x1D, + 0x8C, + 0x4D, + 0xA2, + 0xDE, + 0x6F, + 0xD2, + 0xED, + 0x87, + 0x39, + 0x9B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeWithQualityHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x5E, + 0x8D, + 0x18, + 0xBE, + 0x76, + 0xA0, + 0x44, + 0xB1, + 0xCD, + 0x20, + 0x74, + 0xBD, + 0xED, + 0x2D, + 0xDE, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeWithQualityHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x73, + 0x6B, + 0x0C, + 0x3C, + 0x42, + 0x13, + 0x87, + 0x45, + 0xA0, + 0x56, + 0x18, + 0xD0, + 0x2F, + 0xF6, + 0x71, + 0x65, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeWithQualityHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x20, + 0x6D, + 0x4C, + 0x57, + 0x94, + 0xE6, + 0x44, + 0xA3, + 0x23, + 0xD1, + 0x22, + 0xB9, + 0x58, + 0x78, + 0x0B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMediaTypeWithQualityHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0xD9, + 0x0C, + 0x07, + 0x5B, + 0x60, + 0xB5, + 0xC8, + 0x4F, + 0x98, + 0x35, + 0x7E, + 0x6C, + 0x0A, + 0x65, + 0x7B, + 0x24, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMethodHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0xF4, + 0x3F, + 0xBC, + 0x43, + 0x19, + 0x61, + 0xDF, + 0x4A, + 0x93, + 0x8C, + 0x34, + 0xBF, + 0xFF, + 0xCF, + 0x92, + 0xED, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpNameValueHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0x74, + 0xBA, + 0xD8, + 0x9A, + 0x5B, + 0x1B, + 0x4D, + 0x93, + 0xF9, + 0xAA, + 0x5B, + 0x44, + 0xEC, + 0xFD, + 0xDF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpNameValueHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0x67, + 0x22, + 0x0E, + 0x77, + 0xF8, + 0xCB, + 0x36, + 0x47, + 0xA9, + 0x25, + 0x93, + 0xFB, + 0xE1, + 0x0C, + 0x7C, + 0xA8, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpNameValueHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x0F, + 0x03, + 0xD4, + 0xFF, + 0x30, + 0x11, + 0x52, + 0x41, + 0x86, + 0x59, + 0x25, + 0x69, + 0x09, + 0xA9, + 0xD1, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x03, + 0xEE, + 0xFE, + 0xF4, + 0xD4, + 0xEB, + 0x60, + 0x41, + 0xB9, + 0xFF, + 0x80, + 0x7C, + 0x51, + 0x83, + 0xB6, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xF5, + 0xA4, + 0x1A, + 0x61, + 0xBC, + 0x82, + 0xFB, + 0x42, + 0x97, + 0x7B, + 0xDC, + 0x00, + 0x53, + 0x6E, + 0x5E, + 0x86, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x29, + 0x3E, + 0xC3, + 0x90, + 0xFC, + 0xBE, + 0x37, + 0x43, + 0xBE, + 0x62, + 0x49, + 0xF0, + 0x97, + 0x97, + 0x5F, + 0x53, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductInfoHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0x32, + 0x87, + 0x1A, + 0x1B, + 0x35, + 0x4C, + 0x6A, + 0x48, + 0x96, + 0x6F, + 0x64, + 0x64, + 0x89, + 0x19, + 0x8E, + 0x4D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductInfoHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x4A, + 0xF7, + 0x7D, + 0x87, + 0x9B, + 0xD6, + 0xF8, + 0x44, + 0xAD, + 0x4F, + 0x45, + 0x3A, + 0xF9, + 0xC4, + 0x2E, + 0xD0, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductInfoHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xBE, + 0x0F, + 0x22, + 0x24, + 0xBE, + 0xEA, + 0x64, + 0x44, + 0xB4, + 0x60, + 0xEC, + 0x01, + 0x0B, + 0x7C, + 0x41, + 0xE2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpProductInfoHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x57, + 0xD8, + 0x7F, + 0xDB, + 0x7A, + 0x32, + 0x73, + 0x4E, + 0x81, + 0xE5, + 0x70, + 0x59, + 0xA3, + 0x02, + 0xB0, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpRequestHeaderCollection + { + get + { + ReadOnlySpan data = + [ + 0x9B, + 0x32, + 0x40, + 0xAF, + 0x44, + 0xB5, + 0x9B, + 0x46, + 0x86, + 0xB9, + 0xAC, + 0x3D, + 0x46, + 0x6F, + 0xEA, + 0x36, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpResponseHeaderCollection + { + get + { + ReadOnlySpan data = + [ + 0x69, + 0x09, + 0x99, + 0x7A, + 0x3F, + 0xFA, + 0xED, + 0x41, + 0xAA, + 0xC6, + 0xBF, + 0x95, + 0x79, + 0x75, + 0xC1, + 0x6B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpTransferCodingHeaderValue + { + get + { + ReadOnlySpan data = + [ + 0xF9, + 0x32, + 0x6F, + 0x43, + 0xED, + 0x3D, + 0xBD, + 0x42, + 0xB3, + 0x8A, + 0x54, + 0x96, + 0xA2, + 0x51, + 0x1C, + 0xE6, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpTransferCodingHeaderValueCollection + { + get + { + ReadOnlySpan data = + [ + 0x34, + 0x8C, + 0x2C, + 0x20, + 0x03, + 0x2C, + 0xB8, + 0x49, + 0x96, + 0x65, + 0x73, + 0xE2, + 0x7C, + 0xB2, + 0xFC, + 0x79, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpTransferCodingHeaderValueFactory + { + get + { + ReadOnlySpan data = + [ + 0xFC, + 0xDF, + 0x62, + 0xBB, + 0x61, + 0xE3, + 0x08, + 0x4F, + 0x8E, + 0x4F, + 0xC9, + 0xE7, + 0x23, + 0xDE, + 0x70, + 0x3B, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpTransferCodingHeaderValueStatics + { + get + { + ReadOnlySpan data = + [ + 0x2A, + 0x89, + 0xB8, + 0x6A, + 0x98, + 0x1A, + 0x32, + 0x4D, + 0xA9, + 0x06, + 0x74, + 0x70, + 0xA9, + 0x87, + 0x5C, + 0xE5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.web.http/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.web.http/IID.Manual.cs new file mode 100644 index 0000000000..a7ecad6f25 --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.web.http/IID.Manual.cs @@ -0,0 +1,796 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.web.http.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IHttpBufferContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x93, + 0xC1, + 0x20, + 0xBC, + 0x1F, + 0xC4, + 0xF7, + 0x4F, + 0x91, + 0x23, + 0x64, + 0x35, + 0x73, + 0x6E, + 0xAD, + 0xC2, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpClient + { + get + { + ReadOnlySpan data = + [ + 0x51, + 0x11, + 0xDA, + 0x7F, + 0x74, + 0x35, + 0x80, + 0x48, + 0xA8, + 0xBA, + 0xE6, + 0xB1, + 0xE0, + 0x06, + 0x1F, + 0x3D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpClient2 + { + get + { + ReadOnlySpan data = + [ + 0x48, + 0x33, + 0xD8, + 0xCD, + 0xB7, + 0xE8, + 0xEC, + 0x4C, + 0xB1, + 0xB0, + 0xDC, + 0x45, + 0x5F, + 0xE7, + 0x2C, + 0x92, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpClient3 + { + get + { + ReadOnlySpan data = + [ + 0x01, + 0xFD, + 0x72, + 0x11, + 0x99, + 0x98, + 0x94, + 0x41, + 0x96, + 0x3F, + 0x8F, + 0x9D, + 0x72, + 0xA7, + 0xEC, + 0x15, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpClientFactory + { + get + { + ReadOnlySpan data = + [ + 0xCA, + 0x4E, + 0x0C, + 0xC3, + 0xFA, + 0xE3, + 0x99, + 0x4F, + 0xAF, + 0xB4, + 0x63, + 0xCC, + 0x65, + 0x00, + 0x94, + 0x62, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpContent + { + get + { + ReadOnlySpan data = + [ + 0x41, + 0xA4, + 0x14, + 0x6B, + 0xA7, + 0xFB, + 0xD2, + 0x4B, + 0xAF, + 0x0A, + 0x83, + 0x9D, + 0xE7, + 0xC2, + 0x95, + 0xDA, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookie + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x88, + 0x54, + 0x1F, + 0x2D, + 0xCC, + 0x79, + 0x47, + 0x86, + 0xA7, + 0x88, + 0xF1, + 0x06, + 0x87, + 0xD2, + 0x49, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookieFactory + { + get + { + ReadOnlySpan data = + [ + 0xA9, + 0x85, + 0x05, + 0x6A, + 0x1C, + 0x93, + 0xD1, + 0x4C, + 0xA9, + 0x6D, + 0xC2, + 0x17, + 0x01, + 0x78, + 0x5C, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpCookieManager + { + get + { + ReadOnlySpan data = + [ + 0x80, + 0x17, + 0x43, + 0x7A, + 0x4F, + 0xCD, + 0x57, + 0x4E, + 0xA8, + 0x4A, + 0x5B, + 0x0A, + 0x53, + 0xD6, + 0xBB, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpFormUrlEncodedContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x8C, + 0x13, + 0xF0, + 0x43, + 0x73, + 0x2F, + 0x02, + 0x43, + 0xB5, + 0xF3, + 0xEA, + 0xE9, + 0x23, + 0x8A, + 0x5E, + 0x01, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpGetBufferResult + { + get + { + ReadOnlySpan data = + [ + 0x7C, + 0x8E, + 0xD0, + 0x53, + 0x09, + 0xE2, + 0x4E, + 0x40, + 0x9A, + 0x49, + 0x74, + 0x2D, + 0x82, + 0x36, + 0xFD, + 0x3A, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpGetInputStreamResult + { + get + { + ReadOnlySpan data = + [ + 0x63, + 0x34, + 0xD6, + 0xD5, + 0xAA, + 0x13, + 0xE0, + 0x4E, + 0xBE, + 0x95, + 0xA0, + 0xC3, + 0x9F, + 0xE9, + 0x12, + 0x03, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpGetStringResult + { + get + { + ReadOnlySpan data = + [ + 0x6D, + 0x46, + 0xAC, + 0x9B, + 0x09, + 0x85, + 0x75, + 0x47, + 0xB1, + 0x6D, + 0x89, + 0x53, + 0xF4, + 0x7A, + 0x7F, + 0x5F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMethod + { + get + { + ReadOnlySpan data = + [ + 0x22, + 0x40, + 0x8D, + 0x72, + 0x0D, + 0x70, + 0xE0, + 0x4F, + 0xAF, + 0xA5, + 0x40, + 0x29, + 0x9C, + 0x58, + 0xDB, + 0xFD, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMethodFactory + { + get + { + ReadOnlySpan data = + [ + 0x0D, + 0xD1, + 0x51, + 0x3C, + 0xD7, + 0x36, + 0xF8, + 0x40, + 0xA8, + 0x6D, + 0xE7, + 0x59, + 0xCA, + 0xF2, + 0xF8, + 0x3F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMethodStatics + { + get + { + ReadOnlySpan data = + [ + 0xF0, + 0x71, + 0xD1, + 0x64, + 0x9A, + 0xD9, + 0x53, + 0x41, + 0x8D, + 0xC6, + 0xD6, + 0x8C, + 0xC4, + 0xCC, + 0xE3, + 0x17, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMultipartContent + { + get + { + ReadOnlySpan data = + [ + 0xFF, + 0x6A, + 0x91, + 0xDF, + 0x26, + 0x99, + 0xC9, + 0x4A, + 0xAA, + 0xF1, + 0xE0, + 0xD0, + 0x4E, + 0xF0, + 0x9B, + 0xB9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMultipartContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x62, + 0x2E, + 0xB4, + 0x7E, + 0x22, + 0x02, + 0x20, + 0x4F, + 0xB3, + 0x72, + 0x47, + 0xD5, + 0xDB, + 0x5D, + 0x33, + 0xB4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMultipartFormDataContent + { + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x37, + 0xD3, + 0x64, + 0x67, + 0xE9, + 0x24, + 0x46, + 0xB6, + 0xD1, + 0xCF, + 0x74, + 0x60, + 0x4A, + 0x4A, + 0x42, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpMultipartFormDataContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x11, + 0x73, + 0x4D, + 0xA0, + 0x17, + 0x50, + 0x22, + 0x46, + 0x93, + 0xA8, + 0x49, + 0xB2, + 0x4A, + 0x4F, + 0xCB, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpRequestMessage + { + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x2B, + 0x76, + 0xF5, + 0xD4, + 0x74, + 0x11, + 0x48, + 0xB5, + 0xDC, + 0x9F, + 0x8B, + 0x4E, + 0x2F, + 0x9A, + 0xBF, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpRequestMessage2 + { + get + { + ReadOnlySpan data = + [ + 0x89, + 0x04, + 0xC6, + 0xC3, + 0xC2, + 0x62, + 0x3F, + 0x4A, + 0x95, + 0x54, + 0x22, + 0x6E, + 0x7C, + 0x60, + 0xBD, + 0x96, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpRequestMessageFactory + { + get + { + ReadOnlySpan data = + [ + 0x4E, + 0x99, + 0xAC, + 0x5B, + 0x86, + 0x38, + 0x2E, + 0x41, + 0xAE, + 0xC3, + 0x52, + 0xEC, + 0x7F, + 0x25, + 0x61, + 0x6F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpRequestResult + { + get + { + ReadOnlySpan data = + [ + 0xA8, + 0x4D, + 0xCF, + 0x6A, + 0xEB, + 0xB5, + 0x35, + 0x4A, + 0xA9, + 0x02, + 0x42, + 0x17, + 0xFB, + 0xE8, + 0x20, + 0xC5, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpResponseMessage + { + get + { + ReadOnlySpan data = + [ + 0xFB, + 0x00, + 0xE2, + 0xFE, + 0x64, + 0x86, + 0xE0, + 0x44, + 0x95, + 0xD9, + 0x42, + 0x69, + 0x61, + 0x99, + 0xBF, + 0xFC, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpResponseMessageFactory + { + get + { + ReadOnlySpan data = + [ + 0x99, + 0xAF, + 0xA8, + 0x52, + 0x95, + 0xF0, + 0xDA, + 0x43, + 0xB6, + 0x0F, + 0x7C, + 0xFC, + 0x2B, + 0xC7, + 0xEA, + 0x2F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpStreamContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x4D, + 0xE6, + 0xF3, + 0x25, + 0xF7, + 0x7E, + 0x40, + 0x94, + 0x2F, + 0x0E, + 0xDA, + 0x18, + 0x98, + 0x09, + 0xF4, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpStringContentFactory + { + get + { + ReadOnlySpan data = + [ + 0x5B, + 0x9D, + 0x64, + 0x46, + 0x93, + 0x2E, + 0xEB, + 0x48, + 0x8E, + 0x61, + 0x19, + 0x67, + 0x78, + 0x78, + 0xE5, + 0x7F, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IHttpTransportInformation + { + get + { + ReadOnlySpan data = + [ + 0x98, + 0x71, + 0x12, + 0x70, + 0xA7, + 0xC6, + 0xD0, + 0x4E, + 0x83, + 0x3A, + 0x83, + 0xFD, + 0x8B, + 0x8F, + 0x17, + 0x8D, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/WinRT/winrt/windows.web/IID.Manual.cs b/sources/Win32/Win32/WinRT/winrt/windows.web/IID.Manual.cs new file mode 100644 index 0000000000..fb61ae104b --- /dev/null +++ b/sources/Win32/Win32/WinRT/winrt/windows.web/IID.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/windows.web.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IID +{ + public static ref readonly Guid IID_IUriToStreamResolver + { + get + { + ReadOnlySpan data = + [ + 0x6A, + 0xA8, + 0xAB, + 0xB0, + 0xEB, + 0x9A, + 0x3A, + 0x4D, + 0x95, + 0x90, + 0x00, + 0x3E, + 0x3C, + 0xA7, + 0xE2, + 0x90, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid IID_IWebErrorStatics + { + get + { + ReadOnlySpan data = + [ + 0x66, + 0x67, + 0x61, + 0xFE, + 0x27, + 0xBF, + 0x64, + 0x40, + 0x87, + 0xB7, + 0x65, + 0x63, + 0xBB, + 0x11, + 0xCE, + 0x2E, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/other/dia2/E.Manual.cs b/sources/Win32/Win32/Windows/other/dia2/E.Manual.cs new file mode 100644 index 0000000000..6588b7c03e --- /dev/null +++ b/sources/Win32/Win32/Windows/other/dia2/E.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from dia2.h in the Debug Interface Access SDK +// Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class E +{ + public const int E_PDB_OK = unchecked((int)((1u << 31) | (0x6Du << 16) | 1)); + public const int E_PDB_USAGE = E_PDB_OK + 1; + public const int E_PDB_OUT_OF_MEMORY = E_PDB_USAGE + 1; + public const int E_PDB_FILE_SYSTEM = E_PDB_OUT_OF_MEMORY + 1; + public const int E_PDB_NOT_FOUND = E_PDB_FILE_SYSTEM + 1; + public const int E_PDB_INVALID_SIG = E_PDB_NOT_FOUND + 1; + public const int E_PDB_INVALID_AGE = E_PDB_INVALID_SIG + 1; + public const int E_PDB_PRECOMP_REQUIRED = E_PDB_INVALID_AGE + 1; + public const int E_PDB_OUT_OF_TI = E_PDB_PRECOMP_REQUIRED + 1; + public const int E_PDB_NOT_IMPLEMENTED = E_PDB_OUT_OF_TI + 1; + public const int E_PDB_V1_PDB = E_PDB_NOT_IMPLEMENTED + 1; + public const int E_PDB_FORMAT = E_PDB_V1_PDB + 1; + public const int E_PDB_LIMIT = E_PDB_FORMAT + 1; + public const int E_PDB_CORRUPT = E_PDB_LIMIT + 1; + public const int E_PDB_TI16 = E_PDB_CORRUPT + 1; + public const int E_PDB_ACCESS_DENIED = E_PDB_TI16 + 1; + public const int E_PDB_ILLEGAL_TYPE_EDIT = E_PDB_ACCESS_DENIED + 1; + public const int E_PDB_INVALID_EXECUTABLE = E_PDB_ILLEGAL_TYPE_EDIT + 1; + public const int E_PDB_DBG_NOT_FOUND = E_PDB_INVALID_EXECUTABLE + 1; + public const int E_PDB_NO_DEBUG_INFO = E_PDB_DBG_NOT_FOUND + 1; + public const int E_PDB_INVALID_EXE_TIMESTAMP = E_PDB_NO_DEBUG_INFO + 1; + public const int E_PDB_RESERVED = E_PDB_INVALID_EXE_TIMESTAMP + 1; + public const int E_PDB_DEBUG_INFO_NOT_IN_PDB = E_PDB_RESERVED + 1; + public const int E_PDB_SYMSRV_BAD_CACHE_PATH = E_PDB_DEBUG_INFO_NOT_IN_PDB + 1; + public const int E_PDB_SYMSRV_CACHE_FULL = E_PDB_SYMSRV_BAD_CACHE_PATH + 1; + public const int E_PDB_OBJECT_DISPOSED = E_PDB_SYMSRV_CACHE_FULL + 1; + public const int E_PDB_MAX = E_PDB_OBJECT_DISPOSED + 1; + public const int E_DIA_INPROLOG = unchecked((int)((1u << 31) | (0x6Du << 16) | 100)); + public const int E_DIA_SYNTAX = E_DIA_INPROLOG + 1; + public const int E_DIA_FRAME_ACCESS = E_DIA_SYNTAX + 1; + public const int E_DIA_VALUE = E_DIA_FRAME_ACCESS + 1; +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/APARTMENT_SHUTDOWN_REGISTRATION_COOKIE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/APARTMENT_SHUTDOWN_REGISTRATION_COOKIE.gen.cs index 31d52aed1e..058d2c0694 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/APARTMENT_SHUTDOWN_REGISTRATION_COOKIE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/APARTMENT_SHUTDOWN_REGISTRATION_COOKIE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct APARTMENT_SHUTDOWN_REGISTRATION_COOKIE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/ASYNCCOMPLETIONHANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/ASYNCCOMPLETIONHANDLE.gen.cs index 9654508a55..52994853a7 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/ASYNCCOMPLETIONHANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/ASYNCCOMPLETIONHANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct ASYNCCOMPLETIONHANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/COLORREF.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/COLORREF.gen.cs index 35a4f2a546..3ee38c092b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/COLORREF.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/COLORREF.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct COLORREF : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/COMPRESSOR_HANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/COMPRESSOR_HANDLE.gen.cs index f028544d5a..d7bd2a0362 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/COMPRESSOR_HANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/COMPRESSOR_HANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct COMPRESSOR_HANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/CO_DEVICE_CATALOG_COOKIE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/CO_DEVICE_CATALOG_COOKIE.gen.cs index 032d6634ac..421ef43cec 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/CO_DEVICE_CATALOG_COOKIE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/CO_DEVICE_CATALOG_COOKIE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct CO_DEVICE_CATALOG_COOKIE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/CO_MTA_USAGE_COOKIE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/CO_MTA_USAGE_COOKIE.gen.cs index 427cb5b639..c5cde8f73d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/CO_MTA_USAGE_COOKIE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/CO_MTA_USAGE_COOKIE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct CO_MTA_USAGE_COOKIE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/DPI_AWARENESS_CONTEXT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/DPI_AWARENESS_CONTEXT.gen.cs index 6704aa0525..356295ee48 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/DPI_AWARENESS_CONTEXT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/DPI_AWARENESS_CONTEXT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct DPI_AWARENESS_CONTEXT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/EC_HANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/EC_HANDLE.gen.cs index 9ccfffa627..6ff29def0d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/EC_HANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/EC_HANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct EC_HANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/EC_OBJECT_ARRAY_PROPERTY_HANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/EC_OBJECT_ARRAY_PROPERTY_HANDLE.gen.cs index aad9803e66..852e2fefc4 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/EC_OBJECT_ARRAY_PROPERTY_HANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/EC_OBJECT_ARRAY_PROPERTY_HANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct EC_OBJECT_ARRAY_PROPERTY_HANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HACCEL.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HACCEL.gen.cs index 68449c6660..9a1efc6884 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HACCEL.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HACCEL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HACCEL : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HANDLE_PTR.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HANDLE_PTR.gen.cs index 9a6b8a380d..bc12bfbab9 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HANDLE_PTR.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HANDLE_PTR.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HANDLE_PTR : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HANIMATIONBUFFER.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HANIMATIONBUFFER.gen.cs index 28a8f8817b..e552312795 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HANIMATIONBUFFER.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HANIMATIONBUFFER.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HANIMATIONBUFFER : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.Manual.cs new file mode 100644 index 0000000000..cc6952708b --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HBITMAP : IEquatable +{ + public static explicit operator HBITMAP(HGDIOBJ value) => new HBITMAP(value.Value); + + public static implicit operator HGDIOBJ(HBITMAP value) => new HGDIOBJ(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.gen.cs index 7ce1a34c69..c04594d38c 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HBITMAP.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HBITMAP : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.Manual.cs new file mode 100644 index 0000000000..eb78968c9d --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HBRUSH : IEquatable +{ + public static explicit operator HBRUSH(HGDIOBJ value) => new HBRUSH(value.Value); + + public static implicit operator HGDIOBJ(HBRUSH value) => new HGDIOBJ(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.gen.cs index efe0c389f9..cf2928b8e9 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HBRUSH.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HBRUSH : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCATADMIN.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCATADMIN.gen.cs index a411993339..6356302e57 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCATADMIN.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCATADMIN.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCATADMIN : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCERTCHAINENGINE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCERTCHAINENGINE.gen.cs index 7d85a9d32a..054896cd9f 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCERTCHAINENGINE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCERTCHAINENGINE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCERTCHAINENGINE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCERTSTORE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCERTSTORE.gen.cs index 5285dc47fa..62500d5638 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCERTSTORE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCERTSTORE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCERTSTORE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCERTSTOREPROV.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCERTSTOREPROV.gen.cs index 591fe2842f..d7e296a4a8 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCERTSTOREPROV.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCERTSTOREPROV.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCERTSTOREPROV : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCERT_SERVER_OCSP_RESPONSE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCERT_SERVER_OCSP_RESPONSE.gen.cs index 18e5639006..512cf4289e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCERT_SERVER_OCSP_RESPONSE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCERT_SERVER_OCSP_RESPONSE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCERT_SERVER_OCSP_RESPONSE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCMTRANSFORM.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCMTRANSFORM.gen.cs index 4ca072e839..97f1e08370 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCMTRANSFORM.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCMTRANSFORM.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCMTRANSFORM : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCOLORSPACE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCOLORSPACE.gen.cs index 11d14db603..bbb48c6855 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCOLORSPACE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCOLORSPACE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCOLORSPACE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCOMDB.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCOMDB.gen.cs index 382d85c46a..ee22663d7e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCOMDB.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCOMDB.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCOMDB : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTASYNC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTASYNC.gen.cs index 29375250e0..e4b6dae77b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTASYNC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTASYNC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTASYNC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTDEFAULTCONTEXT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTDEFAULTCONTEXT.gen.cs index 8e211f8753..1d3015d453 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTDEFAULTCONTEXT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTDEFAULTCONTEXT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTDEFAULTCONTEXT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTHASH.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTHASH.gen.cs index fb62034f4c..b9828fa7af 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTHASH.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTHASH.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTHASH : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTKEY.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTKEY.gen.cs index e881835ac2..7b7dd68353 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTKEY.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTKEY.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTKEY : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTMSG.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTMSG.gen.cs index 723a7dfea1..e20b8d2446 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTMSG.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTMSG.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTMSG : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCADDR.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCADDR.gen.cs index d2c36d946b..4fc926ce6d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCADDR.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCADDR.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTOIDFUNCADDR : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCSET.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCSET.gen.cs index 556214d5d3..6f2ae34f5a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCSET.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTOIDFUNCSET.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTOIDFUNCSET : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV.gen.cs index 74e72c1d2f..430516dfb1 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTPROV : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_LEGACY.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_LEGACY.gen.cs index 11342aa0ef..cb8441ea69 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_LEGACY.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_LEGACY.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTPROV_LEGACY : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_OR_NCRYPT_KEY_HANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_OR_NCRYPT_KEY_HANDLE.gen.cs index b5f009fe19..0b4162cd55 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_OR_NCRYPT_KEY_HANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCRYPTPROV_OR_NCRYPT_KEY_HANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCRYPTPROV_OR_NCRYPT_KEY_HANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.Manual.cs new file mode 100644 index 0000000000..0969a928a1 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HCURSOR +{ + public static explicit operator HCURSOR(HICON value) => new HCURSOR(value.Value); + + public static implicit operator HICON(HCURSOR value) => new HICON(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.gen.cs index 98ead582b2..0345414012 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HCURSOR.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HCURSOR : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDC.gen.cs index a497d3c44a..a8871f9e8b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDESK.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDESK.gen.cs index 1355f07176..e6c153f2c6 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDESK.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDESK.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDESK : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDEVINFO.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDEVINFO.gen.cs index 95e5ef08b5..542e80676c 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDEVINFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDEVINFO.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDEVINFO : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDEVNOTIFY.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDEVNOTIFY.gen.cs index c971551c7e..1afcba3d42 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDEVNOTIFY.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDEVNOTIFY.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDEVNOTIFY : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDROP.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDROP.gen.cs index 871effc304..d38801dd53 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDROP.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDROP.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDROP : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDSKSPC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDSKSPC.gen.cs index e881f7d230..821449c076 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDSKSPC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDSKSPC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDSKSPC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HDWP.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HDWP.gen.cs index f27f322ada..14e9e25a7d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HDWP.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HDWP.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HDWP : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HENHMETAFILE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HENHMETAFILE.gen.cs index 5da246d7f1..25f7132d5a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HENHMETAFILE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HENHMETAFILE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HENHMETAFILE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HEVENT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HEVENT.gen.cs index f757fc95b8..62ba8c0918 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HEVENT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HEVENT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HEVENT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HFONT.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HFONT.Manual.cs new file mode 100644 index 0000000000..67ec946846 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HFONT.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HFONT : IEquatable +{ + public static explicit operator HFONT(HGDIOBJ value) => new HFONT(value.Value); + + public static implicit operator HGDIOBJ(HFONT value) => new HGDIOBJ(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HFONT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HFONT.gen.cs index c36b9bf57d..62e7c63fe7 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HFONT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HFONT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HFONT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HGDIOBJ.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HGDIOBJ.gen.cs index 1a14e39efa..945f451f1e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HGDIOBJ.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HGDIOBJ.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HGDIOBJ : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HGESTUREINFO.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HGESTUREINFO.gen.cs index fe54d37042..99fe3215be 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HGESTUREINFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HGESTUREINFO.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HGESTUREINFO : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HGLOBAL.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HGLOBAL.gen.cs index 26ad9363f2..1ab3c05d4b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HGLOBAL.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HGLOBAL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HGLOBAL : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HGLRC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HGLRC.gen.cs index ddd2b7b45c..994d5b436e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HGLRC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HGLRC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HGLRC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HHANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HHANDLE.gen.cs index c336adff50..5261288c93 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HHANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HHANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HHANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HHOOK.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HHOOK.gen.cs index cb2ccb77ff..b24d21b1dd 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HHOOK.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HHOOK.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HHOOK : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HICON.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HICON.gen.cs index 0245fba24f..fd0800e55a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HICON.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HICON.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HICON : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HIFTIMESTAMPCHANGE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HIFTIMESTAMPCHANGE.gen.cs index 4d78146343..0adacbaaca 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HIFTIMESTAMPCHANGE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HIFTIMESTAMPCHANGE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HIFTIMESTAMPCHANGE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HIMAGELIST.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HIMAGELIST.gen.cs index 8a843e61f3..2a95d1a212 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HIMAGELIST.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HIMAGELIST.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HIMAGELIST : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HIMC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HIMC.gen.cs index d1fc180548..f3bc24da9d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HIMC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HIMC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HIMC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HIMCC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HIMCC.gen.cs index 959c4b988f..4777b73bdf 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HIMCC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HIMCC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HIMCC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HINF.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HINF.gen.cs index 6a82c7380f..2a281aef4e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HINF.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HINF.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HINF : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HINSTANCE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HINSTANCE.gen.cs index 9432a546b0..95b4092031 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HINSTANCE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HINSTANCE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HINSTANCE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HINTERACTIONCONTEXT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HINTERACTIONCONTEXT.gen.cs index 177a974f4c..3e934e95e1 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HINTERACTIONCONTEXT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HINTERACTIONCONTEXT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HINTERACTIONCONTEXT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HINTERNET.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HINTERNET.gen.cs index 1292241c44..60cec0bc0e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HINTERNET.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HINTERNET.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HINTERNET : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HKEY.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HKEY.gen.cs index b44002e874..e49396c7f8 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HKEY.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HKEY.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HKEY : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HKL.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HKL.gen.cs index 042bbd4d1b..aeb6c0b739 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HKL.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HKL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HKL : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HLOCAL.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HLOCAL.gen.cs index 9d21d36cca..587ce7b46c 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HLOCAL.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HLOCAL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HLOCAL : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMENU.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMENU.gen.cs index b805969b93..2e9978f0e2 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMENU.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMENU.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMENU : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMETAFILE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMETAFILE.gen.cs index 5109f11396..728b7af7bc 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMETAFILE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMETAFILE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMETAFILE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMETAFILEPICT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMETAFILEPICT.gen.cs index 3cefe2a19a..67169f8090 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMETAFILEPICT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMETAFILEPICT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMETAFILEPICT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMIDI.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMIDI.gen.cs index bf10d82caa..0fdf48c710 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMIDI.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMIDI.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMIDI : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMIDIIN.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMIDIIN.gen.cs index c4b1576210..13b7d48fb4 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMIDIIN.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMIDIIN.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMIDIIN : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMIDIOUT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMIDIOUT.gen.cs index a863bf4120..ddb4f991d7 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMIDIOUT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMIDIOUT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMIDIOUT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMIDISTRM.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMIDISTRM.gen.cs index c3f36f2b64..0f8bcb5003 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMIDISTRM.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMIDISTRM.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMIDISTRM : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMIXER.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMIXER.gen.cs index d7d18617ff..ca71e4ef46 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMIXER.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMIXER.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMIXER : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMIXEROBJ.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMIXEROBJ.gen.cs index 447dc7537e..5b3930265a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMIXEROBJ.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMIXEROBJ.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMIXEROBJ : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMODULE.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HMODULE.Manual.cs new file mode 100644 index 0000000000..71ae003e8d --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HMODULE.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HMODULE +{ + public static explicit operator HMODULE(HINSTANCE value) => new HMODULE(value.Value); + + public static implicit operator HINSTANCE(HMODULE value) => new HINSTANCE(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMODULE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMODULE.gen.cs index ee33244308..9c5f958728 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMODULE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMODULE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMODULE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HMONITOR.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HMONITOR.gen.cs index d2436d2441..bf4865037c 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HMONITOR.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HMONITOR.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HMONITOR : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPAINTBUFFER.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPAINTBUFFER.gen.cs index 1b09d2b90c..b4ed495682 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPAINTBUFFER.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPAINTBUFFER.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPAINTBUFFER : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.Manual.cs new file mode 100644 index 0000000000..cef0e78cc5 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HPALETTE : IEquatable +{ + public static explicit operator HPALETTE(HGDIOBJ value) => new HPALETTE(value.Value); + + public static implicit operator HGDIOBJ(HPALETTE value) => new HGDIOBJ(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.gen.cs index 9448bf5313..326faaca23 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPALETTE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPALETTE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPCON.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPCON.gen.cs index ca9e129a8e..b13ac0539b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPCON.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPCON.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPCON : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPEN.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HPEN.Manual.cs new file mode 100644 index 0000000000..aea9a69bf7 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HPEN.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HPEN : IEquatable +{ + public static explicit operator HPEN(HGDIOBJ value) => new HPEN(value.Value); + + public static implicit operator HGDIOBJ(HPEN value) => new HGDIOBJ(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPEN.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPEN.gen.cs index 5e79f23107..70ca1d8196 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPEN.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPEN.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPEN : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPOWERNOTIFY.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPOWERNOTIFY.gen.cs index b626682e81..ee7bd1e584 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPOWERNOTIFY.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPOWERNOTIFY.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPOWERNOTIFY : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPROFILE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPROFILE.gen.cs index b39e96277d..f5d3989523 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPROFILE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPROFILE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPROFILE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPROPSHEETPAGE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPROPSHEETPAGE.gen.cs index 30008654d7..595150b240 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPROPSHEETPAGE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPROPSHEETPAGE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPROPSHEETPAGE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPSS.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPSS.gen.cs index 7856e1b1eb..b44d5c2968 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPSS.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPSS.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPSS : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPSSWALK.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPSSWALK.gen.cs index 9722dc71b1..84daab0c37 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPSSWALK.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPSSWALK.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPSSWALK : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HPSXA.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HPSXA.gen.cs index d4618b06ab..d5f01ac7ba 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HPSXA.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HPSXA.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HPSXA : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HRAWINPUT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HRAWINPUT.gen.cs index 0e8aafad88..0d131b0516 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HRAWINPUT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HRAWINPUT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HRAWINPUT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HRGN.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/HRGN.Manual.cs new file mode 100644 index 0000000000..e09f9de6b7 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/HRGN.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HRGN : IEquatable +{ + public static explicit operator HRGN(HGDIOBJ value) => new HRGN(value.Value); + + public static implicit operator HGDIOBJ(HRGN value) => new HGDIOBJ(value.Value); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/HRGN.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HRGN.gen.cs index 1f51dd110b..1636bc98fc 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HRGN.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HRGN.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HRGN : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HRSRC.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HRSRC.gen.cs index ab81091a75..6067b7c39e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HRSRC.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HRSRC.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HRSRC : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSEMAPHORE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HSEMAPHORE.gen.cs index 5301b45d15..623586d683 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSEMAPHORE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HSEMAPHORE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HSEMAPHORE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSPFILELOG.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HSPFILELOG.gen.cs index 87c5353bdc..db4762c515 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSPFILELOG.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HSPFILELOG.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HSPFILELOG : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSPFILEQ.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HSPFILEQ.gen.cs index 8d483d3a08..133c632d19 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSPFILEQ.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HSPFILEQ.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HSPFILEQ : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSTRING_BUFFER.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HSTRING_BUFFER.gen.cs index b12280321d..16fe458b87 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSTRING_BUFFER.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HSTRING_BUFFER.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; -using Silk.NET.Windows; - +using Silk.NET.Win32; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.WinRT; public readonly unsafe partial struct HSTRING_BUFFER diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSWDEVICE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HSWDEVICE.gen.cs index 52cb3af80e..4f9e538da2 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSWDEVICE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HSWDEVICE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HSWDEVICE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HSYNTHETICPOINTERDEVICE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HSYNTHETICPOINTERDEVICE.gen.cs index d3feea2743..c20ef646d3 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HSYNTHETICPOINTERDEVICE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HSYNTHETICPOINTERDEVICE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HSYNTHETICPOINTERDEVICE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HTASK.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HTASK.gen.cs index 66b62bf41c..1cab3d575d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HTASK.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HTASK.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HTASK : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HTHEME.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HTHEME.gen.cs index ee3a53e047..bceb9a906d 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HTHEME.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HTHEME.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HTHEME : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HTHUMBNAIL.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HTHUMBNAIL.gen.cs index e430254fe5..0038d7bf6a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HTHUMBNAIL.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HTHUMBNAIL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HTHUMBNAIL : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HTOUCHINPUT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HTOUCHINPUT.gen.cs index 3808870728..bf7d609bc3 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HTOUCHINPUT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HTOUCHINPUT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HTOUCHINPUT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HTRANSFORM.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HTRANSFORM.gen.cs index deb60bd8de..e9820f29ba 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HTRANSFORM.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HTRANSFORM.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HTRANSFORM : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HTREEITEM.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HTREEITEM.gen.cs index bc2bdecb4d..2ceb421bf4 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HTREEITEM.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HTREEITEM.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HTREEITEM : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HUSKEY.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HUSKEY.gen.cs index 7f6260e663..5da981282e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HUSKEY.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HUSKEY.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HUSKEY : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HWAVEIN.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HWAVEIN.gen.cs index 7e4694a74c..c7bb08b8e8 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HWAVEIN.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HWAVEIN.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HWAVEIN : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HWAVEOUT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HWAVEOUT.gen.cs index c80ac116e2..e669522e81 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HWAVEOUT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HWAVEOUT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HWAVEOUT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HWINEVENTHOOK.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HWINEVENTHOOK.gen.cs index 7b08a59874..e6df71b263 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HWINEVENTHOOK.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HWINEVENTHOOK.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HWINEVENTHOOK : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HWINSTA.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HWINSTA.gen.cs index d7eae35a66..161ecfa783 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HWINSTA.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HWINSTA.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HWINSTA : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/HWND.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/HWND.gen.cs index 2b8820a2cc..22f65120a1 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/HWND.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/HWND.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct HWND : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/InstanceHandle.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/InstanceHandle.gen.cs index 25e235f348..fb63436e6e 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/InstanceHandle.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/InstanceHandle.gen.cs @@ -1,6 +1,6 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.WinRT; public readonly unsafe partial struct InstanceHandle diff --git a/sources/Win32/Win32/Windows/other/helper-types/LPARAM.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/LPARAM.Manual.cs new file mode 100644 index 0000000000..7c643eaec9 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/LPARAM.Manual.cs @@ -0,0 +1,86 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct LPARAM +{ + public static explicit operator LPARAM(void* value) => new LPARAM((nint)(value)); + + public static implicit operator void*(LPARAM value) => (void*)(value.Value); + + public static explicit operator LPARAM(BOOL value) => new LPARAM(value.Value); + + public static explicit operator BOOL(LPARAM value) => new BOOL((int)(value.Value)); + + public static explicit operator LPARAM(HANDLE value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HANDLE(LPARAM value) => new HANDLE((void*)(value.Value)); + + public static explicit operator LPARAM(HBRUSH value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HBRUSH(LPARAM value) => new HBRUSH((void*)(value.Value)); + + public static explicit operator LPARAM(HCURSOR value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HCURSOR(LPARAM value) => new HCURSOR((void*)(value.Value)); + + public static explicit operator LPARAM(HDC value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HDC(LPARAM value) => new HDC((void*)(value.Value)); + + public static explicit operator LPARAM(HDROP value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HDROP(LPARAM value) => new HDROP((void*)(value.Value)); + + public static explicit operator LPARAM(HFONT value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HFONT(LPARAM value) => new HFONT((void*)(value.Value)); + + public static explicit operator LPARAM(HGDIOBJ value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HGDIOBJ(LPARAM value) => new HGDIOBJ((void*)(value.Value)); + + public static explicit operator LPARAM(HGLOBAL value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HGLOBAL(LPARAM value) => new HGLOBAL((void*)(value.Value)); + + public static explicit operator LPARAM(HICON value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HICON(LPARAM value) => new HICON((void*)(value.Value)); + + public static explicit operator LPARAM(HINSTANCE value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HINSTANCE(LPARAM value) => new HINSTANCE((void*)(value.Value)); + + public static explicit operator LPARAM(HLOCAL value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HLOCAL(LPARAM value) => new HLOCAL((void*)(value.Value)); + + public static explicit operator LPARAM(HMENU value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HMENU(LPARAM value) => new HMENU((void*)(value.Value)); + + public static explicit operator LPARAM(HMODULE value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HMODULE(LPARAM value) => new HMODULE((void*)(value.Value)); + + public static explicit operator LPARAM(HPALETTE value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HPALETTE(LPARAM value) => new HPALETTE((void*)(value.Value)); + + public static explicit operator LPARAM(HPEN value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HPEN(LPARAM value) => new HPEN((void*)(value.Value)); + + public static explicit operator LPARAM(HRGN value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HRGN(LPARAM value) => new HRGN((void*)(value.Value)); + + public static explicit operator LPARAM(HWND value) => new LPARAM((nint)(value.Value)); + + public static explicit operator HWND(LPARAM value) => new HWND((void*)(value.Value)); + + public static explicit operator LPARAM(LRESULT value) => new LPARAM(value.Value); + + public static explicit operator LPARAM(WPARAM value) => new LPARAM((nint)(value.Value)); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/LPARAM.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/LPARAM.gen.cs index 40f17f0eea..b93769ab77 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/LPARAM.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/LPARAM.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct LPARAM : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/LPPROC_THREAD_ATTRIBUTE_LIST.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/LPPROC_THREAD_ATTRIBUTE_LIST.gen.cs index a7696d5f87..47ffe32dd6 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/LPPROC_THREAD_ATTRIBUTE_LIST.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/LPPROC_THREAD_ATTRIBUTE_LIST.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct LPPROC_THREAD_ATTRIBUTE_LIST : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/LRESULT.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/LRESULT.Manual.cs new file mode 100644 index 0000000000..9506a36d09 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/LRESULT.Manual.cs @@ -0,0 +1,86 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct LRESULT +{ + public static explicit operator LRESULT(void* value) => new LRESULT((nint)(value)); + + public static implicit operator void*(LRESULT value) => (void*)(value.Value); + + public static explicit operator LRESULT(BOOL value) => new LRESULT(value.Value); + + public static explicit operator BOOL(LRESULT value) => new BOOL((int)(value.Value)); + + public static explicit operator LRESULT(HANDLE value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HANDLE(LRESULT value) => new HANDLE((void*)(value.Value)); + + public static explicit operator LRESULT(HBRUSH value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HBRUSH(LRESULT value) => new HBRUSH((void*)(value.Value)); + + public static explicit operator LRESULT(HCURSOR value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HCURSOR(LRESULT value) => new HCURSOR((void*)(value.Value)); + + public static explicit operator LRESULT(HDC value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HDC(LRESULT value) => new HDC((void*)(value.Value)); + + public static explicit operator LRESULT(HDROP value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HDROP(LRESULT value) => new HDROP((void*)(value.Value)); + + public static explicit operator LRESULT(HFONT value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HFONT(LRESULT value) => new HFONT((void*)(value.Value)); + + public static explicit operator LRESULT(HGDIOBJ value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HGDIOBJ(LRESULT value) => new HGDIOBJ((void*)(value.Value)); + + public static explicit operator LRESULT(HGLOBAL value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HGLOBAL(LRESULT value) => new HGLOBAL((void*)(value.Value)); + + public static explicit operator LRESULT(HICON value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HICON(LRESULT value) => new HICON((void*)(value.Value)); + + public static explicit operator LRESULT(HINSTANCE value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HINSTANCE(LRESULT value) => new HINSTANCE((void*)(value.Value)); + + public static explicit operator LRESULT(HLOCAL value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HLOCAL(LRESULT value) => new HLOCAL((void*)(value.Value)); + + public static explicit operator LRESULT(HMENU value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HMENU(LRESULT value) => new HMENU((void*)(value.Value)); + + public static explicit operator LRESULT(HMODULE value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HMODULE(LRESULT value) => new HMODULE((void*)(value.Value)); + + public static explicit operator LRESULT(HPALETTE value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HPALETTE(LRESULT value) => new HPALETTE((void*)(value.Value)); + + public static explicit operator LRESULT(HPEN value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HPEN(LRESULT value) => new HPEN((void*)(value.Value)); + + public static explicit operator LRESULT(HRGN value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HRGN(LRESULT value) => new HRGN((void*)(value.Value)); + + public static explicit operator LRESULT(HWND value) => new LRESULT((nint)(value.Value)); + + public static explicit operator HWND(LRESULT value) => new HWND((void*)(value.Value)); + + public static explicit operator LRESULT(LPARAM value) => new LRESULT(value.Value); + + public static explicit operator LRESULT(WPARAM value) => new LRESULT((nint)(value.Value)); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/LRESULT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/LRESULT.gen.cs index 3d8af556cf..1a8589d916 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/LRESULT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/LRESULT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly partial struct LRESULT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/MSIHANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/MSIHANDLE.gen.cs index 3bcf14b374..eb9e64be27 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/MSIHANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/MSIHANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct MSIHANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/MachineGlobalObjectTableRegistrationToken.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/MachineGlobalObjectTableRegistrationToken.gen.cs index 8308f1fc9d..4710243d1b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/MachineGlobalObjectTableRegistrationToken.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/MachineGlobalObjectTableRegistrationToken.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct MachineGlobalObjectTableRegistrationToken : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/NativeInheritanceAttribute.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/NativeInheritanceAttribute.gen.cs deleted file mode 100644 index 9e533baf7c..0000000000 --- a/sources/Win32/Win32/Windows/other/helper-types/NativeInheritanceAttribute.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -using System; -using System.Diagnostics; - -namespace TerraFX.Interop; - -/// Defines the base type of a struct as it was in the native signature. -[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false, Inherited = true)] -[Conditional("DEBUG")] -internal sealed partial class NativeInheritanceAttribute : Attribute -{ - private readonly string _name; - - /// Initializes a new instance of the class. - /// The name of the base type that was inherited from in the native signature. - - public NativeInheritanceAttribute(string name) - { - _name = name; - } - - /// Gets the name of the base type that was inherited from in the native signature. - - public string Name => _name; -} diff --git a/sources/Win32/Win32/Windows/other/helper-types/NativeTypeNameAttribute.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/NativeTypeNameAttribute.gen.cs deleted file mode 100644 index a86e32c8f6..0000000000 --- a/sources/Win32/Win32/Windows/other/helper-types/NativeTypeNameAttribute.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -using System; -using System.Diagnostics; - -namespace TerraFX.Interop; - -/// Defines the type of a member as it was used in the native signature. -[AttributeUsage( - AttributeTargets.Struct - | AttributeTargets.Enum - | AttributeTargets.Property - | AttributeTargets.Field - | AttributeTargets.Parameter - | AttributeTargets.ReturnValue, - AllowMultiple = false, - Inherited = true -)] -[Conditional("DEBUG")] -internal sealed partial class NativeTypeNameAttribute : Attribute -{ - private readonly string _name; - - /// Initializes a new instance of the class. - /// The name of the type that was used in the native signature. - - public NativeTypeNameAttribute(string name) - { - _name = name; - } - - /// Gets the name of the type that was used in the native signature. - - public string Name => _name; -} diff --git a/sources/Win32/Win32/Windows/other/helper-types/OAHWND.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/OAHWND.gen.cs index 7f4f448f4c..300e39c59b 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/OAHWND.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/OAHWND.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct OAHWND : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PACKAGEDEPENDENCY_CONTEXT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PACKAGEDEPENDENCY_CONTEXT.gen.cs index 1566a44f3d..eee2266b39 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PACKAGEDEPENDENCY_CONTEXT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PACKAGEDEPENDENCY_CONTEXT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PACKAGEDEPENDENCY_CONTEXT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PACKAGE_INFO_REFERENCE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PACKAGE_INFO_REFERENCE.gen.cs index e916b9aeb8..2221150509 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PACKAGE_INFO_REFERENCE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PACKAGE_INFO_REFERENCE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PACKAGE_INFO_REFERENCE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PAPPCONSTRAIN_REGISTRATION.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PAPPCONSTRAIN_REGISTRATION.gen.cs index e497db7bb8..14c6d2c133 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PAPPCONSTRAIN_REGISTRATION.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PAPPCONSTRAIN_REGISTRATION.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PAPPCONSTRAIN_REGISTRATION : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PAPPSTATE_REGISTRATION.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PAPPSTATE_REGISTRATION.gen.cs index 3d3aa8866d..fd898e0a9a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PAPPSTATE_REGISTRATION.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PAPPSTATE_REGISTRATION.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PAPPSTATE_REGISTRATION : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PCUSERIALIZEDPROPSTORAGE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PCUSERIALIZEDPROPSTORAGE.gen.cs index c46b37522e..13c298d9c2 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PCUSERIALIZEDPROPSTORAGE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PCUSERIALIZEDPROPSTORAGE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PCUSERIALIZEDPROPSTORAGE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PHIDP_PREPARSED_DATA.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PHIDP_PREPARSED_DATA.gen.cs index c1cd484577..d324b467ac 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PHIDP_PREPARSED_DATA.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PHIDP_PREPARSED_DATA.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PHIDP_PREPARSED_DATA : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PRJ_DIR_ENTRY_BUFFER_HANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PRJ_DIR_ENTRY_BUFFER_HANDLE.gen.cs index 300b412939..db1c4cb327 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PRJ_DIR_ENTRY_BUFFER_HANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PRJ_DIR_ENTRY_BUFFER_HANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PRJ_DIR_ENTRY_BUFFER_HANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT.gen.cs index 588d1c65d6..0ba9e5d407 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PTP_CALLBACK_INSTANCE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PTP_CALLBACK_INSTANCE.gen.cs index d127190f20..f18f5e1a71 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PTP_CALLBACK_INSTANCE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PTP_CALLBACK_INSTANCE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PTP_CALLBACK_INSTANCE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PTP_CLEANUP_GROUP.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PTP_CLEANUP_GROUP.gen.cs index a830888dcc..ae8022eb39 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PTP_CLEANUP_GROUP.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PTP_CLEANUP_GROUP.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PTP_CLEANUP_GROUP : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/PTP_POOL.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/PTP_POOL.gen.cs index 632eb21f46..515c6ce2a4 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/PTP_POOL.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/PTP_POOL.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct PTP_POOL : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/Pointer`1.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/Pointer`1.Manual.cs new file mode 100644 index 0000000000..ff7d3e5c93 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/Pointer`1.Manual.cs @@ -0,0 +1,113 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public readonly unsafe partial struct Pointer + : IComparable, + IComparable>, + IEquatable>, + IFormattable + where T : unmanaged +{ + public readonly T* Value; + + public Pointer(T* value) + { + Value = value; + } + + public static bool operator ==(Pointer left, Pointer right) => left.Value == right.Value; + + public static bool operator !=(Pointer left, Pointer right) => left.Value != right.Value; + + public static bool operator <(Pointer left, Pointer right) => left.Value < right.Value; + + public static bool operator <=(Pointer left, Pointer right) => left.Value <= right.Value; + + public static bool operator >(Pointer left, Pointer right) => left.Value > right.Value; + + public static bool operator >=(Pointer left, Pointer right) => left.Value >= right.Value; + + public static implicit operator Pointer(T* value) => new Pointer(value); + + public static implicit operator T*(Pointer value) => value.Value; + + public static explicit operator Pointer(void* value) => new Pointer((T*)(value)); + + public static implicit operator void*(Pointer value) => value.Value; + + public static explicit operator Pointer(byte value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator byte(Pointer value) => (byte)(value.Value); + + public static explicit operator Pointer(short value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator short(Pointer value) => (short)(value.Value); + + public static explicit operator Pointer(int value) => new Pointer(unchecked((T*)(value))); + + public static explicit operator int(Pointer value) => (int)(value.Value); + + public static explicit operator Pointer(long value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator long(Pointer value) => (long)(value.Value); + + public static explicit operator Pointer(nint value) => + new Pointer(unchecked((T*)(value))); + + public static implicit operator nint(Pointer value) => (nint)(value.Value); + + public static explicit operator Pointer(sbyte value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator sbyte(Pointer value) => (sbyte)(value.Value); + + public static explicit operator Pointer(ushort value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator ushort(Pointer value) => (ushort)(value.Value); + + public static explicit operator Pointer(uint value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator uint(Pointer value) => (uint)(value.Value); + + public static explicit operator Pointer(ulong value) => + new Pointer(unchecked((T*)(value))); + + public static explicit operator ulong(Pointer value) => (ulong)(value.Value); + + public static explicit operator Pointer(nuint value) => + new Pointer(unchecked((T*)(value))); + + public static implicit operator nuint(Pointer value) => (nuint)(value.Value); + + public int CompareTo(object? obj) + { + if (obj is Pointer other) + { + return CompareTo(other); + } + return (obj is null) + ? 1 + : throw new ArgumentException("obj is not an instance of Pointer."); + } + + public int CompareTo(Pointer other) => ((nuint)(Value)).CompareTo((nuint)(other.Value)); + + public override bool Equals(object? obj) => (obj is Pointer other) && Equals(other); + + public bool Equals(Pointer other) => ((nuint)(Value)).Equals((nuint)(other.Value)); + + public override int GetHashCode() => ((nuint)(Value)).GetHashCode(); + + public override string ToString() => + ((nuint)(Value)).ToString((sizeof(nint) == 4) ? "X8" : "X16"); + + public string ToString(string? format, IFormatProvider? formatProvider) => + ((nuint)(Value)).ToString(format, formatProvider); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/ROPARAMIIDHANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/ROPARAMIIDHANDLE.gen.cs index b0d7076875..8f5f14c197 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/ROPARAMIIDHANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/ROPARAMIIDHANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct ROPARAMIIDHANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/RO_REGISTRATION_COOKIE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/RO_REGISTRATION_COOKIE.gen.cs index fc373b2d1f..74add15c4a 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/RO_REGISTRATION_COOKIE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/RO_REGISTRATION_COOKIE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct RO_REGISTRATION_COOKIE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/SPSTATEHANDLE.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/SPSTATEHANDLE.gen.cs index bd22d119aa..bb8e888ccd 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/SPSTATEHANDLE.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/SPSTATEHANDLE.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct SPSTATEHANDLE : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/SetsLastSystemErrorAttribute.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/SetsLastSystemErrorAttribute.gen.cs deleted file mode 100644 index c25b04d278..0000000000 --- a/sources/Win32/Win32/Windows/other/helper-types/SetsLastSystemErrorAttribute.gen.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; - -/// Specifies that the given method sets the last system error and it can be retrieved via . -[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] -[Conditional("DEBUG")] -internal sealed partial class SetsLastSystemErrorAttribute : Attribute -{ - /// Initializes a new instance of the class. - - public SetsLastSystemErrorAttribute() { } -} diff --git a/sources/Win32/Win32/Windows/other/helper-types/UI_ANIMATION_KEYFRAME.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/UI_ANIMATION_KEYFRAME.gen.cs index b095dc16f4..9aefe88b99 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/UI_ANIMATION_KEYFRAME.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/UI_ANIMATION_KEYFRAME.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct UI_ANIMATION_KEYFRAME : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/VtblIndexAttribute.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/VtblIndexAttribute.gen.cs deleted file mode 100644 index 3a1436654d..0000000000 --- a/sources/Win32/Win32/Windows/other/helper-types/VtblIndexAttribute.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -using System; -using System.Diagnostics; - -namespace TerraFX.Interop; - -/// Defines the vtbl index of a method as it was in the native signature. -[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] -[Conditional("DEBUG")] -internal sealed partial class VtblIndexAttribute : Attribute -{ - private readonly uint _index; - - /// Initializes a new instance of the class. - /// The vtbl index of a method as it was in the native signature. - - public VtblIndexAttribute(uint index) - { - _index = index; - } - - /// Gets the vtbl index of a method as it was in the native signature. - - public uint Index => _index; -} diff --git a/sources/Win32/Win32/Windows/other/helper-types/WPARAM.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/WPARAM.Manual.cs new file mode 100644 index 0000000000..5205e3bc65 --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/WPARAM.Manual.cs @@ -0,0 +1,86 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct WPARAM +{ + public static explicit operator WPARAM(void* value) => new WPARAM((nuint)(value)); + + public static implicit operator void*(WPARAM value) => (void*)(value.Value); + + public static explicit operator WPARAM(BOOL value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator BOOL(WPARAM value) => new BOOL((int)(value.Value)); + + public static explicit operator WPARAM(HANDLE value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HANDLE(WPARAM value) => new HANDLE((void*)(value.Value)); + + public static explicit operator WPARAM(HBRUSH value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HBRUSH(WPARAM value) => new HBRUSH((void*)(value.Value)); + + public static explicit operator WPARAM(HCURSOR value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HCURSOR(WPARAM value) => new HCURSOR((void*)(value.Value)); + + public static explicit operator WPARAM(HDC value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HDC(WPARAM value) => new HDC((void*)(value.Value)); + + public static explicit operator WPARAM(HDROP value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HDROP(WPARAM value) => new HDROP((void*)(value.Value)); + + public static explicit operator WPARAM(HFONT value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HFONT(WPARAM value) => new HFONT((void*)(value.Value)); + + public static explicit operator WPARAM(HGDIOBJ value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HGDIOBJ(WPARAM value) => new HGDIOBJ((void*)(value.Value)); + + public static explicit operator WPARAM(HGLOBAL value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HGLOBAL(WPARAM value) => new HGLOBAL((void*)(value.Value)); + + public static explicit operator WPARAM(HICON value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HICON(WPARAM value) => new HICON((void*)(value.Value)); + + public static explicit operator WPARAM(HINSTANCE value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HINSTANCE(WPARAM value) => new HINSTANCE((void*)(value.Value)); + + public static explicit operator WPARAM(HLOCAL value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HLOCAL(WPARAM value) => new HLOCAL((void*)(value.Value)); + + public static explicit operator WPARAM(HMENU value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HMENU(WPARAM value) => new HMENU((void*)(value.Value)); + + public static explicit operator WPARAM(HMODULE value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HMODULE(WPARAM value) => new HMODULE((void*)(value.Value)); + + public static explicit operator WPARAM(HPALETTE value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HPALETTE(WPARAM value) => new HPALETTE((void*)(value.Value)); + + public static explicit operator WPARAM(HPEN value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HPEN(WPARAM value) => new HPEN((void*)(value.Value)); + + public static explicit operator WPARAM(HRGN value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HRGN(WPARAM value) => new HRGN((void*)(value.Value)); + + public static explicit operator WPARAM(HWND value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator HWND(WPARAM value) => new HWND((void*)(value.Value)); + + public static explicit operator WPARAM(LPARAM value) => new WPARAM((nuint)(value.Value)); + + public static explicit operator WPARAM(LRESULT value) => new WPARAM((nuint)(value.Value)); +} diff --git a/sources/Win32/Win32/Windows/other/helper-types/WPARAM.gen.cs b/sources/Win32/Win32/Windows/other/helper-types/WPARAM.gen.cs index 4f5f9b66a8..1e2fc8536f 100644 --- a/sources/Win32/Win32/Windows/other/helper-types/WPARAM.gen.cs +++ b/sources/Win32/Win32/Windows/other/helper-types/WPARAM.gen.cs @@ -1,7 +1,7 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public readonly unsafe partial struct WPARAM : IComparable, diff --git a/sources/Win32/Win32/Windows/other/helper-types/Windows.Manual.cs b/sources/Win32/Win32/Windows/other/helper-types/Windows.Manual.cs new file mode 100644 index 0000000000..1325c5bebc --- /dev/null +++ b/sources/Win32/Win32/Windows/other/helper-types/Windows.Manual.cs @@ -0,0 +1,32 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + [DoesNotReturn] + public static void ThrowExternalException(string methodName, int errorCode) + { + var message = string.Format( + "'{0}' failed with an error code of '{1}'", + methodName, + errorCode + ); + throw new ExternalException(message, errorCode); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void ThrowIfFailed( + HRESULT value, + [CallerArgumentExpression("value")] string? valueExpression = null + ) + { + if (value.FAILED) + { + ThrowExternalException(valueExpression ?? "Method", value); + } + } +} diff --git a/sources/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATA.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATA.gen.cs index 8a95a42f58..b3c3f5dfc9 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATA.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATA.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct APPX_SIP_CLIENT_DATA @@ -13,5 +14,5 @@ public unsafe partial struct APPX_SIP_CLIENT_DATA /// - public IUnknown* pAppxSipState; + public IUnknown pAppxSipState; } diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER.gen.cs index 014e59a016..b6fc7e3447 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public static partial class SIGNER { diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODE.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODE.gen.cs index 7f6e38ff8b..2af97578af 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODE.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODE.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_ATTR_AUTHCODE diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFO.gen.cs index a0bb6eec28..cfbaa60021 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFO.gen.cs @@ -2,8 +2,8 @@ // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). using System; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_BLOB_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT.gen.cs index 77aff33d04..c948254af5 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT.gen.cs @@ -4,8 +4,8 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_CERT diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFO.gen.cs index ea5089918c..1a8540e626 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFO.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_CERT_STORE_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXT.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXT.gen.cs index a35330201f..303254bcee 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXT.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXT.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_CONTEXT diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFO.gen.cs index 1bc65453e2..597fc0cce5 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFO.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_FILE_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFO.gen.cs index 981ab487d3..deee32fdd0 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFO.gen.cs @@ -4,8 +4,8 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_PROVIDER_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.gen.cs index 19569e93b7..6509fe46d3 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFO.gen.cs @@ -4,8 +4,8 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_SIGNATURE_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMS.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMS.gen.cs index 63e54a87ce..c8a8e4320d 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMS.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMS.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_SIGN_EX2_PARAMS diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFO.gen.cs index a3fdfc2d6e..a523723272 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFO.gen.cs @@ -1,7 +1,8 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_SPC_CHAIN_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFO.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFO.gen.cs index 1f1b35000b..b48e61147b 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFO.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFO.gen.cs @@ -4,8 +4,8 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; /// public unsafe partial struct SIGNER_SUBJECT_INFO diff --git a/sources/Win32/Win32/Windows/other/mssign32/Windows.gen.cs b/sources/Win32/Win32/Windows/other/mssign32/Windows.gen.cs index 27bc15798c..6dcdfc25e0 100644 --- a/sources/Win32/Win32/Windows/other/mssign32/Windows.gen.cs +++ b/sources/Win32/Win32/Windows/other/mssign32/Windows.gen.cs @@ -1,12 +1,19 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; public static unsafe partial class Windows { + [NativeTypeName("#define PVK_TYPE_FILE_NAME 0x01")] + public const int PVK_TYPE_FILE_NAME = 0x01; + + [NativeTypeName("#define PVK_TYPE_KEYCONTAINER 0x02")] + public const int PVK_TYPE_KEYCONTAINER = 0x02; + /// [DllImport("mssign32", ExactSpelling = true)] @@ -26,9 +33,52 @@ public static extern HRESULT SignerSignEx2( [NativeTypeName("PVOID")] void* pReserved ); - [NativeTypeName("#define PVK_TYPE_FILE_NAME 0x01")] - public const int PVK_TYPE_FILE_NAME = 0x01; - - [NativeTypeName("#define PVK_TYPE_KEYCONTAINER 0x02")] - public const int PVK_TYPE_KEYCONTAINER = 0x02; + [Transformed] + [NativeFunction("mssign32", EntryPoint = "SignerSignEx2")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SignerSignEx2( + [NativeTypeName("DWORD")] uint dwFlags, + Ref pSubjectInfo, + Ref pSignerCert, + Ref pSignatureInfo, + Ref pProviderInfo, + [NativeTypeName("DWORD")] uint dwTimestampFlags, + [NativeTypeName("PCSTR")] Ref pszTimestampAlgorithmOid, + [NativeTypeName("PCWSTR")] Ref pwszHttpTimeStamp, + [NativeTypeName("PCRYPT_ATTRIBUTES")] Ref psRequest, + [NativeTypeName("PVOID")] Ref pSipData, + Ref2D ppSignerContext, + [NativeTypeName("PCERT_STRONG_SIGN_PARA")] Ref pCryptoPolicy, + [NativeTypeName("PVOID")] Ref pReserved + ) + { + fixed (void* __dsl_pReserved = pReserved) + fixed (CERT_STRONG_SIGN_PARA* __dsl_pCryptoPolicy = pCryptoPolicy) + fixed (SIGNER_CONTEXT** __dsl_ppSignerContext = ppSignerContext) + fixed (void* __dsl_pSipData = pSipData) + fixed (CRYPT_ATTRIBUTES* __dsl_psRequest = psRequest) + fixed (ushort* __dsl_pwszHttpTimeStamp = pwszHttpTimeStamp) + fixed (sbyte* __dsl_pszTimestampAlgorithmOid = pszTimestampAlgorithmOid) + fixed (SIGNER_PROVIDER_INFO* __dsl_pProviderInfo = pProviderInfo) + fixed (SIGNER_SIGNATURE_INFO* __dsl_pSignatureInfo = pSignatureInfo) + fixed (SIGNER_CERT* __dsl_pSignerCert = pSignerCert) + fixed (SIGNER_SUBJECT_INFO* __dsl_pSubjectInfo = pSubjectInfo) + { + return (HRESULT)SignerSignEx2( + dwFlags, + __dsl_pSubjectInfo, + __dsl_pSignerCert, + __dsl_pSignatureInfo, + __dsl_pProviderInfo, + dwTimestampFlags, + __dsl_pszTimestampAlgorithmOid, + __dsl_pwszHttpTimeStamp, + __dsl_psRequest, + __dsl_pSipData, + __dsl_ppSignerContext, + __dsl_pCryptoPolicy, + __dsl_pReserved + ); + } + } } diff --git a/sources/Win32/Win32/Windows/shared/guiddef/IID.Manual.cs b/sources/Win32/Win32/Windows/shared/guiddef/IID.Manual.cs new file mode 100644 index 0000000000..9c717a46c2 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/guiddef/IID.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/guiddef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class IID +{ + public static ref readonly Guid IID_NULL + { + get + { + ReadOnlySpan data = + [ + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/shared/hidclass/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/hidclass/Windows.Manual.cs new file mode 100644 index 0000000000..a051562386 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/hidclass/Windows.Manual.cs @@ -0,0 +1,26 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.FILE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int HID_BUFFER_CTL_CODE(int id) => + CTL_CODE(FILE_DEVICE_KEYBOARD, id, METHOD_BUFFERED, FILE_ANY_ACCESS); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int HID_CTL_CODE(int id) => + CTL_CODE(FILE_DEVICE_KEYBOARD, id, METHOD_NEITHER, FILE_ANY_ACCESS); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int HID_IN_CTL_CODE(int id) => + CTL_CODE(FILE_DEVICE_KEYBOARD, id, METHOD_IN_DIRECT, FILE_ANY_ACCESS); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int HID_OUT_CTL_CODE(int id) => + CTL_CODE(FILE_DEVICE_KEYBOARD, id, METHOD_OUT_DIRECT, FILE_ANY_ACCESS); +} diff --git a/sources/Win32/Win32/Windows/shared/hidpi/HIDP_EXTENDED_ATTRIBUTES.Manual.cs b/sources/Win32/Win32/Windows/shared/hidpi/HIDP_EXTENDED_ATTRIBUTES.Manual.cs new file mode 100644 index 0000000000..7defd50fd4 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/hidpi/HIDP_EXTENDED_ATTRIBUTES.Manual.cs @@ -0,0 +1,47 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +public unsafe partial struct HIDP_EXTENDED_ATTRIBUTES +{ + [NativeTypeName("UCHAR")] + public byte NumGlobalUnknowns; + + [NativeTypeName("UCHAR[3]")] + public _Reserved_e__FixedBuffer Reserved; + + [NativeTypeName("PHIDP_UNKNOWN_TOKEN")] + public HIDP_UNKNOWN_TOKEN* GlobalUnknowns; + + [NativeTypeName("ULONG[1]")] + public _Data_e__FixedBuffer Data; + + [InlineArray(3)] + public partial struct _Reserved_e__FixedBuffer + { + public byte e0; + } + + public partial struct _Data_e__FixedBuffer + { + public uint e0; + + [UnscopedRef] + public ref uint this[int index] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Unsafe.Add(ref e0, index); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] + public Span AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); + } +} diff --git a/sources/Win32/Win32/Windows/shared/hidpi/HIDP_LINK_COLLECTION_NODE.Manual.cs b/sources/Win32/Win32/Windows/shared/hidpi/HIDP_LINK_COLLECTION_NODE.Manual.cs new file mode 100644 index 0000000000..d26c3e98df --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/hidpi/HIDP_LINK_COLLECTION_NODE.Manual.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +public unsafe partial struct HIDP_LINK_COLLECTION_NODE +{ + [NativeTypeName("USAGE")] + public ushort LinkUsage; + + [NativeTypeName("USAGE")] + public ushort LinkUsagePage; + public ushort Parent; + public ushort NumberOfChildren; + public ushort NextSibling; + public ushort FirstChild; + public uint _bitfield; + + [NativeTypeName("ULONG : 8")] + public uint CollectionType + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield & 0xFFu; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield = (_bitfield & ~0xFFu) | (value & 0xFFu); } + } + + [NativeTypeName("ULONG : 1")] + public uint IsAlias + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield >> 8) & 0x1u; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield = (_bitfield & ~(0x1u << 8)) | ((value & 0x1u) << 8); } + } + + [NativeTypeName("ULONG : 23")] + public uint Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield >> 9) & 0x7FFFFFu; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield = (_bitfield & ~(0x7FFFFFu << 9)) | ((value & 0x7FFFFFu) << 9); } + } + + [NativeTypeName("PVOID")] + public void* UserContext; +} diff --git a/sources/Win32/Win32/Windows/shared/hidpi/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/hidpi/Windows.Manual.cs new file mode 100644 index 0000000000..5931712a4c --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/hidpi/Windows.Manual.cs @@ -0,0 +1,271 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.FACILITY; +using static Silk.NET.Win32.HIDP; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int HIDP_ERROR_CODES(int sev, int code) => + (sev << 28) | (FACILITY_HID_ERROR_CODE << 16) | code; + + public static int HidP_GetButtons( + HIDP_REPORT_TYPE ReportType, + [NativeTypeName("USAGE")] ushort UsagePage, + ushort LinkCollection, + [NativeTypeName("PUSAGE")] ushort* UsageList, + [NativeTypeName("PULONG")] uint* UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] sbyte* Report, + [NativeTypeName("ULONG")] uint ReportLength + ) => + HidP_GetUsages( + ReportType, + UsagePage, + LinkCollection, + UsageList, + UsageLength, + PreparsedData, + Report, + ReportLength + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidP_GetButtons( + HIDP_REPORT_TYPE ReportType, + [NativeTypeName("USAGE")] ushort UsagePage, + ushort LinkCollection, + [NativeTypeName("PUSAGE")] Ref UsageList, + [NativeTypeName("PULONG")] Ref UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] Ref Report, + [NativeTypeName("ULONG")] uint ReportLength + ) + { + fixed (sbyte* __dsl_Report = Report) + fixed (uint* __dsl_UsageLength = UsageLength) + fixed (ushort* __dsl_UsageList = UsageList) + { + return (int)HidP_GetButtons( + ReportType, + UsagePage, + LinkCollection, + __dsl_UsageList, + __dsl_UsageLength, + PreparsedData, + __dsl_Report, + ReportLength + ); + } + } + + public static int HidP_GetButtonsEx( + HIDP_REPORT_TYPE ReportType, + ushort LinkCollection, + [NativeTypeName("PUSAGE_AND_PAGE")] USAGE_AND_PAGE* ButtonList, + [NativeTypeName("ULONG *")] uint* UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] sbyte* Report, + [NativeTypeName("ULONG")] uint ReportLength + ) => + HidP_GetUsagesEx( + ReportType, + LinkCollection, + ButtonList, + UsageLength, + PreparsedData, + Report, + ReportLength + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidP_GetButtonsEx( + HIDP_REPORT_TYPE ReportType, + ushort LinkCollection, + [NativeTypeName("PUSAGE_AND_PAGE")] Ref ButtonList, + [NativeTypeName("ULONG *")] Ref UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] Ref Report, + [NativeTypeName("ULONG")] uint ReportLength + ) + { + fixed (sbyte* __dsl_Report = Report) + fixed (uint* __dsl_UsageLength = UsageLength) + fixed (USAGE_AND_PAGE* __dsl_ButtonList = ButtonList) + { + return (int)HidP_GetButtonsEx( + ReportType, + LinkCollection, + __dsl_ButtonList, + __dsl_UsageLength, + PreparsedData, + __dsl_Report, + ReportLength + ); + } + } + + /// + + [return: NativeTypeName("NTSTATUS")] + public static int HidP_GetVersion([NativeTypeName("ULONG *")] uint* Version) + { + int status = HIDP_STATUS_SUCCESS; + *Version = 1; + HMODULE module; + fixed (char* lpLibFileName = "hid.dll") + { + module = LoadLibraryW(lpLibFileName); + } + if (module == HMODULE.NULL) + { + return HIDP_STATUS_INTERNAL_ERROR; + } + delegate* unmanaged fnVersionInternal; + fixed (byte* lpProcName = "HidP_GetVersionInternal"u8) + { + fnVersionInternal = (delegate* unmanaged)GetProcAddress( + module, + (sbyte*)lpProcName + ); + } + if (fnVersionInternal != null) + { + status = fnVersionInternal(Version); + } + return status; + } + + [return: NativeTypeName("NTSTATUS")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidP_GetVersion([NativeTypeName("ULONG *")] Ref Version) + { + fixed (uint* __dsl_Version = Version) + { + return (int)HidP_GetVersion(__dsl_Version); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool HidP_IsSameUsageAndPage(USAGE_AND_PAGE* u1, USAGE_AND_PAGE* u2) => + *(uint*)u1 == *(uint*)u2; + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static bool HidP_IsSameUsageAndPage(Ref u1, Ref u2) + { + fixed (USAGE_AND_PAGE* __dsl_u2 = u2) + fixed (USAGE_AND_PAGE* __dsl_u1 = u1) + { + return (bool)HidP_IsSameUsageAndPage(__dsl_u1, __dsl_u2); + } + } + + public static int HidP_SetButtons( + HIDP_REPORT_TYPE ReportType, + [NativeTypeName("USAGE")] ushort UsagePage, + ushort LinkCollection, + [NativeTypeName("PUSAGE")] ushort* UsageList, + [NativeTypeName("PULONG")] uint* UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] sbyte* Report, + [NativeTypeName("ULONG")] uint ReportLength + ) => + HidP_SetUsages( + ReportType, + UsagePage, + LinkCollection, + UsageList, + UsageLength, + PreparsedData, + Report, + ReportLength + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidP_SetButtons( + HIDP_REPORT_TYPE ReportType, + [NativeTypeName("USAGE")] ushort UsagePage, + ushort LinkCollection, + [NativeTypeName("PUSAGE")] Ref UsageList, + [NativeTypeName("PULONG")] Ref UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] Ref Report, + [NativeTypeName("ULONG")] uint ReportLength + ) + { + fixed (sbyte* __dsl_Report = Report) + fixed (uint* __dsl_UsageLength = UsageLength) + fixed (ushort* __dsl_UsageList = UsageList) + { + return (int)HidP_SetButtons( + ReportType, + UsagePage, + LinkCollection, + __dsl_UsageList, + __dsl_UsageLength, + PreparsedData, + __dsl_Report, + ReportLength + ); + } + } + + public static int HidP_UnsetButtons( + HIDP_REPORT_TYPE ReportType, + [NativeTypeName("USAGE")] ushort UsagePage, + ushort LinkCollection, + [NativeTypeName("PUSAGE")] ushort* UsageList, + [NativeTypeName("PULONG")] uint* UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] sbyte* Report, + [NativeTypeName("ULONG")] uint ReportLength + ) => + HidP_UnsetUsages( + ReportType, + UsagePage, + LinkCollection, + UsageList, + UsageLength, + PreparsedData, + Report, + ReportLength + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidP_UnsetButtons( + HIDP_REPORT_TYPE ReportType, + [NativeTypeName("USAGE")] ushort UsagePage, + ushort LinkCollection, + [NativeTypeName("PUSAGE")] Ref UsageList, + [NativeTypeName("PULONG")] Ref UsageLength, + PHIDP_PREPARSED_DATA PreparsedData, + [NativeTypeName("PCHAR")] Ref Report, + [NativeTypeName("ULONG")] uint ReportLength + ) + { + fixed (sbyte* __dsl_Report = Report) + fixed (uint* __dsl_UsageLength = UsageLength) + fixed (ushort* __dsl_UsageList = UsageList) + { + return (int)HidP_UnsetButtons( + ReportType, + UsagePage, + LinkCollection, + __dsl_UsageList, + __dsl_UsageLength, + PreparsedData, + __dsl_Report, + ReportLength + ); + } + } +} diff --git a/sources/Win32/Win32/Windows/shared/hidsdi/HIDD_CONFIGURATION.Manual.cs b/sources/Win32/Win32/Windows/shared/hidsdi/HIDD_CONFIGURATION.Manual.cs new file mode 100644 index 0000000000..7e02c705bb --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/hidsdi/HIDD_CONFIGURATION.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/hidsdi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +public unsafe partial struct HIDD_CONFIGURATION +{ + [NativeTypeName("PVOID")] + public void* cookie; + + [NativeTypeName("ULONG")] + public uint size; + + [NativeTypeName("ULONG")] + public uint RingBufferSize; +} diff --git a/sources/Win32/Win32/Windows/shared/in6addr/IN6_ADDR.Manual.cs b/sources/Win32/Win32/Windows/shared/in6addr/IN6_ADDR.Manual.cs new file mode 100644 index 0000000000..e0edc42328 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/in6addr/IN6_ADDR.Manual.cs @@ -0,0 +1,27 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/in6addr.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct IN6_ADDR +{ + [UnscopedRef] + public ref _u_e__Union _S6_un => ref u; + + [UnscopedRef] + public ref _u_e__Union._Byte_e__FixedBuffer s6_addr => ref _S6_un._S6_u8; + + [UnscopedRef] + public ref _u_e__Union._Byte_e__FixedBuffer s6_bytes => ref u.Byte; + + [UnscopedRef] + public ref _u_e__Union._Word_e__FixedBuffer s6_words => ref u.Word; + + public partial struct _u_e__Union + { + [UnscopedRef] + public ref _Byte_e__FixedBuffer _S6_u8 => ref Byte; + } +} diff --git a/sources/Win32/Win32/Windows/shared/intsafe/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/intsafe/Windows.Manual.cs new file mode 100644 index 0000000000..16cf01131b --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/intsafe/Windows.Manual.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/intsafe.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static nint INT_PTR_MIN => nint.MinValue; + public static nint LONG_PTR_MIN => nint.MinValue; + public static nint PTRDIFF_T_MIN => nint.MinValue; + public static nint SSIZE_T_MIN => nint.MinValue; + public static nint INT_PTR_MAX => nint.MaxValue; + public static nuint UINT_PTR_MAX => nuint.MaxValue; + public static nint LONG_PTR_MAX => nint.MaxValue; + public static nuint ULONG_PTR_MAX => nuint.MaxValue; + public static nuint DWORD_PTR_MAX => nuint.MaxValue; + public static nint PTRDIFF_T_MAX => nint.MaxValue; + public static nuint SIZE_T_MAX => nuint.MaxValue; + public static nint SSIZE_T_MAX => nint.MaxValue; + public static nuint _SIZE_T_MAX => nuint.MaxValue; + public static nint INT_PTR_ERROR => (-1); + public static nuint UINT_PTR_ERROR => nuint.MaxValue; + public static nint LONG_PTR_ERROR => (-1); + public static nuint ULONG_PTR_ERROR => nuint.MaxValue; + public static nuint DWORD_PTR_ERROR => nuint.MaxValue; + public static nint PTRDIFF_T_ERROR => (-1); + public static nuint SIZE_T_ERROR => nuint.MaxValue; + public static nint SSIZE_T_ERROR => (-1); + public static nuint _SIZE_T_ERROR => nuint.MaxValue; +} diff --git a/sources/Win32/Win32/Windows/shared/ipmib/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/ipmib/Windows.Manual.cs new file mode 100644 index 0000000000..987ba9f7e9 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ipmib/Windows.Manual.cs @@ -0,0 +1,48 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ipmib.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName( + "#define SIZEOF_BASIC_MIB_MFE (ULONG)(FIELD_OFFSET(MIB_IPMCAST_MFE, rgmioOutInfo[0]))" + )] + public static uint SIZEOF_BASIC_MIB_MFE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out MIB_IPMCAST_MFE tmp); + return (uint)(&tmp.rgmioOutInfo) - (uint)(&tmp); + } + } + + [NativeTypeName( + "#define SIZEOF_BASIC_MIB_MFE_STATS (ULONG)(FIELD_OFFSET(MIB_IPMCAST_MFE_STATS, rgmiosOutStats[0]))" + )] + public static uint SIZEOF_BASIC_MIB_MFE_STATS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out MIB_IPMCAST_MFE_STATS tmp); + return (uint)(&tmp.rgmiosOutStats) - (uint)(&tmp); + } + } + + [NativeTypeName( + "#define SIZEOF_BASIC_MIB_MFE_STATS_EX (ULONG)(FIELD_OFFSET(MIB_IPMCAST_MFE_STATS_EX, rgmiosOutStats[0]))" + )] + public static uint SIZEOF_BASIC_MIB_MFE_STATS_EX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out MIB_IPMCAST_MFE_STATS_EX_XP tmp); + return (uint)(&tmp.rgmiosOutStats) - (uint)(&tmp); + } + } +} diff --git a/sources/Win32/Win32/Windows/shared/ks/KSDATAFORMAT.Manual.cs b/sources/Win32/Win32/Windows/shared/ks/KSDATAFORMAT.Manual.cs new file mode 100644 index 0000000000..dc006d94e9 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ks/KSDATAFORMAT.Manual.cs @@ -0,0 +1,90 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ks.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Explicit)] +public partial struct KSDATAFORMAT +{ + [FieldOffset(0)] + [NativeTypeName( + "KSDATAFORMAT::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/shared/ks.h:1096:5)" + )] + internal _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref uint FormatSize + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.FormatSize; } + } + + [UnscopedRef] + public ref uint Flags + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Flags; } + } + + [UnscopedRef] + public ref uint SampleSize + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.SampleSize; } + } + + [UnscopedRef] + public ref uint Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Reserved; } + } + + [UnscopedRef] + public ref Guid MajorFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.MajorFormat; } + } + + [UnscopedRef] + public ref Guid SubFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.SubFormat; } + } + + [UnscopedRef] + public ref Guid Specifier + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Specifier; } + } + + [FieldOffset(0)] + [NativeTypeName("LONGLONG")] + public long Alignment; + + public partial struct _Anonymous_e__Struct + { + [NativeTypeName("ULONG")] + public uint FormatSize; + + [NativeTypeName("ULONG")] + public uint Flags; + + [NativeTypeName("ULONG")] + public uint SampleSize; + + [NativeTypeName("ULONG")] + public uint Reserved; + public Guid MajorFormat; + public Guid SubFormat; + public Guid Specifier; + } +} diff --git a/sources/Win32/Win32/Windows/shared/ks/KSIDENTIFIER.Manual.cs b/sources/Win32/Win32/Windows/shared/ks/KSIDENTIFIER.Manual.cs new file mode 100644 index 0000000000..89529ad1f5 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ks/KSIDENTIFIER.Manual.cs @@ -0,0 +1,70 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ks.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct KSIDENTIFIER +{ + [NativeTypeName( + "KSIDENTIFIER::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/shared/ks.h:107:5)" + )] + internal _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public ref Guid Set + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Set; } + } + + [UnscopedRef] + public ref uint Id + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Id; } + } + + [UnscopedRef] + public ref uint Flags + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Flags; } + } + + [UnscopedRef] + public ref long Alignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Alignment; } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + [FieldOffset(0)] + [NativeTypeName( + "KSIDENTIFIER::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/shared/ks.h:111:9)" + )] + internal _Anonymous_e__Struct Anonymous; + + [FieldOffset(0)] + [NativeTypeName("LONGLONG")] + public long Alignment; + + public partial struct _Anonymous_e__Struct + { + public Guid Set; + + [NativeTypeName("ULONG")] + public uint Id; + + [NativeTypeName("ULONG")] + public uint Flags; + } + } +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/EPcxConnectionType.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/EPcxConnectionType.Manual.cs new file mode 100644 index 0000000000..683b0d74f8 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/EPcxConnectionType.Manual.cs @@ -0,0 +1,21 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public enum EPcxConnectionType +{ + eConnTypeUnknown, + eConnType3Point5mm, + eConnTypeQuarter, + eConnTypeAtapiInternal, + eConnTypeRCA, + eConnTypeOptical, + eConnTypeOtherDigital, + eConnTypeOtherAnalog, + eConnTypeMultichannelAnalogDIN, + eConnTypeXlrProfessional, + eConnTypeRJ11Modem, + eConnTypeCombination, +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/EPcxGenLocation.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/EPcxGenLocation.Manual.cs new file mode 100644 index 0000000000..a1419902cf --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/EPcxGenLocation.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public enum EPcxGenLocation +{ + eGenLocPrimaryBox = 0, + eGenLocInternal, + eGenLocSeparate, + eGenLocOther, + EPcxGenLocation_enum_count, +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/EPcxGeoLocation.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/EPcxGeoLocation.Manual.cs new file mode 100644 index 0000000000..0db6956c99 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/EPcxGeoLocation.Manual.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public enum EPcxGeoLocation +{ + eGeoLocRear = 0x1, + eGeoLocFront, + eGeoLocLeft, + eGeoLocRight, + eGeoLocTop, + eGeoLocBottom, + eGeoLocRearPanel, + eGeoLocRiser, + eGeoLocInsideMobileLid, + eGeoLocDrivebay, + eGeoLocHDMI, + eGeoLocOutsideMobileLid, + eGeoLocATAPI, + eGeoLocNotApplicable, + eGeoLocReserved6, + EPcxGeoLocation_enum_count, +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/EPxcPortConnection.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/EPxcPortConnection.Manual.cs new file mode 100644 index 0000000000..6157736625 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/EPxcPortConnection.Manual.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public enum EPxcPortConnection +{ + ePortConnJack = 0, + ePortConnIntegratedDevice, + ePortConnBothIntegratedAndJack, + ePortConnUnknown, +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION.Manual.cs new file mode 100644 index 0000000000..9c51eef2ae --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct KSJACK_DESCRIPTION +{ + [NativeTypeName("DWORD")] + public uint ChannelMapping; + + [NativeTypeName("DWORD")] + public uint Color; + public EPcxConnectionType ConnectionType; + public EPcxGeoLocation GeoLocation; + public EPcxGenLocation GenLocation; + public EPxcPortConnection PortConnection; + public BOOL IsConnected; +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION2.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION2.Manual.cs new file mode 100644 index 0000000000..fd4f741efd --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION2.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct KSJACK_DESCRIPTION2 +{ + [NativeTypeName("DWORD")] + public uint DeviceStateInfo; + + [NativeTypeName("DWORD")] + public uint JackCapabilities; +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION3.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION3.Manual.cs new file mode 100644 index 0000000000..96e2ac2097 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_DESCRIPTION3.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct KSJACK_DESCRIPTION3 +{ + [NativeTypeName("ULONG")] + public uint ConfigId; +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_SINK_CONNECTIONTYPE.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_SINK_CONNECTIONTYPE.Manual.cs new file mode 100644 index 0000000000..b4bb3380a8 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_SINK_CONNECTIONTYPE.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public enum KSJACK_SINK_CONNECTIONTYPE +{ + KSJACK_SINK_CONNECTIONTYPE_HDMI = 0, + KSJACK_SINK_CONNECTIONTYPE_DISPLAYPORT, +} diff --git a/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_SINK_INFORMATION.Manual.cs b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_SINK_INFORMATION.Manual.cs new file mode 100644 index 0000000000..ec99eb736d --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ksmedia/KSJACK_SINK_INFORMATION.Manual.cs @@ -0,0 +1,35 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ksmedia.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct KSJACK_SINK_INFORMATION +{ + public KSJACK_SINK_CONNECTIONTYPE ConnType; + + [NativeTypeName("WORD")] + public ushort ManufacturerId; + + [NativeTypeName("WORD")] + public ushort ProductId; + + [NativeTypeName("WORD")] + public ushort AudioLatency; + public BOOL HDCPCapable; + public BOOL AICapable; + + [NativeTypeName("UCHAR")] + public byte SinkDescriptionLength; + + [NativeTypeName("WCHAR[32]")] + public _SinkDescription_e__FixedBuffer SinkDescription; + public LUID PortId; + + [InlineArray(32)] + public partial struct _SinkDescription_e__FixedBuffer + { + public char e0; + } +} diff --git a/sources/Win32/Win32/Windows/shared/minwindef/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/minwindef/Windows.Manual.cs new file mode 100644 index 0000000000..1fbd89abdc --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/minwindef/Windows.Manual.cs @@ -0,0 +1,69 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/minwindef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public const int NULL = 0; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte HIBYTE([NativeTypeName("DWORD_PTR")] nuint w) => + ((byte)((((nuint)(w)) >> 8) & 0xff)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte HIBYTE(nint w) => unchecked(HIBYTE((nuint)(w))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("WORD")] + public static ushort HIWORD([NativeTypeName("DWORD_PTR")] nuint l) => + ((ushort)((((nuint)(l)) >> 16) & 0xffff)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort HIWORD(nint l) => unchecked(HIWORD((nuint)(l))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte LOBYTE([NativeTypeName("DWORD_PTR")] nuint w) => + ((byte)(((nuint)(w)) & 0xff)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte LOBYTE(nint w) => unchecked(LOBYTE((nuint)(w))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("WORD")] + public static ushort LOWORD([NativeTypeName("DWORD_PTR")] nuint l) => + unchecked((ushort)(((nuint)(l)) & 0xffff)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort LOWORD(nint l) => unchecked(LOWORD((nuint)(l))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("LONG")] + public static int MAKELONG( + [NativeTypeName("DWORD_PTR")] nuint a, + [NativeTypeName("DWORD_PTR")] nuint b + ) => + unchecked( + (int)( + ((ushort)(((nuint)(a)) & 0xffff)) | ((uint)((ushort)(((nuint)(b)) & 0xffff))) << 16 + ) + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int MAKELONG(nint a, nint b) => unchecked(MAKEWORD((nuint)(a), (nuint)(b))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("WORD")] + public static ushort MAKEWORD( + [NativeTypeName("DWORD_PTR")] nuint a, + [NativeTypeName("DWORD_PTR")] nuint b + ) => + unchecked( + (ushort)(((byte)(((nuint)(a)) & 0xff)) | ((ushort)((byte)(((nuint)(b)) & 0xff))) << 8) + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort MAKEWORD(nint a, nint b) => unchecked(MAKEWORD((nuint)(a), (nuint)(b))); +} diff --git a/sources/Win32/Win32/Windows/shared/strsafe/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/strsafe/Windows.Manual.cs new file mode 100644 index 0000000000..15655e9feb --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/strsafe/Windows.Manual.cs @@ -0,0 +1,1573 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/strsafe.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Win32.S; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + /// + + public static HRESULT StringCbCopyExA( + [NativeTypeName("STRSAFE_LPSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_LPCSTR")] sbyte* pszSrc, + [NativeTypeName("STRSAFE_LPSTR *")] sbyte** ppszDestEnd, + [NativeTypeName("size_t *")] nuint* pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr; + nuint cchDest = cbDest / 1; + hr = StringExValidateDestA(pszDest, cchDest, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + sbyte* pszDestEnd = pszDest; + nuint cchRemaining = cchDest; + hr = StringExValidateSrcA(&pszSrc, null, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + if ((dwFlags & ~STRSAFE_VALID_FLAGS) != 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + if (unchecked(cchDest) != 0) + { + *pszDest = (sbyte)('\0'); + } + } + else if (unchecked(cchDest) == 0) + { + if (*pszSrc != (sbyte)('\0')) + { + if (pszDest == null) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + else + { + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + } + } + else + { + nuint cchCopied = 0; + hr = StringCopyWorkerA( + pszDest, + cchDest, + &cchCopied, + pszSrc, + (STRSAFE_MAX_CCH - 1) + ); + pszDestEnd = pszDest + cchCopied; + unchecked(cchRemaining) = unchecked(cchDest - cchCopied); + if ( + SUCCEEDED(hr) + && (dwFlags & STRSAFE_FILL_BEHIND_NULL) != 0 + && unchecked(cchRemaining > 1) + ) + { + nuint cbRemaining; + cbRemaining = unchecked( + (cchRemaining * sizeof(sbyte)) + (cbDest % sizeof(sbyte)) + ); + _ = StringExHandleFillBehindNullA(pszDestEnd, cbRemaining, dwFlags); + } + } + } + else + { + if (unchecked(cchDest) != 0) + { + *pszDest = (sbyte)('\0'); + } + } + if ( + FAILED(hr) + && ( + dwFlags + & (STRSAFE_NO_TRUNCATION | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE) + ) != 0 + && (cbDest != 0) + ) + { + _ = StringExHandleOtherFlagsA( + pszDest, + cbDest, + 0, + &pszDestEnd, + &cchRemaining, + dwFlags + ); + } + if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) + { + if ((ppszDestEnd) != null) + { + *ppszDestEnd = pszDestEnd; + } + if ((pcbRemaining) != null) + { + *pcbRemaining = unchecked( + (cchRemaining * sizeof(sbyte)) + (cbDest % sizeof(sbyte)) + ); + } + } + } + else if (unchecked(cchDest) > 0) + { + *pszDest = (sbyte)('\0'); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringCbCopyExA( + [NativeTypeName("STRSAFE_LPSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_LPCSTR")] Ref pszSrc, + [NativeTypeName("STRSAFE_LPSTR *")] Ref2D ppszDestEnd, + [NativeTypeName("size_t *")] Ref pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcbRemaining = pcbRemaining) + fixed (sbyte** __dsl_ppszDestEnd = ppszDestEnd) + fixed (sbyte* __dsl_pszSrc = pszSrc) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringCbCopyExA( + __dsl_pszDest, + cbDest, + __dsl_pszSrc, + __dsl_ppszDestEnd, + __dsl_pcbRemaining, + dwFlags + ); + } + } + + /// + + public static HRESULT StringCbCopyExW( + [NativeTypeName("STRSAFE_LPWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_LPCWSTR")] char* pszSrc, + [NativeTypeName("STRSAFE_LPWSTR *")] char** ppszDestEnd, + [NativeTypeName("size_t *")] nuint* pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr; + nuint cchDest = cbDest / 2; + hr = StringExValidateDestW(pszDest, cchDest, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + char* pszDestEnd = pszDest; + nuint cchRemaining = cchDest; + hr = StringExValidateSrcW(&pszSrc, null, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + if ((dwFlags & ~STRSAFE_VALID_FLAGS) != 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + if (unchecked(cchDest) != 0) + { + *pszDest = '\0'; + } + } + else if (unchecked(cchDest) == 0) + { + if (*pszSrc != '\0') + { + if (pszDest == null) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + else + { + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + } + } + else + { + nuint cchCopied = 0; + hr = StringCopyWorkerW( + pszDest, + cchDest, + &cchCopied, + pszSrc, + (STRSAFE_MAX_CCH - 1) + ); + pszDestEnd = pszDest + cchCopied; + unchecked(cchRemaining) = unchecked(cchDest - cchCopied); + if (SUCCEEDED(hr) && (dwFlags & STRSAFE_FILL_BEHIND_NULL) != 0) + { + nuint cbRemaining; + cbRemaining = unchecked( + (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)) + ); + _ = StringExHandleFillBehindNullW(pszDestEnd, cbRemaining, dwFlags); + } + } + } + else + { + if (unchecked(cchDest) != 0) + { + *pszDest = '\0'; + } + } + if ( + FAILED(hr) + && ( + dwFlags + & (STRSAFE_NO_TRUNCATION | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE) + ) != 0 + && (cbDest != 0) + ) + { + _ = StringExHandleOtherFlagsW( + pszDest, + cbDest, + 0, + &pszDestEnd, + &cchRemaining, + dwFlags + ); + } + if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) + { + if ((ppszDestEnd) != null) + { + *ppszDestEnd = pszDestEnd; + } + if ((pcbRemaining) != null) + { + *pcbRemaining = unchecked( + (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)) + ); + } + } + } + else if (unchecked(cchDest) > 0) + { + *pszDest = '\0'; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringCbCopyExW( + [NativeTypeName("STRSAFE_LPWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_LPCWSTR")] Ref pszSrc, + [NativeTypeName("STRSAFE_LPWSTR *")] Ref2D ppszDestEnd, + [NativeTypeName("size_t *")] Ref pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcbRemaining = pcbRemaining) + fixed (char** __dsl_ppszDestEnd = ppszDestEnd) + fixed (char* __dsl_pszSrc = pszSrc) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringCbCopyExW( + __dsl_pszDest, + cbDest, + __dsl_pszSrc, + __dsl_ppszDestEnd, + __dsl_pcbRemaining, + dwFlags + ); + } + } + + /// + + public static HRESULT StringCbCopyNExA( + [NativeTypeName("STRSAFE_LPSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_PCNZCH")] sbyte* pszSrc, + [NativeTypeName("size_t")] nuint cbToCopy, + [NativeTypeName("STRSAFE_LPSTR *")] sbyte** ppszDestEnd, + [NativeTypeName("size_t *")] nuint* pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr; + nuint cchDest = cbDest / 1; + hr = StringExValidateDestA(pszDest, cchDest, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + sbyte* pszDestEnd = pszDest; + nuint cchRemaining = cchDest; + nuint cchToCopy = cbToCopy / 1; + hr = StringExValidateSrcA(&pszSrc, &cchToCopy, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + if ((dwFlags & ~STRSAFE_VALID_FLAGS) != 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + if (unchecked(cchDest) != 0) + { + *pszDest = (sbyte)('\0'); + } + } + else if (unchecked(cchDest) == 0) + { + if (unchecked(cchToCopy != 0) && (*pszSrc != (sbyte)('\0'))) + { + if (pszDest == null) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + else + { + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + } + } + else + { + nuint cchCopied = 0; + hr = StringCopyWorkerA(pszDest, cchDest, &cchCopied, pszSrc, cchToCopy); + pszDestEnd = pszDest + cchCopied; + unchecked(cchRemaining) = unchecked(cchDest - cchCopied); + if ( + SUCCEEDED(hr) + && (dwFlags & STRSAFE_FILL_BEHIND_NULL) != 0 + && unchecked(cchRemaining > 1) + ) + { + nuint cbRemaining; + cbRemaining = unchecked( + (cchRemaining * sizeof(sbyte)) + (cbDest % sizeof(sbyte)) + ); + _ = StringExHandleFillBehindNullA(pszDestEnd, cbRemaining, dwFlags); + } + } + } + else + { + if (unchecked(cchDest) != 0) + { + *pszDest = (sbyte)('\0'); + } + } + if ( + FAILED(hr) + && ( + dwFlags + & (STRSAFE_NO_TRUNCATION | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE) + ) != 0 + && (cbDest != 0) + ) + { + _ = StringExHandleOtherFlagsA( + pszDest, + cbDest, + 0, + &pszDestEnd, + &cchRemaining, + dwFlags + ); + } + if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) + { + if ((ppszDestEnd) != null) + { + *ppszDestEnd = pszDestEnd; + } + if ((pcbRemaining) != null) + { + *pcbRemaining = unchecked( + (cchRemaining * sizeof(sbyte)) + (cbDest % sizeof(sbyte)) + ); + } + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringCbCopyNExA( + [NativeTypeName("STRSAFE_LPSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_PCNZCH")] Ref pszSrc, + [NativeTypeName("size_t")] nuint cbToCopy, + [NativeTypeName("STRSAFE_LPSTR *")] Ref2D ppszDestEnd, + [NativeTypeName("size_t *")] Ref pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcbRemaining = pcbRemaining) + fixed (sbyte** __dsl_ppszDestEnd = ppszDestEnd) + fixed (sbyte* __dsl_pszSrc = pszSrc) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringCbCopyNExA( + __dsl_pszDest, + cbDest, + __dsl_pszSrc, + cbToCopy, + __dsl_ppszDestEnd, + __dsl_pcbRemaining, + dwFlags + ); + } + } + + /// + + public static HRESULT StringCbCopyNExW( + [NativeTypeName("STRSAFE_LPWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_PCNZWCH")] char* pszSrc, + [NativeTypeName("size_t")] nuint cbToCopy, + [NativeTypeName("STRSAFE_LPWSTR *")] char** ppszDestEnd, + [NativeTypeName("size_t *")] nuint* pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr; + nuint cchDest = cbDest / 2; + hr = StringExValidateDestW(pszDest, cchDest, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + char* pszDestEnd = pszDest; + nuint cchRemaining = cchDest; + nuint cchToCopy = cbToCopy / 2; + hr = StringExValidateSrcW(&pszSrc, &cchToCopy, STRSAFE_MAX_CCH, dwFlags); + if (SUCCEEDED(hr)) + { + if ((dwFlags & ~STRSAFE_VALID_FLAGS) != 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + if (unchecked(cchDest) != 0) + { + *pszDest = '\0'; + } + } + else if (unchecked(cchDest) == 0) + { + if (unchecked(cchToCopy != 0) && (*pszSrc != '\0')) + { + if (pszDest == null) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + else + { + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + } + } + else + { + nuint cchCopied = 0; + hr = StringCopyWorkerW(pszDest, cchDest, &cchCopied, pszSrc, cchToCopy); + pszDestEnd = pszDest + cchCopied; + unchecked(cchRemaining) = unchecked(cchDest - cchCopied); + if (SUCCEEDED(hr) && (dwFlags & STRSAFE_FILL_BEHIND_NULL) != 0) + { + nuint cbRemaining; + cbRemaining = unchecked( + (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)) + ); + _ = StringExHandleFillBehindNullW(pszDestEnd, cbRemaining, dwFlags); + } + } + } + else + { + if (unchecked(cchDest) != 0) + { + *pszDest = '\0'; + } + } + if ( + FAILED(hr) + && ( + dwFlags + & (STRSAFE_NO_TRUNCATION | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE) + ) != 0 + && (cbDest != 0) + ) + { + _ = StringExHandleOtherFlagsW( + pszDest, + cbDest, + 0, + &pszDestEnd, + &cchRemaining, + dwFlags + ); + } + if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) + { + if ((ppszDestEnd) != null) + { + *ppszDestEnd = pszDestEnd; + } + if ((pcbRemaining) != null) + { + *pcbRemaining = unchecked( + (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)) + ); + } + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringCbCopyNExW( + [NativeTypeName("STRSAFE_LPWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("STRSAFE_PCNZWCH")] Ref pszSrc, + [NativeTypeName("size_t")] nuint cbToCopy, + [NativeTypeName("STRSAFE_LPWSTR *")] Ref2D ppszDestEnd, + [NativeTypeName("size_t *")] Ref pcbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcbRemaining = pcbRemaining) + fixed (char** __dsl_ppszDestEnd = ppszDestEnd) + fixed (char* __dsl_pszSrc = pszSrc) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringCbCopyNExW( + __dsl_pszDest, + cbDest, + __dsl_pszSrc, + cbToCopy, + __dsl_ppszDestEnd, + __dsl_pcbRemaining, + dwFlags + ); + } + } + + /// + + public static HRESULT StringCopyWorkerA( + [NativeTypeName("STRSAFE_LPSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchNewDestLength, + [NativeTypeName("STRSAFE_PCNZCH")] sbyte* pszSrc, + [NativeTypeName("size_t")] nuint cchToCopy + ) + { + HRESULT hr = S_OK; + nuint cchNewDestLength = 0; + while ((cchDest) != 0 && (cchToCopy) != 0 && (*pszSrc != '\0')) + { + *pszDest++ = *pszSrc++; + cchDest--; + cchToCopy--; + cchNewDestLength++; + } + if (cchDest == 0) + { + pszDest--; + cchNewDestLength--; + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + *pszDest = (sbyte)('\0'); + if ((pcchNewDestLength) != null) + { + *pcchNewDestLength = cchNewDestLength; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringCopyWorkerA( + [NativeTypeName("STRSAFE_LPSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchNewDestLength, + [NativeTypeName("STRSAFE_PCNZCH")] Ref pszSrc, + [NativeTypeName("size_t")] nuint cchToCopy + ) + { + fixed (sbyte* __dsl_pszSrc = pszSrc) + fixed (nuint* __dsl_pcchNewDestLength = pcchNewDestLength) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringCopyWorkerA( + __dsl_pszDest, + cchDest, + __dsl_pcchNewDestLength, + __dsl_pszSrc, + cchToCopy + ); + } + } + + /// + + public static HRESULT StringCopyWorkerW( + [NativeTypeName("STRSAFE_LPWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchNewDestLength, + [NativeTypeName("STRSAFE_PCNZWCH")] char* pszSrc, + [NativeTypeName("size_t")] nuint cchToCopy + ) + { + HRESULT hr = S_OK; + nuint cchNewDestLength = 0; + while ((cchDest) != 0 && (cchToCopy) != 0 && (*pszSrc != '\0')) + { + *pszDest++ = *pszSrc++; + cchDest--; + cchToCopy--; + cchNewDestLength++; + } + if (cchDest == 0) + { + pszDest--; + cchNewDestLength--; + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + *pszDest = '\0'; + if ((pcchNewDestLength) != null) + { + *pcchNewDestLength = cchNewDestLength; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringCopyWorkerW( + [NativeTypeName("STRSAFE_LPWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchNewDestLength, + [NativeTypeName("STRSAFE_PCNZWCH")] Ref pszSrc, + [NativeTypeName("size_t")] nuint cchToCopy + ) + { + fixed (char* __dsl_pszSrc = pszSrc) + fixed (nuint* __dsl_pcchNewDestLength = pcchNewDestLength) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringCopyWorkerW( + __dsl_pszDest, + cchDest, + __dsl_pcchNewDestLength, + __dsl_pszSrc, + cchToCopy + ); + } + } + + /// + + public static HRESULT StringExHandleFillBehindNullA( + [NativeTypeName("STRSAFE_LPSTR")] sbyte* pszDestEnd, + [NativeTypeName("size_t")] nuint cbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + if (cbRemaining > unchecked(sizeof(sbyte))) + { + NativeMemory.Fill( + pszDestEnd + 1, + cbRemaining - sizeof(sbyte), + unchecked((byte)(dwFlags & 0x000000FF)) + ); + } + return S_OK; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExHandleFillBehindNullA( + [NativeTypeName("STRSAFE_LPSTR")] Ref pszDestEnd, + [NativeTypeName("size_t")] nuint cbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (sbyte* __dsl_pszDestEnd = pszDestEnd) + { + return (HRESULT)StringExHandleFillBehindNullA(__dsl_pszDestEnd, cbRemaining, dwFlags); + } + } + + /// + + public static HRESULT StringExHandleFillBehindNullW( + [NativeTypeName("STRSAFE_LPWSTR")] char* pszDestEnd, + [NativeTypeName("size_t")] nuint cbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + if (cbRemaining > unchecked(sizeof(char))) + { + NativeMemory.Fill( + pszDestEnd + 1, + cbRemaining - sizeof(char), + unchecked((byte)(dwFlags & 0x000000FF)) + ); + } + return S_OK; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExHandleFillBehindNullW( + [NativeTypeName("STRSAFE_LPWSTR")] Ref pszDestEnd, + [NativeTypeName("size_t")] nuint cbRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (char* __dsl_pszDestEnd = pszDestEnd) + { + return (HRESULT)StringExHandleFillBehindNullW(__dsl_pszDestEnd, cbRemaining, dwFlags); + } + } + + /// + + public static HRESULT StringExHandleOtherFlagsA( + [NativeTypeName("STRSAFE_LPSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("size_t")] nuint cchOriginalDestLength, + [NativeTypeName("STRSAFE_LPSTR *")] sbyte** ppszDestEnd, + [NativeTypeName("size_t *")] nuint* pcchRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + nuint cchDest = cbDest / 1; + Debug.Assert( + (dwFlags & (STRSAFE_NO_TRUNCATION | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE)) + != 0 + ); + if (unchecked(cchDest > 0) && (dwFlags & STRSAFE_NO_TRUNCATION) != 0) + { + sbyte* pszOriginalDestEnd; + pszOriginalDestEnd = pszDest + cchOriginalDestLength; + *ppszDestEnd = pszOriginalDestEnd; + *pcchRemaining = unchecked(cchDest - cchOriginalDestLength); + *pszOriginalDestEnd = (sbyte)('\0'); + } + if ((dwFlags & STRSAFE_FILL_ON_FAILURE) != 0) + { + NativeMemory.Fill(pszDest, cbDest, unchecked((byte)(dwFlags & 0x000000FF))); + if (((byte)(dwFlags & 0x000000FF)) == 0) + { + *ppszDestEnd = pszDest; + *pcchRemaining = unchecked(cchDest); + Debug.Assert(*pszDest == '\0'); + } + else if (unchecked(cchDest) > 0) + { + sbyte* pszDestEnd; + pszDestEnd = pszDest + cchDest - 1; + *ppszDestEnd = pszDestEnd; + *pcchRemaining = 1; + *pszDestEnd = (sbyte)('\0'); + } + } + if (unchecked(cchDest > 0) && (dwFlags & STRSAFE_NULL_ON_FAILURE) != 0) + { + *ppszDestEnd = pszDest; + *pcchRemaining = unchecked(cchDest); + *pszDest = (sbyte)('\0'); + } + return S_OK; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExHandleOtherFlagsA( + [NativeTypeName("STRSAFE_LPSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("size_t")] nuint cchOriginalDestLength, + [NativeTypeName("STRSAFE_LPSTR *")] Ref2D ppszDestEnd, + [NativeTypeName("size_t *")] Ref pcchRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcchRemaining = pcchRemaining) + fixed (sbyte** __dsl_ppszDestEnd = ppszDestEnd) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringExHandleOtherFlagsA( + __dsl_pszDest, + cbDest, + cchOriginalDestLength, + __dsl_ppszDestEnd, + __dsl_pcchRemaining, + dwFlags + ); + } + } + + /// + + public static HRESULT StringExHandleOtherFlagsW( + [NativeTypeName("STRSAFE_LPWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("size_t")] nuint cchOriginalDestLength, + [NativeTypeName("STRSAFE_LPWSTR *")] char** ppszDestEnd, + [NativeTypeName("size_t *")] nuint* pcchRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + nuint cchDest = cbDest / 2; + Debug.Assert( + (dwFlags & (STRSAFE_NO_TRUNCATION | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE)) + != 0 + ); + if (unchecked(cchDest > 0) && (dwFlags & STRSAFE_NO_TRUNCATION) != 0) + { + char* pszOriginalDestEnd; + pszOriginalDestEnd = pszDest + cchOriginalDestLength; + *ppszDestEnd = pszOriginalDestEnd; + *pcchRemaining = unchecked(cchDest - cchOriginalDestLength); + *pszOriginalDestEnd = '\0'; + } + if ((dwFlags & STRSAFE_FILL_ON_FAILURE) != 0) + { + NativeMemory.Fill(pszDest, cbDest, unchecked((byte)(dwFlags & 0x000000FF))); + if (((byte)(dwFlags & 0x000000FF)) == 0) + { + *ppszDestEnd = pszDest; + *pcchRemaining = unchecked(cchDest); + Debug.Assert(cchDest == 0 || *pszDest == '\0'); + } + else if (unchecked(cchDest) > 0) + { + char* pszDestEnd; + pszDestEnd = pszDest + cchDest - 1; + *ppszDestEnd = pszDestEnd; + *pcchRemaining = 1; + *pszDestEnd = '\0'; + } + } + if (unchecked(cchDest > 0) && (dwFlags & STRSAFE_NULL_ON_FAILURE) != 0) + { + *ppszDestEnd = pszDest; + *pcchRemaining = unchecked(cchDest); + *pszDest = '\0'; + } + return S_OK; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExHandleOtherFlagsW( + [NativeTypeName("STRSAFE_LPWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cbDest, + [NativeTypeName("size_t")] nuint cchOriginalDestLength, + [NativeTypeName("STRSAFE_LPWSTR *")] Ref2D ppszDestEnd, + [NativeTypeName("size_t *")] Ref pcchRemaining, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcchRemaining = pcchRemaining) + fixed (char** __dsl_ppszDestEnd = ppszDestEnd) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringExHandleOtherFlagsW( + __dsl_pszDest, + cbDest, + cchOriginalDestLength, + __dsl_ppszDestEnd, + __dsl_pcchRemaining, + dwFlags + ); + } + } + + /// + + public static HRESULT StringExValidateDestA( + [NativeTypeName("STRSAFE_PCNZCH")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr = S_OK; + if ((dwFlags & STRSAFE_IGNORE_NULLS) != 0) + { + if (((pszDest == null) && (cchDest != 0)) || (cchDest > cchMax)) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + } + else + { + hr = StringValidateDestA(pszDest, cchDest, cchMax); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExValidateDestA( + [NativeTypeName("STRSAFE_PCNZCH")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringExValidateDestA(__dsl_pszDest, cchDest, cchMax, dwFlags); + } + } + + /// + + public static HRESULT StringExValidateDestAndLengthA( + [NativeTypeName("STRSAFE_LPCSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr; + if ((dwFlags & STRSAFE_IGNORE_NULLS) != 0) + { + hr = StringExValidateDestA(pszDest, cchDest, cchMax, dwFlags); + if (FAILED(hr) || (cchDest == 0)) + { + *pcchDestLength = 0; + } + else + { + hr = StringLengthWorkerA(pszDest, cchDest, pcchDestLength); + } + } + else + { + hr = StringValidateDestAndLengthA(pszDest, cchDest, pcchDestLength, cchMax); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExValidateDestAndLengthA( + [NativeTypeName("STRSAFE_LPCSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcchDestLength = pcchDestLength) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringExValidateDestAndLengthA( + __dsl_pszDest, + cchDest, + __dsl_pcchDestLength, + cchMax, + dwFlags + ); + } + } + + /// + + public static HRESULT StringExValidateDestAndLengthW( + [NativeTypeName("STRSAFE_LPCWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr; + if ((dwFlags & STRSAFE_IGNORE_NULLS) != 0) + { + hr = StringExValidateDestW(pszDest, cchDest, cchMax, dwFlags); + if (FAILED(hr) || (cchDest == 0)) + { + *pcchDestLength = 0; + } + else + { + hr = StringLengthWorkerW(pszDest, cchDest, pcchDestLength); + } + } + else + { + hr = StringValidateDestAndLengthW(pszDest, cchDest, pcchDestLength, cchMax); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExValidateDestAndLengthW( + [NativeTypeName("STRSAFE_LPCWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcchDestLength = pcchDestLength) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringExValidateDestAndLengthW( + __dsl_pszDest, + cchDest, + __dsl_pcchDestLength, + cchMax, + dwFlags + ); + } + } + + /// + + public static HRESULT StringExValidateDestW( + [NativeTypeName("STRSAFE_PCNZWCH")] char* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr = S_OK; + if ((dwFlags & STRSAFE_IGNORE_NULLS) != 0) + { + if (((pszDest == null) && (cchDest != 0)) || (cchDest > cchMax)) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + } + else + { + hr = StringValidateDestW(pszDest, cchDest, cchMax); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExValidateDestW( + [NativeTypeName("STRSAFE_PCNZWCH")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringExValidateDestW(__dsl_pszDest, cchDest, cchMax, dwFlags); + } + } + + /// + + public static HRESULT StringExValidateSrcA( + [NativeTypeName("STRSAFE_PCNZCH *")] sbyte** ppszSrc, + [NativeTypeName("size_t *")] nuint* pcchToRead, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr = S_OK; + if ((pcchToRead) != null && (*pcchToRead >= cchMax)) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + else if ((dwFlags & STRSAFE_IGNORE_NULLS) != 0 && (*ppszSrc == null)) + { + *ppszSrc = (sbyte*)(Unsafe.AsPointer(ref MemoryMarshal.GetReference(""u8))); + if ((pcchToRead) != null) + { + *pcchToRead = 0; + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExValidateSrcA( + [NativeTypeName("STRSAFE_PCNZCH *")] Ref2D ppszSrc, + [NativeTypeName("size_t *")] Ref pcchToRead, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcchToRead = pcchToRead) + fixed (sbyte** __dsl_ppszSrc = ppszSrc) + { + return (HRESULT)StringExValidateSrcA(__dsl_ppszSrc, __dsl_pcchToRead, cchMax, dwFlags); + } + } + + /// + + public static HRESULT StringExValidateSrcW( + [NativeTypeName("STRSAFE_PCNZWCH *")] char** ppszSrc, + [NativeTypeName("size_t *")] nuint* pcchToRead, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + HRESULT hr = S_OK; + if ((pcchToRead) != null && (*pcchToRead >= cchMax)) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + else if ((dwFlags & STRSAFE_IGNORE_NULLS) != 0 && (*ppszSrc == null)) + { + *ppszSrc = (char*)(Unsafe.AsPointer(ref MemoryMarshal.GetReference(['\0']))); + if ((pcchToRead) != null) + { + *pcchToRead = 0; + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringExValidateSrcW( + [NativeTypeName("STRSAFE_PCNZWCH *")] Ref2D ppszSrc, + [NativeTypeName("size_t *")] Ref pcchToRead, + [NativeTypeName("const size_t")] nuint cchMax, + [NativeTypeName("DWORD")] uint dwFlags + ) + { + fixed (nuint* __dsl_pcchToRead = pcchToRead) + fixed (char** __dsl_ppszSrc = ppszSrc) + { + return (HRESULT)StringExValidateSrcW(__dsl_ppszSrc, __dsl_pcchToRead, cchMax, dwFlags); + } + } + + /// + + public static HRESULT StringGetsWorkerA( + [NativeTypeName("STRSAFE_LPSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchNewDestLength + ) + { + HRESULT hr = S_OK; + nuint cchNewDestLength = 0; + if (cchDest == 1) + { + *pszDest = (sbyte)('\0'); + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + else + { + while (cchDest > 1) + { + sbyte ch; + int i = Console.Read(); + if (i == (-1)) + { + if (cchNewDestLength == 0) + { + hr = STRSAFE_E_END_OF_FILE; + } + break; + } + ch = (sbyte)(i); + if (ch == '\n') + { + break; + } + *pszDest++ = ch; + cchDest--; + cchNewDestLength++; + } + *pszDest = (sbyte)('\0'); + } + if ((pcchNewDestLength) != null) + { + *pcchNewDestLength = cchNewDestLength; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringGetsWorkerA( + [NativeTypeName("STRSAFE_LPSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchNewDestLength + ) + { + fixed (nuint* __dsl_pcchNewDestLength = pcchNewDestLength) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringGetsWorkerA(__dsl_pszDest, cchDest, __dsl_pcchNewDestLength); + } + } + + /// + + public static HRESULT StringGetsWorkerW( + [NativeTypeName("STRSAFE_LPWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchNewDestLength + ) + { + HRESULT hr = S_OK; + nuint cchNewDestLength = 0; + if (cchDest == 1) + { + *pszDest = '\0'; + hr = STRSAFE_E_INSUFFICIENT_BUFFER; + } + else + { + while (cchDest > 1) + { + char ch = (char)(Console.Read()); + if (ch == unchecked((ushort)(0xFFFF))) + { + if (cchNewDestLength == 0) + { + hr = STRSAFE_E_END_OF_FILE; + } + break; + } + if (ch == '\n') + { + break; + } + *pszDest++ = ch; + cchDest--; + cchNewDestLength++; + } + *pszDest = '\0'; + } + if ((pcchNewDestLength) != null) + { + *pcchNewDestLength = cchNewDestLength; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringGetsWorkerW( + [NativeTypeName("STRSAFE_LPWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchNewDestLength + ) + { + fixed (nuint* __dsl_pcchNewDestLength = pcchNewDestLength) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringGetsWorkerW(__dsl_pszDest, cchDest, __dsl_pcchNewDestLength); + } + } + + /// + + public static HRESULT StringLengthWorkerA( + [NativeTypeName("STRSAFE_PCNZCH")] sbyte* psz, + [NativeTypeName("size_t")] nuint cchMax, + [NativeTypeName("size_t *")] nuint* pcchLength + ) + { + HRESULT hr = S_OK; + nuint cchOriginalMax = cchMax; + while ((cchMax) != 0 && (*psz != '\0')) + { + psz++; + cchMax--; + } + if (cchMax == 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + if ((pcchLength) != null) + { + if (SUCCEEDED(hr)) + { + *pcchLength = cchOriginalMax - cchMax; + } + else + { + *pcchLength = 0; + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringLengthWorkerA( + [NativeTypeName("STRSAFE_PCNZCH")] Ref psz, + [NativeTypeName("size_t")] nuint cchMax, + [NativeTypeName("size_t *")] Ref pcchLength + ) + { + fixed (nuint* __dsl_pcchLength = pcchLength) + fixed (sbyte* __dsl_psz = psz) + { + return (HRESULT)StringLengthWorkerA(__dsl_psz, cchMax, __dsl_pcchLength); + } + } + + /// + + public static HRESULT StringLengthWorkerW( + [NativeTypeName("STRSAFE_PCNZWCH")] char* psz, + [NativeTypeName("size_t")] nuint cchMax, + [NativeTypeName("size_t *")] nuint* pcchLength + ) + { + HRESULT hr = S_OK; + nuint cchOriginalMax = cchMax; + while ((cchMax) != 0 && (*psz != '\0')) + { + psz++; + cchMax--; + } + if (cchMax == 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + if ((pcchLength) != null) + { + if (SUCCEEDED(hr)) + { + *pcchLength = cchOriginalMax - cchMax; + } + else + { + *pcchLength = 0; + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringLengthWorkerW( + [NativeTypeName("STRSAFE_PCNZWCH")] Ref psz, + [NativeTypeName("size_t")] nuint cchMax, + [NativeTypeName("size_t *")] Ref pcchLength + ) + { + fixed (nuint* __dsl_pcchLength = pcchLength) + fixed (char* __dsl_psz = psz) + { + return (HRESULT)StringLengthWorkerW(__dsl_psz, cchMax, __dsl_pcchLength); + } + } + + /// + + public static HRESULT StringValidateDestA( + [NativeTypeName("STRSAFE_PCNZCH")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + HRESULT hr = S_OK; + if ((cchDest == 0) || (cchDest > cchMax)) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringValidateDestA( + [NativeTypeName("STRSAFE_PCNZCH")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringValidateDestA(__dsl_pszDest, cchDest, cchMax); + } + } + + /// + + public static HRESULT StringValidateDestAndLengthA( + [NativeTypeName("STRSAFE_LPCSTR")] sbyte* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + HRESULT hr; + hr = StringValidateDestA(pszDest, cchDest, cchMax); + if (SUCCEEDED(hr)) + { + hr = StringLengthWorkerA(pszDest, cchDest, pcchDestLength); + } + else + { + *pcchDestLength = 0; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringValidateDestAndLengthA( + [NativeTypeName("STRSAFE_LPCSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + fixed (nuint* __dsl_pcchDestLength = pcchDestLength) + fixed (sbyte* __dsl_pszDest = pszDest) + { + return (HRESULT)StringValidateDestAndLengthA( + __dsl_pszDest, + cchDest, + __dsl_pcchDestLength, + cchMax + ); + } + } + + /// + + public static HRESULT StringValidateDestAndLengthW( + [NativeTypeName("STRSAFE_LPCWSTR")] char* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] nuint* pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + HRESULT hr; + hr = StringValidateDestW(pszDest, cchDest, cchMax); + if (SUCCEEDED(hr)) + { + hr = StringLengthWorkerW(pszDest, cchDest, pcchDestLength); + } + else + { + *pcchDestLength = 0; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringValidateDestAndLengthW( + [NativeTypeName("STRSAFE_LPCWSTR")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("size_t *")] Ref pcchDestLength, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + fixed (nuint* __dsl_pcchDestLength = pcchDestLength) + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringValidateDestAndLengthW( + __dsl_pszDest, + cchDest, + __dsl_pcchDestLength, + cchMax + ); + } + } + + /// + + public static HRESULT StringValidateDestW( + [NativeTypeName("STRSAFE_PCNZWCH")] char* pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + HRESULT hr = S_OK; + if ((cchDest == 0) || (cchDest > cchMax)) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT StringValidateDestW( + [NativeTypeName("STRSAFE_PCNZWCH")] Ref pszDest, + [NativeTypeName("size_t")] nuint cchDest, + [NativeTypeName("const size_t")] nuint cchMax + ) + { + fixed (char* __dsl_pszDest = pszDest) + { + return (HRESULT)StringValidateDestW(__dsl_pszDest, cchDest, cchMax); + } + } + + /// + + public static HRESULT UnalignedStringLengthWorkerW( + [NativeTypeName("STRSAFE_PCUNZWCH")] char* psz, + [NativeTypeName("size_t")] nuint cchMax, + [NativeTypeName("size_t *")] nuint* pcchLength + ) + { + HRESULT hr = S_OK; + nuint cchOriginalMax = cchMax; + while ((cchMax) != 0 && (*psz != '\0')) + { + psz++; + cchMax--; + } + if (cchMax == 0) + { + hr = STRSAFE_E_INVALID_PARAMETER; + } + if ((pcchLength) != null) + { + if (SUCCEEDED(hr)) + { + *pcchLength = cchOriginalMax - cchMax; + } + else + { + *pcchLength = 0; + } + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT UnalignedStringLengthWorkerW( + [NativeTypeName("STRSAFE_PCUNZWCH")] Ref psz, + [NativeTypeName("size_t")] nuint cchMax, + [NativeTypeName("size_t *")] Ref pcchLength + ) + { + fixed (nuint* __dsl_pcchLength = pcchLength) + fixed (char* __dsl_psz = psz) + { + return (HRESULT)UnalignedStringLengthWorkerW(__dsl_psz, cchMax, __dsl_pcchLength); + } + } +} diff --git a/sources/Win32/Win32/Windows/shared/uuids/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/uuids/Windows.Manual.cs new file mode 100644 index 0000000000..49f41c9a20 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/uuids/Windows.Manual.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/uuids.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.ComponentModel; +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + /// A proxy type that wraps a pointer to GUID data. Values of this type can be implicitly converted to and assigned to * or parameters. + + [EditorBrowsable(EditorBrowsableState.Never)] + public readonly unsafe ref struct UuidOfType + { + private readonly Guid* _value; + + internal UuidOfType(Guid* value) + { + _value = value; + } + + /// Reads a value from the GUID buffer for a given instance. + /// The input instance to read data for. + + public static implicit operator Guid(UuidOfType value) => *value._value; + + /// Returns the * pointer to the GUID buffer for a given instance. + /// The input instance to read data for. + + public static implicit operator Guid*(UuidOfType value) => value._value; + } + + /// Retrieves the GUID of of a specified type. + /// A value of type . + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe UuidOfType __uuidof(T value) // for type inference similar to C++'s __uuidof + where T : unmanaged, INativeGuid + { + return new UuidOfType(T.NativeGuid); + } + + /// Retrieves the GUID of of a specified type. + /// A pointer to a value of type . + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe UuidOfType __uuidof(T* value) // for type inference similar to C++'s __uuidof + where T : unmanaged, INativeGuid + { + return new UuidOfType(T.NativeGuid); + } + + /// Retrieves the GUID of of a specified type. + /// A pointer to a value of type . + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static unsafe UuidOfType __uuidof(Ref value) + where T : unmanaged, INativeGuid + { + fixed (T* __dsl_value = value) + { + return (UuidOfType)__uuidof(__dsl_value); + } + } + + /// Retrieves the GUID of of a specified type. + /// The type to retrieve the GUID for. + /// A value wrapping a pointer to the GUID data for the input type. This value can be either converted to a pointer, or implicitly assigned to a value. + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe UuidOfType __uuidof() + where T : unmanaged, INativeGuid + { + return new UuidOfType(T.NativeGuid); + } +} diff --git a/sources/Win32/Win32/Windows/shared/windef/POINT.Manual.cs b/sources/Win32/Win32/Windows/shared/windef/POINT.Manual.cs new file mode 100644 index 0000000000..fec030beec --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/windef/POINT.Manual.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/windef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct POINT : IEquatable +{ + public POINT([NativeTypeName("INT32")] int x = 0, [NativeTypeName("INT32")] int y = 0) + { + this.x = x; + this.y = y; + } + + public static bool operator ==( + [NativeTypeName("const POINT &")] in POINT l, + [NativeTypeName("const POINT &")] in POINT r + ) + { + return (l.x == r.x) && (l.y == r.y); + } + + public static bool operator !=( + [NativeTypeName("const POINT &")] in POINT l, + [NativeTypeName("const POINT &")] in POINT r + ) => !(l == r); + + public override readonly bool Equals(object? obj) => (obj is POINT other) && Equals(other); + + public readonly bool Equals(POINT other) => this == other; + + public override readonly int GetHashCode() => HashCode.Combine(x, y); +} diff --git a/sources/Win32/Win32/Windows/shared/windef/RECT.Manual.cs b/sources/Win32/Win32/Windows/shared/windef/RECT.Manual.cs new file mode 100644 index 0000000000..4a5ef7ae3e --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/windef/RECT.Manual.cs @@ -0,0 +1,44 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/windef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct RECT : IEquatable +{ + public RECT( + [NativeTypeName("LONG")] int Left, + [NativeTypeName("LONG")] int Top, + [NativeTypeName("LONG")] int Right, + [NativeTypeName("LONG")] int Bottom + ) + { + left = Left; + top = Top; + right = Right; + bottom = Bottom; + } + + public static bool operator ==( + [NativeTypeName("const RECT &")] in RECT l, + [NativeTypeName("const RECT &")] in RECT r + ) + { + return (l.left == r.left) + && (l.top == r.top) + && (l.right == r.right) + && (l.bottom == r.bottom); + } + + public static bool operator !=( + [NativeTypeName("const RECT &")] in RECT l, + [NativeTypeName("const RECT &")] in RECT r + ) => !(l == r); + + public override readonly bool Equals(object? obj) => (obj is RECT other) && Equals(other); + + public readonly bool Equals(RECT other) => this == other; + + public override readonly int GetHashCode() => HashCode.Combine(left, top, right, bottom); +} diff --git a/sources/Win32/Win32/Windows/shared/windef/SIZE.Manual.cs b/sources/Win32/Win32/Windows/shared/windef/SIZE.Manual.cs new file mode 100644 index 0000000000..ac615bf18c --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/windef/SIZE.Manual.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/windef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct SIZE : IEquatable +{ + public SIZE([NativeTypeName("INT32")] int cx = 0, [NativeTypeName("INT32")] int cy = 0) + { + this.cx = cx; + this.cy = cy; + } + + public static bool operator ==( + [NativeTypeName("const SIZE &")] in SIZE l, + [NativeTypeName("const SIZE &")] in SIZE r + ) + { + return (l.cx == r.cx) && (l.cy == r.cy); + } + + public static bool operator !=( + [NativeTypeName("const SIZE &")] in SIZE l, + [NativeTypeName("const SIZE &")] in SIZE r + ) => !(l == r); + + public override readonly bool Equals(object? obj) => (obj is SIZE other) && Equals(other); + + public readonly bool Equals(SIZE other) => this == other; + + public override readonly int GetHashCode() => HashCode.Combine(cx, cy); +} diff --git a/sources/Win32/Win32/Windows/shared/windef/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/windef/Windows.Manual.cs new file mode 100644 index 0000000000..1600a0d9a3 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/windef/Windows.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/windef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static DPI_AWARENESS_CONTEXT DPI_AWARENESS_CONTEXT_UNAWARE => + unchecked((DPI_AWARENESS_CONTEXT)(-1)); + public static DPI_AWARENESS_CONTEXT DPI_AWARENESS_CONTEXT_SYSTEM_AWARE => + unchecked((DPI_AWARENESS_CONTEXT)(-2)); + public static DPI_AWARENESS_CONTEXT DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE => + unchecked((DPI_AWARENESS_CONTEXT)(-3)); + public static DPI_AWARENESS_CONTEXT DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 => + unchecked((DPI_AWARENESS_CONTEXT)(-4)); + public static DPI_AWARENESS_CONTEXT DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED => + unchecked((DPI_AWARENESS_CONTEXT)(-5)); +} diff --git a/sources/Win32/Win32/Windows/shared/windowsx/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/windowsx/Windows.Manual.cs new file mode 100644 index 0000000000..7c8854f2b3 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/windowsx/Windows.Manual.cs @@ -0,0 +1,4635 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/windowsx.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.CB; +using static Silk.NET.Win32.EM; +using static Silk.NET.Win32.GWL; +using static Silk.NET.Win32.GWLP; +using static Silk.NET.Win32.LB; +using static Silk.NET.Win32.MF; +using static Silk.NET.Win32.SB; +using static Silk.NET.Win32.SW; +using static Silk.NET.Win32.VK; +using static Silk.NET.Win32.WM; +using static Silk.NET.Win32.WS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + /****** Button control message APIs ******************************************/ + public static BOOL Button_Enable(HWND hwndCtl, BOOL fEnable) => + EnableWindow((hwndCtl), (fEnable)); + + [Transformed] + /****** Button control message APIs ******************************************/ + public static MaybeBool Button_Enable(HWND hwndCtl, MaybeBool fEnable) => + (MaybeBool)(BOOL)Button_Enable(hwndCtl, (BOOL)fEnable); + + public static int Button_GetCheck(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), BM_GETCHECK, 0u, 0)); + + public static int Button_GetState(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), BM_GETSTATE, 0u, 0)); + + public static int Button_GetText(HWND hwndCtl, char* lpch, int cchMax) => + GetWindowText((hwndCtl), (lpch), (cchMax)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int Button_GetText(HWND hwndCtl, Ref lpch, int cchMax) + { + fixed (char* __dsl_lpch = lpch) + { + return (int)Button_GetText(hwndCtl, __dsl_lpch, cchMax); + } + } + + public static int Button_GetTextLength(HWND hwndCtl) => GetWindowTextLength(hwndCtl); + + public static void Button_SetCheck(HWND hwndCtl, int check) => + SNDMSG((hwndCtl), BM_SETCHECK, (WPARAM)(int)(check), 0); + + public static uint Button_SetState(HWND hwndCtl, int state) => + ((uint)(uint)SNDMSG((hwndCtl), BM_SETSTATE, (WPARAM)(int)(state), 0)); + + public static void Button_SetStyle(HWND hwndCtl, int style, BOOL fRedraw) => + SNDMSG( + (hwndCtl), + BM_SETSTYLE, + (WPARAM)LOWORD(style), + MAKELPARAM(((ushort)((fRedraw) ? TRUE : FALSE)), 0) + ); + + [Transformed] + public static void Button_SetStyle(HWND hwndCtl, int style, MaybeBool fRedraw) => + Button_SetStyle(hwndCtl, style, (BOOL)fRedraw); + + public static BOOL Button_SetText(HWND hwndCtl, char* lpsz) => SetWindowText((hwndCtl), (lpsz)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool Button_SetText(HWND hwndCtl, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (MaybeBool)(BOOL)Button_SetText(hwndCtl, __dsl_lpsz); + } + } + + public static BOOL CheckDefDlgRecursion(BOOL* pfRecursion) + { + if (*(pfRecursion)) + { + *(pfRecursion) = FALSE; + return FALSE; + } + return TRUE; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CheckDefDlgRecursion(Ref pfRecursion) + { + fixed (BOOL* __dsl_pfRecursion = pfRecursion) + { + return (MaybeBool)(BOOL)CheckDefDlgRecursion(__dsl_pfRecursion); + } + } + + public static int ComboBox_AddItemData(HWND hwndCtl, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), CB_ADDSTRING, 0u, (LPARAM)(data))); + + public static int ComboBox_AddString(HWND hwndCtl, char* lpsz) => + ((int)(uint)SNDMSG((hwndCtl), CB_ADDSTRING, 0u, (LPARAM)(char*)(lpsz))); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_AddString(HWND hwndCtl, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (int)ComboBox_AddString(hwndCtl, __dsl_lpsz); + } + } + + public static int ComboBox_DeleteString(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), CB_DELETESTRING, (WPARAM)(int)(index), 0)); + + public static int ComboBox_Dir(HWND hwndCtl, uint attrs, char* lpszFileSpec) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + CB_DIR, + (WPARAM)(uint)(attrs), + (LPARAM)(char*)(lpszFileSpec) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_Dir(HWND hwndCtl, uint attrs, Ref lpszFileSpec) + { + fixed (char* __dsl_lpszFileSpec = lpszFileSpec) + { + return (int)ComboBox_Dir(hwndCtl, attrs, __dsl_lpszFileSpec); + } + } + + /****** ComboBox control message APIs ****************************************/ + public static BOOL ComboBox_Enable(HWND hwndCtl, BOOL fEnable) => + EnableWindow((hwndCtl), (fEnable)); + + [Transformed] + /****** ComboBox control message APIs ****************************************/ + public static MaybeBool ComboBox_Enable(HWND hwndCtl, MaybeBool fEnable) => + (MaybeBool)(BOOL)ComboBox_Enable(hwndCtl, (BOOL)fEnable); + + public static int ComboBox_FindItemData(HWND hwndCtl, int indexStart, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), CB_FINDSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))); + + public static int ComboBox_FindString(HWND hwndCtl, int indexStart, char* lpszFind) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + CB_FINDSTRING, + (WPARAM)(int)(indexStart), + (LPARAM)(char*)(lpszFind) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_FindString(HWND hwndCtl, int indexStart, Ref lpszFind) + { + fixed (char* __dsl_lpszFind = lpszFind) + { + return (int)ComboBox_FindString(hwndCtl, indexStart, __dsl_lpszFind); + } + } + + public static int ComboBox_FindStringExact(HWND hwndCtl, int indexStart, char* lpszFind) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + CB_FINDSTRINGEXACT, + (WPARAM)(int)(indexStart), + (LPARAM)(char*)(lpszFind) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_FindStringExact(HWND hwndCtl, int indexStart, Ref lpszFind) + { + fixed (char* __dsl_lpszFind = lpszFind) + { + return (int)ComboBox_FindStringExact(hwndCtl, indexStart, __dsl_lpszFind); + } + } + + public static int ComboBox_GetCount(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), CB_GETCOUNT, 0u, 0)); + + public static int ComboBox_GetCurSel(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), CB_GETCURSEL, 0u, 0)); + + public static void ComboBox_GetDroppedControlRect(HWND hwndCtl, RECT* lprc) => + SNDMSG((hwndCtl), CB_GETDROPPEDCONTROLRECT, 0u, (LPARAM)(RECT*)(lprc)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ComboBox_GetDroppedControlRect(HWND hwndCtl, Ref lprc) + { + fixed (RECT* __dsl_lprc = lprc) + { + ComboBox_GetDroppedControlRect(hwndCtl, __dsl_lprc); + } + } + + [Transformed] + public static MaybeBool ComboBox_GetDroppedState(HWND hwndCtl) => + (MaybeBool)(BOOL)ComboBox_GetDroppedStateRaw(hwndCtl); + + public static BOOL ComboBox_GetDroppedStateRaw(HWND hwndCtl) => + ((BOOL)(uint)SNDMSG((hwndCtl), CB_GETDROPPEDSTATE, 0u, 0)); + + public static uint ComboBox_GetEditSel(HWND hwndCtl) => + ((uint)SNDMSG((hwndCtl), CB_GETEDITSEL, 0u, 0)); + + public static uint ComboBox_GetExtendedUI(HWND hwndCtl) => + ((uint)(uint)SNDMSG((hwndCtl), CB_GETEXTENDEDUI, 0u, 0)); + + public static LRESULT ComboBox_GetItemData(HWND hwndCtl, int index) => + ((LRESULT)(nuint)SNDMSG((hwndCtl), CB_GETITEMDATA, (WPARAM)(int)(index), 0)); + + public static int ComboBox_GetItemHeight(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), CB_GETITEMHEIGHT, 0u, 0)); + + public static int ComboBox_GetLBText(HWND hwndCtl, int index, char* lpszBuffer) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + CB_GETLBTEXT, + (WPARAM)(int)(index), + (LPARAM)(char*)(lpszBuffer) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_GetLBText(HWND hwndCtl, int index, Ref lpszBuffer) + { + fixed (char* __dsl_lpszBuffer = lpszBuffer) + { + return (int)ComboBox_GetLBText(hwndCtl, index, __dsl_lpszBuffer); + } + } + + public static int ComboBox_GetLBTextLen(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), CB_GETLBTEXTLEN, (WPARAM)(int)(index), 0)); + + public static int ComboBox_GetText(HWND hwndCtl, char* lpch, int cchMax) => + GetWindowText((hwndCtl), (lpch), (cchMax)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_GetText(HWND hwndCtl, Ref lpch, int cchMax) + { + fixed (char* __dsl_lpch = lpch) + { + return (int)ComboBox_GetText(hwndCtl, __dsl_lpch, cchMax); + } + } + + public static int ComboBox_GetTextLength(HWND hwndCtl) => GetWindowTextLength(hwndCtl); + + public static int ComboBox_InsertItemData(HWND hwndCtl, int index, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), CB_INSERTSTRING, (WPARAM)(int)(index), (LPARAM)(data))); + + public static int ComboBox_InsertString(HWND hwndCtl, int index, char* lpsz) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + CB_INSERTSTRING, + (WPARAM)(int)(index), + (LPARAM)(char*)(lpsz) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_InsertString(HWND hwndCtl, int index, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (int)ComboBox_InsertString(hwndCtl, index, __dsl_lpsz); + } + } + + public static int ComboBox_LimitText(HWND hwndCtl, int cchLimit) => + ((int)(uint)SNDMSG((hwndCtl), CB_LIMITTEXT, (WPARAM)(int)(cchLimit), 0)); + + public static int ComboBox_ResetContent(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), CB_RESETCONTENT, 0u, 0)); + + public static int ComboBox_SelectItemData(HWND hwndCtl, int indexStart, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), CB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))); + + public static int ComboBox_SelectString(HWND hwndCtl, int indexStart, char* lpszSelect) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + CB_SELECTSTRING, + (WPARAM)(int)(indexStart), + (LPARAM)(char*)(lpszSelect) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ComboBox_SelectString(HWND hwndCtl, int indexStart, Ref lpszSelect) + { + fixed (char* __dsl_lpszSelect = lpszSelect) + { + return (int)ComboBox_SelectString(hwndCtl, indexStart, __dsl_lpszSelect); + } + } + + public static int ComboBox_SetCurSel(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), CB_SETCURSEL, (WPARAM)(int)(index), 0)); + + public static int ComboBox_SetEditSel(HWND hwndCtl, ushort ichStart, ushort ichEnd) => + ((int)(uint)SNDMSG((hwndCtl), CB_SETEDITSEL, 0u, MAKELPARAM((ichStart), (ichEnd)))); + + public static int ComboBox_SetExtendedUI(HWND hwndCtl, uint flags) => + ((int)(uint)SNDMSG((hwndCtl), CB_SETEXTENDEDUI, (WPARAM)(uint)(flags), 0)); + + public static int ComboBox_SetItemData(HWND hwndCtl, int index, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), CB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data))); + + public static int ComboBox_SetItemHeight(HWND hwndCtl, int index, int cyItem) => + ((int)(uint)SNDMSG((hwndCtl), CB_SETITEMHEIGHT, (WPARAM)(int)(index), (LPARAM)(int)cyItem)); + + public static BOOL ComboBox_SetText(HWND hwndCtl, char* lpsz) => + SetWindowText((hwndCtl), (lpsz)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ComboBox_SetText(HWND hwndCtl, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (MaybeBool)(BOOL)ComboBox_SetText(hwndCtl, __dsl_lpsz); + } + } + + public static BOOL ComboBox_ShowDropdown(HWND hwndCtl, BOOL fShow) => + ((BOOL)(uint)SNDMSG((hwndCtl), CB_SHOWDROPDOWN, (WPARAM)(BOOL)(fShow), 0)); + + [Transformed] + public static MaybeBool ComboBox_ShowDropdown(HWND hwndCtl, MaybeBool fShow) => + (MaybeBool)(BOOL)ComboBox_ShowDropdown(hwndCtl, (BOOL)fShow); + + public static int CopyRgn(HRGN hrgnDst, HRGN hrgnSrc) => + CombineRgn(hrgnDst, hrgnSrc, HRGN.NULL, RGN_COPY); + + public static LRESULT DefDlgProcEx( + HWND hwnd, + uint msg, + WPARAM wParam, + LPARAM lParam, + BOOL* pfRecursion + ) + { + *(pfRecursion) = TRUE; + return DefDlgProc(hwnd, msg, wParam, lParam); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static LRESULT DefDlgProcEx( + HWND hwnd, + uint msg, + WPARAM wParam, + LPARAM lParam, + Ref pfRecursion + ) + { + fixed (BOOL* __dsl_pfRecursion = pfRecursion) + { + return (LRESULT)DefDlgProcEx(hwnd, msg, wParam, lParam, __dsl_pfRecursion); + } + } + + [Transformed] + public static MaybeBool DeleteBitmap(HBITMAP hbm) => + (MaybeBool)(BOOL)DeleteBitmapRaw(hbm); + + public static BOOL DeleteBitmapRaw(HBITMAP hbm) => DeleteObjectRaw((HGDIOBJ)(HBITMAP)(hbm)); + + [Transformed] + public static MaybeBool DeleteBrush(HBRUSH hbr) => + (MaybeBool)(BOOL)DeleteBrushRaw(hbr); + + public static BOOL DeleteBrushRaw(HBRUSH hbr) => DeleteObjectRaw((HGDIOBJ)(HBRUSH)(hbr)); + + [Transformed] + public static MaybeBool DeleteFont(HFONT hfont) => + (MaybeBool)(BOOL)DeleteFontRaw(hfont); + + public static BOOL DeleteFontRaw(HFONT hfont) => DeleteObjectRaw((HGDIOBJ)(HFONT)(hfont)); + + [Transformed] + public static MaybeBool DeletePalette(HPALETTE hpal) => + (MaybeBool)(BOOL)DeletePaletteRaw(hpal); + + public static BOOL DeletePaletteRaw(HPALETTE hpal) => + DeleteObjectRaw((HGDIOBJ)(HPALETTE)(hpal)); + + [Transformed] + /****** GDI Macro APIs *******************************************************/ + public static MaybeBool DeletePen(HPEN hpen) => (MaybeBool)(BOOL)DeletePenRaw(hpen); + + /****** GDI Macro APIs *******************************************************/ + public static BOOL DeletePenRaw(HPEN hpen) => DeleteObjectRaw((HGDIOBJ)(HPEN)(hpen)); + + [Transformed] + public static MaybeBool DeleteRgn(HRGN hrgn) => (MaybeBool)(BOOL)DeleteRgnRaw(hrgn); + + public static BOOL DeleteRgnRaw(HRGN hrgn) => DeleteObjectRaw((HGDIOBJ)(HRGN)(hrgn)); + + [Transformed] + public static MaybeBool Edit_CanUndo(HWND hwndCtl) => + (MaybeBool)(BOOL)Edit_CanUndoRaw(hwndCtl); + + public static BOOL Edit_CanUndoRaw(HWND hwndCtl) => + ((BOOL)(uint)SNDMSG((hwndCtl), EM_CANUNDO, 0u, 0)); + + public static void Edit_EmptyUndoBuffer(HWND hwndCtl) => + SNDMSG((hwndCtl), EM_EMPTYUNDOBUFFER, 0u, 0); + + /****** Edit control message APIs ********************************************/ + public static BOOL Edit_Enable(HWND hwndCtl, BOOL fEnable) => + EnableWindow((hwndCtl), (fEnable)); + + [Transformed] + /****** Edit control message APIs ********************************************/ + public static MaybeBool Edit_Enable(HWND hwndCtl, MaybeBool fEnable) => + (MaybeBool)(BOOL)Edit_Enable(hwndCtl, (BOOL)fEnable); + + public static BOOL Edit_FmtLines(HWND hwndCtl, BOOL fAddEOL) => + ((BOOL)(uint)SNDMSG((hwndCtl), EM_FMTLINES, (WPARAM)(BOOL)(fAddEOL), 0)); + + [Transformed] + public static MaybeBool Edit_FmtLines(HWND hwndCtl, MaybeBool fAddEOL) => + (MaybeBool)(BOOL)Edit_FmtLines(hwndCtl, (BOOL)fAddEOL); + + public static int Edit_GetFirstVisibleLine(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), EM_GETFIRSTVISIBLELINE, 0u, 0)); + + public static HLOCAL Edit_GetHandle(HWND hwndCtl) => + ((HLOCAL)(nuint)SNDMSG((hwndCtl), EM_GETHANDLE, 0u, 0)); + + public static int Edit_GetLine(HWND hwndCtl, int line, char* lpch, int cchMax) + { + *((int*)(lpch)) = (cchMax); + return ( + (int)(uint)SNDMSG((hwndCtl), EM_GETLINE, (WPARAM)(int)(line), (LPARAM)(char*)(lpch)) + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int Edit_GetLine(HWND hwndCtl, int line, Ref lpch, int cchMax) + { + fixed (char* __dsl_lpch = lpch) + { + return (int)Edit_GetLine(hwndCtl, line, __dsl_lpch, cchMax); + } + } + + public static int Edit_GetLineCount(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), EM_GETLINECOUNT, 0u, 0)); + + [Transformed] + public static MaybeBool Edit_GetModify(HWND hwndCtl) => + (MaybeBool)(BOOL)Edit_GetModifyRaw(hwndCtl); + + public static BOOL Edit_GetModifyRaw(HWND hwndCtl) => + ((BOOL)(uint)SNDMSG((hwndCtl), EM_GETMODIFY, 0u, 0)); + + public static ushort Edit_GetPasswordChar(HWND hwndCtl) => + ((ushort)(uint)SNDMSG((hwndCtl), EM_GETPASSWORDCHAR, 0u, 0)); + + public static void Edit_GetRect(HWND hwndCtl, RECT* lprc) => + SNDMSG((hwndCtl), EM_GETRECT, 0u, (LPARAM)(RECT*)(lprc)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Edit_GetRect(HWND hwndCtl, Ref lprc) + { + fixed (RECT* __dsl_lprc = lprc) + { + Edit_GetRect(hwndCtl, __dsl_lprc); + } + } + + public static uint Edit_GetSel(HWND hwndCtl) => ((uint)SNDMSG((hwndCtl), EM_GETSEL, 0u, 0)); + + public static int Edit_GetText(HWND hwndCtl, char* lpch, int cchMax) => + GetWindowText((hwndCtl), (lpch), (cchMax)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int Edit_GetText(HWND hwndCtl, Ref lpch, int cchMax) + { + fixed (char* __dsl_lpch = lpch) + { + return (int)Edit_GetText(hwndCtl, __dsl_lpch, cchMax); + } + } + + public static int Edit_GetTextLength(HWND hwndCtl) => GetWindowTextLength(hwndCtl); + + public static delegate* unmanaged Edit_GetWordBreakProc( + HWND hwndCtl + ) => + ( + (delegate* unmanaged)SNDMSG( + (hwndCtl), + EM_GETWORDBREAKPROC, + 0u, + 0 + ) + ); + + public static void Edit_LimitText(HWND hwndCtl, int cchMax) => + SNDMSG((hwndCtl), EM_LIMITTEXT, (WPARAM)(cchMax), 0); + + public static int Edit_LineFromChar(HWND hwndCtl, int ich) => + ((int)(uint)SNDMSG((hwndCtl), EM_LINEFROMCHAR, (WPARAM)(int)(ich), 0)); + + public static int Edit_LineIndex(HWND hwndCtl, int line) => + ((int)(uint)SNDMSG((hwndCtl), EM_LINEINDEX, (WPARAM)(int)(line), 0)); + + public static int Edit_LineLength(HWND hwndCtl, int line) => + ((int)(uint)SNDMSG((hwndCtl), EM_LINELENGTH, (WPARAM)(int)(line), 0)); + + public static void Edit_ReplaceSel(HWND hwndCtl, char* lpszReplace) => + SNDMSG((hwndCtl), EM_REPLACESEL, 0u, (LPARAM)(char*)(lpszReplace)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Edit_ReplaceSel(HWND hwndCtl, Ref lpszReplace) + { + fixed (char* __dsl_lpszReplace = lpszReplace) + { + Edit_ReplaceSel(hwndCtl, __dsl_lpszReplace); + } + } + + public static void Edit_Scroll(HWND hwndCtl, WPARAM dv, LPARAM dh) => + SNDMSG((hwndCtl), EM_LINESCROLL, (WPARAM)(dh), (LPARAM)(dv)); + + [Transformed] + public static MaybeBool Edit_ScrollCaret(HWND hwndCtl) => + (MaybeBool)(BOOL)Edit_ScrollCaretRaw(hwndCtl); + + public static BOOL Edit_ScrollCaretRaw(HWND hwndCtl) => + ((BOOL)(uint)SNDMSG((hwndCtl), EM_SCROLLCARET, 0u, 0)); + + public static void Edit_SetHandle(HWND hwndCtl, HLOCAL h) => + SNDMSG((hwndCtl), EM_SETHANDLE, (WPARAM)(nuint)(HLOCAL)(h), 0); + + public static void Edit_SetModify(HWND hwndCtl, uint fModified) => + SNDMSG((hwndCtl), EM_SETMODIFY, (WPARAM)(uint)(fModified), 0); + + public static void Edit_SetPasswordChar(HWND hwndCtl, uint ch) => + SNDMSG((hwndCtl), EM_SETPASSWORDCHAR, (WPARAM)(uint)(ch), 0); + + public static BOOL Edit_SetReadOnly(HWND hwndCtl, BOOL fReadOnly) => + ((BOOL)(uint)SNDMSG((hwndCtl), EM_SETREADONLY, (WPARAM)(BOOL)(fReadOnly), 0)); + + [Transformed] + public static MaybeBool Edit_SetReadOnly(HWND hwndCtl, MaybeBool fReadOnly) => + (MaybeBool)(BOOL)Edit_SetReadOnly(hwndCtl, (BOOL)fReadOnly); + + public static void Edit_SetRect(HWND hwndCtl, RECT* lprc) => + SNDMSG((hwndCtl), EM_SETRECT, 0u, (LPARAM)(RECT*)(lprc)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Edit_SetRect(HWND hwndCtl, Ref lprc) + { + fixed (RECT* __dsl_lprc = lprc) + { + Edit_SetRect(hwndCtl, __dsl_lprc); + } + } + + public static void Edit_SetRectNoPaint(HWND hwndCtl, RECT* lprc) => + SNDMSG((hwndCtl), EM_SETRECTNP, 0u, (LPARAM)(RECT*)(lprc)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Edit_SetRectNoPaint(HWND hwndCtl, Ref lprc) + { + fixed (RECT* __dsl_lprc = lprc) + { + Edit_SetRectNoPaint(hwndCtl, __dsl_lprc); + } + } + + public static void Edit_SetSel(HWND hwndCtl, WPARAM ichStart, LPARAM ichEnd) => + SNDMSG((hwndCtl), EM_SETSEL, (ichStart), (ichEnd)); + + public static void Edit_SetTabStops(HWND hwndCtl, int cTabs, int* lpTabs) => + SNDMSG((hwndCtl), EM_SETTABSTOPS, (WPARAM)(int)(cTabs), (LPARAM)(int*)(lpTabs)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Edit_SetTabStops(HWND hwndCtl, int cTabs, Ref lpTabs) + { + fixed (int* __dsl_lpTabs = lpTabs) + { + Edit_SetTabStops(hwndCtl, cTabs, __dsl_lpTabs); + } + } + + public static BOOL Edit_SetText(HWND hwndCtl, char* lpsz) => SetWindowText((hwndCtl), (lpsz)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool Edit_SetText(HWND hwndCtl, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (MaybeBool)(BOOL)Edit_SetText(hwndCtl, __dsl_lpsz); + } + } + + public static void Edit_SetWordBreakProc( + HWND hwndCtl, + delegate* unmanaged lpfnWordBreak + ) => + SNDMSG( + (hwndCtl), + EM_SETWORDBREAKPROC, + 0u, + (LPARAM)(delegate* unmanaged)(lpfnWordBreak) + ); + + [Transformed] + public static MaybeBool Edit_Undo(HWND hwndCtl) => + (MaybeBool)(BOOL)Edit_UndoRaw(hwndCtl); + + public static BOOL Edit_UndoRaw(HWND hwndCtl) => + ((BOOL)(uint)SNDMSG((hwndCtl), EM_UNDO, 0u, 0)); + + public static void FORWARD_WM_ACTIVATE( + HWND hwnd, + uint state, + HWND hwndActDeact, + BOOL fMinimized, + delegate* fn + ) => + fn( + (hwnd), + WM_ACTIVATE, + MAKEWPARAM((state), (nuint)(fMinimized)), + (LPARAM)(HWND)(hwndActDeact) + ); + + [Transformed] + public static void FORWARD_WM_ACTIVATE( + HWND hwnd, + uint state, + HWND hwndActDeact, + MaybeBool fMinimized, + delegate* fn + ) => FORWARD_WM_ACTIVATE(hwnd, state, hwndActDeact, (BOOL)fMinimized, fn); + + public static void FORWARD_WM_ACTIVATEAPP( + HWND hwnd, + BOOL fActivate, + uint dwThreadId, + delegate* fn + ) => fn((hwnd), WM_ACTIVATEAPP, (WPARAM)(BOOL)(fActivate), (LPARAM)(dwThreadId)); + + [Transformed] + public static void FORWARD_WM_ACTIVATEAPP( + HWND hwnd, + MaybeBool fActivate, + uint dwThreadId, + delegate* fn + ) => FORWARD_WM_ACTIVATEAPP(hwnd, (BOOL)fActivate, dwThreadId, fn); + + public static void FORWARD_WM_ASKCBFORMATNAME( + HWND hwnd, + int cchMax, + char* rgchName, + delegate* fn + ) => fn((hwnd), WM_ASKCBFORMATNAME, (WPARAM)(int)(cchMax), (LPARAM)(rgchName)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_ASKCBFORMATNAME( + HWND hwnd, + int cchMax, + Ref rgchName, + delegate* fn + ) + { + fixed (char* __dsl_rgchName = rgchName) + { + FORWARD_WM_ASKCBFORMATNAME(hwnd, cchMax, __dsl_rgchName, fn); + } + } + + public static void FORWARD_WM_CANCELMODE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_CANCELMODE, 0u, 0); + + public static void FORWARD_WM_CHANGECBCHAIN( + HWND hwnd, + HWND hwndRemove, + HWND hwndNext, + delegate* fn + ) => fn((hwnd), WM_CHANGECBCHAIN, (WPARAM)(HWND)(hwndRemove), (LPARAM)(HWND)(hwndNext)); + + public static void FORWARD_WM_CHAR( + HWND hwnd, + ushort ch, + int cRepeat, + delegate* fn + ) => fn((hwnd), WM_CHAR, (WPARAM)(ushort)(ch), MAKELPARAM((cRepeat), 0)); + + public static int FORWARD_WM_CHARTOITEM( + HWND hwnd, + uint ch, + HWND hwndListBox, + int iCaret, + delegate* fn + ) => + (int) + (uint)fn( + (hwnd), + WM_CHARTOITEM, + MAKEWPARAM((uint)(ch), (uint)(iCaret)), + (LPARAM)(hwndListBox) + ); + + public static void FORWARD_WM_CHILDACTIVATE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_CHILDACTIVATE, 0u, 0); + + public static void FORWARD_WM_CLEAR( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_CLEAR, 0u, 0); + + public static void FORWARD_WM_CLOSE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_CLOSE, 0u, 0); + + public static void FORWARD_WM_COMMAND( + HWND hwnd, + int id, + HWND hwndCtl, + uint codeNotify, + delegate* fn + ) => + fn((hwnd), WM_COMMAND, MAKEWPARAM((uint)(id), (uint)(codeNotify)), (LPARAM)(HWND)(hwndCtl)); + + public static void FORWARD_WM_COMMNOTIFY( + HWND hwnd, + int cid, + uint flags, + delegate* fn + ) => fn((hwnd), WM_COMMNOTIFY, (WPARAM)(cid), MAKELPARAM((flags), 0)); + + public static void FORWARD_WM_COMPACTING( + HWND hwnd, + uint compactRatio, + delegate* fn + ) => fn((hwnd), WM_COMPACTING, (WPARAM)(uint)(compactRatio), 0); + + public static int FORWARD_WM_COMPAREITEM( + HWND hwnd, + COMPAREITEMSTRUCT* lpCompareItem, + delegate* fn + ) => + (int) + (uint)fn( + (hwnd), + WM_COMPAREITEM, + (WPARAM)(((COMPAREITEMSTRUCT*)(lpCompareItem))->CtlID), + (LPARAM)(COMPAREITEMSTRUCT*)(lpCompareItem) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FORWARD_WM_COMPAREITEM( + HWND hwnd, + Ref lpCompareItem, + delegate* fn + ) + { + fixed (COMPAREITEMSTRUCT* __dsl_lpCompareItem = lpCompareItem) + { + return (int)FORWARD_WM_COMPAREITEM(hwnd, __dsl_lpCompareItem, fn); + } + } + + public static void FORWARD_WM_CONTEXTMENU( + HWND hwnd, + HWND hwndContext, + uint xPos, + uint yPos, + delegate* fn + ) => + fn( + (hwnd), + WM_CONTEXTMENU, + (WPARAM)(HWND)(hwndContext), + MAKELPARAM((uint)(xPos), (uint)(yPos)) + ); + + public static void FORWARD_WM_COPY( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_COPY, 0u, 0); + + public static BOOL FORWARD_WM_COPYDATA( + HWND hwnd, + HWND hwndFrom, + COPYDATASTRUCT* pcds, + delegate* fn + ) => (BOOL)(uint)(uint)fn((hwnd), WM_COPYDATA, (WPARAM)(hwndFrom), (LPARAM)(pcds)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FORWARD_WM_COPYDATA( + HWND hwnd, + HWND hwndFrom, + Ref pcds, + delegate* fn + ) + { + fixed (COPYDATASTRUCT* __dsl_pcds = pcds) + { + return (MaybeBool)(BOOL)FORWARD_WM_COPYDATA(hwnd, hwndFrom, __dsl_pcds, fn); + } + } + + public static BOOL FORWARD_WM_CREATE( + HWND hwnd, + CREATESTRUCTW* lpCreateStruct, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_CREATE, 0u, (LPARAM)(CREATESTRUCTW*)(lpCreateStruct)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FORWARD_WM_CREATE( + HWND hwnd, + Ref lpCreateStruct, + delegate* fn + ) + { + fixed (CREATESTRUCTW* __dsl_lpCreateStruct = lpCreateStruct) + { + return (MaybeBool)(BOOL)FORWARD_WM_CREATE(hwnd, __dsl_lpCreateStruct, fn); + } + } + + public static HBRUSH FORWARD_WM_CTLCOLORBTN( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => (HBRUSH)(nuint)fn((hwnd), WM_CTLCOLORBTN, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static HBRUSH FORWARD_WM_CTLCOLORDLG( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => (HBRUSH)(nuint)fn((hwnd), WM_CTLCOLORDLG, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static HBRUSH FORWARD_WM_CTLCOLOREDIT( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => (HBRUSH)(nuint)fn((hwnd), WM_CTLCOLOREDIT, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static HBRUSH FORWARD_WM_CTLCOLORLISTBOX( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => + (HBRUSH) + (nuint)fn((hwnd), WM_CTLCOLORLISTBOX, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static HBRUSH FORWARD_WM_CTLCOLORMSGBOX( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => + (HBRUSH)(nuint)fn((hwnd), WM_CTLCOLORMSGBOX, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static HBRUSH FORWARD_WM_CTLCOLORSCROLLBAR( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => + (HBRUSH) + (nuint)fn((hwnd), WM_CTLCOLORSCROLLBAR, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static HBRUSH FORWARD_WM_CTLCOLORSTATIC( + HWND hwnd, + HDC hdc, + HWND hwndChild, + delegate* fn + ) => + (HBRUSH)(nuint)fn((hwnd), WM_CTLCOLORSTATIC, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)); + + public static void FORWARD_WM_CUT( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_CUT, 0u, 0); + + public static void FORWARD_WM_DEADCHAR( + HWND hwnd, + ushort ch, + int cRepeat, + delegate* fn + ) => fn((hwnd), WM_DEADCHAR, (WPARAM)(ushort)(ch), MAKELPARAM((cRepeat), 0)); + + public static void FORWARD_WM_DELETEITEM( + HWND hwnd, + DELETEITEMSTRUCT* lpDeleteItem, + delegate* fn + ) => + fn( + (hwnd), + WM_DELETEITEM, + (WPARAM)(((DELETEITEMSTRUCT*)(lpDeleteItem))->CtlID), + (LPARAM)(DELETEITEMSTRUCT*)(lpDeleteItem) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_DELETEITEM( + HWND hwnd, + Ref lpDeleteItem, + delegate* fn + ) + { + fixed (DELETEITEMSTRUCT* __dsl_lpDeleteItem = lpDeleteItem) + { + FORWARD_WM_DELETEITEM(hwnd, __dsl_lpDeleteItem, fn); + } + } + + public static void FORWARD_WM_DESTROY( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_DESTROY, 0u, 0); + + public static void FORWARD_WM_DESTROYCLIPBOARD( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_DESTROYCLIPBOARD, 0u, 0); + + [Transformed] + public static MaybeBool FORWARD_WM_DEVICECHANGE( + HWND hwnd, + uint uEvent, + uint dwEventData, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_DEVICECHANGERaw(hwnd, uEvent, dwEventData, fn); + + public static BOOL FORWARD_WM_DEVICECHANGERaw( + HWND hwnd, + uint uEvent, + uint dwEventData, + delegate* fn + ) => + (BOOL) + (uint)fn((hwnd), WM_DEVICECHANGE, (WPARAM)(uint)(uEvent), (LPARAM)(uint)(dwEventData)); + + public static void FORWARD_WM_DEVMODECHANGE( + HWND hwnd, + char* lpszDeviceName, + delegate* fn + ) => fn((hwnd), WM_DEVMODECHANGE, 0u, (LPARAM)(char*)(lpszDeviceName)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_DEVMODECHANGE( + HWND hwnd, + Ref lpszDeviceName, + delegate* fn + ) + { + fixed (char* __dsl_lpszDeviceName = lpszDeviceName) + { + FORWARD_WM_DEVMODECHANGE(hwnd, __dsl_lpszDeviceName, fn); + } + } + + public static void FORWARD_WM_DISPLAYCHANGE( + HWND hwnd, + uint bitsPerPixel, + uint cxScreen, + uint cyScreen, + delegate* fn + ) => + fn( + (hwnd), + WM_DISPLAYCHANGE, + (WPARAM)(uint)(bitsPerPixel), + (LPARAM)MAKELPARAM((uint)(cxScreen), (uint)(cyScreen)) + ); + + public static void FORWARD_WM_DRAWCLIPBOARD( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_DRAWCLIPBOARD, 0u, 0); + + public static void FORWARD_WM_DRAWITEM( + HWND hwnd, + DRAWITEMSTRUCT* lpDrawItem, + delegate* fn + ) => + fn( + (hwnd), + WM_DRAWITEM, + (WPARAM)(((DRAWITEMSTRUCT*)lpDrawItem)->CtlID), + (LPARAM)(DRAWITEMSTRUCT*)(lpDrawItem) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_DRAWITEM( + HWND hwnd, + Ref lpDrawItem, + delegate* fn + ) + { + fixed (DRAWITEMSTRUCT* __dsl_lpDrawItem = lpDrawItem) + { + FORWARD_WM_DRAWITEM(hwnd, __dsl_lpDrawItem, fn); + } + } + + public static void FORWARD_WM_DROPFILES( + HWND hwnd, + HDROP hdrop, + delegate* fn + ) => fn((hwnd), WM_DROPFILES, (WPARAM)(HDROP)(hdrop), 0); + + public static void FORWARD_WM_ENABLE( + HWND hwnd, + BOOL fEnable, + delegate* fn + ) => fn((hwnd), WM_ENABLE, (WPARAM)(BOOL)(fEnable), 0); + + [Transformed] + public static void FORWARD_WM_ENABLE( + HWND hwnd, + MaybeBool fEnable, + delegate* fn + ) => FORWARD_WM_ENABLE(hwnd, (BOOL)fEnable, fn); + + public static void FORWARD_WM_ENDSESSION( + HWND hwnd, + BOOL fEnding, + delegate* fn + ) => fn((hwnd), WM_ENDSESSION, (WPARAM)(BOOL)(fEnding), 0); + + [Transformed] + public static void FORWARD_WM_ENDSESSION( + HWND hwnd, + MaybeBool fEnding, + delegate* fn + ) => FORWARD_WM_ENDSESSION(hwnd, (BOOL)fEnding, fn); + + public static void FORWARD_WM_ENTERIDLE( + HWND hwnd, + uint source, + HWND hwndSource, + delegate* fn + ) => fn((hwnd), WM_ENTERIDLE, (WPARAM)(uint)(source), (LPARAM)(HWND)(hwndSource)); + + [Transformed] + public static MaybeBool FORWARD_WM_ERASEBKGND( + HWND hwnd, + HDC hdc, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_ERASEBKGNDRaw(hwnd, hdc, fn); + + public static BOOL FORWARD_WM_ERASEBKGNDRaw( + HWND hwnd, + HDC hdc, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_ERASEBKGND, (WPARAM)(HDC)(hdc), 0); + + public static void FORWARD_WM_FONTCHANGE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_FONTCHANGE, 0u, 0); + + public static uint FORWARD_WM_GETDLGCODE( + HWND hwnd, + MSG* lpmsg, + delegate* fn + ) => + (uint) + (uint)fn( + (hwnd), + WM_GETDLGCODE, + ((lpmsg != null) ? lpmsg->wParam : 0u), + (LPARAM)(MSG*)(lpmsg) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint FORWARD_WM_GETDLGCODE( + HWND hwnd, + Ref lpmsg, + delegate* fn + ) + { + fixed (MSG* __dsl_lpmsg = lpmsg) + { + return (uint)FORWARD_WM_GETDLGCODE(hwnd, __dsl_lpmsg, fn); + } + } + + public static HFONT FORWARD_WM_GETFONT( + HWND hwnd, + delegate* fn + ) => (HFONT)(nuint)fn((hwnd), WM_GETFONT, 0u, 0); + + public static void FORWARD_WM_GETMINMAXINFO( + HWND hwnd, + MINMAXINFO* lpMinMaxInfo, + delegate* fn + ) => fn((hwnd), WM_GETMINMAXINFO, 0u, (LPARAM)(MINMAXINFO*)(lpMinMaxInfo)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_GETMINMAXINFO( + HWND hwnd, + Ref lpMinMaxInfo, + delegate* fn + ) + { + fixed (MINMAXINFO* __dsl_lpMinMaxInfo = lpMinMaxInfo) + { + FORWARD_WM_GETMINMAXINFO(hwnd, __dsl_lpMinMaxInfo, fn); + } + } + + public static int FORWARD_WM_GETTEXT( + HWND hwnd, + int cchTextMax, + char* lpszText, + delegate* fn + ) => (int)(uint)fn((hwnd), WM_GETTEXT, (WPARAM)(int)(cchTextMax), (LPARAM)(char*)(lpszText)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FORWARD_WM_GETTEXT( + HWND hwnd, + int cchTextMax, + Ref lpszText, + delegate* fn + ) + { + fixed (char* __dsl_lpszText = lpszText) + { + return (int)FORWARD_WM_GETTEXT(hwnd, cchTextMax, __dsl_lpszText, fn); + } + } + + public static int FORWARD_WM_GETTEXTLENGTH( + HWND hwnd, + delegate* fn + ) => (int)(uint)fn((hwnd), WM_GETTEXTLENGTH, 0u, 0); + + public static void FORWARD_WM_HOTKEY( + HWND hwnd, + int idHotKey, + uint fuModifiers, + uint vk, + delegate* fn + ) => fn((hwnd), WM_HOTKEY, (WPARAM)(idHotKey), MAKELPARAM((fuModifiers), (vk))); + + public static void FORWARD_WM_HSCROLL( + HWND hwnd, + HWND hwndCtl, + uint code, + int pos, + delegate* fn + ) => + fn( + (hwnd), + WM_HSCROLL, + MAKEWPARAM((uint)(int)(code), (uint)(int)(pos)), + (LPARAM)(HWND)(hwndCtl) + ); + + public static void FORWARD_WM_HSCROLLCLIPBOARD( + HWND hwnd, + HWND hwndCBViewer, + uint code, + int pos, + delegate* fn + ) => + fn( + (hwnd), + WM_HSCROLLCLIPBOARD, + (WPARAM)(HWND)(hwndCBViewer), + MAKELPARAM((code), (nuint)(pos)) + ); + + [Transformed] + public static MaybeBool FORWARD_WM_ICONERASEBKGND( + HWND hwnd, + HDC hdc, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_ICONERASEBKGNDRaw(hwnd, hdc, fn); + + public static BOOL FORWARD_WM_ICONERASEBKGNDRaw( + HWND hwnd, + HDC hdc, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_ICONERASEBKGND, (WPARAM)(HDC)(hdc), 0); + + [Transformed] + public static MaybeBool FORWARD_WM_INITDIALOG( + HWND hwnd, + HWND hwndFocus, + LPARAM lParam, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_INITDIALOGRaw(hwnd, hwndFocus, lParam, fn); + + public static BOOL FORWARD_WM_INITDIALOGRaw( + HWND hwnd, + HWND hwndFocus, + LPARAM lParam, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_INITDIALOG, (WPARAM)(HWND)(hwndFocus), (lParam)); + + public static void FORWARD_WM_INITMENU( + HWND hwnd, + HMENU hMenu, + delegate* fn + ) => fn((hwnd), WM_INITMENU, (WPARAM)(HMENU)(hMenu), 0); + + public static void FORWARD_WM_INITMENUPOPUP( + HWND hwnd, + HMENU hMenu, + uint item, + BOOL fSystemMenu, + delegate* fn + ) => + fn( + (hwnd), + WM_INITMENUPOPUP, + (WPARAM)(HMENU)(hMenu), + MAKELPARAM((item), (nuint)(fSystemMenu)) + ); + + [Transformed] + public static void FORWARD_WM_INITMENUPOPUP( + HWND hwnd, + HMENU hMenu, + uint item, + MaybeBool fSystemMenu, + delegate* fn + ) => FORWARD_WM_INITMENUPOPUP(hwnd, hMenu, item, (BOOL)fSystemMenu, fn); + + public static void FORWARD_WM_KEYDOWN( + HWND hwnd, + uint vk, + int cRepeat, + uint flags, + delegate* fn + ) => fn((hwnd), WM_KEYDOWN, (WPARAM)(uint)(vk), MAKELPARAM((nuint)(cRepeat), (flags))); + + public static void FORWARD_WM_KEYUP( + HWND hwnd, + uint vk, + int cRepeat, + uint flags, + delegate* fn + ) => fn((hwnd), WM_KEYUP, (WPARAM)(uint)(vk), MAKELPARAM((nuint)(cRepeat), (flags))); + + public static void FORWARD_WM_KILLFOCUS( + HWND hwnd, + HWND hwndNewFocus, + delegate* fn + ) => fn((hwnd), WM_KILLFOCUS, (WPARAM)(HWND)(hwndNewFocus), 0); + + public static void FORWARD_WM_LBUTTONDOWN( + HWND hwnd, + BOOL fDoubleClick, + int x, + int y, + uint keyFlags, + delegate* fn + ) => + fn( + (hwnd), + (uint)((fDoubleClick) ? WM_LBUTTONDBLCLK : WM_LBUTTONDOWN), + (WPARAM)(uint)(keyFlags), + MAKELPARAM((x), (y)) + ); + + [Transformed] + public static void FORWARD_WM_LBUTTONDOWN( + HWND hwnd, + MaybeBool fDoubleClick, + int x, + int y, + uint keyFlags, + delegate* fn + ) => FORWARD_WM_LBUTTONDOWN(hwnd, (BOOL)fDoubleClick, x, y, keyFlags, fn); + + public static void FORWARD_WM_LBUTTONUP( + HWND hwnd, + int x, + int y, + uint keyFlags, + delegate* fn + ) => fn((hwnd), WM_LBUTTONUP, (WPARAM)(uint)(keyFlags), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_MBUTTONDOWN( + HWND hwnd, + BOOL fDoubleClick, + int x, + int y, + uint keyFlags, + delegate* fn + ) => + fn( + (hwnd), + (uint)((fDoubleClick) ? WM_MBUTTONDBLCLK : WM_MBUTTONDOWN), + (WPARAM)(uint)(keyFlags), + MAKELPARAM((x), (y)) + ); + + [Transformed] + public static void FORWARD_WM_MBUTTONDOWN( + HWND hwnd, + MaybeBool fDoubleClick, + int x, + int y, + uint keyFlags, + delegate* fn + ) => FORWARD_WM_MBUTTONDOWN(hwnd, (BOOL)fDoubleClick, x, y, keyFlags, fn); + + public static void FORWARD_WM_MBUTTONUP( + HWND hwnd, + int x, + int y, + uint keyFlags, + delegate* fn + ) => fn((hwnd), WM_MBUTTONUP, (WPARAM)(uint)(keyFlags), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_MDIACTIVATE( + HWND hwnd, + BOOL fActive, + HWND hwndActivate, + HWND hwndDeactivate, + delegate* fn + ) => fn(hwnd, WM_MDIACTIVATE, (WPARAM)(hwndDeactivate), (LPARAM)(hwndActivate)); + + [Transformed] + public static void FORWARD_WM_MDIACTIVATE( + HWND hwnd, + MaybeBool fActive, + HWND hwndActivate, + HWND hwndDeactivate, + delegate* fn + ) => FORWARD_WM_MDIACTIVATE(hwnd, (BOOL)fActive, hwndActivate, hwndDeactivate, fn); + + [Transformed] + public static MaybeBool FORWARD_WM_MDICASCADE( + HWND hwnd, + uint cmd, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_MDICASCADERaw(hwnd, cmd, fn); + + public static BOOL FORWARD_WM_MDICASCADERaw( + HWND hwnd, + uint cmd, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_MDICASCADE, (WPARAM)(cmd), 0); + + public static HWND FORWARD_WM_MDICREATE( + HWND hwnd, + MDICREATESTRUCTW* lpmcs, + delegate* fn + ) => (HWND)(uint)(uint)fn((hwnd), WM_MDICREATE, 0u, (LPARAM)(MDICREATESTRUCTW*)(lpmcs)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND FORWARD_WM_MDICREATE( + HWND hwnd, + Ref lpmcs, + delegate* fn + ) + { + fixed (MDICREATESTRUCTW* __dsl_lpmcs = lpmcs) + { + return (HWND)FORWARD_WM_MDICREATE(hwnd, __dsl_lpmcs, fn); + } + } + + public static void FORWARD_WM_MDIDESTROY( + HWND hwnd, + HWND hwndDestroy, + delegate* fn + ) => fn((hwnd), WM_MDIDESTROY, (WPARAM)(hwndDestroy), 0); + + public static HWND FORWARD_WM_MDIGETACTIVE( + HWND hwnd, + delegate* fn + ) => (HWND)(nuint)fn((hwnd), WM_MDIGETACTIVE, 0u, 0); + + public static void FORWARD_WM_MDIICONARRANGE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_MDIICONARRANGE, 0u, 0); + + public static void FORWARD_WM_MDIMAXIMIZE( + HWND hwnd, + HWND hwndMaximize, + delegate* fn + ) => fn((hwnd), WM_MDIMAXIMIZE, (WPARAM)(hwndMaximize), 0); + + public static HWND FORWARD_WM_MDINEXT( + HWND hwnd, + HWND hwndCur, + BOOL fPrev, + delegate* fn + ) => (HWND)(nuint)fn((hwnd), WM_MDINEXT, (WPARAM)(hwndCur), (LPARAM)(fPrev)); + + [Transformed] + public static HWND FORWARD_WM_MDINEXT( + HWND hwnd, + HWND hwndCur, + MaybeBool fPrev, + delegate* fn + ) => (HWND)FORWARD_WM_MDINEXT(hwnd, hwndCur, (BOOL)fPrev, fn); + + public static void FORWARD_WM_MDIRESTORE( + HWND hwnd, + HWND hwndRestore, + delegate* fn + ) => fn((hwnd), WM_MDIRESTORE, (WPARAM)(hwndRestore), 0); + + public static HMENU FORWARD_WM_MDISETMENU( + HWND hwnd, + BOOL fRefresh, + HMENU hmenuFrame, + HMENU hmenuWindow, + delegate* fn + ) => + (HMENU) + (nuint)fn( + (hwnd), + WM_MDISETMENU, + (WPARAM)((fRefresh) ? (hmenuFrame) : HMENU.NULL), + (LPARAM)(hmenuWindow) + ); + + [Transformed] + public static HMENU FORWARD_WM_MDISETMENU( + HWND hwnd, + MaybeBool fRefresh, + HMENU hmenuFrame, + HMENU hmenuWindow, + delegate* fn + ) => (HMENU)FORWARD_WM_MDISETMENU(hwnd, (BOOL)fRefresh, hmenuFrame, hmenuWindow, fn); + + [Transformed] + public static MaybeBool FORWARD_WM_MDITILE( + HWND hwnd, + uint cmd, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_MDITILERaw(hwnd, cmd, fn); + + public static BOOL FORWARD_WM_MDITILERaw( + HWND hwnd, + uint cmd, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_MDITILE, (WPARAM)(cmd), 0); + + public static void FORWARD_WM_MEASUREITEM( + HWND hwnd, + MEASUREITEMSTRUCT* lpMeasureItem, + delegate* fn + ) => + fn( + (hwnd), + WM_MEASUREITEM, + (WPARAM)(((MEASUREITEMSTRUCT*)lpMeasureItem)->CtlID), + (LPARAM)(MEASUREITEMSTRUCT*)(lpMeasureItem) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_MEASUREITEM( + HWND hwnd, + Ref lpMeasureItem, + delegate* fn + ) + { + fixed (MEASUREITEMSTRUCT* __dsl_lpMeasureItem = lpMeasureItem) + { + FORWARD_WM_MEASUREITEM(hwnd, __dsl_lpMeasureItem, fn); + } + } + + public static uint FORWARD_WM_MENUCHAR( + HWND hwnd, + uint ch, + uint flags, + HMENU hmenu, + delegate* fn + ) => (uint)fn((hwnd), WM_MENUCHAR, MAKEWPARAM(flags, (ushort)(ch)), (LPARAM)(HMENU)(hmenu)); + + public static void FORWARD_WM_MENUSELECT( + HWND hwnd, + HMENU hmenu, + int item, + HMENU hmenuPopup, + uint flags, + delegate* fn + ) => + fn( + (hwnd), + WM_MENUSELECT, + MAKEWPARAM((nuint)(item), (flags)), + (LPARAM)(HMENU)((hmenu != HMENU.NULL) ? (hmenu) : (hmenuPopup)) + ); + + public static int FORWARD_WM_MOUSEACTIVATE( + HWND hwnd, + HWND hwndTopLevel, + uint codeHitTest, + uint msg, + delegate* fn + ) => + (int) + (uint)fn( + (hwnd), + WM_MOUSEACTIVATE, + (WPARAM)(HWND)(hwndTopLevel), + MAKELPARAM((codeHitTest), (msg)) + ); + + public static void FORWARD_WM_MOUSEMOVE( + HWND hwnd, + int x, + int y, + uint keyFlags, + delegate* fn + ) => fn((hwnd), WM_MOUSEMOVE, (WPARAM)(uint)(keyFlags), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_MOUSEWHEEL( + HWND hwnd, + int xPos, + int yPos, + int zDelta, + uint fwKeys, + delegate* fn + ) => + fn( + (hwnd), + WM_MOUSEWHEEL, + MAKEWPARAM((fwKeys), (nuint)(zDelta)), + MAKELPARAM((xPos), (yPos)) + ); + + public static void FORWARD_WM_MOVE( + HWND hwnd, + int x, + int y, + delegate* fn + ) => fn((hwnd), WM_MOVE, 0u, MAKELPARAM((x), (y))); + + public static BOOL FORWARD_WM_NCACTIVATE( + HWND hwnd, + BOOL fActive, + HWND hwndActDeact, + BOOL fMinimized, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_NCACTIVATE, (WPARAM)(BOOL)(fActive), 0); + + [Transformed] + public static MaybeBool FORWARD_WM_NCACTIVATE( + HWND hwnd, + MaybeBool fActive, + HWND hwndActDeact, + MaybeBool fMinimized, + delegate* fn + ) => + (MaybeBool) + (BOOL)FORWARD_WM_NCACTIVATE(hwnd, (BOOL)fActive, hwndActDeact, (BOOL)fMinimized, fn); + + public static uint FORWARD_WM_NCCALCSIZE( + HWND hwnd, + BOOL fCalcValidRects, + NCCALCSIZE_PARAMS* lpcsp, + delegate* fn + ) => + (uint) + (uint)fn( + (hwnd), + WM_NCCALCSIZE, + (WPARAM)(fCalcValidRects), + (LPARAM)(NCCALCSIZE_PARAMS*)(lpcsp) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint FORWARD_WM_NCCALCSIZE( + HWND hwnd, + MaybeBool fCalcValidRects, + Ref lpcsp, + delegate* fn + ) + { + fixed (NCCALCSIZE_PARAMS* __dsl_lpcsp = lpcsp) + { + return (uint)FORWARD_WM_NCCALCSIZE(hwnd, (BOOL)fCalcValidRects, __dsl_lpcsp, fn); + } + } + + public static BOOL FORWARD_WM_NCCREATE( + HWND hwnd, + CREATESTRUCTW* lpCreateStruct, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_NCCREATE, 0u, (LPARAM)(CREATESTRUCTW*)(lpCreateStruct)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FORWARD_WM_NCCREATE( + HWND hwnd, + Ref lpCreateStruct, + delegate* fn + ) + { + fixed (CREATESTRUCTW* __dsl_lpCreateStruct = lpCreateStruct) + { + return (MaybeBool)(BOOL)FORWARD_WM_NCCREATE(hwnd, __dsl_lpCreateStruct, fn); + } + } + + public static void FORWARD_WM_NCDESTROY( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_NCDESTROY, 0u, 0); + + public static uint FORWARD_WM_NCHITTEST( + HWND hwnd, + int x, + int y, + delegate* fn + ) => (uint)(uint)fn((hwnd), WM_NCHITTEST, 0u, MAKELPARAM((x), (y))); + + public static void FORWARD_WM_NCLBUTTONDOWN( + HWND hwnd, + BOOL fDoubleClick, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => + fn( + (hwnd), + (uint)((fDoubleClick) ? WM_NCLBUTTONDBLCLK : WM_NCLBUTTONDOWN), + (WPARAM)(uint)(codeHitTest), + MAKELPARAM((x), (y)) + ); + + [Transformed] + public static void FORWARD_WM_NCLBUTTONDOWN( + HWND hwnd, + MaybeBool fDoubleClick, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => FORWARD_WM_NCLBUTTONDOWN(hwnd, (BOOL)fDoubleClick, x, y, codeHitTest, fn); + + public static void FORWARD_WM_NCLBUTTONUP( + HWND hwnd, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => fn((hwnd), WM_NCLBUTTONUP, (WPARAM)(uint)(codeHitTest), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_NCMBUTTONDOWN( + HWND hwnd, + BOOL fDoubleClick, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => + fn( + (hwnd), + (uint)((fDoubleClick) ? WM_NCMBUTTONDBLCLK : WM_NCMBUTTONDOWN), + (WPARAM)(uint)(codeHitTest), + MAKELPARAM((x), (y)) + ); + + [Transformed] + public static void FORWARD_WM_NCMBUTTONDOWN( + HWND hwnd, + MaybeBool fDoubleClick, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => FORWARD_WM_NCMBUTTONDOWN(hwnd, (BOOL)fDoubleClick, x, y, codeHitTest, fn); + + public static void FORWARD_WM_NCMBUTTONUP( + HWND hwnd, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => fn((hwnd), WM_NCMBUTTONUP, (WPARAM)(uint)(codeHitTest), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_NCMOUSEMOVE( + HWND hwnd, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => fn((hwnd), WM_NCMOUSEMOVE, (WPARAM)(uint)(codeHitTest), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_NCPAINT( + HWND hwnd, + HRGN hrgn, + delegate* fn + ) => fn((hwnd), WM_NCPAINT, (WPARAM)(HRGN)(hrgn), 0); + + public static void FORWARD_WM_NCRBUTTONDOWN( + HWND hwnd, + BOOL fDoubleClick, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => + fn( + (hwnd), + (uint)((fDoubleClick) ? WM_NCRBUTTONDBLCLK : WM_NCRBUTTONDOWN), + (WPARAM)(uint)(codeHitTest), + MAKELPARAM((x), (y)) + ); + + [Transformed] + public static void FORWARD_WM_NCRBUTTONDOWN( + HWND hwnd, + MaybeBool fDoubleClick, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => FORWARD_WM_NCRBUTTONDOWN(hwnd, (BOOL)fDoubleClick, x, y, codeHitTest, fn); + + public static void FORWARD_WM_NCRBUTTONUP( + HWND hwnd, + int x, + int y, + uint codeHitTest, + delegate* fn + ) => fn((hwnd), WM_NCRBUTTONUP, (WPARAM)(uint)(codeHitTest), MAKELPARAM((x), (y))); + + public static HWND FORWARD_WM_NEXTDLGCTL( + HWND hwnd, + HWND hwndSetFocus, + BOOL fNext, + delegate* fn + ) => (HWND)(nuint)fn((hwnd), WM_NEXTDLGCTL, (WPARAM)(HWND)(hwndSetFocus), (LPARAM)(fNext)); + + [Transformed] + public static HWND FORWARD_WM_NEXTDLGCTL( + HWND hwnd, + HWND hwndSetFocus, + MaybeBool fNext, + delegate* fn + ) => (HWND)FORWARD_WM_NEXTDLGCTL(hwnd, hwndSetFocus, (BOOL)fNext, fn); + + public static void FORWARD_WM_PAINT( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_PAINT, 0u, 0); + + public static void FORWARD_WM_PAINTCLIPBOARD( + HWND hwnd, + HWND hwndCBViewer, + PAINTSTRUCT* lpPaintStruct, + delegate* fn + ) => + fn( + (hwnd), + WM_PAINTCLIPBOARD, + (WPARAM)(HWND)(hwndCBViewer), + (LPARAM)(PAINTSTRUCT*)(lpPaintStruct) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_PAINTCLIPBOARD( + HWND hwnd, + HWND hwndCBViewer, + Ref lpPaintStruct, + delegate* fn + ) + { + fixed (PAINTSTRUCT* __dsl_lpPaintStruct = lpPaintStruct) + { + FORWARD_WM_PAINTCLIPBOARD(hwnd, hwndCBViewer, __dsl_lpPaintStruct, fn); + } + } + + public static void FORWARD_WM_PALETTECHANGED( + HWND hwnd, + HWND hwndPaletteChange, + delegate* fn + ) => fn((hwnd), WM_PALETTECHANGED, (WPARAM)(HWND)(hwndPaletteChange), 0); + + public static void FORWARD_WM_PALETTEISCHANGING( + HWND hwnd, + HWND hwndPaletteChange, + delegate* fn + ) => fn((hwnd), WM_PALETTEISCHANGING, (WPARAM)(HWND)(hwndPaletteChange), 0); + + public static void FORWARD_WM_PARENTNOTIFY( + HWND hwnd, + uint msg, + HWND hwndChild, + int idChild, + delegate* fn + ) => fn((hwnd), WM_PARENTNOTIFY, MAKEWPARAM(msg, (nuint)(idChild)), (LPARAM)(hwndChild)); + + public static void FORWARD_WM_PASTE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_PASTE, 0u, 0); + + public static void FORWARD_WM_POWER( + HWND hwnd, + int code, + delegate* fn + ) => fn((hwnd), WM_POWER, (WPARAM)(int)(code), 0); + + public static HICON FORWARD_WM_QUERYDRAGICON( + HWND hwnd, + delegate* fn + ) => (HICON)(uint)(uint)fn((hwnd), WM_QUERYDRAGICON, 0u, 0); + + [Transformed] + public static MaybeBool FORWARD_WM_QUERYENDSESSION( + HWND hwnd, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_QUERYENDSESSIONRaw(hwnd, fn); + + public static BOOL FORWARD_WM_QUERYENDSESSIONRaw( + HWND hwnd, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_QUERYENDSESSION, 0u, 0); + + [Transformed] + public static MaybeBool FORWARD_WM_QUERYNEWPALETTE( + HWND hwnd, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_QUERYNEWPALETTERaw(hwnd, fn); + + public static BOOL FORWARD_WM_QUERYNEWPALETTERaw( + HWND hwnd, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_QUERYNEWPALETTE, 0u, 0); + + [Transformed] + public static MaybeBool FORWARD_WM_QUERYOPEN( + HWND hwnd, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_QUERYOPENRaw(hwnd, fn); + + public static BOOL FORWARD_WM_QUERYOPENRaw( + HWND hwnd, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_QUERYOPEN, 0u, 0); + + public static void FORWARD_WM_QUEUESYNC( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_QUEUESYNC, 0u, 0); + + public static void FORWARD_WM_QUIT( + HWND hwnd, + int exitCode, + delegate* fn + ) => fn((hwnd), WM_QUIT, (WPARAM)(exitCode), 0); + + public static void FORWARD_WM_RBUTTONDOWN( + HWND hwnd, + BOOL fDoubleClick, + int x, + int y, + uint keyFlags, + delegate* fn + ) => + fn( + (hwnd), + (uint)((fDoubleClick) ? WM_RBUTTONDBLCLK : WM_RBUTTONDOWN), + (WPARAM)(uint)(keyFlags), + MAKELPARAM((x), (y)) + ); + + [Transformed] + public static void FORWARD_WM_RBUTTONDOWN( + HWND hwnd, + MaybeBool fDoubleClick, + int x, + int y, + uint keyFlags, + delegate* fn + ) => FORWARD_WM_RBUTTONDOWN(hwnd, (BOOL)fDoubleClick, x, y, keyFlags, fn); + + public static void FORWARD_WM_RBUTTONUP( + HWND hwnd, + int x, + int y, + uint keyFlags, + delegate* fn + ) => fn((hwnd), WM_RBUTTONUP, (WPARAM)(uint)(keyFlags), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_RENDERALLFORMATS( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_RENDERALLFORMATS, 0u, 0); + + public static HANDLE FORWARD_WM_RENDERFORMAT( + HWND hwnd, + uint fmt, + delegate* fn + ) => (HANDLE)(nuint)fn((hwnd), WM_RENDERFORMAT, (WPARAM)(uint)(fmt), 0); + + [Transformed] + public static MaybeBool FORWARD_WM_SETCURSOR( + HWND hwnd, + HWND hwndCursor, + uint codeHitTest, + uint msg, + delegate* fn + ) => (MaybeBool)(BOOL)FORWARD_WM_SETCURSORRaw(hwnd, hwndCursor, codeHitTest, msg, fn); + + public static BOOL FORWARD_WM_SETCURSORRaw( + HWND hwnd, + HWND hwndCursor, + uint codeHitTest, + uint msg, + delegate* fn + ) => + (BOOL) + (uint)fn( + (hwnd), + WM_SETCURSOR, + (WPARAM)(HWND)(hwndCursor), + MAKELPARAM((codeHitTest), (msg)) + ); + + public static void FORWARD_WM_SETFOCUS( + HWND hwnd, + HWND hwndOldFocus, + delegate* fn + ) => fn((hwnd), WM_SETFOCUS, (WPARAM)(HWND)(hwndOldFocus), 0); + + public static void FORWARD_WM_SETFONT( + HWND hwnd, + HFONT hfont, + BOOL fRedraw, + delegate* fn + ) => fn((hwnd), WM_SETFONT, (WPARAM)(HFONT)(hfont), (LPARAM)(BOOL)(fRedraw)); + + [Transformed] + public static void FORWARD_WM_SETFONT( + HWND hwnd, + HFONT hfont, + MaybeBool fRedraw, + delegate* fn + ) => FORWARD_WM_SETFONT(hwnd, hfont, (BOOL)fRedraw, fn); + + public static void FORWARD_WM_SETREDRAW( + HWND hwnd, + BOOL fRedraw, + delegate* fn + ) => fn((hwnd), WM_SETREDRAW, (WPARAM)(BOOL)(fRedraw), 0); + + [Transformed] + public static void FORWARD_WM_SETREDRAW( + HWND hwnd, + MaybeBool fRedraw, + delegate* fn + ) => FORWARD_WM_SETREDRAW(hwnd, (BOOL)fRedraw, fn); + + public static void FORWARD_WM_SETTEXT( + HWND hwnd, + char* lpszText, + delegate* fn + ) => fn((hwnd), WM_SETTEXT, 0u, (LPARAM)(char*)(lpszText)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_SETTEXT( + HWND hwnd, + Ref lpszText, + delegate* fn + ) + { + fixed (char* __dsl_lpszText = lpszText) + { + FORWARD_WM_SETTEXT(hwnd, __dsl_lpszText, fn); + } + } + + public static void FORWARD_WM_SHOWWINDOW( + HWND hwnd, + BOOL fShow, + uint status, + delegate* fn + ) => fn((hwnd), WM_SHOWWINDOW, (WPARAM)(BOOL)(fShow), (LPARAM)(uint)(status)); + + [Transformed] + public static void FORWARD_WM_SHOWWINDOW( + HWND hwnd, + MaybeBool fShow, + uint status, + delegate* fn + ) => FORWARD_WM_SHOWWINDOW(hwnd, (BOOL)fShow, status, fn); + + public static void FORWARD_WM_SIZE( + HWND hwnd, + uint state, + int cx, + int cy, + delegate* fn + ) => fn((hwnd), WM_SIZE, (WPARAM)(uint)(state), MAKELPARAM((cx), (cy))); + + public static void FORWARD_WM_SIZECLIPBOARD( + HWND hwnd, + HWND hwndCBViewer, + RECT* lprc, + delegate* fn + ) => fn((hwnd), WM_SIZECLIPBOARD, (WPARAM)(HWND)(hwndCBViewer), (LPARAM)(RECT*)(lprc)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_SIZECLIPBOARD( + HWND hwnd, + HWND hwndCBViewer, + Ref lprc, + delegate* fn + ) + { + fixed (RECT* __dsl_lprc = lprc) + { + FORWARD_WM_SIZECLIPBOARD(hwnd, hwndCBViewer, __dsl_lprc, fn); + } + } + + public static void FORWARD_WM_SPOOLERSTATUS( + HWND hwnd, + uint status, + ushort cJobInQueue, + delegate* fn + ) => fn((hwnd), WM_SPOOLERSTATUS, (WPARAM)(status), MAKELPARAM((cJobInQueue), 0)); + + public static void FORWARD_WM_SYSCHAR( + HWND hwnd, + ushort ch, + int cRepeat, + delegate* fn + ) => fn((hwnd), WM_SYSCHAR, (WPARAM)(ushort)(ch), MAKELPARAM((cRepeat), 0)); + + public static void FORWARD_WM_SYSCOLORCHANGE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_SYSCOLORCHANGE, 0u, 0); + + public static void FORWARD_WM_SYSCOMMAND( + HWND hwnd, + uint cmd, + int x, + int y, + delegate* fn + ) => fn((hwnd), WM_SYSCOMMAND, (WPARAM)(uint)(cmd), MAKELPARAM((x), (y))); + + public static void FORWARD_WM_SYSDEADCHAR( + HWND hwnd, + ushort ch, + int cRepeat, + delegate* fn + ) => fn((hwnd), WM_SYSDEADCHAR, (WPARAM)(ushort)(ch), MAKELPARAM((cRepeat), 0)); + + public static void FORWARD_WM_SYSKEYDOWN( + HWND hwnd, + uint vk, + int cRepeat, + uint flags, + delegate* fn + ) => fn((hwnd), WM_SYSKEYDOWN, (WPARAM)(uint)(vk), MAKELPARAM((nuint)(cRepeat), (flags))); + + public static void FORWARD_WM_SYSKEYUP( + HWND hwnd, + uint vk, + int cRepeat, + uint flags, + delegate* fn + ) => fn((hwnd), WM_SYSKEYUP, (WPARAM)(uint)(vk), MAKELPARAM((nuint)(cRepeat), (flags))); + + public static void FORWARD_WM_SYSTEMERROR( + HWND hwnd, + int errCode, + delegate* fn + ) { } + + public static void FORWARD_WM_TIMECHANGE( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_TIMECHANGE, 0u, 0); + + public static void FORWARD_WM_TIMER( + HWND hwnd, + uint id, + delegate* fn + ) => fn((hwnd), WM_TIMER, (WPARAM)(uint)(id), 0); + + public static void FORWARD_WM_UNDO( + HWND hwnd, + delegate* fn + ) => fn((hwnd), WM_UNDO, 0u, 0); + + public static int FORWARD_WM_VKEYTOITEM( + HWND hwnd, + uint vk, + HWND hwndListBox, + int iCaret, + delegate* fn + ) => + (int) + (uint)fn( + (hwnd), + WM_VKEYTOITEM, + MAKEWPARAM((vk), (nuint)(iCaret)), + (LPARAM)(hwndListBox) + ); + + public static void FORWARD_WM_VSCROLL( + HWND hwnd, + HWND hwndCtl, + uint code, + int pos, + delegate* fn + ) => + fn( + (hwnd), + WM_VSCROLL, + MAKEWPARAM((uint)(int)(code), (uint)(int)(pos)), + (LPARAM)(HWND)(hwndCtl) + ); + + public static void FORWARD_WM_VSCROLLCLIPBOARD( + HWND hwnd, + HWND hwndCBViewer, + uint code, + int pos, + delegate* fn + ) => + fn( + (hwnd), + WM_VSCROLLCLIPBOARD, + (WPARAM)(HWND)(hwndCBViewer), + MAKELPARAM((code), (nuint)(pos)) + ); + + public static void FORWARD_WM_WINDOWPOSCHANGED( + HWND hwnd, + WINDOWPOS* lpwpos, + delegate* fn + ) => fn((hwnd), WM_WINDOWPOSCHANGED, 0u, (LPARAM)(WINDOWPOS*)(lpwpos)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_WINDOWPOSCHANGED( + HWND hwnd, + Ref lpwpos, + delegate* fn + ) + { + fixed (WINDOWPOS* __dsl_lpwpos = lpwpos) + { + FORWARD_WM_WINDOWPOSCHANGED(hwnd, __dsl_lpwpos, fn); + } + } + + public static BOOL FORWARD_WM_WINDOWPOSCHANGING( + HWND hwnd, + WINDOWPOS* lpwpos, + delegate* fn + ) => (BOOL)(uint)fn((hwnd), WM_WINDOWPOSCHANGING, 0u, (LPARAM)(WINDOWPOS*)(lpwpos)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FORWARD_WM_WINDOWPOSCHANGING( + HWND hwnd, + Ref lpwpos, + delegate* fn + ) + { + fixed (WINDOWPOS* __dsl_lpwpos = lpwpos) + { + return (MaybeBool)(BOOL)FORWARD_WM_WINDOWPOSCHANGING(hwnd, __dsl_lpwpos, fn); + } + } + + public static void FORWARD_WM_WININICHANGE( + HWND hwnd, + char* lpszSectionName, + delegate* fn + ) => fn((hwnd), WM_WININICHANGE, 0u, (LPARAM)(char*)(lpszSectionName)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FORWARD_WM_WININICHANGE( + HWND hwnd, + Ref lpszSectionName, + delegate* fn + ) + { + fixed (char* __dsl_lpszSectionName = lpszSectionName) + { + FORWARD_WM_WININICHANGE(hwnd, __dsl_lpszSectionName, fn); + } + } + + public static (WPARAM wp, LPARAM lp) GET_EM_LINESCROLL_MPS(WPARAM vert, LPARAM horz) => + ((WPARAM)horz, (LPARAM)vert); + + public static LPARAM GET_EM_SETSEL_END(WPARAM wp, LPARAM lp) => (lp); + + public static (WPARAM wp, LPARAM lp) GET_EM_SETSEL_MPS(int iStart, LPARAM iEnd) => + ((WPARAM)(iStart), (LPARAM)(iEnd)); + + public static int GET_EM_SETSEL_START(WPARAM wp, LPARAM lp) => (int)(wp); + + public static LPARAM GET_LPARAM(WPARAM wp, LPARAM lp) => (lp); + + [Transformed] + public static MaybeBool GET_WM_ACTIVATE_FMINIMIZED(WPARAM wp, LPARAM lp) => + (MaybeBool)(BOOL)GET_WM_ACTIVATE_FMINIMIZEDRaw(wp, lp); + + public static BOOL GET_WM_ACTIVATE_FMINIMIZEDRaw(WPARAM wp, LPARAM lp) => (BOOL)HIWORD(wp); + + public static HWND GET_WM_ACTIVATE_HWND(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_ACTIVATE_MPS(ushort s, BOOL fmin, HWND hwnd) => + ((WPARAM)MAKELONG((s), (fmin)), (LPARAM)(hwnd)); + + [Transformed] + public static (WPARAM wp, LPARAM lp) GET_WM_ACTIVATE_MPS( + ushort s, + MaybeBool fmin, + HWND hwnd + ) => ((WPARAM wp, LPARAM lp))GET_WM_ACTIVATE_MPS(s, (BOOL)fmin, hwnd); + + public static ushort GET_WM_ACTIVATE_STATE(WPARAM wp, LPARAM lp) => LOWORD(wp); + + public static HWND GET_WM_CHANGECBCHAIN_HWNDNEXT(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static ushort GET_WM_CHARTOITEM_CHAR(WPARAM wp, LPARAM lp) => (ushort)LOWORD(wp); + + public static HWND GET_WM_CHARTOITEM_HWND(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_CHARTOITEM_MPS(ushort ch, ushort pos, HWND hwnd) => + ((WPARAM)MAKELONG((pos), (ch)), (LPARAM)(hwnd)); + + public static ushort GET_WM_CHARTOITEM_POS(WPARAM wp, LPARAM lp) => HIWORD(wp); + + public static ushort GET_WM_COMMAND_CMD(WPARAM wp, LPARAM lp) => HIWORD(wp); + + public static HWND GET_WM_COMMAND_HWND(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static ushort GET_WM_COMMAND_ID(WPARAM wp, LPARAM lp) => LOWORD(wp); + + public static (WPARAM wp, LPARAM lp) GET_WM_COMMAND_MPS(ushort id, HWND hwnd, ushort cmd) => + ((WPARAM)MAKELONG(id, cmd), (LPARAM)(hwnd)); + + public static HDC GET_WM_CTLCOLOR_HDC(WPARAM wp, LPARAM lp, uint msg) => (HDC)(wp); + + public static HWND GET_WM_CTLCOLOR_HWND(WPARAM wp, LPARAM lp, uint msg) => (HWND)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_CTLCOLOR_MPS(HDC hdc, HWND hwnd, ushort type) => + ((WPARAM)(hdc), (LPARAM)(hwnd)); + + public static ushort GET_WM_CTLCOLOR_MSG(ushort type) => (ushort)(WM_CTLCOLORMSGBOX + (type)); + + public static ushort GET_WM_CTLCOLOR_TYPE(WPARAM wp, LPARAM lp, uint msg) => + (ushort)(msg - WM_CTLCOLORMSGBOX); + + public static ushort GET_WM_HSCROLL_CODE(WPARAM wp, LPARAM lp) => LOWORD(wp); + + public static HWND GET_WM_HSCROLL_HWND(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_HSCROLL_MPS(ushort code, ushort pos, HWND hwnd) => + ((WPARAM)MAKELONG(code, pos), (LPARAM)(hwnd)); + + public static ushort GET_WM_HSCROLL_POS(WPARAM wp, LPARAM lp) => HIWORD(wp); + + [Transformed] + /* Note: the following are for interpreting MDIclient to MDI child messages. */ + public static MaybeBool GET_WM_MDIACTIVATE_FACTIVATE(HWND hwnd, WPARAM wp, LPARAM lp) => + (MaybeBool)(BOOL)GET_WM_MDIACTIVATE_FACTIVATERaw(hwnd, wp, lp); + + /* Note: the following are for interpreting MDIclient to MDI child messages. */ + public static BOOL GET_WM_MDIACTIVATE_FACTIVATERaw(HWND hwnd, WPARAM wp, LPARAM lp) => + (lp == (LPARAM)hwnd); + + public static HWND GET_WM_MDIACTIVATE_HWNDACTIVATE(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static HWND GET_WM_MDIACTIVATE_HWNDDEACT(WPARAM wp, LPARAM lp) => (HWND)(wp); + + /* Note: the following is for sending to the MDI client window. */ + public static (WPARAM wp, LPARAM lp) GET_WM_MDIACTIVATE_MPS(BOOL f, HWND hwndD, HWND hwndA) => + ((WPARAM)(hwndA), 0); + + [Transformed] + /* Note: the following is for sending to the MDI client window. */ + public static (WPARAM wp, LPARAM lp) GET_WM_MDIACTIVATE_MPS( + MaybeBool f, + HWND hwndD, + HWND hwndA + ) => ((WPARAM wp, LPARAM lp))GET_WM_MDIACTIVATE_MPS((BOOL)f, hwndD, hwndA); + + public static (WPARAM wp, LPARAM lp) GET_WM_MDISETMENU_MPS(HMENU hmenuF, HMENU hmenuW) => + ((WPARAM)hmenuF, (LPARAM)hmenuW); + + public static ushort GET_WM_MENUCHAR_CHAR(WPARAM wp, LPARAM lp) => (ushort)LOWORD(wp); + + [Transformed] + public static MaybeBool GET_WM_MENUCHAR_FMENU(WPARAM wp, LPARAM lp) => + (MaybeBool)(BOOL)GET_WM_MENUCHAR_FMENURaw(wp, lp); + + public static BOOL GET_WM_MENUCHAR_FMENURaw(WPARAM wp, LPARAM lp) => (BOOL)HIWORD(wp); + + public static HMENU GET_WM_MENUCHAR_HMENU(WPARAM wp, LPARAM lp) => (HMENU)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_MENUCHAR_MPS(ushort ch, HMENU hmenu, BOOL f) => + ((WPARAM)MAKELONG(ch, f), (LPARAM)(hmenu)); + + [Transformed] + public static (WPARAM wp, LPARAM lp) GET_WM_MENUCHAR_MPS( + ushort ch, + HMENU hmenu, + MaybeBool f + ) => ((WPARAM wp, LPARAM lp))GET_WM_MENUCHAR_MPS(ch, hmenu, (BOOL)f); + + public static ushort GET_WM_MENUSELECT_CMD(WPARAM wp, LPARAM lp) => LOWORD(wp); + + public static uint GET_WM_MENUSELECT_FLAGS(WPARAM wp, LPARAM lp) => + (uint)(int)(short)HIWORD(wp); + + public static HMENU GET_WM_MENUSELECT_HMENU(WPARAM wp, LPARAM lp) => (HMENU)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_MENUSELECT_MPS(ushort cmd, uint f, HMENU hmenu) => + ((WPARAM)MAKELONG(cmd, f), (LPARAM)(hmenu)); + + public static HWND GET_WM_PARENTNOTIFY_HWNDCHILD(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static ushort GET_WM_PARENTNOTIFY_ID(WPARAM wp, LPARAM lp) => HIWORD(wp); + + public static (WPARAM wp, LPARAM lp) GET_WM_PARENTNOTIFY_MPS( + ushort msg, + ushort id, + HWND hwnd + ) => ((WPARAM)MAKELONG(id, msg), (LPARAM)(hwnd)); + + public static ushort GET_WM_PARENTNOTIFY_MSG(WPARAM wp, LPARAM lp) => LOWORD(wp); + + public static int GET_WM_PARENTNOTIFY_X(WPARAM wp, LPARAM lp) => (int)(short)LOWORD(lp); + + public static int GET_WM_PARENTNOTIFY_Y(WPARAM wp, LPARAM lp) => (int)(short)HIWORD(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_PARENTNOTIFY2_MPS(ushort msg, int x, int y) => + ((WPARAM)MAKELONG(0, msg), MAKELONG(x, y)); + + public static int GET_WM_VKEYTOITEM_CODE(WPARAM wp, LPARAM lp) => (int)(short)LOWORD(wp); + + public static HWND GET_WM_VKEYTOITEM_HWND(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static ushort GET_WM_VKEYTOITEM_ITEM(WPARAM wp, LPARAM lp) => HIWORD(wp); + + public static (WPARAM wp, LPARAM lp) GET_WM_VKEYTOITEM_MPS(int code, ushort item, HWND hwnd) => + ((WPARAM)MAKELONG(item, code), (LPARAM)(hwnd)); + + public static ushort GET_WM_VSCROLL_CODE(WPARAM wp, LPARAM lp) => LOWORD(wp); + + public static HWND GET_WM_VSCROLL_HWND(WPARAM wp, LPARAM lp) => (HWND)(lp); + + public static (WPARAM wp, LPARAM lp) GET_WM_VSCROLL_MPS(ushort code, ushort pos, HWND hwnd) => + ((WPARAM)MAKELONG(code, pos), (LPARAM)(hwnd)); + + public static ushort GET_WM_VSCROLL_POS(WPARAM wp, LPARAM lp) => HIWORD(wp); + + /****** Alternate porting layer macros ****************************************/ + /* USER MESSAGES: */ + public static WPARAM GET_WPARAM(WPARAM wp, LPARAM lp) => (wp); + + public static int GET_X_LPARAM(LPARAM lp) => ((int)(short)LOWORD(lp)); + + public static int GET_Y_LPARAM(LPARAM lp) => ((int)(short)HIWORD(lp)); + + public static HWND GetFirstChild(HWND hwnd) => GetTopWindow(hwnd); + + public static HWND GetFirstSibling(HWND hwnd) => GetWindow(hwnd, GW_HWNDFIRST); + + /****** KERNEL Macro APIs ****************************************************/ + public static HMODULE GetInstanceModule(HINSTANCE hInstance) => (HMODULE)(hInstance); + + public static HWND GetLastSibling(HWND hwnd) => GetWindow(hwnd, GW_HWNDLAST); + + public static HWND GetNextSibling(HWND hwnd) => GetWindow(hwnd, GW_HWNDNEXT); + + public static HWND GetPrevSibling(HWND hwnd) => GetWindow(hwnd, GW_HWNDPREV); + + public static HBRUSH GetStockBrush(int i) => ((HBRUSH)GetStockObject(i)); + + public static HFONT GetStockFont(int i) => ((HFONT)GetStockObject(i)); + + public static HPEN GetStockPen(int i) => ((HPEN)GetStockObject(i)); + + public static uint GetWindowExStyle(HWND hwnd) => ((uint)GetWindowLong(hwnd, GWL_EXSTYLE)); + + public static HFONT GetWindowFont(HWND hwnd) => FORWARD_WM_GETFONT((hwnd), SNDMSG); + + public static int GetWindowID(HWND hwnd) => GetDlgCtrlID(hwnd); + + /****** USER Macro APIs ******************************************************/ + public static HMODULE GetWindowInstance(HWND hwnd) => + ((HMODULE)GetWindowLongPtr(hwnd, GWLP_HINSTANCE)); + + public static HWND GetWindowOwner(HWND hwnd) => GetWindow(hwnd, GW_OWNER); + + public static uint GetWindowStyle(HWND hwnd) => ((uint)GetWindowLong(hwnd, GWL_STYLE)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GlobalAllocPtr(uint flags, nuint cb) => (void*)GlobalAllocPtrRaw(flags, cb); + + public static void* GlobalAllocPtrRaw(uint flags, nuint cb) => + (GlobalLockRaw(GlobalAlloc((flags), (cb)))); + + public static BOOL GlobalFreePtr(void* lp) + { + _ = GlobalUnlockPtr(lp); + return (BOOL)(nuint)GlobalFree(GlobalPtrHandle(lp)); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GlobalFreePtr(Ref lp) + { + fixed (void* __dsl_lp = lp) + { + return (MaybeBool)(BOOL)GlobalFreePtr(__dsl_lp); + } + } + + public static BOOL GlobalLockPtr(void* lp) => (BOOL)(nuint)GlobalLockRaw(GlobalPtrHandle(lp)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GlobalLockPtr(Ref lp) + { + fixed (void* __dsl_lp = lp) + { + return (MaybeBool)(BOOL)GlobalLockPtr(__dsl_lp); + } + } + + public static HGLOBAL GlobalPtrHandle(void* lp) => ((HGLOBAL)GlobalHandle(lp)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HGLOBAL GlobalPtrHandle(Ref lp) + { + fixed (void* __dsl_lp = lp) + { + return (HGLOBAL)GlobalPtrHandle(__dsl_lp); + } + } + + public static BOOL GlobalReAllocPtr(void* lp, nuint cbNew, uint flags) + { + _ = GlobalUnlockPtr(lp); + return (BOOL)(nuint)GlobalLockRaw(GlobalReAlloc(GlobalPtrHandle(lp), (cbNew), (flags))); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GlobalReAllocPtr(Ref lp, nuint cbNew, uint flags) + { + fixed (void* __dsl_lp = lp) + { + return (MaybeBool)(BOOL)GlobalReAllocPtr(__dsl_lp, cbNew, flags); + } + } + + public static BOOL GlobalUnlockPtr(void* lp) => GlobalUnlockRaw(GlobalPtrHandle(lp)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GlobalUnlockPtr(Ref lp) + { + fixed (void* __dsl_lp = lp) + { + return (MaybeBool)(BOOL)GlobalUnlockPtr(__dsl_lp); + } + } + + /* void Cls_OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized) */ + public static LRESULT HANDLE_WM_ACTIVATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)LOWORD(wParam), (HWND)(lParam), (BOOL)HIWORD(wParam)); + return 0; + } + + /* void Cls_OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId) */ + public static LRESULT HANDLE_WM_ACTIVATEAPP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (BOOL)(wParam), (uint)(lParam)); + return 0; + } + + /* void Cls_OnAskCBFormatName(HWND hwnd, int cchMax, LPTSTR rgchName) */ + public static LRESULT HANDLE_WM_ASKCBFORMATNAME( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(wParam), (char*)(lParam)); + return 0; + } + + /* void Cls_OnCancelMode(HWND hwnd) */ + public static LRESULT HANDLE_WM_CANCELMODE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnChangeCBChain(HWND hwnd, HWND hwndRemove, HWND hwndNext) */ + public static LRESULT HANDLE_WM_CHANGECBCHAIN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam), (HWND)(lParam)); + return 0; + } + + /* void Cls_OnChar(HWND hwnd, TCHAR ch, int cRepeat) */ + public static LRESULT HANDLE_WM_CHAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (ushort)(wParam), (int)(short)LOWORD(lParam)); + return 0; + } + + /* int Cls_OnCharToItem(HWND hwnd, UINT ch, HWND hwndListbox, int iCaret) */ + public static LRESULT HANDLE_WM_CHARTOITEM( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => + (LRESULT) + (uint)(int)fn((hwnd), (uint)LOWORD(wParam), (HWND)(lParam), (int)(short)HIWORD(wParam)); + + /* void Cls_OnChildActivate(HWND hwnd) */ + public static LRESULT HANDLE_WM_CHILDACTIVATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnClear(HWND hwnd) */ + public static LRESULT HANDLE_WM_CLEAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnClose(HWND hwnd) */ + public static LRESULT HANDLE_WM_CLOSE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) */ + public static LRESULT HANDLE_WM_COMMAND( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(LOWORD(wParam)), (HWND)(lParam), (uint)HIWORD(wParam)); + return 0; + } + + /* void Cls_OnCommNotify(HWND hwnd, int cid, UINT flags) */ + public static LRESULT HANDLE_WM_COMMNOTIFY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(wParam), (uint)LOWORD(lParam)); + return 0; + } + + /****** Message crackers ****************************************************/ + /* void Cls_OnCompacting(HWND hwnd, UINT compactRatio) */ + public static LRESULT HANDLE_WM_COMPACTING( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam)); + return 0; + } + + /* int Cls_OnCompareItem(HWND hwnd, const COMPAREITEMSTRUCT * lpCompareItem) */ + public static LRESULT HANDLE_WM_COMPAREITEM( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(int)fn((hwnd), (COMPAREITEMSTRUCT*)(lParam)); + + /* void Cls_OnContextMenu(HWND hwnd, HWND hwndContext, UINT xPos, UINT yPos) */ + public static LRESULT HANDLE_WM_CONTEXTMENU( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn( + (hwnd), + (HWND)(wParam), + (uint)(int)(short)LOWORD(lParam), + (uint)(int)(short)HIWORD(lParam) + ); + return 0; + } + + /* void Cls_OnCopy(HWND hwnd) */ + public static LRESULT HANDLE_WM_COPY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + public static LRESULT HANDLE_WM_COPYDATA( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + _ = fn((hwnd), (HWND)(wParam), (COPYDATASTRUCT*)lParam); + return 0; + } + + /* BOOL Cls_OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct) */ + public static LRESULT HANDLE_WM_CREATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => fn((hwnd), (CREATESTRUCTW*)(lParam)) ? 0 : (LRESULT)(-1); + + public static LRESULT HANDLE_WM_CTLCOLORBTN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_BTN); + + public static LRESULT HANDLE_WM_CTLCOLORDLG( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_DLG); + + public static LRESULT HANDLE_WM_CTLCOLOREDIT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_EDIT); + + public static LRESULT HANDLE_WM_CTLCOLORLISTBOX( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_LISTBOX); + + /* HBRUSH Cls_OnCtlColor(HWND hwnd, HDC hdc, HWND hwndChild, int type) */ + public static LRESULT HANDLE_WM_CTLCOLORMSGBOX( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_MSGBOX); + + public static LRESULT HANDLE_WM_CTLCOLORSCROLLBAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_SCROLLBAR); + + public static LRESULT HANDLE_WM_CTLCOLORSTATIC( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HBRUSH)fn((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_STATIC); + + /* void Cls_OnCut(HWND hwnd) */ + public static LRESULT HANDLE_WM_CUT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnDeadChar(HWND hwnd, TCHAR ch, int cRepeat) */ + public static LRESULT HANDLE_WM_DEADCHAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (ushort)(wParam), (int)(short)LOWORD(lParam)); + return 0; + } + + /* void Cls_OnDeleteItem(HWND hwnd, const DELETEITEMSTRUCT * lpDeleteItem) */ + public static LRESULT HANDLE_WM_DELETEITEM( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (DELETEITEMSTRUCT*)(lParam)); + return 0; + } + + /* void Cls_OnDestroy(HWND hwnd) */ + public static LRESULT HANDLE_WM_DESTROY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnDestroyClipboard(HWND hwnd) */ + public static LRESULT HANDLE_WM_DESTROYCLIPBOARD( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* BOOL Cls_OnDeviceChange(HWND hwnd, UINT uEvent, DWORD dwEventData) */ + public static LRESULT HANDLE_WM_DEVICECHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(BOOL)fn((hwnd), (uint)(wParam), (uint)(lParam)); + + /* void Cls_OnDevModeChange(HWND hwnd, LPCTSTR lpszDeviceName) */ + public static LRESULT HANDLE_WM_DEVMODECHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (char*)(lParam)); + return 0; + } + + /* void Cls_OnDisplayChange(HWND hwnd, UINT bitsPerPixel, UINT cxScreen, UINT cyScreen) */ + public static LRESULT HANDLE_WM_DISPLAYCHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), (uint)LOWORD(lParam), (uint)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnDrawClipboard(HWND hwnd) */ + public static LRESULT HANDLE_WM_DRAWCLIPBOARD( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnDrawItem(HWND hwnd, const DRAWITEMSTRUCT * lpDrawItem) */ + public static LRESULT HANDLE_WM_DRAWITEM( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (DRAWITEMSTRUCT*)(lParam)); + return 0; + } + + /* void Cls_OnDropFiles(HWND hwnd, HDROP hdrop) */ + public static LRESULT HANDLE_WM_DROPFILES( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HDROP)(wParam)); + return 0; + } + + /* void Cls_OnEnable(HWND hwnd, BOOL fEnable) */ + public static LRESULT HANDLE_WM_ENABLE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (BOOL)(wParam)); + return 0; + } + + /* void Cls_OnEndSession(HWND hwnd, BOOL fEnding) */ + public static LRESULT HANDLE_WM_ENDSESSION( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (BOOL)(wParam)); + return 0; + } + + /* void Cls_OnEnterIdle(HWND hwnd, UINT source, HWND hwndSource) */ + public static LRESULT HANDLE_WM_ENTERIDLE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), (HWND)(lParam)); + return 0; + } + + /* BOOL Cls_OnEraseBkgnd(HWND hwnd, HDC hdc) */ + public static LRESULT HANDLE_WM_ERASEBKGND( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(BOOL)fn((hwnd), (HDC)(wParam)); + + /* void Cls_OnFontChange(HWND hwnd) */ + public static LRESULT HANDLE_WM_FONTCHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* UINT Cls_OnGetDlgCode(HWND hwnd, LPMSG lpmsg) */ + public static LRESULT HANDLE_WM_GETDLGCODE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(uint)fn(hwnd, (MSG*)(lParam)); + + /* HFONT Cls_OnGetFont(HWND hwnd) */ + public static LRESULT HANDLE_WM_GETFONT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HFONT)fn(hwnd); + + /* void Cls_OnGetMinMaxInfo(HWND hwnd, LPMINMAXINFO lpMinMaxInfo) */ + public static LRESULT HANDLE_WM_GETMINMAXINFO( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (MINMAXINFO*)(lParam)); + return 0; + } + + /* INT Cls_OnGetText(HWND hwnd, int cchTextMax, LPTSTR lpszText) */ + public static LRESULT HANDLE_WM_GETTEXT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(int)fn((hwnd), (int)(wParam), (char*)(lParam)); + + /* INT Cls_OnGetTextLength(HWND hwnd) */ + public static LRESULT HANDLE_WM_GETTEXTLENGTH( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(int)fn(hwnd); + + /* void Cls_OnHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk) */ + public static LRESULT HANDLE_WM_HOTKEY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(wParam), (uint)LOWORD(lParam), (uint)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnHScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos) */ + public static LRESULT HANDLE_WM_HSCROLL( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(lParam), (uint)(LOWORD(wParam)), (int)(short)HIWORD(wParam)); + return 0; + } + + /* void Cls_OnHScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos) */ + public static LRESULT HANDLE_WM_HSCROLLCLIPBOARD( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam), (uint)LOWORD(lParam), (int)(short)HIWORD(lParam)); + return 0; + } + + /* BOOL Cls_OnIconEraseBkgnd(HWND hwnd, HDC hdc) */ + public static LRESULT HANDLE_WM_ICONERASEBKGND( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(BOOL)fn((hwnd), (HDC)(wParam)); + + /* BOOL Cls_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) */ + public static LRESULT HANDLE_WM_INITDIALOG( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(uint)(BOOL)fn((hwnd), (HWND)(wParam), lParam); + + /* void Cls_OnInitMenu(HWND hwnd, HMENU hMenu) */ + public static LRESULT HANDLE_WM_INITMENU( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HMENU)(wParam)); + return 0; + } + + /* void Cls_OnInitMenuPopup(HWND hwnd, HMENU hMenu, UINT item, BOOL fSystemMenu) */ + public static LRESULT HANDLE_WM_INITMENUPOPUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HMENU)(wParam), (uint)LOWORD(lParam), (BOOL)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ + public static LRESULT HANDLE_WM_KEYDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), TRUE, (int)(short)LOWORD(lParam), (uint)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ + public static LRESULT HANDLE_WM_KEYUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), FALSE, (int)(short)LOWORD(lParam), (uint)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnKillFocus(HWND hwnd, HWND hwndNewFocus) */ + public static LRESULT HANDLE_WM_KILLFOCUS( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* void Cls_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_LBUTTONDBLCLK( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_LBUTTONDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_LBUTTONUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_MBUTTONDBLCLK( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_MBUTTONDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnMButtonUp(HWND hwnd, int x, int y, UINT flags) */ + public static LRESULT HANDLE_WM_MBUTTONUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* NOTE: Usable only by MDI client windows */ + /* void Cls_MDIActivate(HWND hwnd, BOOL fActive, HWND hwndActivate, HWND hwndDeactivate) */ + public static LRESULT HANDLE_WM_MDIACTIVATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (BOOL)(lParam == (LPARAM)hwnd), (HWND)(lParam), (HWND)(wParam)); + return 0; + } + + /* BOOL Cls_MDICascade(HWND hwnd, UINT cmd) */ + public static LRESULT HANDLE_WM_MDICASCADE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)fn((hwnd), (uint)(wParam)); + + /* HWND Cls_MDICreate(HWND hwnd, const LPMDICREATESTRUCT lpmcs) */ + public static LRESULT HANDLE_WM_MDICREATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(uint)fn((hwnd), (MDICREATESTRUCTW*)(lParam)); + + /* void Cls_MDIDestroy(HWND hwnd, HWND hwndDestroy) */ + public static LRESULT HANDLE_WM_MDIDESTROY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* HWND Cls_MDIGetActive(HWND hwnd) */ + public static LRESULT HANDLE_WM_MDIGETACTIVE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)fn(hwnd); + + /* void Cls_MDIIconArrange(HWND hwnd) */ + public static LRESULT HANDLE_WM_MDIICONARRANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_MDIMaximize(HWND hwnd, HWND hwndMaximize) */ + public static LRESULT HANDLE_WM_MDIMAXIMIZE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* HWND Cls_MDINext(HWND hwnd, HWND hwndCur, BOOL fPrev) */ + public static LRESULT HANDLE_WM_MDINEXT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(HWND)fn((hwnd), (HWND)(wParam), (BOOL)lParam); + + /* void Cls_MDIRestore(HWND hwnd, HWND hwndRestore) */ + public static LRESULT HANDLE_WM_MDIRESTORE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* HMENU Cls_MDISetMenu(HWND hwnd, BOOL fRefresh, HMENU hmenuFrame, HMENU hmenuWindow) */ + public static LRESULT HANDLE_WM_MDISETMENU( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)fn((hwnd), (BOOL)(wParam), (HMENU)(wParam), (HMENU)(lParam)); + + /* BOOL Cls_MDITile(HWND hwnd, UINT cmd) */ + public static LRESULT HANDLE_WM_MDITILE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)fn((hwnd), (uint)(wParam)); + + /* void Cls_OnMeasureItem(HWND hwnd, MEASUREITEMSTRUCT * lpMeasureItem) */ + public static LRESULT HANDLE_WM_MEASUREITEM( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (MEASUREITEMSTRUCT*)(lParam)); + return 0; + } + + /* DWORD Cls_OnMenuChar(HWND hwnd, UINT ch, UINT flags, HMENU hmenu) */ + public static LRESULT HANDLE_WM_MENUCHAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)fn((hwnd), (uint)(LOWORD(wParam)), (uint)HIWORD(wParam), (HMENU)(lParam)); + + /* void Cls_OnMenuSelect(HWND hwnd, HMENU hmenu, int item, HMENU hmenuPopup, UINT flags) */ + public static LRESULT HANDLE_WM_MENUSELECT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn( + (hwnd), + (HMENU)(lParam), + ((HIWORD(wParam) & MF_POPUP) != 0) ? 0 : (int)(LOWORD(wParam)), + ((HIWORD(wParam) & MF_POPUP) != 0) + ? GetSubMenu((HMENU)lParam, LOWORD(wParam)) + : HMENU.NULL, + (uint)(((short)HIWORD(wParam) == -1) ? 0xFFFFFFFF : HIWORD(wParam)) + ); + return 0; + } + + /* int Cls_OnMouseActivate(HWND hwnd, HWND hwndTopLevel, UINT codeHitTest, UINT msg) */ + public static LRESULT HANDLE_WM_MOUSEACTIVATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(int)fn((hwnd), (HWND)(wParam), (uint)LOWORD(lParam), (uint)HIWORD(lParam)); + + /* void Cls_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_MOUSEMOVE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnMouseWheel(HWND hwnd, int xPos, int yPos, int zDelta, UINT fwKeys) */ + public static LRESULT HANDLE_WM_MOUSEWHEEL( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn( + (hwnd), + (int)(short)LOWORD(lParam), + (int)(short)HIWORD(lParam), + (int)(short)HIWORD(wParam), + (uint)(short)LOWORD(wParam) + ); + return 0; + } + + /* void Cls_OnMove(HWND hwnd, int x, int y) */ + public static LRESULT HANDLE_WM_MOVE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)); + return 0; + } + + /* BOOL Cls_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized) */ + public static LRESULT HANDLE_WM_NCACTIVATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(BOOL)fn((hwnd), (BOOL)(wParam), HWND.NULL, 0); + + /* UINT Cls_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp) */ + public static LRESULT HANDLE_WM_NCCALCSIZE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(uint)fn((hwnd), (BOOL)(wParam), (NCCALCSIZE_PARAMS*)(lParam)); + + /* BOOL Cls_OnNCCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct) */ + public static LRESULT HANDLE_WM_NCCREATE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(BOOL)fn((hwnd), (CREATESTRUCTW*)(lParam)); + + /* void Cls_OnNCDestroy(HWND hwnd) */ + public static LRESULT HANDLE_WM_NCDESTROY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* UINT Cls_OnNCHitTest(HWND hwnd, int x, int y) */ + public static LRESULT HANDLE_WM_NCHITTEST( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(uint)fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)); + + /* void Cls_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCLBUTTONDBLCLK( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCLBUTTONDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCLButtonUp(HWND hwnd, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCLBUTTONUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCMBUTTONDBLCLK( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCMBUTTONDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCMButtonUp(HWND hwnd, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCMBUTTONUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCMouseMove(HWND hwnd, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCMOUSEMOVE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCPaint(HWND hwnd, HRGN hrgn) */ + public static LRESULT HANDLE_WM_NCPAINT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HRGN)(wParam)); + return 0; + } + + /* void Cls_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCRBUTTONDBLCLK( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCRBUTTONDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnNCRButtonUp(HWND hwnd, int x, int y, UINT codeHitTest) */ + public static LRESULT HANDLE_WM_NCRBUTTONUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* HWND Cls_OnNextDlgCtl(HWND hwnd, HWND hwndSetFocus, BOOL fNext) */ + public static LRESULT HANDLE_WM_NEXTDLGCTL( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HWND)fn((hwnd), (HWND)(wParam), (BOOL)(lParam)); + + /* void Cls_OnPaint(HWND hwnd) */ + public static LRESULT HANDLE_WM_PAINT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnPaintClipboard(HWND hwnd, HWND hwndCBViewer, const LPPAINTSTRUCT lpPaintStruct) */ + public static LRESULT HANDLE_WM_PAINTCLIPBOARD( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam), (PAINTSTRUCT*)GlobalLockRaw((HGLOBAL)(lParam))); + _ = GlobalUnlockRaw((HGLOBAL)(lParam)); + return 0; + } + + /* void Cls_OnPaletteChanged(HWND hwnd, HWND hwndPaletteChange) */ + public static LRESULT HANDLE_WM_PALETTECHANGED( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* void Cls_OnPaletteIsChanging(HWND hwnd, HWND hwndPaletteChange) */ + public static LRESULT HANDLE_WM_PALETTEISCHANGING( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* void Cls_OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild) */ + public static LRESULT HANDLE_WM_PARENTNOTIFY( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)LOWORD(wParam), (HWND)(lParam), (int)(uint)HIWORD(wParam)); + return 0; + } + + /* void Cls_OnPaste(HWND hwnd) */ + public static LRESULT HANDLE_WM_PASTE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnPower(HWND hwnd, int code) */ + public static LRESULT HANDLE_WM_POWER( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(wParam)); + return 0; + } + + /* HICON Cls_OnQueryDragIcon(HWND hwnd) */ + public static LRESULT HANDLE_WM_QUERYDRAGICON( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(uint)fn(hwnd); + + /* BOOL Cls_OnQueryEndSession(HWND hwnd) */ + public static LRESULT HANDLE_WM_QUERYENDSESSION( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => MAKELRESULT((ushort)(BOOL)fn(hwnd), 0); + + /* BOOL Cls_OnQueryNewPalette(HWND hwnd) */ + public static LRESULT HANDLE_WM_QUERYNEWPALETTE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => MAKELRESULT((ushort)(BOOL)fn(hwnd), 0); + + /* BOOL Cls_OnQueryOpen(HWND hwnd) */ + public static LRESULT HANDLE_WM_QUERYOPEN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => MAKELRESULT((BOOL)fn(hwnd), 0); + + /* void Cls_OnQueueSync(HWND hwnd) */ + public static LRESULT HANDLE_WM_QUEUESYNC( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnQuit(HWND hwnd, int exitCode) */ + public static LRESULT HANDLE_WM_QUIT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(wParam)); + return 0; + } + + /* void Cls_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_RBUTTONDBLCLK( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ + public static LRESULT HANDLE_WM_RBUTTONDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnRButtonUp(HWND hwnd, int x, int y, UINT flags) */ + public static LRESULT HANDLE_WM_RBUTTONUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (uint)(wParam)); + return 0; + } + + /* void Cls_OnRenderAllFormats(HWND hwnd) */ + public static LRESULT HANDLE_WM_RENDERALLFORMATS( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* HANDLE Cls_OnRenderFormat(HWND hwnd, UINT fmt) */ + public static LRESULT HANDLE_WM_RENDERFORMAT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(nuint)(HANDLE)fn((hwnd), (uint)(wParam)); + + /* BOOL Cls_OnSetCursor(HWND hwnd, HWND hwndCursor, UINT codeHitTest, UINT msg) */ + public static LRESULT HANDLE_WM_SETCURSOR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => + (LRESULT)(uint)(BOOL)fn((hwnd), (HWND)(wParam), (uint)LOWORD(lParam), (uint)HIWORD(lParam)); + + /* void Cls_OnSetFocus(HWND hwnd, HWND hwndOldFocus) */ + public static LRESULT HANDLE_WM_SETFOCUS( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam)); + return 0; + } + + /* void Cls_OnSetFont(HWND hwndCtl, HFONT hfont, BOOL fRedraw) */ + public static LRESULT HANDLE_WM_SETFONT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HFONT)(wParam), (BOOL)(lParam)); + return 0; + } + + /* void Cls_OnSetRedraw(HWND hwnd, BOOL fRedraw) */ + public static LRESULT HANDLE_WM_SETREDRAW( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (BOOL)(wParam)); + return 0; + } + + /* void Cls_OnSetText(HWND hwnd, LPCTSTR lpszText) */ + public static LRESULT HANDLE_WM_SETTEXT( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (char*)(lParam)); + return 0; + } + + /* void Cls_OnShowWindow(HWND hwnd, BOOL fShow, UINT status) */ + public static LRESULT HANDLE_WM_SHOWWINDOW( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (BOOL)(wParam), (uint)(lParam)); + return 0; + } + + /* void Cls_OnSize(HWND hwnd, UINT state, int cx, int cy) */ + public static LRESULT HANDLE_WM_SIZE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnSizeClipboard(HWND hwnd, HWND hwndCBViewer, const LPRECT lprc) */ + public static LRESULT HANDLE_WM_SIZECLIPBOARD( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam), (RECT*)GlobalLockRaw((HGLOBAL)(lParam))); + _ = GlobalUnlockRaw((HGLOBAL)(lParam)); + return 0; + } + + /* void Cls_OnSpoolerStatus(HWND hwnd, UINT status, int cJobInQueue) */ + public static LRESULT HANDLE_WM_SPOOLERSTATUS( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), (int)(short)LOWORD(lParam)); + return 0; + } + + /* void Cls_OnSysChar(HWND hwnd, TCHAR ch, int cRepeat) */ + public static LRESULT HANDLE_WM_SYSCHAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (ushort)(wParam), (int)(short)LOWORD(lParam)); + return 0; + } + + /* void Cls_OnSysColorChange(HWND hwnd) */ + public static LRESULT HANDLE_WM_SYSCOLORCHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnSysCommand(HWND hwnd, UINT cmd, int x, int y) */ + public static LRESULT HANDLE_WM_SYSCOMMAND( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnSysDeadChar(HWND hwnd, TCHAR ch, int cRepeat) */ + public static LRESULT HANDLE_WM_SYSDEADCHAR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (ushort)(wParam), (int)(short)LOWORD(lParam)); + return 0; + } + + /* void Cls_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ + public static LRESULT HANDLE_WM_SYSKEYDOWN( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), TRUE, (int)(short)LOWORD(lParam), (uint)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ + public static LRESULT HANDLE_WM_SYSKEYUP( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam), FALSE, (int)(short)LOWORD(lParam), (uint)HIWORD(lParam)); + return 0; + } + + /* This message is in Windows 3.1 only */ + /* void Cls_OnSystemError(HWND hwnd, int errCode) */ + public static LRESULT HANDLE_WM_SYSTEMERROR( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => 0; + + /* void Cls_OnTimeChange(HWND hwnd) */ + public static LRESULT HANDLE_WM_TIMECHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* void Cls_OnTimer(HWND hwnd, UINT id) */ + public static LRESULT HANDLE_WM_TIMER( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (uint)(wParam)); + return 0; + } + + /* void Cls_OnUndo(HWND hwnd) */ + public static LRESULT HANDLE_WM_UNDO( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn(hwnd); + return 0; + } + + /* int Cls_OnVkeyToItem(HWND hwnd, UINT vk, HWND hwndListbox, int iCaret) */ + public static LRESULT HANDLE_WM_VKEYTOITEM( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => + (LRESULT) + (uint)(int)fn((hwnd), (uint)LOWORD(wParam), (HWND)(lParam), (int)(short)HIWORD(wParam)); + + /* void Cls_OnVScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos) */ + public static LRESULT HANDLE_WM_VSCROLL( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(lParam), (uint)(LOWORD(wParam)), (int)(short)HIWORD(wParam)); + return 0; + } + + /* void Cls_OnVScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos) */ + public static LRESULT HANDLE_WM_VSCROLLCLIPBOARD( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (HWND)(wParam), (uint)LOWORD(lParam), (int)(short)HIWORD(lParam)); + return 0; + } + + /* void Cls_OnWindowPosChanged(HWND hwnd, const LPWINDOWPOS lpwpos) */ + public static LRESULT HANDLE_WM_WINDOWPOSCHANGED( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (WINDOWPOS*)(lParam)); + return 0; + } + + /* BOOL Cls_OnWindowPosChanging(HWND hwnd, LPWINDOWPOS lpwpos) */ + public static LRESULT HANDLE_WM_WINDOWPOSCHANGING( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) => (LRESULT)(uint)(BOOL)fn((hwnd), (WINDOWPOS*)(lParam)); + + /* void Cls_OnWinIniChange(HWND hwnd, LPCTSTR lpszSectionName) */ + public static LRESULT HANDLE_WM_WININICHANGE( + HWND hwnd, + WPARAM wParam, + LPARAM lParam, + delegate* fn + ) + { + fn((hwnd), (char*)(lParam)); + return 0; + } + + public static BOOL InsetRect(RECT* lprc, int dx, int dy) => InflateRect((lprc), -(dx), -(dy)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool InsetRect(Ref lprc, int dx, int dy) + { + fixed (RECT* __dsl_lprc = lprc) + { + return (MaybeBool)(BOOL)InsetRect(__dsl_lprc, dx, dy); + } + } + + public static int IntersectRgn(HRGN hrgnResult, HRGN hrgnA, HRGN hrgnB) => + CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_AND); + + [Transformed] + public static MaybeBool IsLButtonDown() => (MaybeBool)(BOOL)IsLButtonDownRaw(); + + public static BOOL IsLButtonDownRaw() => (GetKeyState(VK_LBUTTON) < 0); + + [Transformed] + public static MaybeBool IsMaximized(HWND hwnd) => + (MaybeBool)(BOOL)IsMaximizedRaw(hwnd); + + public static BOOL IsMaximizedRaw(HWND hwnd) => IsZoomedRaw(hwnd); + + [Transformed] + public static MaybeBool IsMButtonDown() => (MaybeBool)(BOOL)IsMButtonDownRaw(); + + public static BOOL IsMButtonDownRaw() => (GetKeyState(VK_MBUTTON) < 0); + + [Transformed] + public static MaybeBool IsMinimized(HWND hwnd) => + (MaybeBool)(BOOL)IsMinimizedRaw(hwnd); + + public static BOOL IsMinimizedRaw(HWND hwnd) => IsIconicRaw(hwnd); + + [Transformed] + public static MaybeBool IsRButtonDown() => (MaybeBool)(BOOL)IsRButtonDownRaw(); + + public static BOOL IsRButtonDownRaw() => (GetKeyState(VK_RBUTTON) < 0); + + [Transformed] + public static MaybeBool IsRestored(HWND hwnd) => + (MaybeBool)(BOOL)IsRestoredRaw(hwnd); + + public static BOOL IsRestoredRaw(HWND hwnd) => + ((GetWindowStyle(hwnd) & (WS_MINIMIZE | WS_MAXIMIZE)) == 0); + + public static int ListBox_AddItemData(HWND hwndCtl, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), LB_ADDSTRING, 0u, (LPARAM)(data))); + + public static int ListBox_AddString(HWND hwndCtl, char* lpsz) => + ((int)(uint)SNDMSG((hwndCtl), LB_ADDSTRING, 0u, (LPARAM)(char*)(lpsz))); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_AddString(HWND hwndCtl, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (int)ListBox_AddString(hwndCtl, __dsl_lpsz); + } + } + + public static int ListBox_DeleteString(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), LB_DELETESTRING, (WPARAM)(int)(index), 0)); + + public static int ListBox_Dir(HWND hwndCtl, uint attrs, char* lpszFileSpec) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_DIR, + (WPARAM)(uint)(attrs), + (LPARAM)(char*)(lpszFileSpec) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_Dir(HWND hwndCtl, uint attrs, Ref lpszFileSpec) + { + fixed (char* __dsl_lpszFileSpec = lpszFileSpec) + { + return (int)ListBox_Dir(hwndCtl, attrs, __dsl_lpszFileSpec); + } + } + + /****** ListBox control message APIs *****************************************/ + public static BOOL ListBox_Enable(HWND hwndCtl, BOOL fEnable) => + EnableWindow((hwndCtl), (fEnable)); + + [Transformed] + /****** ListBox control message APIs *****************************************/ + public static MaybeBool ListBox_Enable(HWND hwndCtl, MaybeBool fEnable) => + (MaybeBool)(BOOL)ListBox_Enable(hwndCtl, (BOOL)fEnable); + + public static int ListBox_FindItemData(HWND hwndCtl, int indexStart, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), LB_FINDSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))); + + public static int ListBox_FindString(HWND hwndCtl, int indexStart, char* lpszFind) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_FINDSTRING, + (WPARAM)(int)(indexStart), + (LPARAM)(char*)(lpszFind) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_FindString(HWND hwndCtl, int indexStart, Ref lpszFind) + { + fixed (char* __dsl_lpszFind = lpszFind) + { + return (int)ListBox_FindString(hwndCtl, indexStart, __dsl_lpszFind); + } + } + + public static int ListBox_FindStringExact(HWND hwndCtl, int indexStart, char* lpszFind) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_FINDSTRINGEXACT, + (WPARAM)(int)(indexStart), + (LPARAM)(char*)(lpszFind) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_FindStringExact(HWND hwndCtl, int indexStart, Ref lpszFind) + { + fixed (char* __dsl_lpszFind = lpszFind) + { + return (int)ListBox_FindStringExact(hwndCtl, indexStart, __dsl_lpszFind); + } + } + + public static int ListBox_GetCaretIndex(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETCARETINDEX, 0u, 0)); + + public static int ListBox_GetCount(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETCOUNT, 0u, 0)); + + public static int ListBox_GetCurSel(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETCURSEL, 0u, 0)); + + public static int ListBox_GetHorizontalExtent(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETHORIZONTALEXTENT, 0u, 0)); + + public static LRESULT ListBox_GetItemData(HWND hwndCtl, int index) => + ((LRESULT)(nuint)SNDMSG((hwndCtl), LB_GETITEMDATA, (WPARAM)(int)(index), 0)); + + public static int ListBox_GetItemHeight(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETITEMHEIGHT, (WPARAM)(int)(index), 0)); + + public static int ListBox_GetItemRect(HWND hwndCtl, int index, RECT* lprc) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETITEMRECT, (WPARAM)(int)(index), (LPARAM)(RECT*)(lprc))); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_GetItemRect(HWND hwndCtl, int index, Ref lprc) + { + fixed (RECT* __dsl_lprc = lprc) + { + return (int)ListBox_GetItemRect(hwndCtl, index, __dsl_lprc); + } + } + + public static int ListBox_GetSel(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETSEL, (WPARAM)(int)(index), 0)); + + public static int ListBox_GetSelCount(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETSELCOUNT, 0u, 0)); + + public static int ListBox_GetSelItems(HWND hwndCtl, int cItems, int* lpItems) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_GETSELITEMS, + (WPARAM)(int)(cItems), + (LPARAM)(int*)(lpItems) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_GetSelItems(HWND hwndCtl, int cItems, Ref lpItems) + { + fixed (int* __dsl_lpItems = lpItems) + { + return (int)ListBox_GetSelItems(hwndCtl, cItems, __dsl_lpItems); + } + } + + public static int ListBox_GetText(HWND hwndCtl, int index, char* lpszBuffer) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_GETTEXT, + (WPARAM)(int)(index), + (LPARAM)(char*)(lpszBuffer) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_GetText(HWND hwndCtl, int index, Ref lpszBuffer) + { + fixed (char* __dsl_lpszBuffer = lpszBuffer) + { + return (int)ListBox_GetText(hwndCtl, index, __dsl_lpszBuffer); + } + } + + public static int ListBox_GetTextLen(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETTEXTLEN, (WPARAM)(int)(index), 0)); + + public static int ListBox_GetTopIndex(HWND hwndCtl) => + ((int)(uint)SNDMSG((hwndCtl), LB_GETTOPINDEX, 0u, 0)); + + public static int ListBox_InsertItemData(HWND hwndCtl, int index, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), LB_INSERTSTRING, (WPARAM)(int)(index), (LPARAM)(data))); + + public static int ListBox_InsertString(HWND hwndCtl, int index, char* lpsz) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_INSERTSTRING, + (WPARAM)(int)(index), + (LPARAM)(char*)(lpsz) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_InsertString(HWND hwndCtl, int index, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (int)ListBox_InsertString(hwndCtl, index, __dsl_lpsz); + } + } + + [Transformed] + public static MaybeBool ListBox_ResetContent(HWND hwndCtl) => + (MaybeBool)(BOOL)ListBox_ResetContentRaw(hwndCtl); + + public static BOOL ListBox_ResetContentRaw(HWND hwndCtl) => + ((BOOL)(uint)SNDMSG((hwndCtl), LB_RESETCONTENT, 0u, 0)); + + public static int ListBox_SelectItemData(HWND hwndCtl, int indexStart, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), LB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))); + + public static int ListBox_SelectString(HWND hwndCtl, int indexStart, char* lpszFind) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_SELECTSTRING, + (WPARAM)(int)(indexStart), + (LPARAM)(char*)(lpszFind) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ListBox_SelectString(HWND hwndCtl, int indexStart, Ref lpszFind) + { + fixed (char* __dsl_lpszFind = lpszFind) + { + return (int)ListBox_SelectString(hwndCtl, indexStart, __dsl_lpszFind); + } + } + + public static int ListBox_SelItemRange(HWND hwndCtl, BOOL fSelect, ushort first, ushort last) => + ( + (int) + (uint)SNDMSG( + (hwndCtl), + LB_SELITEMRANGE, + (WPARAM)(BOOL)(fSelect), + MAKELPARAM((first), (last)) + ) + ); + + [Transformed] + public static int ListBox_SelItemRange( + HWND hwndCtl, + MaybeBool fSelect, + ushort first, + ushort last + ) => (int)ListBox_SelItemRange(hwndCtl, (BOOL)fSelect, first, last); + + public static int ListBox_SetCaretIndex(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), LB_SETCARETINDEX, (WPARAM)(int)(index), 0)); + + public static void ListBox_SetColumnWidth(HWND hwndCtl, int cxColumn) => + SNDMSG((hwndCtl), LB_SETCOLUMNWIDTH, (WPARAM)(int)(cxColumn), 0); + + public static int ListBox_SetCurSel(HWND hwndCtl, int index) => + ((int)(uint)SNDMSG((hwndCtl), LB_SETCURSEL, (WPARAM)(int)(index), 0)); + + public static void ListBox_SetHorizontalExtent(HWND hwndCtl, int cxExtent) => + SNDMSG((hwndCtl), LB_SETHORIZONTALEXTENT, (WPARAM)(int)(cxExtent), 0); + + public static int ListBox_SetItemData(HWND hwndCtl, int index, LPARAM data) => + ((int)(uint)SNDMSG((hwndCtl), LB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data))); + + public static int ListBox_SetItemHeight(HWND hwndCtl, int index, ushort cy) => + ((int)(uint)SNDMSG((hwndCtl), LB_SETITEMHEIGHT, (WPARAM)(int)(index), MAKELPARAM((cy), 0))); + + public static int ListBox_SetSel(HWND hwndCtl, BOOL fSelect, LPARAM index) => + ((int)(uint)SNDMSG((hwndCtl), LB_SETSEL, (WPARAM)(BOOL)(fSelect), (LPARAM)(index))); + + [Transformed] + public static int ListBox_SetSel(HWND hwndCtl, MaybeBool fSelect, LPARAM index) => + (int)ListBox_SetSel(hwndCtl, (BOOL)fSelect, index); + + public static BOOL ListBox_SetTabStops(HWND hwndCtl, int cTabs, int* lpTabs) => + ( + (BOOL) + (uint)SNDMSG( + (hwndCtl), + LB_SETTABSTOPS, + (WPARAM)(int)(cTabs), + (LPARAM)(int*)(lpTabs) + ) + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ListBox_SetTabStops(HWND hwndCtl, int cTabs, Ref lpTabs) + { + fixed (int* __dsl_lpTabs = lpTabs) + { + return (MaybeBool)(BOOL)ListBox_SetTabStops(hwndCtl, cTabs, __dsl_lpTabs); + } + } + + public static int ListBox_SetTopIndex(HWND hwndCtl, int indexTop) => + ((int)(uint)SNDMSG((hwndCtl), LB_SETTOPINDEX, (WPARAM)(int)(indexTop), 0)); + + public static int MapWindowRect(HWND hwndFrom, HWND hwndTo, POINT* lprc) => + MapWindowPoints((hwndFrom), (hwndTo), (POINT*)(lprc), 2); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MapWindowRect(HWND hwndFrom, HWND hwndTo, Ref lprc) + { + fixed (POINT* __dsl_lprc = lprc) + { + return (int)MapWindowRect(hwndFrom, hwndTo, __dsl_lprc); + } + } + + [Transformed] + /****** ScrollBar control message APIs ***************************************/ + /* NOTE: flags parameter is a collection of ESB_* values, NOT a boolean! */ + public static MaybeBool ScrollBar_Enable(HWND hwndCtl, uint flags) => + (MaybeBool)(BOOL)ScrollBar_EnableRaw(hwndCtl, flags); + + /****** ScrollBar control message APIs ***************************************/ + /* NOTE: flags parameter is a collection of ESB_* values, NOT a boolean! */ + public static BOOL ScrollBar_EnableRaw(HWND hwndCtl, uint flags) => + EnableScrollBarRaw((hwndCtl), SB_CTL, (flags)); + + public static int ScrollBar_GetPos(HWND hwndCtl) => GetScrollPos((hwndCtl), SB_CTL); + + public static BOOL ScrollBar_GetRange(HWND hwndCtl, int* lpposMin, int* lpposMax) => + GetScrollRange((hwndCtl), SB_CTL, (lpposMin), (lpposMax)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ScrollBar_GetRange( + HWND hwndCtl, + Ref lpposMin, + Ref lpposMax + ) + { + fixed (int* __dsl_lpposMax = lpposMax) + fixed (int* __dsl_lpposMin = lpposMin) + { + return (MaybeBool) + (BOOL)ScrollBar_GetRange(hwndCtl, __dsl_lpposMin, __dsl_lpposMax); + } + } + + public static int ScrollBar_SetPos(HWND hwndCtl, int pos, BOOL fRedraw) => + SetScrollPos((hwndCtl), SB_CTL, (pos), (fRedraw)); + + [Transformed] + public static int ScrollBar_SetPos(HWND hwndCtl, int pos, MaybeBool fRedraw) => + (int)ScrollBar_SetPos(hwndCtl, pos, (BOOL)fRedraw); + + public static BOOL ScrollBar_SetRange(HWND hwndCtl, int posMin, int posMax, BOOL fRedraw) => + SetScrollRange((hwndCtl), SB_CTL, (posMin), (posMax), (fRedraw)); + + [Transformed] + public static MaybeBool ScrollBar_SetRange( + HWND hwndCtl, + int posMin, + int posMax, + MaybeBool fRedraw + ) => (MaybeBool)(BOOL)ScrollBar_SetRange(hwndCtl, posMin, posMax, (BOOL)fRedraw); + + public static BOOL ScrollBar_Show(HWND hwndCtl, BOOL fShow) => + ShowWindowRaw((hwndCtl), (fShow) ? SW_SHOWNORMAL : SW_HIDE); + + [Transformed] + public static MaybeBool ScrollBar_Show(HWND hwndCtl, MaybeBool fShow) => + (MaybeBool)(BOOL)ScrollBar_Show(hwndCtl, (BOOL)fShow); + + public static HBITMAP SelectBitmap(HDC hdc, HBITMAP hbm) => + ((HBITMAP)SelectObject((hdc), (HGDIOBJ)(HBITMAP)(hbm))); + + public static HBRUSH SelectBrush(HDC hdc, HBRUSH hbr) => + ((HBRUSH)SelectObject((hdc), (HGDIOBJ)(HBRUSH)(hbr))); + + public static HFONT SelectFont(HDC hdc, HFONT hfont) => + ((HFONT)SelectObject((hdc), (HGDIOBJ)(HFONT)(hfont))); + + public static HPEN SelectPen(HDC hdc, HPEN hpen) => + ((HPEN)SelectObject((hdc), (HGDIOBJ)(HPEN)(hpen))); + + public static BOOL SetDlgMsgResult(HWND hwnd, uint msg, BOOL result) + { + if ( + (msg) == WM_CTLCOLORMSGBOX + || (msg) == WM_CTLCOLOREDIT + || (msg) == WM_CTLCOLORLISTBOX + || (msg) == WM_CTLCOLORBTN + || (msg) == WM_CTLCOLORDLG + || (msg) == WM_CTLCOLORSCROLLBAR + || (msg) == WM_CTLCOLORSTATIC + || (msg) == WM_COMPAREITEM + || (msg) == WM_VKEYTOITEM + || (msg) == WM_CHARTOITEM + || (msg) == WM_QUERYDRAGICON + || (msg) == WM_INITDIALOG + ) + { + return (BOOL)(result); + } + else + { + _ = SetWindowLongPtr((hwnd), DWLP_MSGRESULT, (LPARAM)(LRESULT)(result)); + return TRUE; + } + } + + [Transformed] + public static MaybeBool SetDlgMsgResult(HWND hwnd, uint msg, MaybeBool result) => + (MaybeBool)(BOOL)SetDlgMsgResult(hwnd, msg, (BOOL)result); + + public static void SetWindowFont(HWND hwnd, HFONT hfont, BOOL fRedraw) => + FORWARD_WM_SETFONT((hwnd), (hfont), (fRedraw), SNDMSG); + + [Transformed] + public static void SetWindowFont(HWND hwnd, HFONT hfont, MaybeBool fRedraw) => + SetWindowFont(hwnd, hfont, (BOOL)fRedraw); + + public static LRESULT SetWindowRedraw(HWND hwnd, BOOL fRedraw) => + SNDMSG(hwnd, WM_SETREDRAW, (WPARAM)(BOOL)(fRedraw), 0); + + [Transformed] + public static LRESULT SetWindowRedraw(HWND hwnd, MaybeBool fRedraw) => + (LRESULT)SetWindowRedraw(hwnd, (BOOL)fRedraw); + + /****** Static control message APIs ******************************************/ + public static BOOL Static_Enable(HWND hwndCtl, BOOL fEnable) => + EnableWindow((hwndCtl), (fEnable)); + + [Transformed] + /****** Static control message APIs ******************************************/ + public static MaybeBool Static_Enable(HWND hwndCtl, MaybeBool fEnable) => + (MaybeBool)(BOOL)Static_Enable(hwndCtl, (BOOL)fEnable); + + public static HICON Static_GetIcon(HWND hwndCtl, HICON hIcon) => + ((HICON)(nuint)SNDMSG((hwndCtl), STM_GETICON, 0u, 0)); + + public static int Static_GetText(HWND hwndCtl, char* lpch, int cchMax) => + GetWindowText((hwndCtl), (lpch), (cchMax)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int Static_GetText(HWND hwndCtl, Ref lpch, int cchMax) + { + fixed (char* __dsl_lpch = lpch) + { + return (int)Static_GetText(hwndCtl, __dsl_lpch, cchMax); + } + } + + public static int Static_GetTextLength(HWND hwndCtl) => GetWindowTextLength(hwndCtl); + + public static HICON Static_SetIcon(HWND hwndCtl, HICON hIcon) => + ((HICON)(nuint)SNDMSG((hwndCtl), STM_SETICON, (WPARAM)(HICON)(hIcon), 0)); + + public static BOOL Static_SetText(HWND hwndCtl, char* lpsz) => SetWindowText((hwndCtl), (lpsz)); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool Static_SetText(HWND hwndCtl, Ref lpsz) + { + fixed (char* __dsl_lpsz = lpsz) + { + return (MaybeBool)(BOOL)Static_SetText(hwndCtl, __dsl_lpsz); + } + } + + public static nint SubclassDialog( + HWND hwndDlg, + delegate* unmanaged lpfn + ) => (SetWindowLongPtr(hwndDlg, (int)(DWLP_DLGPROC), (LPARAM)(lpfn))); + + public static delegate* unmanaged SubclassWindow( + HWND hwnd, + delegate* unmanaged lpfn + ) => + ( + (delegate* unmanaged)SetWindowLongPtr( + (hwnd), + GWLP_WNDPROC, + (LPARAM)(delegate* unmanaged)(lpfn) + ) + ); + + public static int SubtractRgn(HRGN hrgnResult, HRGN hrgnA, HRGN hrgnB) => + CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_DIFF); + + public static int UnionRgn(HRGN hrgnResult, HRGN hrgnA, HRGN hrgnB) => + CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_OR); + + public static int XorRgn(HRGN hrgnResult, HRGN hrgnA, HRGN hrgnB) => + CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_XOR); +} diff --git a/sources/Win32/Win32/Windows/shared/winerror/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/winerror/Windows.Manual.cs new file mode 100644 index 0000000000..e661daccbf --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/winerror/Windows.Manual.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.Win32.FACILITY; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + public static bool FAILED(HRESULT hr) + { + return hr < 0; + } + + public static int HRESULT_CODE(HRESULT hr) + { + return hr & 0xFFFF; + } + + public static int HRESULT_FACILITY(HRESULT hr) + { + return (hr >> 16) & 0x1FFF; + } + + public static HRESULT HRESULT_FROM_NT(int x) + { + return ((HRESULT)((x) | FACILITY_NT_BIT)); + } + + public static HRESULT HRESULT_FROM_WIN32(int x) + { + return (x <= 0) + ? x + : ((x & 0x0000FFFF) | (FACILITY_WIN32 << 16) | unchecked((int)0x80000000)); + } + + public static int HRESULT_SEVERITY(HRESULT hr) + { + return (hr >> 31) & 0x1; + } + + public static bool IS_ERROR(HRESULT Status) + { + return ((uint)Status >> 31) == SEVERITY_ERROR; + } + + public static HRESULT MAKE_HRESULT(int sev, int fac, int code) + { + return (int)(((uint)sev << 31) | ((uint)fac << 16) | (uint)code); + } + + public static HRESULT MAKE_SCODE(int sev, int fac, int code) + { + return (int)(((uint)sev << 31) | ((uint)fac << 16) | (uint)code); + } + + public static int SCODE_CODE(HRESULT sc) + { + return sc & 0xFFFF; + } + + public static int SCODE_FACILITY(HRESULT sc) + { + return (sc >> 16) & 0x1FFF; + } + + public static int SCODE_SEVERITY(HRESULT sc) + { + return (sc >> 31) & 0x1; + } + + public static bool SUCCEEDED(HRESULT hr) + { + return hr >= 0; + } +} diff --git a/sources/Win32/Win32/Windows/shared/ws2ipdef/Windows.Manual.cs b/sources/Win32/Win32/Windows/shared/ws2ipdef/Windows.Manual.cs new file mode 100644 index 0000000000..4c6783db56 --- /dev/null +++ b/sources/Win32/Win32/Windows/shared/ws2ipdef/Windows.Manual.cs @@ -0,0 +1,570 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics; +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.AF; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_ADDR_EQUAL( + [NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* x, + [NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* y + ) + { + long* a; + long* b; + a = (long*)x; + b = (long*)y; + return (byte)(((a[1] == b[1]) && (a[0] == b[0])) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_ADDR_EQUAL( + [NativeTypeName("CONST IN6_ADDR *")] Ref x, + [NativeTypeName("CONST IN6_ADDR *")] Ref y + ) + { + fixed (IN6_ADDR* __dsl_y = y) + fixed (IN6_ADDR* __dsl_x = x) + { + return (byte)IN6_ADDR_EQUAL(__dsl_x, __dsl_y); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_ANYCAST([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)( + ( + (IN6_IS_ADDR_SUBNET_RESERVED_ANYCAST(a) != 0) + | (IN6_IS_ADDR_SUBNET_ROUTER_ANYCAST(a) != 0) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_ANYCAST([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_ANYCAST(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_EUI64([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)((((a->s6_bytes[0] & 0xE0) != 0) && !(IN6_IS_ADDR_MULTICAST(a) != 0)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_EUI64([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_EUI64(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_GLOBAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + uint High = (a->s6_bytes[0] & 0xF0u); + return (byte)(((High != 0) && (High != 0xF0)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_GLOBAL([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_GLOBAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_LINKLOCAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((a->s6_bytes[0] == 0xFE) && ((a->s6_bytes[1] & 0xC0) == 0x80)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_LINKLOCAL([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_LINKLOCAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_LOOPBACK([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)( + ( + (a->s6_words[0] == 0) + && (a->s6_words[1] == 0) + && (a->s6_words[2] == 0) + && (a->s6_words[3] == 0) + && (a->s6_words[4] == 0) + && (a->s6_words[5] == 0) + && (a->s6_words[6] == 0) + && (a->s6_words[7] == 0x0100) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_LOOPBACK([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_LOOPBACK(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_MC_GLOBAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((IN6_IS_ADDR_MULTICAST(a) != 0) && ((a->s6_bytes[1] & 0xF) == 0xE)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_MC_GLOBAL([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_MC_GLOBAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_MC_LINKLOCAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((IN6_IS_ADDR_MULTICAST(a) != 0) && ((a->s6_bytes[1] & 0xF) == 2)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_MC_LINKLOCAL( + [NativeTypeName("CONST IN6_ADDR *")] Ref a + ) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_MC_LINKLOCAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_MC_NODELOCAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((IN6_IS_ADDR_MULTICAST(a) != 0) && ((a->s6_bytes[1] & 0xF) == 1)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_MC_NODELOCAL( + [NativeTypeName("CONST IN6_ADDR *")] Ref a + ) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_MC_NODELOCAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_MC_ORGLOCAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((IN6_IS_ADDR_MULTICAST(a) != 0) && ((a->s6_bytes[1] & 0xF) == 8)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_MC_ORGLOCAL([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_MC_ORGLOCAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_MC_SITELOCAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((IN6_IS_ADDR_MULTICAST(a) != 0) && ((a->s6_bytes[1] & 0xF) == 5)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_MC_SITELOCAL( + [NativeTypeName("CONST IN6_ADDR *")] Ref a + ) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_MC_SITELOCAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_MULTICAST([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)((a->s6_bytes[0] == 0xFF) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_MULTICAST([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_MULTICAST(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_SITELOCAL([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)(((a->s6_bytes[0] == 0xFE) && ((a->s6_bytes[1] & 0xC0) == 0xC0)) ? 1 : 0); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_SITELOCAL([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_SITELOCAL(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_SUBNET_RESERVED_ANYCAST( + [NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a + ) + { + return (byte)( + ( + (IN6_IS_ADDR_EUI64(a) != 0) + && (a->s6_words[4] == 0xFFFD) + && (a->s6_words[5] == 0xFFFF) + && (a->s6_words[6] == 0xFFFF) + && ((a->s6_words[7] & 0x80FF) == 0x80FF) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_SUBNET_RESERVED_ANYCAST( + [NativeTypeName("CONST IN6_ADDR *")] Ref a + ) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_SUBNET_RESERVED_ANYCAST(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_SUBNET_ROUTER_ANYCAST( + [NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a + ) + { + return (byte)( + ( + (IN6_IS_ADDR_EUI64(a) != 0) + && (a->s6_words[4] == 0) + && (a->s6_words[5] == 0) + && (a->s6_words[6] == 0) + && (a->s6_words[7] == 0) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_SUBNET_ROUTER_ANYCAST( + [NativeTypeName("CONST IN6_ADDR *")] Ref a + ) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_SUBNET_ROUTER_ANYCAST(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_UNSPECIFIED([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)( + ( + (a->s6_words[0] == 0) + && (a->s6_words[1] == 0) + && (a->s6_words[2] == 0) + && (a->s6_words[3] == 0) + && (a->s6_words[4] == 0) + && (a->s6_words[5] == 0) + && (a->s6_words[6] == 0) + && (a->s6_words[7] == 0) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_UNSPECIFIED([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_UNSPECIFIED(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_V4COMPAT([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)( + ( + (a->s6_words[0] == 0) + && (a->s6_words[1] == 0) + && (a->s6_words[2] == 0) + && (a->s6_words[3] == 0) + && (a->s6_words[4] == 0) + && (a->s6_words[5] == 0) + && !( + (a->s6_words[6] == 0) + && (a->s6_addr[14] == 0) + && ((a->s6_addr[15] == 0) || (a->s6_addr[15] == 1)) + ) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_V4COMPAT([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_V4COMPAT(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_V4MAPPED([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)( + ( + (a->s6_words[0] == 0) + && (a->s6_words[1] == 0) + && (a->s6_words[2] == 0) + && (a->s6_words[3] == 0) + && (a->s6_words[4] == 0) + && (a->s6_words[5] == 0xFFFF) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_V4MAPPED([NativeTypeName("CONST IN6_ADDR *")] Ref a) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_V4MAPPED(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6_IS_ADDR_V4TRANSLATED([NativeTypeName("CONST IN6_ADDR *")] IN6_ADDR* a) + { + return (byte)( + ( + (a->s6_words[0] == 0) + && (a->s6_words[1] == 0) + && (a->s6_words[2] == 0) + && (a->s6_words[3] == 0) + && (a->s6_words[4] == 0xFFFF) + && (a->s6_words[5] == 0) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6_IS_ADDR_V4TRANSLATED( + [NativeTypeName("CONST IN6_ADDR *")] Ref a + ) + { + fixed (IN6_ADDR* __dsl_a = a) + { + return (byte)IN6_IS_ADDR_V4TRANSLATED(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6ADDR_ISANY([NativeTypeName("CONST SOCKADDR_IN6 *")] SOCKADDR_IN6* a) + { + Debug.Assert(a->sin6_family == AF_INET6); + return IN6_IS_ADDR_UNSPECIFIED(&a->sin6_addr); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6ADDR_ISANY([NativeTypeName("CONST SOCKADDR_IN6 *")] Ref a) + { + fixed (SOCKADDR_IN6* __dsl_a = a) + { + return (byte)IN6ADDR_ISANY(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6ADDR_ISEQUAL( + [NativeTypeName("CONST SOCKADDR_IN6 *")] SOCKADDR_IN6* a, + [NativeTypeName("CONST SOCKADDR_IN6 *")] SOCKADDR_IN6* b + ) + { + Debug.Assert(a->sin6_family == AF_INET6); + return (byte)( + ( + (a->sin6_scope_id == b->sin6_scope_id) + && (IN6_ADDR_EQUAL(&a->sin6_addr, &b->sin6_addr) != 0) + ) + ? 1 + : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6ADDR_ISEQUAL( + [NativeTypeName("CONST SOCKADDR_IN6 *")] Ref a, + [NativeTypeName("CONST SOCKADDR_IN6 *")] Ref b + ) + { + fixed (SOCKADDR_IN6* __dsl_b = b) + fixed (SOCKADDR_IN6* __dsl_a = a) + { + return (byte)IN6ADDR_ISEQUAL(__dsl_a, __dsl_b); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6ADDR_ISLOOPBACK([NativeTypeName("CONST SOCKADDR_IN6 *")] SOCKADDR_IN6* a) + { + Debug.Assert(a->sin6_family == AF_INET6); + return IN6_IS_ADDR_LOOPBACK(&a->sin6_addr); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6ADDR_ISLOOPBACK( + [NativeTypeName("CONST SOCKADDR_IN6 *")] Ref a + ) + { + fixed (SOCKADDR_IN6* __dsl_a = a) + { + return (byte)IN6ADDR_ISLOOPBACK(__dsl_a); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("BOOLEAN")] + public static byte IN6ADDR_ISUNSPECIFIED( + [NativeTypeName("CONST SOCKADDR_IN6 *")] SOCKADDR_IN6* a + ) + { + Debug.Assert(a->sin6_family == AF_INET6); + return (byte)( + ((a->sin6_scope_id == 0) && (IN6_IS_ADDR_UNSPECIFIED(&a->sin6_addr) != 0)) ? 1 : 0 + ); + } + + [return: NativeTypeName("BOOLEAN")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte IN6ADDR_ISUNSPECIFIED( + [NativeTypeName("CONST SOCKADDR_IN6 *")] Ref a + ) + { + fixed (SOCKADDR_IN6* __dsl_a = a) + { + return (byte)IN6ADDR_ISUNSPECIFIED(__dsl_a); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/AppxPackaging/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/AppxPackaging/CLSID.Manual.cs new file mode 100644 index 0000000000..e8f013e9bc --- /dev/null +++ b/sources/Win32/Win32/Windows/um/AppxPackaging/CLSID.Manual.cs @@ -0,0 +1,147 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class CLSID +{ + public static ref readonly Guid CLSID_AppxFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x40, + 0xA1, + 0x42, + 0x58, + 0x9F, + 0xFF, + 0x66, + 0x41, + 0x8F, + 0x5C, + 0x62, + 0xF5, + 0xB7, + 0xB0, + 0xC7, + 0x81, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid CLSID_AppxBundleFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x46, + 0x04, + 0x8E, + 0x37, + 0x84, + 0x52, + 0xB7, + 0x43, + 0x88, + 0x77, + 0xE7, + 0xDB, + 0xDD, + 0x88, + 0x34, + 0x46, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid CLSID_AppxPackagingDiagnosticEventSinkManager + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x46, + 0x0A, + 0xCA, + 0x50, + 0x88, + 0x15, + 0x61, + 0x41, + 0x8E, + 0xD2, + 0xEF, + 0x9E, + 0x46, + 0x9C, + 0xED, + 0x5D, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid CLSID_AppxEncryptionFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xDD, + 0x4F, + 0x66, + 0xDC, + 0x68, + 0xD8, + 0xEE, + 0x46, + 0x87, + 0x80, + 0x8D, + 0x19, + 0x6C, + 0xB7, + 0x39, + 0xF7, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid CLSID_AppxPackageEditor + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xCA, + 0xF2, + 0x04, + 0xF0, + 0xBC, + 0xAE, + 0x0D, + 0x4B, + 0xBF, + 0x58, + 0xE5, + 0x16, + 0xD5, + 0xBC, + 0xC0, + 0xAB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/AppxPackaging/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/AppxPackaging/LIBID.Manual.cs new file mode 100644 index 0000000000..24f916e29b --- /dev/null +++ b/sources/Win32/Win32/Windows/um/AppxPackaging/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class LIBID +{ + public static ref readonly Guid LIBID_APPXPACKAGING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x40, + 0xA1, + 0x42, + 0x58, + 0x9F, + 0xFF, + 0x66, + 0x41, + 0x8F, + 0x5C, + 0x62, + 0xF5, + 0xB7, + 0xB0, + 0xC7, + 0x81, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/Audioclient/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/Audioclient/Windows.Manual.cs new file mode 100644 index 0000000000..b21831b575 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/Audioclient/Windows.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mmdeviceapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.Win32.FACILITY; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static HRESULT AUDCLNT_ERR(int n) => MAKE_HRESULT(SEVERITY_ERROR, FACILITY_AUDCLNT, n); + + public static HRESULT AUDCLNT_SUCCESS(int n) => + MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_AUDCLNT, n); +} diff --git a/sources/Win32/Win32/Windows/um/CommCtrl/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/CommCtrl/Windows.Manual.cs new file mode 100644 index 0000000000..3ad9567480 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/CommCtrl/Windows.Manual.cs @@ -0,0 +1,379 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName( + "#define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop)" + )] + public static uint IMAGELISTDRAWPARAMS_V3_SIZE + { + get + { + Unsafe.SkipInit(out IMAGELISTDRAWPARAMS value); + return (uint)((byte*)(&value.dwRop) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define HDITEMA_V1_SIZE CCSIZEOF_STRUCT(HDITEMA, lParam)")] + public static uint HDITEMA_V1_SIZE + { + get + { + Unsafe.SkipInit(out HDITEMA value); + return (uint)((byte*)(&value.lParam) - ((byte*)(&value))) + (uint)(sizeof(nint)); + } + } + + [NativeTypeName("#define HDITEMW_V1_SIZE CCSIZEOF_STRUCT(HDITEMW, lParam)")] + public static uint HDITEMW_V1_SIZE + { + get + { + Unsafe.SkipInit(out HDITEMW value); + return (uint)((byte*)(&value.lParam) - ((byte*)(&value))) + (uint)(sizeof(nint)); + } + } + + [NativeTypeName("#define HDITEM_V1_SIZE HDITEMW_V1_SIZE")] + public static uint HDITEM_V1_SIZE => HDITEMW_V1_SIZE; + + [NativeTypeName("#define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID)")] + public static uint REBARBANDINFOA_V3_SIZE + { + get + { + Unsafe.SkipInit(out REBARBANDINFOA value); + return (uint)((byte*)(&value.wID) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID)")] + public static uint REBARBANDINFOW_V3_SIZE + { + get + { + Unsafe.SkipInit(out REBARBANDINFOW value); + return (uint)((byte*)(&value.wID) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define REBARBANDINFOA_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, cxHeader)")] + public static uint REBARBANDINFOA_V6_SIZE + { + get + { + Unsafe.SkipInit(out REBARBANDINFOA value); + return (uint)((byte*)(&value.cxHeader) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define REBARBANDINFOW_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, cxHeader)")] + public static uint REBARBANDINFOW_V6_SIZE + { + get + { + Unsafe.SkipInit(out REBARBANDINFOW value); + return (uint)((byte*)(&value.cxHeader) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define REBARBANDINFO_V3_SIZE REBARBANDINFOW_V3_SIZE")] + public static uint REBARBANDINFO_V3_SIZE => REBARBANDINFOW_V3_SIZE; + + [NativeTypeName("#define REBARBANDINFO_V6_SIZE REBARBANDINFOW_V6_SIZE")] + public static uint REBARBANDINFO_V6_SIZE => REBARBANDINFOW_V6_SIZE; + + [NativeTypeName("#define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)")] + public static uint TTTOOLINFOA_V1_SIZE + { + get + { + Unsafe.SkipInit(out TTTOOLINFOA value); + return (uint)((byte*)(&value.lpszText) - ((byte*)(&value))) + (uint)(sizeof(char*)); + } + } + + [NativeTypeName("#define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)")] + public static uint TTTOOLINFOW_V1_SIZE + { + get + { + Unsafe.SkipInit(out TTTOOLINFOW value); + return (uint)((byte*)(&value.lpszText) - ((byte*)(&value))) + (uint)(sizeof(char*)); + } + } + + [NativeTypeName("#define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam)")] + public static uint TTTOOLINFOA_V2_SIZE + { + get + { + Unsafe.SkipInit(out TTTOOLINFOA value); + return (uint)((byte*)(&value.lParam) - ((byte*)(&value))) + (uint)(sizeof(nint)); + } + } + + [NativeTypeName("#define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lParam)")] + public static uint TTTOOLINFOW_V2_SIZE + { + get + { + Unsafe.SkipInit(out TTTOOLINFOW value); + return (uint)((byte*)(&value.lParam) - ((byte*)(&value))) + (uint)(sizeof(nint)); + } + } + + [NativeTypeName("#define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpReserved)")] + public static uint TTTOOLINFOA_V3_SIZE + { + get + { + Unsafe.SkipInit(out TTTOOLINFOA value); + return (uint)((byte*)(&value.lpReserved) - ((byte*)(&value))) + (uint)(sizeof(void*)); + } + } + + [NativeTypeName("#define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpReserved)")] + public static uint TTTOOLINFOW_V3_SIZE + { + get + { + Unsafe.SkipInit(out TTTOOLINFOW value); + return (uint)((byte*)(&value.lpReserved) - ((byte*)(&value))) + (uint)(sizeof(void*)); + } + } + + [NativeTypeName("#define TTTOOLINFO_V1_SIZE TTTOOLINFOW_V1_SIZE")] + public static uint TTTOOLINFO_V1_SIZE => TTTOOLINFOW_V1_SIZE; + + [NativeTypeName("#define NMTTDISPINFOA_V1_SIZE CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags)")] + public static uint NMTTDISPINFOA_V1_SIZE + { + get + { + Unsafe.SkipInit(out NMTTDISPINFOA value); + return (uint)((byte*)(&value.uFlags) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define NMTTDISPINFOW_V1_SIZE CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags)")] + public static uint NMTTDISPINFOW_V1_SIZE + { + get + { + Unsafe.SkipInit(out NMTTDISPINFOW value); + return (uint)((byte*)(&value.uFlags) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define NMTTDISPINFO_V1_SIZE NMTTDISPINFOW_V1_SIZE")] + public static uint NMTTDISPINFO_V1_SIZE => NMTTDISPINFOW_V1_SIZE; + + [NativeTypeName("#define LVITEMA_V1_SIZE CCSIZEOF_STRUCT(LVITEMA, lParam)")] + public static uint LVITEMA_V1_SIZE + { + get + { + Unsafe.SkipInit(out LVITEMA value); + return (uint)((byte*)(&value.lParam) - ((byte*)(&value))) + (uint)(sizeof(nint)); + } + } + + [NativeTypeName("#define LVITEMW_V1_SIZE CCSIZEOF_STRUCT(LVITEMW, lParam)")] + public static uint LVITEMW_V1_SIZE + { + get + { + Unsafe.SkipInit(out LVITEMW value); + return (uint)((byte*)(&value.lParam) - ((byte*)(&value))) + (uint)(sizeof(nint)); + } + } + + [NativeTypeName("#define LVITEMA_V5_SIZE CCSIZEOF_STRUCT(LVITEMA, puColumns)")] + public static uint LVITEMA_V5_SIZE + { + get + { + Unsafe.SkipInit(out LVITEMA value); + return (uint)((byte*)(&value.puColumns) - ((byte*)(&value))) + (uint)(sizeof(uint*)); + } + } + + [NativeTypeName("#define LVITEMW_V5_SIZE CCSIZEOF_STRUCT(LVITEMW, puColumns)")] + public static uint LVITEMW_V5_SIZE + { + get + { + Unsafe.SkipInit(out LVITEMW value); + return (uint)((byte*)(&value.puColumns) - ((byte*)(&value))) + (uint)(sizeof(uint*)); + } + } + + [NativeTypeName("#define LVITEM_V5_SIZE LVITEMW_V5_SIZE")] + public static uint LVITEM_V5_SIZE => LVITEMW_V5_SIZE; + + [NativeTypeName("#define LVITEM_V1_SIZE LVITEMW_V1_SIZE")] + public static uint LVITEM_V1_SIZE => LVITEMW_V1_SIZE; + + [NativeTypeName("#define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO, iItem)")] + public static uint LVHITTESTINFO_V1_SIZE + { + get + { + Unsafe.SkipInit(out LVHITTESTINFO value); + return (uint)((byte*)(&value.iItem) - ((byte*)(&value))) + sizeof(int); + } + } + + [NativeTypeName("#define LVCOLUMNA_V1_SIZE CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem)")] + public static uint LVCOLUMNA_V1_SIZE + { + get + { + Unsafe.SkipInit(out LVCOLUMNA value); + return (uint)((byte*)(&value.iSubItem) - ((byte*)(&value))) + sizeof(int); + } + } + + [NativeTypeName("#define LVCOLUMNW_V1_SIZE CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem)")] + public static uint LVCOLUMNW_V1_SIZE + { + get + { + Unsafe.SkipInit(out LVCOLUMNW value); + return (uint)((byte*)(&value.iSubItem) - ((byte*)(&value))) + sizeof(int); + } + } + + [NativeTypeName("#define LVCOLUMN_V1_SIZE LVCOLUMNW_V1_SIZE")] + public static uint LVCOLUMN_V1_SIZE => LVCOLUMNW_V1_SIZE; + + [NativeTypeName("#define LVGROUP_V5_SIZE CCSIZEOF_STRUCT(LVGROUP, uAlign)")] + public static uint LVGROUP_V5_SIZE + { + get + { + Unsafe.SkipInit(out LVGROUP value); + return (uint)((byte*)(&value.uAlign) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define LVTILEINFO_V5_SIZE CCSIZEOF_STRUCT(LVTILEINFO, puColumns)")] + public static uint LVTILEINFO_V5_SIZE + { + get + { + Unsafe.SkipInit(out LVTILEINFO value); + return (uint)((byte*)(&value.puColumns) - ((byte*)(&value))) + (uint)(sizeof(uint*)); + } + } + + [NativeTypeName("#define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLVCUSTOMDRAW, clrTextBk)")] + public static uint NMLVCUSTOMDRAW_V3_SIZE + { + get + { + Unsafe.SkipInit(out NMLVCUSTOMDRAW value); + return (uint)((byte*)(&value.clrTextBk) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define TVINSERTSTRUCTA_V1_SIZE CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item)")] + public static uint TVINSERTSTRUCTA_V1_SIZE + { + get + { + Unsafe.SkipInit(out TVINSERTSTRUCTA value); + return (uint)((byte*)(&value.Anonymous.item) - ((byte*)(&value))) + + (uint)(sizeof(TVITEMA)); + } + } + + [NativeTypeName("#define TVINSERTSTRUCTW_V1_SIZE CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item)")] + public static uint TVINSERTSTRUCTW_V1_SIZE + { + get + { + Unsafe.SkipInit(out TVINSERTSTRUCTW value); + return (uint)((byte*)(&value.Anonymous.item) - ((byte*)(&value))) + + (uint)(sizeof(TVITEMW)); + } + } + + [NativeTypeName("#define TVINSERTSTRUCT_V1_SIZE TVINSERTSTRUCTW_V1_SIZE")] + public static uint TVINSERTSTRUCT_V1_SIZE => TVINSERTSTRUCTW_V1_SIZE; + + [NativeTypeName("#define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)")] + public static uint NMTVCUSTOMDRAW_V3_SIZE + { + get + { + Unsafe.SkipInit(out NMTVCUSTOMDRAW value); + return (uint)((byte*)(&value.clrTextBk) - ((byte*)(&value))) + sizeof(uint); + } + } + + [NativeTypeName("#define MCHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(MCHITTESTINFO, st)")] + public static uint MCHITTESTINFO_V1_SIZE + { + get + { + Unsafe.SkipInit(out MCHITTESTINFO value); + return (uint)((byte*)(&value.st) - ((byte*)(&value))) + (uint)(sizeof(SYSTEMTIME)); + } + } + + [NativeTypeName("#define HBITMAP_CALLBACK ((HBITMAP)-1)")] + public static HBITMAP HBITMAP_CALLBACK => ((HBITMAP)(-1)); + + [NativeTypeName("#define HINST_COMMCTRL ((HINSTANCE)-1)")] + public static HINSTANCE HINST_COMMCTRL => ((HINSTANCE)(-1)); + + [NativeTypeName("#define TVI_ROOT ((HTREEITEM)(ULONG_PTR)-0x10000)")] + public static HTREEITEM TVI_ROOT => unchecked((HTREEITEM)((nuint)(-0x10000))); + + [NativeTypeName("#define TVI_FIRST ((HTREEITEM)(ULONG_PTR)-0x0FFFF)")] + public static HTREEITEM TVI_FIRST => unchecked((HTREEITEM)((nuint)(-0x0FFFF))); + + [NativeTypeName("#define TVI_LAST ((HTREEITEM)(ULONG_PTR)-0x0FFFE)")] + public static HTREEITEM TVI_LAST => unchecked((HTREEITEM)((nuint)(-0x0FFFE))); + + [NativeTypeName("#define TVI_SORT ((HTREEITEM)(ULONG_PTR)-0x0FFFD)")] + public static HTREEITEM TVI_SORT => unchecked((HTREEITEM)((nuint)(-0x0FFFD))); + + [NativeTypeName("#define BCCL_NOGLYPH (HIMAGELIST)(-1)")] + public static HIMAGELIST BCCL_NOGLYPH => (HIMAGELIST)(-1); + + public static BOOL FlatSB_GetScrollPropPtr(HWND param0, int propIndex, nint* param2) + { + if (sizeof(nint) == 4) + { + return FlatSB_GetScrollProp(param0, propIndex, (int*)param2); + } + else + { + [DllImport("comctl32", EntryPoint = "FlatSB_GetScrollPropPtr", ExactSpelling = true)] + static extern BOOL _FlatSB_GetScrollPropPtr(HWND param0, int propIndex, nint* param2); + return _FlatSB_GetScrollPropPtr(param0, propIndex, param2); + } + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool FlatSB_GetScrollPropPtr( + HWND param0, + int propIndex, + Ref param2 + ) + { + fixed (nint* __dsl_param2 = param2) + { + return (MaybeBool)(BOOL)FlatSB_GetScrollPropPtr(param0, propIndex, __dsl_param2); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/CommDlg/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/CommDlg/Windows.Manual.cs new file mode 100644 index 0000000000..e7ef408085 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/CommDlg/Windows.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/CommDlg.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName( + "#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)" + )] + public static nuint OPENFILENAME_SIZE_VERSION_400A + { + get + { + Unsafe.SkipInit(out OPENFILENAMEA tmp); + return unchecked( + (nuint)(((byte*)(&tmp)->lpTemplateName) - ((byte*)(&tmp))) + (uint)sizeof(char*) + ); + } + } + + [NativeTypeName( + "#define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)" + )] + public static nuint OPENFILENAME_SIZE_VERSION_400W + { + get + { + Unsafe.SkipInit(out OPENFILENAMEW tmp); + return unchecked( + (nuint)(((byte*)(&tmp)->lpTemplateName) - ((byte*)(&tmp))) + (uint)sizeof(char*) + ); + } + } + + [NativeTypeName("#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400W")] + public static nuint OPENFILENAME_SIZE_VERSION_400 => OPENFILENAME_SIZE_VERSION_400W; +} diff --git a/sources/Win32/Win32/Windows/um/DbgHelp/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/DbgHelp/Windows.Manual.cs new file mode 100644 index 0000000000..ffa5924794 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/DbgHelp/Windows.Manual.cs @@ -0,0 +1,187 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/DbgHelp.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName( + "#define NONGAMESPARTITIONS WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER" + )] + public const int NONGAMESPARTITIONS = 1; + + /// RESERVED. + + public const int UNDNAME_RESERVED1 = 0x0020; + + /// RESERVED. + + public const int UNDNAME_RESERVED2 = 0x0040; + + /// Input is just a type encoding; composes an abstract declarator. + + public const int UNDNAME_TYPE_ONLY = 0x2000; + + /// The real template parameters are available. + + public const int UNDNAME_HAVE_PARAMETERS = 0x4000; + + /// Suppresses enum/class/struct/union. + + public const int UNDNAME_NO_ECSU = 0x8000; + + /// Suppresses check for valid identifier characters. + + public const int UNDNAME_NO_IDENT_CHAR_CHECK = 0x10000; + + /// Does not include ptr64 in output. + + public const int UNDNAME_NO_PTR64 = 0x20000; + + [return: NativeTypeName("PIMAGE_NT_HEADERS")] + public static IMAGE_NT_HEADERS32* ImageNtHeader32([NativeTypeName("PVOID")] void* Base) + { + return (IMAGE_NT_HEADERS32*)ImageNtHeader(Base); + } + + [return: NativeTypeName("PIMAGE_NT_HEADERS")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ImageNtHeader32([NativeTypeName("PVOID")] Ref Base) + { + fixed (void* __dsl_Base = Base) + { + return (IMAGE_NT_HEADERS32*)ImageNtHeader32(__dsl_Base); + } + } + + [return: NativeTypeName("PIMAGE_NT_HEADERS")] + public static IMAGE_NT_HEADERS64* ImageNtHeader64([NativeTypeName("PVOID")] void* Base) + { + return (IMAGE_NT_HEADERS64*)ImageNtHeader(Base); + } + + [return: NativeTypeName("PIMAGE_NT_HEADERS")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ImageNtHeader64([NativeTypeName("PVOID")] Ref Base) + { + fixed (void* __dsl_Base = Base) + { + return (IMAGE_NT_HEADERS64*)ImageNtHeader64(__dsl_Base); + } + } + + [return: NativeTypeName("PIMAGE_SECTION_HEADER")] + public static IMAGE_SECTION_HEADER* ImageRvaToSection32( + [NativeTypeName("PIMAGE_NT_HEADERS")] IMAGE_NT_HEADERS32* NtHeaders, + [NativeTypeName("PVOID")] void* Base, + [NativeTypeName("ULONG")] uint Rva + ) + { + return ImageRvaToSection(NtHeaders, Base, Rva); + } + + [return: NativeTypeName("PIMAGE_SECTION_HEADER")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ImageRvaToSection32( + [NativeTypeName("PIMAGE_NT_HEADERS")] Ref NtHeaders, + [NativeTypeName("PVOID")] Ref Base, + [NativeTypeName("ULONG")] uint Rva + ) + { + fixed (void* __dsl_Base = Base) + fixed (IMAGE_NT_HEADERS32* __dsl_NtHeaders = NtHeaders) + { + return (IMAGE_SECTION_HEADER*)ImageRvaToSection32(__dsl_NtHeaders, __dsl_Base, Rva); + } + } + + [return: NativeTypeName("PIMAGE_SECTION_HEADER")] + public static IMAGE_SECTION_HEADER* ImageRvaToSection64( + [NativeTypeName("PIMAGE_NT_HEADERS")] IMAGE_NT_HEADERS64* NtHeaders, + [NativeTypeName("PVOID")] void* Base, + [NativeTypeName("ULONG")] uint Rva + ) + { + return ImageRvaToSection(NtHeaders, Base, Rva); + } + + [return: NativeTypeName("PIMAGE_SECTION_HEADER")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ImageRvaToSection64( + [NativeTypeName("PIMAGE_NT_HEADERS")] Ref NtHeaders, + [NativeTypeName("PVOID")] Ref Base, + [NativeTypeName("ULONG")] uint Rva + ) + { + fixed (void* __dsl_Base = Base) + fixed (IMAGE_NT_HEADERS64* __dsl_NtHeaders = NtHeaders) + { + return (IMAGE_SECTION_HEADER*)ImageRvaToSection64(__dsl_NtHeaders, __dsl_Base, Rva); + } + } + + [return: NativeTypeName("PVOID")] + public static void* ImageRvaToVa32( + [NativeTypeName("PIMAGE_NT_HEADERS")] IMAGE_NT_HEADERS32* NtHeaders, + [NativeTypeName("PVOID")] void* Base, + [NativeTypeName("ULONG")] uint Rva, + [NativeTypeName("PIMAGE_SECTION_HEADER *")] IMAGE_SECTION_HEADER** LastRvaSection + ) + { + return ImageRvaToVa(NtHeaders, Base, Rva, LastRvaSection); + } + + [return: NativeTypeName("PVOID")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ImageRvaToVa32( + [NativeTypeName("PIMAGE_NT_HEADERS")] Ref NtHeaders, + [NativeTypeName("PVOID")] Ref Base, + [NativeTypeName("ULONG")] uint Rva, + [NativeTypeName("PIMAGE_SECTION_HEADER *")] Ref2D LastRvaSection + ) + { + fixed (IMAGE_SECTION_HEADER** __dsl_LastRvaSection = LastRvaSection) + fixed (void* __dsl_Base = Base) + fixed (IMAGE_NT_HEADERS32* __dsl_NtHeaders = NtHeaders) + { + return (void*)ImageRvaToVa32(__dsl_NtHeaders, __dsl_Base, Rva, __dsl_LastRvaSection); + } + } + + [return: NativeTypeName("PVOID")] + public static void* ImageRvaToVa64( + [NativeTypeName("PIMAGE_NT_HEADERS")] IMAGE_NT_HEADERS64* NtHeaders, + [NativeTypeName("PVOID")] void* Base, + [NativeTypeName("ULONG")] uint Rva, + [NativeTypeName("PIMAGE_SECTION_HEADER *")] IMAGE_SECTION_HEADER** LastRvaSection + ) + { + return ImageRvaToVa(NtHeaders, Base, Rva, LastRvaSection); + } + + [return: NativeTypeName("PVOID")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ImageRvaToVa64( + [NativeTypeName("PIMAGE_NT_HEADERS")] Ref NtHeaders, + [NativeTypeName("PVOID")] Ref Base, + [NativeTypeName("ULONG")] uint Rva, + [NativeTypeName("PIMAGE_SECTION_HEADER *")] Ref2D LastRvaSection + ) + { + fixed (IMAGE_SECTION_HEADER** __dsl_LastRvaSection = LastRvaSection) + fixed (void* __dsl_Base = Base) + fixed (IMAGE_NT_HEADERS64* __dsl_NtHeaders = NtHeaders) + { + return (void*)ImageRvaToVa64(__dsl_NtHeaders, __dsl_Base, Rva, __dsl_LastRvaSection); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/DispEx/IDispatchEx.Manual.cs b/sources/Win32/Win32/Windows/um/DispEx/IDispatchEx.Manual.cs new file mode 100644 index 0000000000..415d4e70ac --- /dev/null +++ b/sources/Win32/Win32/Windows/um/DispEx/IDispatchEx.Manual.cs @@ -0,0 +1,1138 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/DispEx.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Win32.IID; + +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +/// +[Guid("A6EF9860-C720-11D0-9337-00A0C90DCAA9")] +[NativeTypeName("struct IDispatchEx : IDispatch")] +[NativeInheritance("IDispatch")] +public unsafe partial struct IDispatchEx : IDispatch.Interface, IComInterface, IDisposable +{ + public Native* lpVtbl; + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDispatchEx)); + + public interface Interface : IDispatch.Interface + { + [VtblIndex(10)] + HRESULT DeleteMemberByDispID([NativeTypeName("DISPID")] int id); + + [VtblIndex(9)] + HRESULT DeleteMemberByName( + [NativeTypeName("BSTR")] ushort* bstrName, + [NativeTypeName("DWORD")] uint grfdex + ); + + [VtblIndex(9)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT DeleteMemberByName( + [NativeTypeName("BSTR")] Ref bstrName, + [NativeTypeName("DWORD")] uint grfdex + ); + + [VtblIndex(7)] + HRESULT GetDispID( + [NativeTypeName("BSTR")] ushort* bstrName, + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID *")] int* pid + ); + + [VtblIndex(7)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetDispID( + [NativeTypeName("BSTR")] Ref bstrName, + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID *")] Ref pid + ); + + [VtblIndex(12)] + HRESULT GetMemberName( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("BSTR *")] ushort** pbstrName + ); + + [VtblIndex(12)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetMemberName( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("BSTR *")] Ref2D pbstrName + ); + + [VtblIndex(11)] + HRESULT GetMemberProperties( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DWORD")] uint grfdexFetch, + [NativeTypeName("DWORD *")] uint* pgrfdex + ); + + [VtblIndex(11)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetMemberProperties( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DWORD")] uint grfdexFetch, + [NativeTypeName("DWORD *")] Ref pgrfdex + ); + + [VtblIndex(14)] + HRESULT GetNameSpaceParent(IUnknown* ppunk); + + [VtblIndex(14)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetNameSpaceParent(Ref ppunk); + + [VtblIndex(13)] + HRESULT GetNextDispID( + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DISPID *")] int* pid + ); + + [VtblIndex(13)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT GetNextDispID( + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DISPID *")] Ref pid + ); + + [VtblIndex(8)] + HRESULT InvokeEx( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + DISPPARAMS* pdp, + VARIANT* pvarRes, + EXCEPINFO* pei, + IServiceProvider pspCaller + ); + + [VtblIndex(8)] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + HRESULT InvokeEx( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + Ref pdp, + Ref pvarRes, + Ref pei, + IServiceProvider pspCaller + ); + } + + [Guid("A6EF9860-C720-11D0-9337-00A0C90DCAA9")] + [NativeTypeName("struct IDispatchEx : IDispatch")] + [NativeInheritance("IDispatch")] + public unsafe partial struct Native : IDispatch.Interface, INativeGuid + { + static Guid* INativeGuid.NativeGuid => + (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDispatchEx)); + + public void** lpVtbl; + + public partial struct Vtbl + { + [NativeTypeName("HRESULT (const IID &, void **) __attribute__((stdcall))")] + public delegate* unmanaged QueryInterface; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged AddRef; + + [NativeTypeName("ULONG () __attribute__((stdcall))")] + public delegate* unmanaged Release; + + [NativeTypeName("HRESULT (UINT *) __attribute__((stdcall))")] + public delegate* unmanaged GetTypeInfoCount; + + [NativeTypeName("HRESULT (UINT, LCID, ITypeInfo **) __attribute__((stdcall))")] + public delegate* unmanaged< + IDispatchEx.Native*, + uint, + uint, + ITypeInfo.Native**, + int> GetTypeInfo; + + [NativeTypeName( + "HRESULT (const IID &, LPOLESTR *, UINT, LCID, DISPID *) __attribute__((stdcall))" + )] + public delegate* unmanaged< + IDispatchEx.Native*, + Guid*, + ushort**, + uint, + uint, + int*, + int> GetIDsOfNames; + + [NativeTypeName( + "HRESULT (DISPID, const IID &, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *) __attribute__((stdcall))" + )] + public delegate* unmanaged< + IDispatchEx.Native*, + int, + Guid*, + uint, + ushort, + DISPPARAMS*, + VARIANT*, + EXCEPINFO*, + uint*, + int> Invoke; + + [NativeTypeName("HRESULT (BSTR, DWORD, DISPID *) __attribute__((stdcall))")] + public delegate* unmanaged GetDispID; + + [NativeTypeName( + "HRESULT (DISPID, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, IServiceProvider *) __attribute__((stdcall))" + )] + public delegate* unmanaged< + IDispatchEx.Native*, + int, + uint, + ushort, + DISPPARAMS*, + VARIANT*, + EXCEPINFO*, + IServiceProvider.Native*, + int> InvokeEx; + + [NativeTypeName("HRESULT (BSTR, DWORD) __attribute__((stdcall))")] + public delegate* unmanaged DeleteMemberByName; + + [NativeTypeName("HRESULT (DISPID) __attribute__((stdcall))")] + public delegate* unmanaged DeleteMemberByDispID; + + [NativeTypeName("HRESULT (DISPID, DWORD, DWORD *) __attribute__((stdcall))")] + public delegate* unmanaged< + IDispatchEx.Native*, + int, + uint, + uint*, + int> GetMemberProperties; + + [NativeTypeName("HRESULT (DISPID, BSTR *) __attribute__((stdcall))")] + public delegate* unmanaged GetMemberName; + + [NativeTypeName("HRESULT (DWORD, DISPID, DISPID *) __attribute__((stdcall))")] + public delegate* unmanaged GetNextDispID; + + [NativeTypeName("HRESULT (IUnknown **) __attribute__((stdcall))")] + public delegate* unmanaged< + IDispatchEx.Native*, + IUnknown.Native**, + int> GetNameSpaceParent; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged)(lpVtbl[1]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this) + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HRESULT DeleteMemberByDispID([NativeTypeName("DISPID")] int id) + { + return ((delegate* unmanaged)(lpVtbl[10]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + id + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HRESULT DeleteMemberByName( + [NativeTypeName("BSTR")] ushort* bstrName, + [NativeTypeName("DWORD")] uint grfdex + ) + { + return ((delegate* unmanaged)(lpVtbl[9]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + bstrName, + grfdex + ); + } + + [VtblIndex(9)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT DeleteMemberByName( + [NativeTypeName("BSTR")] Ref bstrName, + [NativeTypeName("DWORD")] uint grfdex + ) + { + fixed (ushort* __dsl_bstrName = bstrName) + { + return (HRESULT)DeleteMemberByName(__dsl_bstrName, grfdex); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HRESULT GetDispID( + [NativeTypeName("BSTR")] ushort* bstrName, + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID *")] int* pid + ) + { + return ( + (delegate* unmanaged)(lpVtbl[7]) + )((IDispatchEx.Native*)Unsafe.AsPointer(ref this), bstrName, grfdex, pid); + } + + [VtblIndex(7)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetDispID( + [NativeTypeName("BSTR")] Ref bstrName, + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID *")] Ref pid + ) + { + fixed (int* __dsl_pid = pid) + fixed (ushort* __dsl_bstrName = bstrName) + { + return (HRESULT)GetDispID(__dsl_bstrName, grfdex, __dsl_pid); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT GetIDsOfNames( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("LPOLESTR *")] ushort** rgszNames, + uint cNames, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("DISPID *")] int* rgDispId + ) + { + return ( + (delegate* unmanaged)( + lpVtbl[5] + ) + )( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + riid, + rgszNames, + cNames, + lcid, + rgDispId + ); + } + + [VtblIndex(5)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetIDsOfNames( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("LPOLESTR *")] Ref2D rgszNames, + uint cNames, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("DISPID *")] Ref rgDispId + ) + { + fixed (int* __dsl_rgDispId = rgDispId) + fixed (ushort** __dsl_rgszNames = rgszNames) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)GetIDsOfNames( + __dsl_riid, + __dsl_rgszNames, + cNames, + lcid, + __dsl_rgDispId + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HRESULT GetMemberName( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("BSTR *")] ushort** pbstrName + ) + { + return ((delegate* unmanaged)(lpVtbl[12]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + id, + pbstrName + ); + } + + [VtblIndex(12)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetMemberName( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("BSTR *")] Ref2D pbstrName + ) + { + fixed (ushort** __dsl_pbstrName = pbstrName) + { + return (HRESULT)GetMemberName(id, __dsl_pbstrName); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HRESULT GetMemberProperties( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DWORD")] uint grfdexFetch, + [NativeTypeName("DWORD *")] uint* pgrfdex + ) + { + return ((delegate* unmanaged)(lpVtbl[11]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + id, + grfdexFetch, + pgrfdex + ); + } + + [VtblIndex(11)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetMemberProperties( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DWORD")] uint grfdexFetch, + [NativeTypeName("DWORD *")] Ref pgrfdex + ) + { + fixed (uint* __dsl_pgrfdex = pgrfdex) + { + return (HRESULT)GetMemberProperties(id, grfdexFetch, __dsl_pgrfdex); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HRESULT GetNameSpaceParent(IUnknown* ppunk) + { + return ((delegate* unmanaged)(lpVtbl[14]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + &ppunk->lpVtbl + ); + } + + [VtblIndex(14)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetNameSpaceParent(Ref ppunk) + { + fixed (IUnknown* __dsl_ppunk = ppunk) + { + return (HRESULT)GetNameSpaceParent(__dsl_ppunk); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HRESULT GetNextDispID( + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DISPID *")] int* pid + ) + { + return ((delegate* unmanaged)(lpVtbl[13]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + grfdex, + id, + pid + ); + } + + [VtblIndex(13)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetNextDispID( + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DISPID *")] Ref pid + ) + { + fixed (int* __dsl_pid = pid) + { + return (HRESULT)GetNextDispID(grfdex, id, __dsl_pid); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT GetTypeInfo( + uint iTInfo, + [NativeTypeName("LCID")] uint lcid, + ITypeInfo* ppTInfo + ) + { + return ( + (delegate* unmanaged)( + lpVtbl[4] + ) + )((IDispatchEx.Native*)Unsafe.AsPointer(ref this), iTInfo, lcid, &ppTInfo->lpVtbl); + } + + [VtblIndex(4)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetTypeInfo( + uint iTInfo, + [NativeTypeName("LCID")] uint lcid, + Ref ppTInfo + ) + { + fixed (ITypeInfo* __dsl_ppTInfo = ppTInfo) + { + return (HRESULT)GetTypeInfo(iTInfo, lcid, __dsl_ppTInfo); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT GetTypeInfoCount(uint* pctinfo) + { + return ((delegate* unmanaged)(lpVtbl[3]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + pctinfo + ); + } + + [VtblIndex(3)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT GetTypeInfoCount(Ref pctinfo) + { + fixed (uint* __dsl_pctinfo = pctinfo) + { + return (HRESULT)GetTypeInfoCount(__dsl_pctinfo); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HRESULT Invoke( + [NativeTypeName("DISPID")] int dispIdMember, + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + DISPPARAMS* pDispParams, + VARIANT* pVarResult, + EXCEPINFO* pExcepInfo, + uint* puArgErr + ) + { + return ( + (delegate* unmanaged< + IDispatchEx.Native*, + int, + Guid*, + uint, + ushort, + DISPPARAMS*, + VARIANT*, + EXCEPINFO*, + uint*, + int>)(lpVtbl[6]) + )( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + dispIdMember, + riid, + lcid, + wFlags, + pDispParams, + pVarResult, + pExcepInfo, + puArgErr + ); + } + + [VtblIndex(6)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT Invoke( + [NativeTypeName("DISPID")] int dispIdMember, + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + Ref pDispParams, + Ref pVarResult, + Ref pExcepInfo, + Ref puArgErr + ) + { + fixed (uint* __dsl_puArgErr = puArgErr) + fixed (EXCEPINFO* __dsl_pExcepInfo = pExcepInfo) + fixed (VARIANT* __dsl_pVarResult = pVarResult) + fixed (DISPPARAMS* __dsl_pDispParams = pDispParams) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)Invoke( + dispIdMember, + __dsl_riid, + lcid, + wFlags, + __dsl_pDispParams, + __dsl_pVarResult, + __dsl_pExcepInfo, + __dsl_puArgErr + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HRESULT InvokeEx( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + DISPPARAMS* pdp, + VARIANT* pvarRes, + EXCEPINFO* pei, + IServiceProvider pspCaller + ) + { + return ( + (delegate* unmanaged< + IDispatchEx.Native*, + int, + uint, + ushort, + DISPPARAMS*, + VARIANT*, + EXCEPINFO*, + IServiceProvider.Native*, + int>)(lpVtbl[8]) + )( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + id, + lcid, + wFlags, + pdp, + pvarRes, + pei, + pspCaller.lpVtbl + ); + } + + [VtblIndex(8)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT InvokeEx( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + Ref pdp, + Ref pvarRes, + Ref pei, + IServiceProvider pspCaller + ) + { + fixed (EXCEPINFO* __dsl_pei = pei) + fixed (VARIANT* __dsl_pvarRes = pvarRes) + fixed (DISPPARAMS* __dsl_pdp = pdp) + { + return (HRESULT)InvokeEx( + id, + lcid, + wFlags, + __dsl_pdp, + __dsl_pvarRes, + __dsl_pei, + pspCaller + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged)(lpVtbl[0]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this), + riid, + ppvObject + ); + } + + [VtblIndex(0)] + [Transformed] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HRESULT QueryInterface( + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppvObject + ) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged)(lpVtbl[2]))( + (IDispatchEx.Native*)Unsafe.AsPointer(ref this) + ); + } + } + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IDispatchEx(Ptr2D* vtbl) => lpVtbl = (IDispatchEx.Native*)vtbl; + + /// Initializes a new instance of the struct with the specified virtual table pointer. + /// The pointer to virtual table. + public IDispatchEx(IDispatchEx.Native* vtbl) => lpVtbl = vtbl; + + /// casts to . + /// The instance to be converted + public static implicit operator IDispatchEx(IDispatchEx.Native* value) => + new IDispatchEx(value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator IDispatchEx.Native*(IDispatchEx value) => value.lpVtbl; + + /// casts to . + /// The instance to be converted + public static explicit operator IDispatchEx(Ptr2D* value) => new IDispatchEx(value); + + /// casts to pointer. + /// The instance to be converted + public static implicit operator Ptr2D*(IDispatchEx value) => (Ptr2D*)value.lpVtbl; + + /// casts void*** pointer to . + /// The void*** instance to be converted + public static explicit operator IDispatchEx(void*** value) => new IDispatchEx((Native*)value); + + /// casts to void*** pointer + /// The instance to be converted + public static implicit operator void***(IDispatchEx value) => (void***)value.lpVtbl; + + /// casts nuint to . + /// The nuint instance to be converted + public static explicit operator IDispatchEx(nuint value) => + new IDispatchEx((Native*)value.ToPointer()); + + /// casts to nuint + /// The instance to be converted + public static implicit operator nuint(IDispatchEx value) => (nuint)value.lpVtbl; + + /// Downcasts to . + /// The instance to be converted + public static explicit operator IDispatchEx(Silk.NET.Core.IUnknown value) => + new IDispatchEx((IDispatchEx.Native*)value.lpVtbl); + + /// Upcasts to . + /// The instance to be converted + public static implicit operator Silk.NET.Core.IUnknown(IDispatchEx value) => + new Silk.NET.Core.IUnknown((Silk.NET.Core.IUnknown.Native*)value.lpVtbl); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() => lpVtbl->AddRef(); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HRESULT DeleteMemberByDispID([NativeTypeName("DISPID")] int id) => + lpVtbl->DeleteMemberByDispID(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HRESULT DeleteMemberByName( + [NativeTypeName("BSTR")] ushort* bstrName, + [NativeTypeName("DWORD")] uint grfdex + ) => lpVtbl->DeleteMemberByName(bstrName, grfdex); + + [VtblIndex(9)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT DeleteMemberByName( + [NativeTypeName("BSTR")] Ref bstrName, + [NativeTypeName("DWORD")] uint grfdex + ) + { + fixed (ushort* __dsl_bstrName = bstrName) + { + return (HRESULT)DeleteMemberByName(__dsl_bstrName, grfdex); + } + } + + public void Dispose() => Release(); + + /// + public readonly Ptr2D GetAddressOf() + where TNativeInterface : unmanaged => + (TNativeInterface**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + /// + public readonly Ptr2D GetAddressOf() => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HRESULT GetDispID( + [NativeTypeName("BSTR")] ushort* bstrName, + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID *")] int* pid + ) => lpVtbl->GetDispID(bstrName, grfdex, pid); + + [VtblIndex(7)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetDispID( + [NativeTypeName("BSTR")] Ref bstrName, + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID *")] Ref pid + ) + { + fixed (int* __dsl_pid = pid) + fixed (ushort* __dsl_bstrName = bstrName) + { + return (HRESULT)GetDispID(__dsl_bstrName, grfdex, __dsl_pid); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT GetIDsOfNames( + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("LPOLESTR *")] ushort** rgszNames, + uint cNames, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("DISPID *")] int* rgDispId + ) => lpVtbl->GetIDsOfNames(riid, rgszNames, cNames, lcid, rgDispId); + + [VtblIndex(5)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetIDsOfNames( + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("LPOLESTR *")] Ref2D rgszNames, + uint cNames, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("DISPID *")] Ref rgDispId + ) + { + fixed (int* __dsl_rgDispId = rgDispId) + fixed (ushort** __dsl_rgszNames = rgszNames) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)GetIDsOfNames( + __dsl_riid, + __dsl_rgszNames, + cNames, + lcid, + __dsl_rgDispId + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HRESULT GetMemberName( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("BSTR *")] ushort** pbstrName + ) => lpVtbl->GetMemberName(id, pbstrName); + + [VtblIndex(12)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetMemberName( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("BSTR *")] Ref2D pbstrName + ) + { + fixed (ushort** __dsl_pbstrName = pbstrName) + { + return (HRESULT)GetMemberName(id, __dsl_pbstrName); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HRESULT GetMemberProperties( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DWORD")] uint grfdexFetch, + [NativeTypeName("DWORD *")] uint* pgrfdex + ) => lpVtbl->GetMemberProperties(id, grfdexFetch, pgrfdex); + + [VtblIndex(11)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetMemberProperties( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DWORD")] uint grfdexFetch, + [NativeTypeName("DWORD *")] Ref pgrfdex + ) + { + fixed (uint* __dsl_pgrfdex = pgrfdex) + { + return (HRESULT)GetMemberProperties(id, grfdexFetch, __dsl_pgrfdex); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HRESULT GetNameSpaceParent(IUnknown* ppunk) => lpVtbl->GetNameSpaceParent(ppunk); + + [VtblIndex(14)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetNameSpaceParent(Ref ppunk) + { + fixed (IUnknown* __dsl_ppunk = ppunk) + { + return (HRESULT)GetNameSpaceParent(__dsl_ppunk); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HRESULT GetNextDispID( + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DISPID *")] int* pid + ) => lpVtbl->GetNextDispID(grfdex, id, pid); + + [VtblIndex(13)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetNextDispID( + [NativeTypeName("DWORD")] uint grfdex, + [NativeTypeName("DISPID")] int id, + [NativeTypeName("DISPID *")] Ref pid + ) + { + fixed (int* __dsl_pid = pid) + { + return (HRESULT)GetNextDispID(grfdex, id, __dsl_pid); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HRESULT GetTypeInfo( + uint iTInfo, + [NativeTypeName("LCID")] uint lcid, + ITypeInfo* ppTInfo + ) => lpVtbl->GetTypeInfo(iTInfo, lcid, ppTInfo); + + [VtblIndex(4)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTypeInfo( + uint iTInfo, + [NativeTypeName("LCID")] uint lcid, + Ref ppTInfo + ) + { + fixed (ITypeInfo* __dsl_ppTInfo = ppTInfo) + { + return (HRESULT)GetTypeInfo(iTInfo, lcid, __dsl_ppTInfo); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HRESULT GetTypeInfoCount(uint* pctinfo) => lpVtbl->GetTypeInfoCount(pctinfo); + + [VtblIndex(3)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT GetTypeInfoCount(Ref pctinfo) + { + fixed (uint* __dsl_pctinfo = pctinfo) + { + return (HRESULT)GetTypeInfoCount(__dsl_pctinfo); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HRESULT Invoke( + [NativeTypeName("DISPID")] int dispIdMember, + [NativeTypeName("const IID &")] Guid* riid, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + DISPPARAMS* pDispParams, + VARIANT* pVarResult, + EXCEPINFO* pExcepInfo, + uint* puArgErr + ) => + lpVtbl->Invoke( + dispIdMember, + riid, + lcid, + wFlags, + pDispParams, + pVarResult, + pExcepInfo, + puArgErr + ); + + [VtblIndex(6)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT Invoke( + [NativeTypeName("DISPID")] int dispIdMember, + [NativeTypeName("const IID &")] Ref riid, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + Ref pDispParams, + Ref pVarResult, + Ref pExcepInfo, + Ref puArgErr + ) + { + fixed (uint* __dsl_puArgErr = puArgErr) + fixed (EXCEPINFO* __dsl_pExcepInfo = pExcepInfo) + fixed (VARIANT* __dsl_pVarResult = pVarResult) + fixed (DISPPARAMS* __dsl_pDispParams = pDispParams) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)Invoke( + dispIdMember, + __dsl_riid, + lcid, + wFlags, + __dsl_pDispParams, + __dsl_pVarResult, + __dsl_pExcepInfo, + __dsl_puArgErr + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HRESULT InvokeEx( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + DISPPARAMS* pdp, + VARIANT* pvarRes, + EXCEPINFO* pei, + IServiceProvider pspCaller + ) => lpVtbl->InvokeEx(id, lcid, wFlags, pdp, pvarRes, pei, pspCaller); + + [VtblIndex(8)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT InvokeEx( + [NativeTypeName("DISPID")] int id, + [NativeTypeName("LCID")] uint lcid, + [NativeTypeName("WORD")] ushort wFlags, + Ref pdp, + Ref pvarRes, + Ref pei, + IServiceProvider pspCaller + ) + { + fixed (EXCEPINFO* __dsl_pei = pei) + fixed (VARIANT* __dsl_pvarRes = pvarRes) + fixed (DISPPARAMS* __dsl_pdp = pdp) + { + return (HRESULT)InvokeEx( + id, + lcid, + wFlags, + __dsl_pdp, + __dsl_pvarRes, + __dsl_pei, + pspCaller + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) => + lpVtbl->QueryInterface(riid, ppvObject); + + [VtblIndex(0)] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Ref riid, Ref2D ppvObject) + { + fixed (void** __dsl_ppvObject = ppvObject) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)QueryInterface(__dsl_riid, __dsl_ppvObject); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface(out TCom ppvObject) + where TCom : unmanaged, IComInterface + { + ppvObject = default; + return QueryInterface(TCom.NativeGuid, ppvObject.GetAddressOf()); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() => lpVtbl->Release(); +} diff --git a/sources/Win32/Win32/Windows/um/DispEx/IID.Manual.cs b/sources/Win32/Win32/Windows/um/DispEx/IID.Manual.cs new file mode 100644 index 0000000000..acac744264 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/DispEx/IID.Manual.cs @@ -0,0 +1,42 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/DispEx.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class IID +{ + [NativeTypeName("const GUID")] + public static ref readonly Guid IID_IDispatchEx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x60, + 0x98, + 0xEF, + 0xA6, + 0x20, + 0xC7, + 0xD0, + 0x11, + 0x93, + 0x37, + 0x00, + 0xA0, + 0xC9, + 0xD, + 0xCA, + 0xA9, + ]; + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/DocumentTarget/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/DocumentTarget/LIBID.Manual.cs new file mode 100644 index 0000000000..a3282b8970 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/DocumentTarget/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/documenttarget.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class LIBID +{ + public static ref readonly Guid LIBID_PrintDocumentTargetLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xF7, + 0x76, + 0x0D, + 0x41, + 0xB5, + 0x8B, + 0x7D, + 0x4A, + 0x9D, + 0x37, + 0x9C, + 0x71, + 0xB1, + 0xB1, + 0x4D, + 0x14, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/HLink/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/HLink/Windows.Manual.cs new file mode 100644 index 0000000000..3a39fd4cc4 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/HLink/Windows.Manual.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/HLink.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public const int HLTB_DOCKEDLEFT = 0; + public const int HLTB_DOCKEDTOP = 1; + public const int HLTB_DOCKEDRIGHT = 2; + public const int HLTB_DOCKEDBOTTOM = 3; + public const int HLTB_FLOATING = 4; + public const int HLBWIF_HASFRAMEWNDINFO = 0x1; + public const int HLBWIF_HASDOCWNDINFO = 0x2; + public const int HLBWIF_FRAMEWNDMAXIMIZED = 0x4; + public const int HLBWIF_DOCWNDMAXIMIZED = 0x8; + public const int HLBWIF_HASWEBTOOLBARINFO = 0x10; + public const int HLBWIF_WEBTOOLBARHIDDEN = 0x20; + public const int HLID_INVALID = 0; + public const int HLID_PREVIOUS = unchecked((int)(0xffffffff)); + public const int HLID_NEXT = unchecked((int)(0xfffffffe)); + public const int HLID_CURRENT = unchecked((int)(0xfffffffd)); + public const int HLID_STACKBOTTOM = unchecked((int)(0xfffffffc)); + public const int HLID_STACKTOP = unchecked((int)(0xfffffffb)); + public const int HLQF_ISVALID = 0x1; + public const int HLQF_ISCURRENT = 0x2; +} diff --git a/sources/Win32/Win32/Windows/um/PropIdlBase/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/PropIdlBase/Windows.Manual.cs new file mode 100644 index 0000000000..c253360283 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/PropIdlBase/Windows.Manual.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/PropIdlBase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static ushort PROPSETHDR_OSVER_KIND(nuint dwOSVer) => HIWORD(dwOSVer); + + public static byte PROPSETHDR_OSVER_MAJOR(nuint dwOSVer) => LOBYTE(LOWORD(dwOSVer)); + + public static byte PROPSETHDR_OSVER_MINOR(nuint dwOSVer) => HIBYTE(LOWORD(dwOSVer)); +} diff --git a/sources/Win32/Win32/Windows/um/ShObjIdl/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/ShObjIdl/CLSID.Manual.cs new file mode 100644 index 0000000000..538488f361 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/ShObjIdl/CLSID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CLSID +{ + public static ref readonly Guid CLSID_PublishingWizard + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x3C, + 0x16, + 0x33, + 0x6B, + 0xA5, + 0x76, + 0x6C, + 0x4B, + 0xBF, + 0x21, + 0x45, + 0xDE, + 0x9C, + 0xD5, + 0x03, + 0xA1, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/ShObjIdl/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/ShObjIdl/Windows.Manual.cs new file mode 100644 index 0000000000..9c751fc4d0 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/ShObjIdl/Windows.Manual.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.SIGDN; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static HRESULT SHResolveFolderPathInLibrary( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] char* pszFolderPath, + [NativeTypeName("DWORD")] uint dwTimeout, + [NativeTypeName("PWSTR *")] char** ppszResolvedPath + ) + { + *ppszResolvedPath = null; + ITEMIDLIST* pidlFolder = SHSimpleIDListFromPath(pszFolderPath); + HRESULT hr = unchecked((pidlFolder) != null ? ((int)(0)) : ((int)(0x80070057))); + if (((unchecked((int)(hr))) >= 0)) + { + IShellItem psiFolder; + hr = SHCreateItemFromIDList( + pidlFolder, + __uuidof(), + (void**)(&psiFolder) + ); + if (((unchecked((int)(hr))) >= 0)) + { + IShellItem psiResolved; + hr = plib.ResolveFolder( + psiFolder, + dwTimeout, + __uuidof(), + (void**)(&psiResolved) + ); + if (((unchecked((int)(hr))) >= 0)) + { + unchecked(hr) = psiResolved.GetDisplayName( + SIGDN_DESKTOPABSOLUTEPARSING, + ppszResolvedPath + ); + _ = psiResolved.Release(); + } + _ = psiFolder.Release(); + } + CoTaskMemFree(pidlFolder); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHResolveFolderPathInLibrary( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] Ref pszFolderPath, + [NativeTypeName("DWORD")] uint dwTimeout, + [NativeTypeName("PWSTR *")] Ref2D ppszResolvedPath + ) + { + fixed (char** __dsl_ppszResolvedPath = ppszResolvedPath) + fixed (char* __dsl_pszFolderPath = pszFolderPath) + { + return (HRESULT)SHResolveFolderPathInLibrary( + plib, + __dsl_pszFolderPath, + dwTimeout, + __dsl_ppszResolvedPath + ); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/ShObjIdl_core/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/ShObjIdl_core/CLSID.Manual.cs new file mode 100644 index 0000000000..f2fc89ad78 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/ShObjIdl_core/CLSID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CLSID +{ + public static ref readonly Guid CLSID_ShellLibrary + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x1D, + 0x21, + 0xB3, + 0xD9, + 0x7F, + 0xE5, + 0x26, + 0x44, + 0xAA, + 0xEF, + 0x30, + 0xA8, + 0x06, + 0xAD, + 0xD3, + 0x97, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/ShObjIdl_core/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/ShObjIdl_core/Windows.Manual.cs new file mode 100644 index 0000000000..cbc4821a1c --- /dev/null +++ b/sources/Win32/Win32/Windows/um/ShObjIdl_core/Windows.Manual.cs @@ -0,0 +1,319 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.CLSCTX; +using static Silk.NET.Win32.SIGDN; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static void SetContractDelegateWindow(HWND hwndSource, HWND hwndDelegate) + { + fixed (char* lpString = "ContractDelegate") + { + if (hwndDelegate != (nint)(0)) + { + _ = SetPropW(hwndSource, (ushort*)lpString, (HANDLE)(hwndDelegate)); + } + else + { + _ = RemovePropW(hwndSource, (ushort*)lpString); + } + } + } + + public static HRESULT SHAddFolderPathToLibrary( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] ushort* pszFolderPath + ) + { + IShellItem psiFolder; + HRESULT hr = SHCreateItemFromParsingName( + pszFolderPath, + null, + __uuidof(), + (void**)(&psiFolder) + ); + if ((((int)(hr)) >= 0)) + { + hr = plib.AddFolder(psiFolder); + _ = psiFolder.Release(); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHAddFolderPathToLibrary( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] Ref pszFolderPath + ) + { + fixed (ushort* __dsl_pszFolderPath = pszFolderPath) + { + return (HRESULT)SHAddFolderPathToLibrary(plib, __dsl_pszFolderPath); + } + } + + public static HRESULT SHCreateLibrary([NativeTypeName("const IID &")] Guid* riid, void** ppv) + { + return CoCreateInstance( + __uuidof(), + default, + (uint)(CLSCTX_INPROC_SERVER), + riid, + ppv + ); + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHCreateLibrary([NativeTypeName("const IID &")] Ref riid, Ref2D ppv) + { + fixed (void** __dsl_ppv = ppv) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)SHCreateLibrary(__dsl_riid, __dsl_ppv); + } + } + + public static HRESULT SHLoadLibraryFromItem( + IShellItem psiLibrary, + [NativeTypeName("DWORD")] uint grfMode, + [NativeTypeName("const IID &")] Guid* riid, + void** ppv + ) + { + *ppv = null; + IShellLibrary plib; + var hr = CoCreateInstance( + __uuidof(), + default, + (uint)(CLSCTX_INPROC_SERVER), + __uuidof(), + (void**)(&plib) + ); + if ((((int)(hr)) >= 0)) + { + hr = plib.LoadLibraryFromItem(psiLibrary, grfMode); + if ((((int)(hr)) >= 0)) + { + hr = plib.QueryInterface(riid, ppv); + } + _ = plib.Release(); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHLoadLibraryFromItem( + IShellItem psiLibrary, + [NativeTypeName("DWORD")] uint grfMode, + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppv + ) + { + fixed (void** __dsl_ppv = ppv) + fixed (Guid* __dsl_riid = riid) + { + return (HRESULT)SHLoadLibraryFromItem(psiLibrary, grfMode, __dsl_riid, __dsl_ppv); + } + } + + public static HRESULT SHLoadLibraryFromKnownFolder( + [NativeTypeName("const KNOWNFOLDERID &")] Guid* kfidLibrary, + [NativeTypeName("DWORD")] uint grfMode, + [NativeTypeName("const IID &")] Guid* riid, + void** ppv + ) + { + *ppv = null; + IShellLibrary plib; + var hr = CoCreateInstance( + __uuidof(), + default, + (uint)(CLSCTX_INPROC_SERVER), + __uuidof(), + (void**)(&plib) + ); + if ((((int)(hr)) >= 0)) + { + hr = plib.LoadLibraryFromKnownFolder(kfidLibrary, grfMode); + if ((((int)(hr)) >= 0)) + { + hr = plib.QueryInterface(riid, ppv); + } + _ = plib.Release(); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHLoadLibraryFromKnownFolder( + [NativeTypeName("const KNOWNFOLDERID &")] Ref kfidLibrary, + [NativeTypeName("DWORD")] uint grfMode, + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppv + ) + { + fixed (void** __dsl_ppv = ppv) + fixed (Guid* __dsl_riid = riid) + fixed (Guid* __dsl_kfidLibrary = kfidLibrary) + { + return (HRESULT)SHLoadLibraryFromKnownFolder( + __dsl_kfidLibrary, + grfMode, + __dsl_riid, + __dsl_ppv + ); + } + } + + public static HRESULT SHLoadLibraryFromParsingName( + [NativeTypeName("PCWSTR")] ushort* pszParsingName, + [NativeTypeName("DWORD")] uint grfMode, + [NativeTypeName("const IID &")] Guid* riid, + void** ppv + ) + { + *ppv = null; + IShellItem psiLibrary; + HRESULT hr = SHCreateItemFromParsingName( + pszParsingName, + null, + __uuidof(), + (void**)(&psiLibrary) + ); + if ((((int)(hr)) >= 0)) + { + hr = SHLoadLibraryFromItem(psiLibrary, grfMode, riid, ppv); + _ = psiLibrary.Release(); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHLoadLibraryFromParsingName( + [NativeTypeName("PCWSTR")] Ref pszParsingName, + [NativeTypeName("DWORD")] uint grfMode, + [NativeTypeName("const IID &")] Ref riid, + Ref2D ppv + ) + { + fixed (void** __dsl_ppv = ppv) + fixed (Guid* __dsl_riid = riid) + fixed (ushort* __dsl_pszParsingName = pszParsingName) + { + return (HRESULT)SHLoadLibraryFromParsingName( + __dsl_pszParsingName, + grfMode, + __dsl_riid, + __dsl_ppv + ); + } + } + + public static HRESULT SHRemoveFolderPathFromLibrary( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] ushort* pszFolderPath + ) + { + ITEMIDLIST* pidlFolder = SHSimpleIDListFromPath(pszFolderPath); + HRESULT hr = unchecked((pidlFolder) != null ? ((int)(0)) : ((int)(0x80070057))); + if (((unchecked((int)(hr))) >= 0)) + { + IShellItem psiFolder; + unchecked(hr) = SHCreateItemFromIDList( + pidlFolder, + __uuidof(), + (void**)(&psiFolder) + ); + if (((unchecked((int)(hr))) >= 0)) + { + unchecked(hr) = plib.RemoveFolder(psiFolder); + _ = psiFolder.Release(); + } + CoTaskMemFree(pidlFolder); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHRemoveFolderPathFromLibrary( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] Ref pszFolderPath + ) + { + fixed (ushort* __dsl_pszFolderPath = pszFolderPath) + { + return (HRESULT)SHRemoveFolderPathFromLibrary(plib, __dsl_pszFolderPath); + } + } + + public static HRESULT SHSaveLibraryInFolderPath( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] ushort* pszFolderPath, + [NativeTypeName("PCWSTR")] ushort* pszLibraryName, + LIBRARYSAVEFLAGS lsf, + [NativeTypeName("PWSTR *")] ushort** ppszSavedToPath + ) + { + if ((ppszSavedToPath) != null) + { + *ppszSavedToPath = null; + } + IShellItem psiFolder; + HRESULT hr = SHCreateItemFromParsingName( + pszFolderPath, + null, + __uuidof(), + (void**)(&psiFolder) + ); + if ((((int)(hr)) >= 0)) + { + IShellItem psiSavedTo; + hr = plib.Save(psiFolder, pszLibraryName, lsf, &psiSavedTo); + if ((((int)(hr)) >= 0)) + { + if ((ppszSavedToPath) != null) + { + hr = psiSavedTo.GetDisplayName(SIGDN_DESKTOPABSOLUTEPARSING, ppszSavedToPath); + } + _ = psiSavedTo.Release(); + } + _ = psiFolder.Release(); + } + return hr; + } + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT SHSaveLibraryInFolderPath( + IShellLibrary plib, + [NativeTypeName("PCWSTR")] Ref pszFolderPath, + [NativeTypeName("PCWSTR")] Ref pszLibraryName, + LIBRARYSAVEFLAGS lsf, + [NativeTypeName("PWSTR *")] Ref2D ppszSavedToPath + ) + { + fixed (ushort** __dsl_ppszSavedToPath = ppszSavedToPath) + fixed (ushort* __dsl_pszLibraryName = pszLibraryName) + fixed (ushort* __dsl_pszFolderPath = pszFolderPath) + { + return (HRESULT)SHSaveLibraryInFolderPath( + plib, + __dsl_pszFolderPath, + __dsl_pszLibraryName, + lsf, + __dsl_ppszSavedToPath + ); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/ShlObj_core/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/ShlObj_core/Windows.Manual.cs new file mode 100644 index 0000000000..f1cf47de3a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/ShlObj_core/Windows.Manual.cs @@ -0,0 +1,42 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName("#define SHELLSTATE_SIZE_WIN95 FIELD_OFFSET(SHELLSTATE,lParamSort)")] + public static uint SHELLSTATE_SIZE_WIN95 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out SHELLSTATEW tmp); + return (uint)(&tmp.lParamSort) - (uint)(&tmp); + } + } + + [NativeTypeName("#define SHELLSTATE_SIZE_NT4 FIELD_OFFSET(SHELLSTATE,version)")] + public static uint SHELLSTATE_SIZE_NT4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out SHELLSTATEW tmp); + return (uint)(&tmp.version) - (uint)(&tmp); + } + } + + [NativeTypeName("#define SHELLSTATE_SIZE_IE4 FIELD_OFFSET(SHELLSTATE,uNotUsed)")] + public static uint SHELLSTATE_SIZE_IE4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out SHELLSTATEW tmp); + return (uint)(&tmp.uNotUsed) - (uint)(&tmp); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/SoftPub/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/SoftPub/Windows.Manual.cs new file mode 100644 index 0000000000..33be8e238d --- /dev/null +++ b/sources/Win32/Win32/Windows/um/SoftPub/Windows.Manual.cs @@ -0,0 +1,201 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/SoftPub.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + public static ref readonly Guid WINTRUST_ACTION_GENERIC_VERIFY_V2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x6B, + 0xC5, + 0xAA, + 0x00, + 0x44, + 0xCD, + 0xD0, + 0x11, + 0x8C, + 0xC2, + 0x00, + 0xC0, + 0x4F, + 0xC2, + 0x95, + 0xEE, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WINTRUST_ACTION_TRUSTPROVIDER_TEST + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x31, + 0x3E, + 0x57, + 0xBA, + 0xDD, + 0xD0, + 0x11, + 0x8C, + 0xCB, + 0x00, + 0xC0, + 0x4F, + 0xC2, + 0x95, + 0xEE, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WINTRUST_ACTION_GENERIC_CHAIN_VERIFY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x16, + 0x1C, + 0x45, + 0xFC, + 0x75, + 0xAC, + 0xD1, + 0x11, + 0xB4, + 0xB8, + 0x00, + 0xC0, + 0x4F, + 0xB6, + 0x6E, + 0xA0, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid HTTPSPROV_ACTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xF8, + 0x31, + 0x3E, + 0x57, + 0xBA, + 0xAA, + 0xD0, + 0x11, + 0x8C, + 0xCB, + 0x00, + 0xC0, + 0x4F, + 0xC2, + 0x95, + 0xEE, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid OFFICESIGN_ACTION_VERIFY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xCD, + 0xC2, + 0x55, + 0x55, + 0xFB, + 0x17, + 0xD1, + 0x11, + 0x85, + 0xC4, + 0x00, + 0xC0, + 0x4F, + 0xC2, + 0x95, + 0xEE, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid DRIVER_ACTION_VERIFY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xC3, + 0xE6, + 0x50, + 0xF7, + 0xEE, + 0x38, + 0xD1, + 0x11, + 0x85, + 0xE5, + 0x00, + 0xC0, + 0x4F, + 0xC2, + 0x95, + 0xEE, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid CONFIG_CI_ACTION_VERIFY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x5B, + 0x06, + 0x78, + 0x60, + 0x22, + 0x8F, + 0x13, + 0x4B, + 0xBD, + 0x9B, + 0x5B, + 0x76, + 0x27, + 0x76, + 0xF3, + 0x86, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/SpatialAudioHrtf/SpatialAudioHrtfActivationParams.Manual.cs b/sources/Win32/Win32/Windows/um/SpatialAudioHrtf/SpatialAudioHrtfActivationParams.Manual.cs new file mode 100644 index 0000000000..d01a232ab9 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/SpatialAudioHrtf/SpatialAudioHrtfActivationParams.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/SpatialAudioHrtf.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Sequential, Pack = 1)] +public unsafe partial struct SpatialAudioHrtfActivationParams +{ + [NativeTypeName("const WAVEFORMATEX *")] + public WAVEFORMATEX* ObjectFormat; + public AudioObjectType StaticObjectTypeMask; + + [NativeTypeName("UINT32")] + public uint MinDynamicObjectCount; + + [NativeTypeName("UINT32")] + public uint MaxDynamicObjectCount; + public AUDIO_STREAM_CATEGORY Category; + public HANDLE EventHandle; + public ISpatialAudioObjectRenderStreamNotify NotifyObject; + public SpatialAudioHrtfDistanceDecay* DistanceDecay; + public SpatialAudioHrtfDirectivityUnion* Directivity; + public SpatialAudioHrtfEnvironmentType* Environment; + + [NativeTypeName("SpatialAudioHrtfOrientation *")] + public float** Orientation; +} diff --git a/sources/Win32/Win32/Windows/um/UIAnimation/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/UIAnimation/LIBID.Manual.cs new file mode 100644 index 0000000000..2ff34ed9bd --- /dev/null +++ b/sources/Win32/Win32/Windows/um/UIAnimation/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/UIAnimation.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class LIBID +{ + public static ref readonly Guid LIBID_UIAnimation + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xDB, + 0x24, + 0xCA, + 0x44, + 0x92, + 0x1A, + 0x49, + 0x41, + 0xBA, + 0xB5, + 0xFB, + 0x14, + 0xD6, + 0x4B, + 0x40, + 0x1E, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/Uxtheme/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/Uxtheme/Windows.Manual.cs new file mode 100644 index 0000000000..72c410f166 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/Uxtheme/Windows.Manual.cs @@ -0,0 +1,38 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Uxtheme.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +using static Silk.NET.Win32.WINDOWTHEMEATTRIBUTETYPE; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static HRESULT BufferedPaintMakeOpaque(HPAINTBUFFER hBufferedPaint, RECT* prc) => + BufferedPaintSetAlpha(hBufferedPaint, prc, 255); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT BufferedPaintMakeOpaque(HPAINTBUFFER hBufferedPaint, Ref prc) + { + fixed (RECT* __dsl_prc = prc) + { + return (HRESULT)BufferedPaintMakeOpaque(hBufferedPaint, __dsl_prc); + } + } + + public static HRESULT SetWindowThemeNonClientAttributes( + HWND hwnd, + uint dwMask, + uint dwAttributes + ) + { + var wta = new WTA_OPTIONS { dwFlags = dwAttributes, dwMask = dwMask }; + return SetWindowThemeAttribute( + hwnd, + WTA_NONCLIENT, + (void*)&(wta), + (uint)sizeof(WTA_OPTIONS) + ); + } +} diff --git a/sources/Win32/Win32/Windows/um/WinBase/SCS.Manual.cs b/sources/Win32/Win32/Windows/um/WinBase/SCS.Manual.cs new file mode 100644 index 0000000000..19d879d2b1 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinBase/SCS.Manual.cs @@ -0,0 +1,23 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class SCS +{ + public static int SCS_THIS_PLATFORM_BINARY + { + get + { + if (sizeof(nint) == 4) + { + return SCS_32BIT_BINARY; + } + else + { + return SCS_64BIT_BINARY; + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/CB.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/CB.Manual.cs new file mode 100644 index 0000000000..74701fa36d --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/CB.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CB +{ + public const int CB_MULTIPLEADDSTRING = 0x0163; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/CONSOLE.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/CONSOLE.Manual.cs new file mode 100644 index 0000000000..3a702a3075 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/CONSOLE.Manual.cs @@ -0,0 +1,23 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CONSOLE +{ + public static int CONSOLE_APPLICATION_16BIT + { + get + { + if (sizeof(nint) == 4) + { + return 0x0001; + } + else + { + return 0x0000; + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/DS.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/DS.Manual.cs new file mode 100644 index 0000000000..8a43cd6328 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/DS.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class DS +{ + public const int DS_USEPIXELS = 0x8000; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/HBMMENU.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/HBMMENU.Manual.cs new file mode 100644 index 0000000000..6a14e368e6 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/HBMMENU.Manual.cs @@ -0,0 +1,41 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HBMMENU +{ + [NativeTypeName("#define HBMMENU_CALLBACK ((HBITMAP) -1)")] + public static HBITMAP HBMMENU_CALLBACK => ((HBITMAP)(-1)); + + [NativeTypeName("#define HBMMENU_SYSTEM ((HBITMAP) 1)")] + public static HBITMAP HBMMENU_SYSTEM => ((HBITMAP)(1)); + + [NativeTypeName("#define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)")] + public static HBITMAP HBMMENU_MBAR_RESTORE => ((HBITMAP)(2)); + + [NativeTypeName("#define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)")] + public static HBITMAP HBMMENU_MBAR_MINIMIZE => ((HBITMAP)(3)); + + [NativeTypeName("#define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)")] + public static HBITMAP HBMMENU_MBAR_CLOSE => ((HBITMAP)(5)); + + [NativeTypeName("#define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)")] + public static HBITMAP HBMMENU_MBAR_CLOSE_D => ((HBITMAP)(6)); + + [NativeTypeName("#define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)")] + public static HBITMAP HBMMENU_MBAR_MINIMIZE_D => ((HBITMAP)(7)); + + [NativeTypeName("#define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)")] + public static HBITMAP HBMMENU_POPUP_CLOSE => ((HBITMAP)(8)); + + [NativeTypeName("#define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)")] + public static HBITMAP HBMMENU_POPUP_RESTORE => ((HBITMAP)(9)); + + [NativeTypeName("#define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)")] + public static HBITMAP HBMMENU_POPUP_MAXIMIZE => ((HBITMAP)(10)); + + [NativeTypeName("#define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)")] + public static HBITMAP HBMMENU_POPUP_MINIMIZE => ((HBITMAP)(11)); +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/LB.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/LB.Manual.cs new file mode 100644 index 0000000000..f32f62ab59 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/LB.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class LB +{ + public const int LB_MULTIPLEADDSTRING = 0x01B1; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/OBM.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/OBM.Manual.cs new file mode 100644 index 0000000000..a02de2d2d0 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/OBM.Manual.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class OBM +{ + public const int OBM_CLOSE = 32754; + public const int OBM_UPARROW = 32753; + public const int OBM_DNARROW = 32752; + public const int OBM_RGARROW = 32751; + public const int OBM_LFARROW = 32750; + public const int OBM_REDUCE = 32749; + public const int OBM_ZOOM = 32748; + public const int OBM_RESTORE = 32747; + public const int OBM_REDUCED = 32746; + public const int OBM_ZOOMD = 32745; + public const int OBM_RESTORED = 32744; + public const int OBM_UPARROWD = 32743; + public const int OBM_DNARROWD = 32742; + public const int OBM_RGARROWD = 32741; + public const int OBM_LFARROWD = 32740; + public const int OBM_MNARROW = 32739; + public const int OBM_COMBO = 32738; + public const int OBM_UPARROWI = 32737; + public const int OBM_DNARROWI = 32736; + public const int OBM_RGARROWI = 32735; + public const int OBM_LFARROWI = 32734; + public const int OBM_OLD_CLOSE = 32767; + public const int OBM_SIZE = 32766; + public const int OBM_OLD_UPARROW = 32765; + public const int OBM_OLD_DNARROW = 32764; + public const int OBM_OLD_RGARROW = 32763; + public const int OBM_OLD_LFARROW = 32762; + public const int OBM_BTSIZE = 32761; + public const int OBM_CHECK = 32760; + public const int OBM_CHECKBOXES = 32759; + public const int OBM_BTNCORNERS = 32758; + public const int OBM_OLD_REDUCE = 32757; + public const int OBM_OLD_ZOOM = 32756; + public const int OBM_OLD_RESTORE = 32755; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/OCR.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/OCR.Manual.cs new file mode 100644 index 0000000000..c751dd2e97 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/OCR.Manual.cs @@ -0,0 +1,32 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class OCR +{ + public const int OCR_NORMAL = 32512; + public const int OCR_IBEAM = 32513; + public const int OCR_WAIT = 32514; + public const int OCR_CROSS = 32515; + public const int OCR_UP = 32516; + + [Obsolete("use OCR_SIZEALL")] + public const int OCR_SIZE = 32640; + + [Obsolete("use OCR_NORMAL")] + public const int OCR_ICON = 32641; + public const int OCR_SIZENWSE = 32642; + public const int OCR_SIZENESW = 32643; + public const int OCR_SIZEWE = 32644; + public const int OCR_SIZENS = 32645; + public const int OCR_SIZEALL = 32646; + + [Obsolete("use OIC_WINLOGO")] + public const int OCR_ICOCUR = 32647; + public const int OCR_NO = 32648; + public const int OCR_HAND = 32649; + public const int OCR_APPSTARTING = 32650; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/OIC.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/OIC.Manual.cs new file mode 100644 index 0000000000..8608a13a95 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/OIC.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class OIC +{ + public const int OIC_SAMPLE = 32512; + public const int OIC_HAND = 32513; + public const int OIC_QUES = 32514; + public const int OIC_BANG = 32515; + public const int OIC_NOTE = 32516; + public const int OIC_WINLOGO = 32517; + public const int OIC_WARNING = OIC_BANG; + public const int OIC_ERROR = OIC_HAND; + public const int OIC_INFORMATION = OIC_NOTE; + public const int OIC_SHIELD = 32518; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/WH.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/WH.Manual.cs new file mode 100644 index 0000000000..5a724cf817 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/WH.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class WH +{ + public const int WH_HARDWARE = 8; +} diff --git a/sources/Win32/Win32/Windows/um/WinUser/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/WinUser/Windows.Manual.cs new file mode 100644 index 0000000000..7dfc43e25f --- /dev/null +++ b/sources/Win32/Win32/Windows/um/WinUser/Windows.Manual.cs @@ -0,0 +1,806 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Win32.EWX; +using static Silk.NET.Win32.POINTER; +using static Silk.NET.Win32.RIDEV; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static int GUI_16BITTASK + { + get + { + if (sizeof(nint) == 4) + { + return 0x00000020; + } + else + { + return 0x00000000; + } + } + } + + [NativeTypeName("#define GetWindowLongPtr GetWindowLongPtrW")] + public static delegate* GetWindowLongPtr => &GetWindowLongPtrW; + + [NativeTypeName("#define SetWindowLongPtr SetWindowLongPtrW")] + public static delegate* SetWindowLongPtr => &SetWindowLongPtrW; + + [NativeTypeName("#define GetClassLongPtr GetClassLongPtrW")] + public static delegate* GetClassLongPtr => &GetClassLongPtrW; + + [NativeTypeName("#define SetClassLongPtr SetClassLongPtrW")] + public static delegate* SetClassLongPtr => &SetClassLongPtrW; + + [NativeTypeName("#define GR_GLOBAL ((HANDLE)-2)")] + public static HANDLE GR_GLOBAL => ((HANDLE)(-2)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND CreateDialogA( + HINSTANCE hInstance, + [NativeTypeName("LPCSTR")] sbyte* lpName, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => CreateDialogParamA(hInstance, lpName, hWndParent, lpDialogFunc, dwInitParam: 0); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND CreateDialogA( + HINSTANCE hInstance, + [NativeTypeName("LPCSTR")] Ref lpName, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (sbyte* __dsl_lpName = lpName) + { + return (HWND)CreateDialogA(hInstance, __dsl_lpName, hWndParent, lpDialogFunc); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND CreateDialogIndirectA( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEW")] DLGTEMPLATE* lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => + CreateDialogIndirectParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam: 0); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND CreateDialogIndirectA( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEW")] Ref lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (DLGTEMPLATE* __dsl_lpTemplate = lpTemplate) + { + return (HWND)CreateDialogIndirectA( + hInstance, + __dsl_lpTemplate, + hWndParent, + lpDialogFunc + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND CreateDialogIndirectW( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEW")] DLGTEMPLATE* lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => + CreateDialogIndirectParamW(hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam: 0); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND CreateDialogIndirectW( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEW")] Ref lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (DLGTEMPLATE* __dsl_lpTemplate = lpTemplate) + { + return (HWND)CreateDialogIndirectW( + hInstance, + __dsl_lpTemplate, + hWndParent, + lpDialogFunc + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND CreateDialogW( + HINSTANCE hInstance, + [NativeTypeName("LPCWSTR")] char* lpName, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => CreateDialogParamW(hInstance, lpName, hWndParent, lpDialogFunc, dwInitParam: 0); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND CreateDialogW( + HINSTANCE hInstance, + [NativeTypeName("LPCWSTR")] Ref lpName, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (char* __dsl_lpName = lpName) + { + return (HWND)CreateDialogW(hInstance, __dsl_lpName, hWndParent, lpDialogFunc); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND CreateWindowA( + [NativeTypeName("LPCSTR")] sbyte* lpClassName, + [NativeTypeName("LPCSTR")] sbyte* lpWindowName, + [NativeTypeName("DWORD")] uint dwStyle, + int x, + int y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + [NativeTypeName("LPVOID")] void* lpParam + ) => + CreateWindowExA( + 0, + lpClassName, + lpWindowName, + dwStyle, + x, + y, + nWidth, + nHeight, + hWndParent, + hMenu, + hInstance, + lpParam + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND CreateWindowA( + [NativeTypeName("LPCSTR")] Ref lpClassName, + [NativeTypeName("LPCSTR")] Ref lpWindowName, + [NativeTypeName("DWORD")] uint dwStyle, + int x, + int y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + [NativeTypeName("LPVOID")] Ref lpParam + ) + { + fixed (void* __dsl_lpParam = lpParam) + fixed (sbyte* __dsl_lpWindowName = lpWindowName) + fixed (sbyte* __dsl_lpClassName = lpClassName) + { + return (HWND)CreateWindowA( + __dsl_lpClassName, + __dsl_lpWindowName, + dwStyle, + x, + y, + nWidth, + nHeight, + hWndParent, + hMenu, + hInstance, + __dsl_lpParam + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND CreateWindowW( + [NativeTypeName("LPCWSTR")] char* lpClassName, + [NativeTypeName("LPCWSTR")] char* lpWindowName, + [NativeTypeName("DWORD")] uint dwStyle, + int x, + int y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + [NativeTypeName("LPVOID")] void* lpParam + ) => + CreateWindowExW( + 0, + lpClassName, + lpWindowName, + dwStyle, + x, + y, + nWidth, + nHeight, + hWndParent, + hMenu, + hInstance, + lpParam + ); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HWND CreateWindowW( + [NativeTypeName("LPCWSTR")] Ref lpClassName, + [NativeTypeName("LPCWSTR")] Ref lpWindowName, + [NativeTypeName("DWORD")] uint dwStyle, + int x, + int y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + [NativeTypeName("LPVOID")] Ref lpParam + ) + { + fixed (void* __dsl_lpParam = lpParam) + fixed (char* __dsl_lpWindowName = lpWindowName) + fixed (char* __dsl_lpClassName = lpClassName) + { + return (HWND)CreateWindowW( + __dsl_lpClassName, + __dsl_lpWindowName, + dwStyle, + x, + y, + nWidth, + nHeight, + hWndParent, + hMenu, + hInstance, + __dsl_lpParam + ); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static LRESULT DefHookProc(int nCode, WPARAM wParam, LPARAM lParam, HHOOK phhk) => + CallNextHookEx(phhk, nCode, wParam, lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("INT_PTR")] + public static nint DialogBoxA( + HINSTANCE hInstance, + [NativeTypeName("LPCSTR")] sbyte* lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => DialogBoxParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam: 0); + + [return: NativeTypeName("INT_PTR")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nint DialogBoxA( + HINSTANCE hInstance, + [NativeTypeName("LPCSTR")] Ref lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (sbyte* __dsl_lpTemplate = lpTemplate) + { + return (nint)DialogBoxA(hInstance, __dsl_lpTemplate, hWndParent, lpDialogFunc); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("INT_PTR")] + public static nint DialogBoxIndirectA( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEA")] DLGTEMPLATE* lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => DialogBoxIndirectParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam: 0); + + [return: NativeTypeName("INT_PTR")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nint DialogBoxIndirectA( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEA")] Ref lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (DLGTEMPLATE* __dsl_lpTemplate = lpTemplate) + { + return (nint)DialogBoxIndirectA(hInstance, __dsl_lpTemplate, hWndParent, lpDialogFunc); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("INT_PTR")] + public static nint DialogBoxIndirectW( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEW")] DLGTEMPLATE* lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => DialogBoxIndirectParamW(hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam: 0); + + [return: NativeTypeName("INT_PTR")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nint DialogBoxIndirectW( + HINSTANCE hInstance, + [NativeTypeName("LPCDLGTEMPLATEW")] Ref lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (DLGTEMPLATE* __dsl_lpTemplate = lpTemplate) + { + return (nint)DialogBoxIndirectW(hInstance, __dsl_lpTemplate, hWndParent, lpDialogFunc); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("INT_PTR")] + public static nint DialogBoxW( + HINSTANCE hInstance, + [NativeTypeName("LPCWSTR")] char* lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) => DialogBoxParamW(hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam: 0); + + [return: NativeTypeName("INT_PTR")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nint DialogBoxW( + HINSTANCE hInstance, + [NativeTypeName("LPCWSTR")] Ref lpTemplate, + HWND hWndParent, + [NativeTypeName("DLGPROC")] + delegate* unmanaged lpDialogFunc + ) + { + fixed (char* __dsl_lpTemplate = lpTemplate) + { + return (nint)DialogBoxW(hInstance, __dsl_lpTemplate, hWndParent, lpDialogFunc); + } + } + + [Transformed] + public static MaybeBool EnumTaskWindows( + HTASK hTask, + [NativeTypeName("WNDENUMPROC")] delegate* unmanaged lpfn, + LPARAM lParam + ) => (MaybeBool)(BOOL)EnumTaskWindowsRaw(hTask, lpfn, lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static BOOL EnumTaskWindowsRaw( + HTASK hTask, + [NativeTypeName("WNDENUMPROC")] delegate* unmanaged lpfn, + LPARAM lParam + ) => EnumThreadWindowsRaw((uint)hTask, lpfn, lParam); + + [Transformed] + public static MaybeBool ExitWindows(uint dwReserved, int Code) => + (MaybeBool)(BOOL)ExitWindowsRaw(dwReserved, Code); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static BOOL ExitWindowsRaw(uint dwReserved, int Code) => + ExitWindowsExRaw(EWX_LOGOFF, 0xFFFFFFFF); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static short GET_APPCOMMAND_LPARAM(LPARAM lParam) => + unchecked((short)(HIWORD((uint)lParam) & ~FAPPCOMMAND_MASK)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_DEVICE_CHANGE_LPARAM(LPARAM lParam) => LOWORD(unchecked((uint)lParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_DEVICE_CHANGE_WPARAM(WPARAM wParam) => LOWORD(unchecked((uint)wParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_DEVICE_LPARAM(LPARAM lParam) => + unchecked((ushort)(HIWORD((uint)lParam) & FAPPCOMMAND_MASK)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_FLAGS_LPARAM(LPARAM lParam) => LOWORD(unchecked((uint)lParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_KEYSTATE_LPARAM(LPARAM lParam) => GET_FLAGS_LPARAM(lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_KEYSTATE_WPARAM(WPARAM wParam) => LOWORD(unchecked((uint)wParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_MOUSEORKEY_LPARAM(LPARAM lParam) => GET_DEVICE_LPARAM(lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static short GET_NCHITTEST_WPARAM(WPARAM wParam) => + unchecked((short)LOWORD((uint)wParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_POINTERID_WPARAM(WPARAM wParam) => LOWORD(unchecked((uint)wParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static nuint GET_RAWINPUT_CODE_WPARAM(WPARAM wParam) => wParam & (nuint)(0xFFu); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int GET_SC_WPARAM(WPARAM wParam) => unchecked((int)(wParam & 0xFFF0)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static short GET_WHEEL_DELTA_WPARAM(WPARAM wParam) => + unchecked((short)HIWORD((uint)wParam)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GET_XBUTTON_WPARAM(WPARAM wParam) => HIWORD(unchecked((uint)wParam)); + + [return: NativeTypeName("ULONG_PTR")] + public static nuint GetClassLongPtrA(HWND hWnd, int nIndex) + { + if (sizeof(nuint) == 4) + { + return GetClassLongA(hWnd, nIndex); + } + else + { + [DllImport("user32", EntryPoint = "GetClassLongPtrA", ExactSpelling = true)] + [return: NativeTypeName("ULONG_PTR")] + static extern nuint _GetClassLongPtrA(HWND hWnd, int nIndex); + return _GetClassLongPtrA(hWnd, nIndex); + } + } + + [return: NativeTypeName("ULONG_PTR")] + public static nuint GetClassLongPtrW(HWND hWnd, int nIndex) + { + if (sizeof(nuint) == 4) + { + return GetClassLongW(hWnd, nIndex); + } + else + { + [DllImport("user32", EntryPoint = "GetClassLongPtrW", ExactSpelling = true)] + [return: NativeTypeName("ULONG_PTR")] + static extern nuint _GetClassLongPtrW(HWND hWnd, int nIndex); + return _GetClassLongPtrW(hWnd, nIndex); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND GetNextWindow(HWND hWnd, ushort wCmd) => GetWindow(hWnd, wCmd); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND GetSysModalWindow() => (HWND)(NULL); + + [return: NativeTypeName("LONG_PTR")] + public static nint GetWindowLongPtrA(HWND hWnd, int nIndex) + { + if (sizeof(nint) == 4) + { + return GetWindowLongA(hWnd, nIndex); + } + else + { + [DllImport("user32", EntryPoint = "GetWindowLongPtrA", ExactSpelling = true)] + [return: NativeTypeName("LONG_PTR")] + static extern nint _GetWindowLongPtrA(HWND hWnd, int nIndex); + return _GetWindowLongPtrA(hWnd, nIndex); + } + } + + [return: NativeTypeName("LONG_PTR")] + public static nint GetWindowLongPtrW(HWND hWnd, int nIndex) + { + if (sizeof(nint) == 4) + { + return GetWindowLongW(hWnd, nIndex); + } + else + { + [DllImport("user32", EntryPoint = "GetWindowLongPtrW", ExactSpelling = true)] + [return: NativeTypeName("LONG_PTR")] + static extern nint _GetWindowLongPtrW(HWND hWnd, int nIndex); + return _GetWindowLongPtrW(hWnd, nIndex); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HANDLE GetWindowTask(HWND hWnd) => (HANDLE)GetWindowThreadProcessId(hWnd, null); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double GID_ROTATE_ANGLE_FROM_ARGUMENT(double _arg_) => + (_arg_ / 65535.0 * 4.0 * 3.14159265) - (2.0 * 3.14159265); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ushort GID_ROTATE_ANGLE_TO_ARGUMENT(ushort _arg_) => + (ushort)((_arg_ + (2.0 * 3.14159265)) / (4.0 * 3.14159265) * 65535.0); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool HAS_POINTER_CONFIDENCE_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_CONFIDENCE); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_INTRESOURCE([NativeTypeName("ULONG_PTR")] nuint _r) + { + return (_r >> 16) == 0; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_CANCELED_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_CANCELED); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_FIFTHBUTTON_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_FIFTHBUTTON); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_FIRSTBUTTON_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_FIRSTBUTTON); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_FLAG_SET_WPARAM(WPARAM wParam, uint flag) => + (HIWORD(unchecked((uint)wParam)) & flag) == flag; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_FOURTHBUTTON_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_FOURTHBUTTON); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_INCONTACT_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_INCONTACT); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_INRANGE_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_INRANGE); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_NEW_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_NEW); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_PRIMARY_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_PRIMARY); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_SECONDBUTTON_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_SECONDBUTTON); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IS_POINTER_THIRDBUTTON_WPARAM(WPARAM wParam) => + IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_THIRDBUTTON); + + [return: NativeTypeName("LPWSTR")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr MAKEINTRESOURCE(ushort i) => (char*)MAKEINTRESOURCERaw(i); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [return: NativeTypeName("LPWSTR")] + public static char* MAKEINTRESOURCERaw(ushort i) => (char*)(nuint)i; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static LPARAM MAKELPARAM( + [NativeTypeName("DWORD_PTR")] nuint l, + [NativeTypeName("DWORD_PTR")] nuint h + ) => unchecked((LPARAM)(uint)MAKELONG(l, h)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static LPARAM MAKELPARAM(nint l, nint h) => + unchecked(MAKELPARAM((nuint)(l), (nuint)(h))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static LRESULT MAKELRESULT( + [NativeTypeName("DWORD_PTR")] nuint l, + [NativeTypeName("DWORD_PTR")] nuint h + ) => unchecked((LRESULT)(uint)MAKELONG(l, h)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static LRESULT MAKELRESULT(nint l, nint h) => + unchecked(MAKELRESULT((nuint)(l), (nuint)(h))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static WPARAM MAKEWPARAM( + [NativeTypeName("DWORD_PTR")] nuint l, + [NativeTypeName("DWORD_PTR")] nuint h + ) => unchecked((WPARAM)(uint)MAKELONG(l, h)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static WPARAM MAKEWPARAM(nint l, nint h) => + unchecked(MAKEWPARAM((nuint)(l), (nuint)(h))); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RAWINPUT* NEXTRAWINPUTBLOCK(RAWINPUT* ptr) => + (RAWINPUT*)(RAWINPUT_ALIGN((nint)ptr) + ptr->header.dwSize); + + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr NEXTRAWINPUTBLOCK(Ref ptr) + { + fixed (RAWINPUT* __dsl_ptr = ptr) + { + return (RAWINPUT*)NEXTRAWINPUTBLOCK(__dsl_ptr); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static POINT POINTSTOPOINT(POINTS pts) + { + return new POINT + { + x = unchecked((int)(short)LOWORD(*(int*)&pts)), + y = unchecked((int)(short)HIWORD(*(int*)&pts)), + }; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int POINTTOPOINTS(POINTS pt) => + unchecked(MAKELONG((nuint)(short)pt.x, (nuint)(short)pt.y)); + + [Transformed] + public static MaybeBool PostAppMessageA( + [NativeTypeName("DWORD")] uint idThread, + uint wMsg, + WPARAM wParam, + LPARAM lParam + ) => (MaybeBool)(BOOL)PostAppMessageARaw(idThread, wMsg, wParam, lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static BOOL PostAppMessageARaw( + [NativeTypeName("DWORD")] uint idThread, + uint wMsg, + WPARAM wParam, + LPARAM lParam + ) => PostThreadMessageARaw(idThread, wMsg, wParam, lParam); + + [Transformed] + public static MaybeBool PostAppMessageW( + [NativeTypeName("DWORD")] uint idThread, + uint wMsg, + WPARAM wParam, + LPARAM lParam + ) => (MaybeBool)(BOOL)PostAppMessageWRaw(idThread, wMsg, wParam, lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static BOOL PostAppMessageWRaw( + [NativeTypeName("DWORD")] uint idThread, + uint wMsg, + WPARAM wParam, + LPARAM lParam + ) => PostThreadMessageWRaw(idThread, wMsg, wParam, lParam); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static nint RAWINPUT_ALIGN(nint x) => (x + sizeof(nint) - 1) & ~(sizeof(nint) - 1); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int RIDEV_EXMODE(int mode) => mode & RIDEV_EXMODEMASK; + + [return: NativeTypeName("ULONG_PTR")] + public static nuint SetClassLongPtrA( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ) + { + if (sizeof(nuint) == 4) + { + return SetClassLongA(hWnd, nIndex, (int)dwNewLong); + } + else + { + [DllImport("user32", EntryPoint = "SetClassLongPtrA", ExactSpelling = true)] + [return: NativeTypeName("ULONG_PTR")] + static extern nuint _SetClassLongPtrA( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ); + return _SetClassLongPtrA(hWnd, nIndex, dwNewLong); + } + } + + [return: NativeTypeName("ULONG_PTR")] + public static nuint SetClassLongPtrW( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ) + { + if (sizeof(nuint) == 4) + { + return SetClassLongW(hWnd, nIndex, (int)dwNewLong); + } + else + { + [DllImport("user32", EntryPoint = "SetClassLongPtrW", ExactSpelling = true)] + [return: NativeTypeName("ULONG_PTR")] + static extern nuint _SetClassLongPtrW( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ); + return _SetClassLongPtrW(hWnd, nIndex, dwNewLong); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static HWND SetSysModalWindow(HWND hWnd) => (HWND)(NULL); + + [return: NativeTypeName("LONG_PTR")] + public static nint SetWindowLongPtrA( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ) + { + if (sizeof(nint) == 4) + { + return SetWindowLongA(hWnd, nIndex, (int)dwNewLong); + } + else + { + [DllImport("user32", EntryPoint = "SetWindowLongPtrA", ExactSpelling = true)] + [return: NativeTypeName("LONG_PTR")] + static extern nint _SetWindowLongPtrA( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ); + return _SetWindowLongPtrA(hWnd, nIndex, dwNewLong); + } + } + + [return: NativeTypeName("LONG_PTR")] + public static nint SetWindowLongPtrW( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ) + { + if (sizeof(nint) == 4) + { + return SetWindowLongW(hWnd, nIndex, (int)dwNewLong); + } + else + { + [DllImport("user32", EntryPoint = "SetWindowLongPtrW", ExactSpelling = true)] + [return: NativeTypeName("LONG_PTR")] + static extern nint _SetWindowLongPtrW( + HWND hWnd, + int nIndex, + [NativeTypeName("LONG_PTR")] nint dwNewLong + ); + return _SetWindowLongPtrW(hWnd, nIndex, dwNewLong); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int TOUCH_COORD_TO_PIXEL(int l) => l / 100; +} diff --git a/sources/Win32/Win32/Windows/um/appmodel/PACKAGE_ID.Manual.cs b/sources/Win32/Win32/Windows/um/appmodel/PACKAGE_ID.Manual.cs new file mode 100644 index 0000000000..0676bb5678 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/appmodel/PACKAGE_ID.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/appmodel.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +public unsafe partial struct PACKAGE_ID +{ + [NativeTypeName("UINT32")] + public uint reserved; + + [NativeTypeName("UINT32")] + public uint processorArchitecture; + public PACKAGE_VERSION version; + + [NativeTypeName("PWSTR")] + public char* name; + + [NativeTypeName("PWSTR")] + public char* publisher; + + [NativeTypeName("PWSTR")] + public char* resourceId; + + [NativeTypeName("PWSTR")] + public char* publisherId; +} diff --git a/sources/Win32/Win32/Windows/um/appmodel/PACKAGE_INFO.Manual.cs b/sources/Win32/Win32/Windows/um/appmodel/PACKAGE_INFO.Manual.cs new file mode 100644 index 0000000000..1253912ed9 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/appmodel/PACKAGE_INFO.Manual.cs @@ -0,0 +1,26 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/appmodel.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +public unsafe partial struct PACKAGE_INFO +{ + [NativeTypeName("UINT32")] + public uint reserved; + + [NativeTypeName("UINT32")] + public uint flags; + + [NativeTypeName("PWSTR")] + public char* path; + + [NativeTypeName("PWSTR")] + public char* packageFullName; + + [NativeTypeName("PWSTR")] + public char* packageFamilyName; + public PACKAGE_ID packageId; +} diff --git a/sources/Win32/Win32/Windows/um/comcat/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/comcat/CLSID.Manual.cs new file mode 100644 index 0000000000..429672c8f8 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/comcat/CLSID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/comcat.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class CLSID +{ + public static ref readonly Guid CLSID_StdComponentCategoriesMgr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x05, + 0xE0, + 0x02, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xC0, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x46, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/commoncontrols/IImageList.Manual.cs b/sources/Win32/Win32/Windows/um/commoncontrols/IImageList.Manual.cs new file mode 100644 index 0000000000..b8d0defad3 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/commoncontrols/IImageList.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/commoncontrols.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Win32.IID; + +namespace Silk.NET.Win32; + +public unsafe partial struct IImageList : IImageList.Interface, INativeGuid +{ + public static explicit operator HIMAGELIST(IImageList imageList) => new(imageList.lpVtbl); + + public static explicit operator IImageList(HIMAGELIST imageList) => + new() { lpVtbl = (Native*)imageList.Value }; +} diff --git a/sources/Win32/Win32/Windows/um/devicetopology/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/devicetopology/CLSID.Manual.cs new file mode 100644 index 0000000000..5ae5f7883a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/devicetopology/CLSID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/devicetopology.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CLSID +{ + public static ref readonly Guid CLSID_DeviceTopology + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xD0, + 0x39, + 0xF6, + 0x1D, + 0xC1, + 0x5E, + 0xAA, + 0x47, + 0x93, + 0x79, + 0x82, + 0x8D, + 0xC1, + 0xAA, + 0x8C, + 0x59, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/devicetopology/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/devicetopology/LIBID.Manual.cs new file mode 100644 index 0000000000..ce030c421a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/devicetopology/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/devicetopology.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class LIBID +{ + public static ref readonly Guid LIBID_DevTopologyLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x1D, + 0xA0, + 0xB9, + 0x51, + 0x81, + 0x81, + 0x63, + 0x43, + 0xB5, + 0x9C, + 0xE6, + 0x78, + 0xF4, + 0x76, + 0xDD, + 0x0E, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/handleapi/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/handleapi/Windows.Manual.cs new file mode 100644 index 0000000000..db9c31d5b8 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/handleapi/Windows.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/handleapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName("#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1)")] + public static HANDLE INVALID_HANDLE_VALUE => unchecked((HANDLE)((nint)(-1))); +} diff --git a/sources/Win32/Win32/Windows/um/mfapi/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/mfapi/Windows.Manual.cs new file mode 100644 index 0000000000..fddc60cf0a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mfapi/Windows.Manual.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static uint FCC(uint ch4) => + ( + (((uint)(ch4) & 0xFF) << 24) + | (((uint)(ch4) & 0xFF00) << 8) + | (((uint)(ch4) & 0xFF0000) >> 8) + | (((uint)(ch4) & 0xFF000000) >> 24) + ); +} diff --git a/sources/Win32/Win32/Windows/um/mfcaptureengine/MF.Manual.cs b/sources/Win32/Win32/Windows/um/mfcaptureengine/MF.Manual.cs new file mode 100644 index 0000000000..9de0dccb8e --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mfcaptureengine/MF.Manual.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mfcaptureengine.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class MF +{ + public const int MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_VIDEO_PREVIEW = unchecked( + (int)0xFFFFFFFA + ); + public const int MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_VIDEO_RECORD = unchecked( + (int)0xFFFFFFF9 + ); + public const int MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_PHOTO = unchecked( + (int)0xFFFFFFF8 + ); + public const int MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_AUDIO = unchecked( + (int)0xFFFFFFF7 + ); + public const int MF_CAPTURE_ENGINE_MEDIASOURCE = unchecked((int)0xFFFFFFFF); +} diff --git a/sources/Win32/Win32/Windows/um/mfidl/MF.Manual.cs b/sources/Win32/Win32/Windows/um/mfidl/MF.Manual.cs new file mode 100644 index 0000000000..b485da66f7 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mfidl/MF.Manual.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mfidl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class MF +{ + public const int MF_RESOLUTION_MEDIASOURCE = 0x1; + public const int MF_RESOLUTION_BYTESTREAM = 0x2; + public const int MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE = 0x10; + public const int MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL = 0x20; + public const int MF_RESOLUTION_DISABLE_LOCAL_PLUGINS = 0x40; + public const int MF_RESOLUTION_PLUGIN_CONTROL_POLICY_APPROVED_ONLY = 0x80; + public const int MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY = 0x100; + public const int MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY_EDGEMODE = 0x200; + public const int MF_RESOLUTION_ENABLE_STORE_PLUGINS = 0x400; + public const int MF_RESOLUTION_READ = 0x10000; + public const int MF_RESOLUTION_WRITE = 0x20000; + public const int MF_ACTIVATE_CUSTOM_MIXER_ALLOWFAIL = 0x1; + public const int MF_ACTIVATE_CUSTOM_PRESENTER_ALLOWFAIL = 0x1; +} diff --git a/sources/Win32/Win32/Windows/um/mfobjects/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/mfobjects/Windows.Manual.cs new file mode 100644 index 0000000000..3b23c709bc --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mfobjects/Windows.Manual.cs @@ -0,0 +1,129 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mfobjects.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public const int MEUnknown = 0; + public const int MEError = 1; + public const int MEExtendedType = 2; + public const int MENonFatalError = 3; + public const int MEGenericV1Anchor = MENonFatalError; + public const int MESessionUnknown = 100; + public const int MESessionTopologySet = 101; + public const int MESessionTopologiesCleared = 102; + public const int MESessionStarted = 103; + public const int MESessionPaused = 104; + public const int MESessionStopped = 105; + public const int MESessionClosed = 106; + public const int MESessionEnded = 107; + public const int MESessionRateChanged = 108; + public const int MESessionScrubSampleComplete = 109; + public const int MESessionCapabilitiesChanged = 110; + public const int MESessionTopologyStatus = 111; + public const int MESessionNotifyPresentationTime = 112; + public const int MENewPresentation = 113; + public const int MELicenseAcquisitionStart = 114; + public const int MELicenseAcquisitionCompleted = 115; + public const int MEIndividualizationStart = 116; + public const int MEIndividualizationCompleted = 117; + public const int MEEnablerProgress = 118; + public const int MEEnablerCompleted = 119; + public const int MEPolicyError = 120; + public const int MEPolicyReport = 121; + public const int MEBufferingStarted = 122; + public const int MEBufferingStopped = 123; + public const int MEConnectStart = 124; + public const int MEConnectEnd = 125; + public const int MEReconnectStart = 126; + public const int MEReconnectEnd = 127; + public const int MERendererEvent = 128; + public const int MESessionStreamSinkFormatChanged = 129; + public const int MESessionV1Anchor = MESessionStreamSinkFormatChanged; + public const int MESourceUnknown = 200; + public const int MESourceStarted = 201; + public const int MEStreamStarted = 202; + public const int MESourceSeeked = 203; + public const int MEStreamSeeked = 204; + public const int MENewStream = 205; + public const int MEUpdatedStream = 206; + public const int MESourceStopped = 207; + public const int MEStreamStopped = 208; + public const int MESourcePaused = 209; + public const int MEStreamPaused = 210; + public const int MEEndOfPresentation = 211; + public const int MEEndOfStream = 212; + public const int MEMediaSample = 213; + public const int MEStreamTick = 214; + public const int MEStreamThinMode = 215; + public const int MEStreamFormatChanged = 216; + public const int MESourceRateChanged = 217; + public const int MEEndOfPresentationSegment = 218; + public const int MESourceCharacteristicsChanged = 219; + public const int MESourceRateChangeRequested = 220; + public const int MESourceMetadataChanged = 221; + public const int MESequencerSourceTopologyUpdated = 222; + public const int MESourceV1Anchor = MESequencerSourceTopologyUpdated; + public const int MESinkUnknown = 300; + public const int MEStreamSinkStarted = 301; + public const int MEStreamSinkStopped = 302; + public const int MEStreamSinkPaused = 303; + public const int MEStreamSinkRateChanged = 304; + public const int MEStreamSinkRequestSample = 305; + public const int MEStreamSinkMarker = 306; + public const int MEStreamSinkPrerolled = 307; + public const int MEStreamSinkScrubSampleComplete = 308; + public const int MEStreamSinkFormatChanged = 309; + public const int MEStreamSinkDeviceChanged = 310; + public const int MEQualityNotify = 311; + public const int MESinkInvalidated = 312; + public const int MEAudioSessionNameChanged = 313; + public const int MEAudioSessionVolumeChanged = 314; + public const int MEAudioSessionDeviceRemoved = 315; + public const int MEAudioSessionServerShutdown = 316; + public const int MEAudioSessionGroupingParamChanged = 317; + public const int MEAudioSessionIconChanged = 318; + public const int MEAudioSessionFormatChanged = 319; + public const int MEAudioSessionDisconnected = 320; + public const int MEAudioSessionExclusiveModeOverride = 321; + public const int MESinkV1Anchor = MEAudioSessionExclusiveModeOverride; + public const int MECaptureAudioSessionVolumeChanged = 322; + public const int MECaptureAudioSessionDeviceRemoved = 323; + public const int MECaptureAudioSessionFormatChanged = 324; + public const int MECaptureAudioSessionDisconnected = 325; + public const int MECaptureAudioSessionExclusiveModeOverride = 326; + public const int MECaptureAudioSessionServerShutdown = 327; + public const int MESinkV2Anchor = MECaptureAudioSessionServerShutdown; + public const int METrustUnknown = 400; + public const int MEPolicyChanged = 401; + public const int MEContentProtectionMessage = 402; + public const int MEPolicySet = 403; + public const int METrustV1Anchor = MEPolicySet; + public const int MEWMDRMLicenseBackupCompleted = 500; + public const int MEWMDRMLicenseBackupProgress = 501; + public const int MEWMDRMLicenseRestoreCompleted = 502; + public const int MEWMDRMLicenseRestoreProgress = 503; + public const int MEWMDRMLicenseAcquisitionCompleted = 506; + public const int MEWMDRMIndividualizationCompleted = 508; + public const int MEWMDRMIndividualizationProgress = 513; + public const int MEWMDRMProximityCompleted = 514; + public const int MEWMDRMLicenseStoreCleaned = 515; + public const int MEWMDRMRevocationDownloadCompleted = 516; + public const int MEWMDRMV1Anchor = MEWMDRMRevocationDownloadCompleted; + public const int METransformUnknown = 600; + public const int METransformNeedInput = (METransformUnknown + 1); + public const int METransformHaveOutput = (METransformNeedInput + 1); + public const int METransformDrainComplete = (METransformHaveOutput + 1); + public const int METransformMarker = (METransformDrainComplete + 1); + public const int METransformInputStreamStateChanged = (METransformMarker + 1); + public const int MEByteStreamCharacteristicsChanged = 700; + public const int MEVideoCaptureDeviceRemoved = 800; + public const int MEVideoCaptureDevicePreempted = 801; + public const int MEStreamSinkFormatInvalidated = 802; + public const int MEEncodingParameters = 803; + public const int MEContentProtectionMetadata = 900; + public const int MEDeviceThermalStateChanged = 950; + public const int MEReservedMax = 10000; +} diff --git a/sources/Win32/Win32/Windows/um/mfreadwrite/MF.Manual.cs b/sources/Win32/Win32/Windows/um/mfreadwrite/MF.Manual.cs new file mode 100644 index 0000000000..6fed32324b --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mfreadwrite/MF.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mfreadwrite.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class MF +{ + public const int MF_SOURCE_READER_INVALID_STREAM_INDEX = unchecked((int)0xFFFFFFFF); + public const int MF_SOURCE_READER_ALL_STREAMS = unchecked((int)0xFFFFFFFE); + public const int MF_SOURCE_READER_ANY_STREAM = unchecked((int)0xFFFFFFFE); + public const int MF_SOURCE_READER_FIRST_AUDIO_STREAM = unchecked((int)0xFFFFFFFD); + public const int MF_SOURCE_READER_FIRST_VIDEO_STREAM = unchecked((int)0xFFFFFFFC); + public const int MF_SOURCE_READER_MEDIASOURCE = unchecked((int)0xFFFFFFFF); + public const int MF_SOURCE_READER_CURRENT_TYPE_INDEX = unchecked((int)0xFFFFFFFF); + public const int MF_SINK_WRITER_INVALID_STREAM_INDEX = unchecked((int)0xFFFFFFFF); + public const int MF_SINK_WRITER_ALL_STREAMS = unchecked((int)0xFFFFFFFE); + public const int MF_SINK_WRITER_MEDIASINK = unchecked((int)0xFFFFFFFF); +} diff --git a/sources/Win32/Win32/Windows/um/minwinbase/EXCEPTION.Manual.cs b/sources/Win32/Win32/Windows/um/minwinbase/EXCEPTION.Manual.cs new file mode 100644 index 0000000000..c1ba1e71e3 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/minwinbase/EXCEPTION.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.Win32.STATUS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class EXCEPTION +{ + public const uint EXCEPTION_POSSIBLE_DEADLOCK = unchecked((uint)(STATUS_POSSIBLE_DEADLOCK)); +} diff --git a/sources/Win32/Win32/Windows/um/mmdeviceapi/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/mmdeviceapi/CLSID.Manual.cs new file mode 100644 index 0000000000..f2c80465f5 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mmdeviceapi/CLSID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mmdeviceapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CLSID +{ + public static ref readonly Guid CLSID_MMDeviceEnumerator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x95, + 0x03, + 0xDE, + 0xBC, + 0x2F, + 0xE5, + 0x7C, + 0x46, + 0x8E, + 0x3D, + 0xC4, + 0x57, + 0x92, + 0x91, + 0x69, + 0x2E, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/mmdeviceapi/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/mmdeviceapi/LIBID.Manual.cs new file mode 100644 index 0000000000..424491c43a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mmdeviceapi/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mmdeviceapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class LIBID +{ + public static ref readonly Guid LIBID_MMDeviceAPILib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xA3, + 0xAF, + 0xDA, + 0x2F, + 0x23, + 0x75, + 0x66, + 0x4F, + 0x99, + 0x57, + 0x9D, + 0x5E, + 0x7F, + 0xE6, + 0x98, + 0xF6, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/mmeapi/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/mmeapi/Windows.Manual.cs new file mode 100644 index 0000000000..db793aa23d --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mmeapi/Windows.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static uint MEVT_EVENTPARM(byte x) => ((uint)((x) & 0x00FFFFFFL)); + + public static byte MEVT_EVENTTYPE(uint x) => ((byte)(((x) >> 24) & 0xFF)); +} diff --git a/sources/Win32/Win32/Windows/um/mmsyscom/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/mmsyscom/Windows.Manual.cs new file mode 100644 index 0000000000..af0b7effee --- /dev/null +++ b/sources/Win32/Win32/Windows/um/mmsyscom/Windows.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/mmsyscom.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static uint MAKEFOURCC(byte ch0, byte ch1, byte ch2, byte ch3) + { + return ( + (uint)(byte)(ch0) + | ((uint)(byte)(ch1) << 8) + | ((uint)(byte)(ch2) << 16) + | ((uint)(byte)(ch3) << 24) + ); + } +} diff --git a/sources/Win32/Win32/Windows/um/msports/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/msports/Windows.Manual.cs new file mode 100644 index 0000000000..4b255b305c --- /dev/null +++ b/sources/Win32/Win32/Windows/um/msports/Windows.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/msports.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName("#define HCOMDB_INVALID_HANDLE_VALUE ((HCOMDB) INVALID_HANDLE_VALUE)")] + public static HCOMDB HCOMDB_INVALID_HANDLE_VALUE => ((HCOMDB)(INVALID_HANDLE_VALUE)); +} diff --git a/sources/Win32/Win32/Windows/um/msxml/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/msxml/LIBID.Manual.cs new file mode 100644 index 0000000000..b260ae93d3 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/msxml/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/msxml.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class LIBID +{ + public static ref readonly Guid LIBID_MSXML + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xE2, + 0x0C, + 0x3E, + 0xD6, + 0xA2, + 0xA0, + 0xD0, + 0x11, + 0x9C, + 0x02, + 0x00, + 0xC0, + 0x4F, + 0xC9, + 0x9C, + 0x8E, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/oleauto/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/oleauto/Windows.Manual.cs new file mode 100644 index 0000000000..ac94f802e0 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/oleauto/Windows.Manual.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/oleauto.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +// VarI4FromUI8 and VarI4FromI8 show up twice in OleAuto.h. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + /// + + [DllImport("oleaut32", ExactSpelling = true)] + public static extern HRESULT VarI4FromI8( + [NativeTypeName("LONG64")] long i64In, + [NativeTypeName("LONG *")] int* plOut + ); + + [Transformed] + [NativeFunction("oleaut32", EntryPoint = "VarI4FromI8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT VarI4FromI8( + [NativeTypeName("LONG64")] long i64In, + [NativeTypeName("LONG *")] Ref plOut + ) + { + fixed (int* __dsl_plOut = plOut) + { + return (HRESULT)VarI4FromI8(i64In, __dsl_plOut); + } + } + + /// + + [DllImport("oleaut32", ExactSpelling = true)] + public static extern HRESULT VarI4FromUI8( + [NativeTypeName("ULONG64")] ulong ui64In, + [NativeTypeName("LONG *")] int* plOut + ); + + [Transformed] + [NativeFunction("oleaut32", EntryPoint = "VarI4FromUI8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT VarI4FromUI8( + [NativeTypeName("ULONG64")] ulong ui64In, + [NativeTypeName("LONG *")] Ref plOut + ) + { + fixed (int* __dsl_plOut = plOut) + { + return (HRESULT)VarI4FromUI8(ui64In, __dsl_plOut); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/propsys/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/propsys/LIBID.Manual.cs new file mode 100644 index 0000000000..f2264cb12e --- /dev/null +++ b/sources/Win32/Win32/Windows/um/propsys/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/propsys.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class LIBID +{ + public static ref readonly Guid LIBID_PropSysObjects + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x94, + 0x32, + 0xDA, + 0x2C, + 0x4F, + 0x6C, + 0x20, + 0x40, + 0xB1, + 0x61, + 0x27, + 0xC5, + 0x30, + 0xC8, + 0x1F, + 0xA6, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/propvarutil/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/propvarutil/Windows.Manual.cs new file mode 100644 index 0000000000..80ce1e0222 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/propvarutil/Windows.Manual.cs @@ -0,0 +1,926 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/propvarutil.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.Win32.E; +using static Silk.NET.Win32.PROPVAR_COMPARE_FLAGS; +using static Silk.NET.Win32.PROPVAR_COMPARE_UNIT; +using static Silk.NET.Win32.S; +using static Silk.NET.Win32.VARENUM; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + /// + public static HRESULT InitPropVariantFromBoolean(BOOL fVal, PROPVARIANT* ppropvar) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_BOOL); + ((ppropvar)->Anonymous.Anonymous.Anonymous.boolVal) = + (fVal) != 0 ? ((short)(-1)) : ((short)(0)); + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromBoolean( + MaybeBool fVal, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromBoolean((BOOL)fVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromDouble(double dblVal, PROPVARIANT* ppropvar) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_R8); + ((ppropvar)->Anonymous.Anonymous.Anonymous.dblVal) = dblVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromDouble(double dblVal, Ref ppropvar) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromDouble(dblVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromGUIDAsBuffer( + [NativeTypeName("const GUID &")] Guid* guid, + PROPVARIANT* ppropvar + ) + { + return InitPropVariantFromBuffer(guid, (uint)(sizeof(Guid)), ppropvar); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromGUIDAsBuffer( + [NativeTypeName("const GUID &")] Ref guid, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + fixed (Guid* __dsl_guid = guid) + { + return (HRESULT)InitPropVariantFromGUIDAsBuffer(__dsl_guid, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromInt16(short nVal, PROPVARIANT* ppropvar) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_I2); + ((ppropvar)->Anonymous.Anonymous.Anonymous.iVal) = nVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromInt16(short nVal, Ref ppropvar) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromInt16(nVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromInt32( + [NativeTypeName("LONG")] int lVal, + PROPVARIANT* ppropvar + ) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_I4); + ((ppropvar)->Anonymous.Anonymous.Anonymous.lVal) = lVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromInt32( + [NativeTypeName("LONG")] int lVal, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromInt32(lVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromInt64( + [NativeTypeName("LONGLONG")] long llVal, + PROPVARIANT* ppropvar + ) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_I8); + ((ppropvar)->Anonymous.Anonymous.Anonymous.hVal).QuadPart = llVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromInt64( + [NativeTypeName("LONGLONG")] long llVal, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromInt64(llVal, __dsl_ppropvar); + } + } + + /// + + public static HRESULT InitPropVariantFromString( + [NativeTypeName("PCWSTR")] char* psz, + PROPVARIANT* ppropvar + ) + { + HRESULT hr = psz != null ? S_OK : E_INVALIDARG; + if (SUCCEEDED(hr)) + { + nuint byteCount = (nuint)( + (MemoryMarshal.CreateReadOnlySpanFromNullTerminated(psz).Length + 1) * 2 + ); + ((ppropvar)->Anonymous.Anonymous.Anonymous.pwszVal) = (ushort*)( + CoTaskMemAllocRaw(byteCount) + ); + hr = ((ppropvar)->Anonymous.Anonymous.Anonymous.pwszVal) != null ? S_OK : E_OUTOFMEMORY; + if (SUCCEEDED(hr)) + { + NativeMemory.Copy( + psz, + ((ppropvar)->Anonymous.Anonymous.Anonymous.pwszVal), + unchecked(byteCount) + ); + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_LPWSTR); + } + } + if (FAILED(hr)) + { + PropVariantInit(ppropvar); + } + return hr; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromString( + [NativeTypeName("PCWSTR")] Ref psz, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + fixed (char* __dsl_psz = psz) + { + return (HRESULT)InitPropVariantFromString(__dsl_psz, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromUInt16(ushort uiVal, PROPVARIANT* ppropvar) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_UI2); + ((ppropvar)->Anonymous.Anonymous.Anonymous.uiVal) = uiVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromUInt16(ushort uiVal, Ref ppropvar) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromUInt16(uiVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromUInt32( + [NativeTypeName("ULONG")] uint ulVal, + PROPVARIANT* ppropvar + ) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_UI4); + ((ppropvar)->Anonymous.Anonymous.Anonymous.ulVal) = ulVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromUInt32( + [NativeTypeName("ULONG")] uint ulVal, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromUInt32(ulVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitPropVariantFromUInt64( + [NativeTypeName("ULONGLONG")] ulong ullVal, + PROPVARIANT* ppropvar + ) + { + ((ppropvar)->Anonymous.Anonymous.vt) = (ushort)(VT_UI8); + ((ppropvar)->Anonymous.Anonymous.Anonymous.uhVal).QuadPart = ullVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitPropVariantFromUInt64( + [NativeTypeName("ULONGLONG")] ulong ullVal, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + { + return (HRESULT)InitPropVariantFromUInt64(ullVal, __dsl_ppropvar); + } + } + + /// + public static HRESULT InitVariantFromBoolean(BOOL fVal, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_BOOL); + ((pvar)->Anonymous.Anonymous.Anonymous.boolVal) = + (fVal) != 0 ? ((short)(-1)) : ((short)(0)); + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromBoolean(MaybeBool fVal, Ref pvar) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromBoolean((BOOL)fVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromDispatch(IDispatch pdisp, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_DISPATCH); + ((pvar)->Anonymous.Anonymous.Anonymous.pdispVal) = pdisp; + if (((pvar)->Anonymous.Anonymous.Anonymous.pdispVal).lpVtbl != null) + { + _ = (((pvar)->Anonymous.Anonymous.Anonymous.pdispVal)).AddRef(); + } + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromDispatch(IDispatch pdisp, Ref pvar) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromDispatch(pdisp, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromDosDateTime( + [NativeTypeName("WORD")] ushort wDate, + [NativeTypeName("WORD")] ushort wTime, + VARIANT* pvar + ) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_DATE); + return + (DosDateTimeToVariantTime(wDate, wTime, &((pvar)->Anonymous.Anonymous.Anonymous.date))) + != 0 + ? S_OK + : ((HRESULT)(1)); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromDosDateTime( + [NativeTypeName("WORD")] ushort wDate, + [NativeTypeName("WORD")] ushort wTime, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromDosDateTime(wDate, wTime, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromDouble(double dblVal, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_R8); + ((pvar)->Anonymous.Anonymous.Anonymous.dblVal) = dblVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromDouble(double dblVal, Ref pvar) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromDouble(dblVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromGUIDAsBuffer( + [NativeTypeName("const GUID &")] Guid* guid, + VARIANT* pvar + ) + { + return InitVariantFromBuffer(guid, (uint)(sizeof(Guid)), pvar); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromGUIDAsBuffer( + [NativeTypeName("const GUID &")] Ref guid, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + fixed (Guid* __dsl_guid = guid) + { + return (HRESULT)InitVariantFromGUIDAsBuffer(__dsl_guid, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromInt16(short iVal, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_I2); + ((pvar)->Anonymous.Anonymous.Anonymous.iVal) = iVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromInt16(short iVal, Ref pvar) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromInt16(iVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromInt32([NativeTypeName("LONG")] int lVal, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_I4); + ((pvar)->Anonymous.Anonymous.Anonymous.lVal) = lVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromInt32([NativeTypeName("LONG")] int lVal, Ref pvar) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromInt32(lVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromInt64( + [NativeTypeName("LONGLONG")] long llVal, + VARIANT* pvar + ) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_I8); + ((pvar)->Anonymous.Anonymous.Anonymous.llVal) = llVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromInt64( + [NativeTypeName("LONGLONG")] long llVal, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromInt64(llVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromString([NativeTypeName("PCWSTR")] char* psz, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_BSTR); + ((pvar)->Anonymous.Anonymous.Anonymous.bstrVal) = SysAllocString(psz); + HRESULT hr = + ((pvar)->Anonymous.Anonymous.Anonymous.bstrVal) != null + ? S_OK + : ((psz) != null ? E_OUTOFMEMORY : E_INVALIDARG); + if ((((HRESULT)(hr)) < 0)) + { + VariantInit(pvar); + } + return hr; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromString( + [NativeTypeName("PCWSTR")] Ref psz, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + fixed (char* __dsl_psz = psz) + { + return (HRESULT)InitVariantFromString(__dsl_psz, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromUInt16(ushort uiVal, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_UI2); + ((pvar)->Anonymous.Anonymous.Anonymous.uiVal) = uiVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromUInt16(ushort uiVal, Ref pvar) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromUInt16(uiVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromUInt32([NativeTypeName("ULONG")] uint ulVal, VARIANT* pvar) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_UI4); + ((pvar)->Anonymous.Anonymous.Anonymous.ulVal) = ulVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromUInt32( + [NativeTypeName("ULONG")] uint ulVal, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromUInt32(ulVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromUInt64( + [NativeTypeName("ULONGLONG")] ulong ullVal, + VARIANT* pvar + ) + { + ((pvar)->Anonymous.Anonymous.vt) = (ushort)(VT_UI8); + ((pvar)->Anonymous.Anonymous.Anonymous.ullVal) = ullVal; + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromUInt64( + [NativeTypeName("ULONGLONG")] ulong ullVal, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + { + return (HRESULT)InitVariantFromUInt64(ullVal, __dsl_pvar); + } + } + + /// + public static HRESULT InitVariantFromUnknown(IUnknown unknown, VARIANT* variant) + { + VariantInit(variant); + ((variant)->Anonymous.Anonymous.vt) = (ushort)(VT_UNKNOWN); + ((variant)->Anonymous.Anonymous.Anonymous.punkVal) = unknown; + if (((variant)->Anonymous.Anonymous.Anonymous.punkVal).lpVtbl != null) + { + _ = ((variant)->Anonymous.Anonymous.Anonymous.punkVal).AddRef(); + } + return S_OK; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT InitVariantFromUnknown(IUnknown unknown, Ref variant) + { + fixed (VARIANT* __dsl_variant = variant) + { + return (HRESULT)InitVariantFromUnknown(unknown, __dsl_variant); + } + } + + /// + public static BOOL IsPropVariantString( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvar + ) + { + return (PropVariantToStringWithDefault(propvar, null) != null) ? 1 : 0; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsPropVariantString( + [NativeTypeName("const PROPVARIANT &")] Ref propvar + ) + { + fixed (PROPVARIANT* __dsl_propvar = propvar) + { + return (MaybeBool)(BOOL)IsPropVariantString(__dsl_propvar); + } + } + + /// + public static BOOL IsPropVariantVector( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvar + ) + { + return (propvar->Anonymous.Anonymous.vt & ((int)(VT_ARRAY) | (int)(VT_VECTOR))); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsPropVariantVector( + [NativeTypeName("const PROPVARIANT &")] Ref propvar + ) + { + fixed (PROPVARIANT* __dsl_propvar = propvar) + { + return (MaybeBool)(BOOL)IsPropVariantVector(__dsl_propvar); + } + } + + /// + public static BOOL IsVariantArray([NativeTypeName("const VARIANT &")] VARIANT* var) + { + return (var->Anonymous.Anonymous.vt & (int)(VT_ARRAY)); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsVariantArray( + [NativeTypeName("const VARIANT &")] Ref var + ) + { + fixed (VARIANT* __dsl_var = var) + { + return (MaybeBool)(BOOL)IsVariantArray(__dsl_var); + } + } + + /// + public static BOOL IsVariantString([NativeTypeName("const VARIANT &")] VARIANT* var) + { + return (VariantToStringWithDefault(var, null) != null) ? 1 : 0; + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsVariantString( + [NativeTypeName("const VARIANT &")] Ref var + ) + { + fixed (VARIANT* __dsl_var = var) + { + return (MaybeBool)(BOOL)IsVariantString(__dsl_var); + } + } + + /// + [Transformed] + public static MaybeBool IsVarTypeFloat([NativeTypeName("VARTYPE")] ushort vt) => + (MaybeBool)(BOOL)IsVarTypeFloatRaw(vt); + + /// + public static BOOL IsVarTypeFloatRaw([NativeTypeName("VARTYPE")] ushort vt) + { + return (vt == (ushort)(VT_R4) || vt == (ushort)(VT_R8)) ? 1 : 0; + } + + /// + [Transformed] + public static MaybeBool IsVarTypeInteger([NativeTypeName("VARTYPE")] ushort vt) => + (MaybeBool)(BOOL)IsVarTypeIntegerRaw(vt); + + /// + public static BOOL IsVarTypeIntegerRaw([NativeTypeName("VARTYPE")] ushort vt) + { + return ((IsVarTypeSignedIntegerRaw(vt)) != 0 || (IsVarTypeUnsignedIntegerRaw(vt)) != 0) + ? 1 + : 0; + } + + /// + [Transformed] + public static MaybeBool IsVarTypeNumber([NativeTypeName("VARTYPE")] ushort vt) => + (MaybeBool)(BOOL)IsVarTypeNumberRaw(vt); + + /// + public static BOOL IsVarTypeNumberRaw([NativeTypeName("VARTYPE")] ushort vt) + { + return ((IsVarTypeIntegerRaw(vt)) != 0 || (IsVarTypeFloatRaw(vt)) != 0) ? 1 : 0; + } + + /// + [Transformed] + public static MaybeBool IsVarTypeSignedInteger([NativeTypeName("VARTYPE")] ushort vt) => + (MaybeBool)(BOOL)IsVarTypeSignedIntegerRaw(vt); + + /// + public static BOOL IsVarTypeSignedIntegerRaw([NativeTypeName("VARTYPE")] ushort vt) + { + BOOL fRet = 0; + switch (vt) + { + case (int)(VT_I1): + case (int)(VT_I2): + case (int)(VT_I4): + case (int)(VT_I8): + { + fRet = 1; + break; + } + } + return fRet; + } + + /// + [Transformed] + public static MaybeBool IsVarTypeUnsignedInteger([NativeTypeName("VARTYPE")] ushort vt) => + (MaybeBool)(BOOL)IsVarTypeUnsignedIntegerRaw(vt); + + /// + public static BOOL IsVarTypeUnsignedIntegerRaw([NativeTypeName("VARTYPE")] ushort vt) + { + BOOL fRet = 0; + switch (vt) + { + case (int)(VT_UI1): + case (int)(VT_UI2): + case (int)(VT_UI4): + case (int)(VT_UI8): + { + fRet = 1; + break; + } + } + return fRet; + } + + /// + public static int PropVariantCompare( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvar1, + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvar2 + ) + { + return PropVariantCompareEx(propvar1, propvar2, PVCU_DEFAULT, (int)(PVCF_DEFAULT)); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PropVariantCompare( + [NativeTypeName("const PROPVARIANT &")] Ref propvar1, + [NativeTypeName("const PROPVARIANT &")] Ref propvar2 + ) + { + fixed (PROPVARIANT* __dsl_propvar2 = propvar2) + fixed (PROPVARIANT* __dsl_propvar1 = propvar1) + { + return (int)PropVariantCompare(__dsl_propvar1, __dsl_propvar2); + } + } + + /// + public static HRESULT PropVariantGetElem( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvarIn, + [NativeTypeName("ULONG")] uint iElem, + PROPVARIANT* ppropvar + ) + { + return InitPropVariantFromPropVariantVectorElem(propvarIn, iElem, ppropvar); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT PropVariantGetElem( + [NativeTypeName("const PROPVARIANT &")] Ref propvarIn, + [NativeTypeName("ULONG")] uint iElem, + Ref ppropvar + ) + { + fixed (PROPVARIANT* __dsl_ppropvar = ppropvar) + fixed (PROPVARIANT* __dsl_propvarIn = propvarIn) + { + return (HRESULT)PropVariantGetElem(__dsl_propvarIn, iElem, __dsl_ppropvar); + } + } + + /// + public static HRESULT PropVariantToCLSID( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvar, + [NativeTypeName("CLSID *")] Guid* pclsid + ) + { + return PropVariantToGUID(propvar, unchecked((Guid*)(pclsid))); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT PropVariantToCLSID( + [NativeTypeName("const PROPVARIANT &")] Ref propvar, + [NativeTypeName("CLSID *")] Ref pclsid + ) + { + fixed (Guid* __dsl_pclsid = pclsid) + fixed (PROPVARIANT* __dsl_propvar = propvar) + { + return (HRESULT)PropVariantToCLSID(__dsl_propvar, __dsl_pclsid); + } + } + + /// + public static HRESULT PropVariantToInt32( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvarIn, + int* piRet + ) + { + return PropVariantToInt32(propvarIn, unchecked((int*)(piRet))); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT PropVariantToInt32( + [NativeTypeName("const PROPVARIANT &")] Ref propvarIn, + Ref piRet + ) + { + fixed (int* __dsl_piRet = piRet) + fixed (PROPVARIANT* __dsl_propvarIn = propvarIn) + { + return (HRESULT)PropVariantToInt32(__dsl_propvarIn, __dsl_piRet); + } + } + + /// + public static HRESULT PropVariantToUInt32( + [NativeTypeName("const PROPVARIANT &")] PROPVARIANT* propvarIn, + uint* piRet + ) + { + return PropVariantToUInt32(propvarIn, unchecked((uint*)(piRet))); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT PropVariantToUInt32( + [NativeTypeName("const PROPVARIANT &")] Ref propvarIn, + Ref piRet + ) + { + fixed (uint* __dsl_piRet = piRet) + fixed (PROPVARIANT* __dsl_propvarIn = propvarIn) + { + return (HRESULT)PropVariantToUInt32(__dsl_propvarIn, __dsl_piRet); + } + } + + /// + public static HRESULT VariantGetElem( + [NativeTypeName("const VARIANT &")] VARIANT* varIn, + [NativeTypeName("ULONG")] uint iElem, + VARIANT* pvar + ) + { + return InitVariantFromVariantArrayElem(varIn, iElem, pvar); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT VariantGetElem( + [NativeTypeName("const VARIANT &")] Ref varIn, + [NativeTypeName("ULONG")] uint iElem, + Ref pvar + ) + { + fixed (VARIANT* __dsl_pvar = pvar) + fixed (VARIANT* __dsl_varIn = varIn) + { + return (HRESULT)VariantGetElem(__dsl_varIn, iElem, __dsl_pvar); + } + } + + /// + public static HRESULT VariantToInt32( + [NativeTypeName("const VARIANT &")] VARIANT* varIn, + int* piRet + ) + { + return VariantToInt32(varIn, unchecked((int*)(piRet))); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT VariantToInt32( + [NativeTypeName("const VARIANT &")] Ref varIn, + Ref piRet + ) + { + fixed (int* __dsl_piRet = piRet) + fixed (VARIANT* __dsl_varIn = varIn) + { + return (HRESULT)VariantToInt32(__dsl_varIn, __dsl_piRet); + } + } + + /// + public static HRESULT VariantToUInt32( + [NativeTypeName("const VARIANT &")] VARIANT* varIn, + uint* piRet + ) + { + return VariantToUInt32(varIn, unchecked((uint*)(piRet))); + } + + /// + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HRESULT VariantToUInt32( + [NativeTypeName("const VARIANT &")] Ref varIn, + Ref piRet + ) + { + fixed (uint* __dsl_piRet = piRet) + fixed (VARIANT* __dsl_varIn = varIn) + { + return (HRESULT)VariantToUInt32(__dsl_varIn, __dsl_piRet); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/sapi/LIBID.Manual.cs b/sources/Win32/Win32/Windows/um/sapi/LIBID.Manual.cs new file mode 100644 index 0000000000..658f7665e4 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/sapi/LIBID.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class LIBID +{ + public static ref readonly Guid LIBID_SpeechLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x3A, + 0xCA, + 0x66, + 0xC8, + 0xF7, + 0x32, + 0xD2, + 0x11, + 0x96, + 0x02, + 0x00, + 0xC0, + 0x4F, + 0x8E, + 0xE6, + 0x28, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/sapi/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/sapi/Windows.Manual.cs new file mode 100644 index 0000000000..78956a3ccd --- /dev/null +++ b/sources/Win32/Win32/Windows/um/sapi/Windows.Manual.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName("#define SPRULETRANS_TEXTBUFFER (SPSTATEHANDLE)(-1)")] + public static SPSTATEHANDLE SPRULETRANS_TEXTBUFFER => (SPSTATEHANDLE)(-1); + + [NativeTypeName("#define SPRULETRANS_WILDCARD (SPSTATEHANDLE)(-2)")] + public static SPSTATEHANDLE SPRULETRANS_WILDCARD => (SPSTATEHANDLE)(-2); + + [NativeTypeName("#define SPRULETRANS_DICTATION (SPSTATEHANDLE)(-3)")] + public static SPSTATEHANDLE SPRULETRANS_DICTATION => (SPSTATEHANDLE)(-3); + + public static ulong SPFEI(int SPEI_ord) => ((1UL << SPEI_ord) | SPFEI_FLAGCHECK); +} diff --git a/sources/Win32/Win32/Windows/um/shellapi/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/shellapi/Windows.Manual.cs new file mode 100644 index 0000000000..532a5353ee --- /dev/null +++ b/sources/Win32/Win32/Windows/um/shellapi/Windows.Manual.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName("#define NOTIFYICONDATAA_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAA, szTip[64])")] + public static uint NOTIFYICONDATAA_V1_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out NOTIFYICONDATAA tmp); + return (uint)(&tmp.szTip) - (uint)(&tmp); + } + } + + [NativeTypeName("#define NOTIFYICONDATAW_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAW, szTip[64])")] + public static uint NOTIFYICONDATAW_V1_SIZE + { + get + { + Unsafe.SkipInit(out NOTIFYICONDATAW tmp); + return (uint)(&tmp.szTip) - (uint)(&tmp); + } + } + + [NativeTypeName("#define NOTIFYICONDATA_V1_SIZE NOTIFYICONDATAW_V1_SIZE")] + public static uint NOTIFYICONDATA_V1_SIZE => NOTIFYICONDATAW_V1_SIZE; + + [NativeTypeName("#define NOTIFYICONDATAA_V2_SIZE FIELD_OFFSET(NOTIFYICONDATAA, guidItem)")] + public static uint NOTIFYICONDATAA_V2_SIZE + { + get + { + Unsafe.SkipInit(out NOTIFYICONDATAA tmp); + return (uint)(&tmp.guidItem) - (uint)(&tmp); + } + } + + [NativeTypeName("#define NOTIFYICONDATAW_V2_SIZE FIELD_OFFSET(NOTIFYICONDATAW, guidItem)")] + public static uint NOTIFYICONDATAW_V2_SIZE + { + get + { + Unsafe.SkipInit(out NOTIFYICONDATAW tmp); + return (uint)(&tmp.guidItem) - (uint)(&tmp); + } + } + + [NativeTypeName("#define NOTIFYICONDATA_V2_SIZE NOTIFYICONDATAW_V2_SIZE")] + public static uint NOTIFYICONDATA_V2_SIZE => NOTIFYICONDATAW_V2_SIZE; + + [NativeTypeName("#define NOTIFYICONDATAA_V3_SIZE FIELD_OFFSET(NOTIFYICONDATAA, hBalloonIcon)")] + public static uint NOTIFYICONDATAA_V3_SIZE + { + get + { + Unsafe.SkipInit(out NOTIFYICONDATAA tmp); + return (uint)(&tmp.hBalloonIcon) - (uint)(&tmp); + } + } + + [NativeTypeName("#define NOTIFYICONDATAW_V3_SIZE FIELD_OFFSET(NOTIFYICONDATAW, hBalloonIcon)")] + public static uint NOTIFYICONDATAW_V3_SIZE + { + get + { + Unsafe.SkipInit(out NOTIFYICONDATAW tmp); + return (uint)(&tmp.hBalloonIcon) - (uint)(&tmp); + } + } + + [NativeTypeName("#define NOTIFYICONDATA_V3_SIZE NOTIFYICONDATAW_V3_SIZE")] + public static uint NOTIFYICONDATA_V3_SIZE => NOTIFYICONDATAW_V3_SIZE; +} diff --git a/sources/Win32/Win32/Windows/um/strmif/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/strmif/Windows.Manual.cs new file mode 100644 index 0000000000..4e1607fd59 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/strmif/Windows.Manual.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/strmif.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + public const int ADVISE_NONE = 0; + public const int ADVISE_CLIPPING = 0x1; + public const int ADVISE_PALETTE = 0x2; + public const int ADVISE_COLORKEY = 0x4; + public const int ADVISE_POSITION = 0x8; + public const int ADVISE_DISPLAY_CHANGE = 0x10; +} diff --git a/sources/Win32/Win32/Windows/um/tpcshrd/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/tpcshrd/Windows.Manual.cs new file mode 100644 index 0000000000..89ec28e7f8 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/tpcshrd/Windows.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/tpcshrd.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + public const string MICROSOFT_TABLETPENSERVICE_PROPERTY = "MicrosoftTabletPenServiceProperty"; +} diff --git a/sources/Win32/Win32/Windows/um/wincodec/CLSID.Manual.cs b/sources/Win32/Win32/Windows/um/wincodec/CLSID.Manual.cs new file mode 100644 index 0000000000..de3353ebb8 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/wincodec/CLSID.Manual.cs @@ -0,0 +1,66 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class CLSID +{ + public static ref readonly Guid CLSID_WICImagingFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x62, + 0xF2, + 0xCA, + 0xCA, + 0x70, + 0x93, + 0x15, + 0x46, + 0xA1, + 0x3B, + 0x9F, + 0x55, + 0x39, + 0xDA, + 0x4C, + 0x0A, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid CLSID_WICPngDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x7B, + 0xA1, + 0x9E, + 0x38, + 0x78, + 0x50, + 0xDE, + 0x4C, + 0xB6, + 0xEF, + 0x25, + 0xC1, + 0x51, + 0x75, + 0xC7, + 0x51, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/wincred/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/wincred/Windows.Manual.cs new file mode 100644 index 0000000000..84e00c331f --- /dev/null +++ b/sources/Win32/Win32/Windows/um/wincred/Windows.Manual.cs @@ -0,0 +1,108 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/wincred.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using static Silk.NET.Win32.ERROR; +using static Silk.NET.Win32.NERR; +using static Silk.NET.Win32.SEC; +using static Silk.NET.Win32.STATUS; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static bool CREDUI_IS_AUTHENTICATION_ERROR(int _Status) + { + return ( + CREDUIP_IS_USER_PASSWORD_ERROR(_Status) + || CREDUIP_IS_DOWNGRADE_ERROR(_Status) + || CREDUIP_IS_EXPIRED_ERROR(_Status) + ); + } + + public static bool CREDUI_NO_PROMPT_AUTHENTICATION_ERROR(int _Status) + { + return ( + (_Status) == ERROR_AUTHENTICATION_FIREWALL_FAILED + || (_Status) == HRESULT_FROM_WIN32(ERROR_AUTHENTICATION_FIREWALL_FAILED) + || (_Status) == STATUS_AUTHENTICATION_FIREWALL_FAILED + || (_Status) == HRESULT_FROM_NT(STATUS_AUTHENTICATION_FIREWALL_FAILED) + || (_Status) == ERROR_ACCOUNT_DISABLED + || (_Status) == HRESULT_FROM_WIN32(ERROR_ACCOUNT_DISABLED) + || (_Status) == STATUS_ACCOUNT_DISABLED + || (_Status) == HRESULT_FROM_NT(STATUS_ACCOUNT_DISABLED) + || (_Status) == ERROR_ACCOUNT_RESTRICTION + || (_Status) == HRESULT_FROM_WIN32(ERROR_ACCOUNT_RESTRICTION) + || (_Status) == STATUS_ACCOUNT_RESTRICTION + || (_Status) == HRESULT_FROM_NT(STATUS_ACCOUNT_RESTRICTION) + || (_Status) == ERROR_ACCOUNT_LOCKED_OUT + || (_Status) == HRESULT_FROM_WIN32(ERROR_ACCOUNT_LOCKED_OUT) + || (_Status) == STATUS_ACCOUNT_LOCKED_OUT + || (_Status) == HRESULT_FROM_NT(STATUS_ACCOUNT_LOCKED_OUT) + || (_Status) == ERROR_ACCOUNT_EXPIRED + || (_Status) == HRESULT_FROM_WIN32(ERROR_ACCOUNT_EXPIRED) + || (_Status) == STATUS_ACCOUNT_EXPIRED + || (_Status) == HRESULT_FROM_NT(STATUS_ACCOUNT_EXPIRED) + || (_Status) == ERROR_LOGON_TYPE_NOT_GRANTED + || (_Status) == HRESULT_FROM_WIN32(ERROR_LOGON_TYPE_NOT_GRANTED) + || (_Status) == STATUS_LOGON_TYPE_NOT_GRANTED + || (_Status) == HRESULT_FROM_NT(STATUS_LOGON_TYPE_NOT_GRANTED) + ); + } + + public static bool CREDUIP_IS_DOWNGRADE_ERROR(int _Status) + { + return ( + (_Status) == ERROR_DOWNGRADE_DETECTED + || (_Status) == HRESULT_FROM_WIN32(ERROR_DOWNGRADE_DETECTED) + || (_Status) == STATUS_DOWNGRADE_DETECTED + || (_Status) == HRESULT_FROM_NT(STATUS_DOWNGRADE_DETECTED) + || (_Status) == SEC_E_DOWNGRADE_DETECTED + ); + } + + public static bool CREDUIP_IS_EXPIRED_ERROR(int _Status) + { + return ( + (_Status) == ERROR_PASSWORD_EXPIRED + || (_Status) == HRESULT_FROM_WIN32(ERROR_PASSWORD_EXPIRED) + || (_Status) == STATUS_PASSWORD_EXPIRED + || (_Status) == HRESULT_FROM_NT(STATUS_PASSWORD_EXPIRED) + || (_Status) == ERROR_PASSWORD_MUST_CHANGE + || (_Status) == HRESULT_FROM_WIN32(ERROR_PASSWORD_MUST_CHANGE) + || (_Status) == STATUS_PASSWORD_MUST_CHANGE + || (_Status) == HRESULT_FROM_NT(STATUS_PASSWORD_MUST_CHANGE) + || (_Status) == NERR_PasswordExpired + || (_Status) == HRESULT_FROM_WIN32(NERR_PasswordExpired) + ); + } + + public static bool CREDUIP_IS_USER_PASSWORD_ERROR(int _Status) + { + return ( + (_Status) == ERROR_LOGON_FAILURE + || (_Status) == HRESULT_FROM_WIN32(ERROR_LOGON_FAILURE) + || (_Status) == STATUS_LOGON_FAILURE + || (_Status) == HRESULT_FROM_NT(STATUS_LOGON_FAILURE) + || (_Status) == ERROR_ACCESS_DENIED + || (_Status) == HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) + || (_Status) == STATUS_ACCESS_DENIED + || (_Status) == HRESULT_FROM_NT(STATUS_ACCESS_DENIED) + || (_Status) == ERROR_INVALID_PASSWORD + || (_Status) == HRESULT_FROM_WIN32(ERROR_INVALID_PASSWORD) + || (_Status) == STATUS_WRONG_PASSWORD + || (_Status) == HRESULT_FROM_NT(STATUS_WRONG_PASSWORD) + || (_Status) == STATUS_NO_SUCH_USER + || (_Status) == HRESULT_FROM_NT(STATUS_NO_SUCH_USER) + || (_Status) == ERROR_NO_SUCH_USER + || (_Status) == HRESULT_FROM_WIN32(ERROR_NO_SUCH_USER) + || (_Status) == ERROR_NO_SUCH_LOGON_SESSION + || (_Status) == HRESULT_FROM_WIN32(ERROR_NO_SUCH_LOGON_SESSION) + || (_Status) == STATUS_NO_SUCH_LOGON_SESSION + || (_Status) == HRESULT_FROM_NT(STATUS_NO_SUCH_LOGON_SESSION) + || (_Status) == SEC_E_NO_CREDENTIALS + || (_Status) == SEC_E_LOGON_DENIED + || (_Status) == SEC_E_NO_CONTEXT + || (_Status) == STATUS_NO_SECURITY_CONTEXT + ); + } +} diff --git a/sources/Win32/Win32/Windows/um/wincrypt/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/wincrypt/Windows.Manual.cs new file mode 100644 index 0000000000..8e285837ee --- /dev/null +++ b/sources/Win32/Win32/Windows/um/wincrypt/Windows.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [NativeTypeName("#define HCCE_CURRENT_USER ((HCERTCHAINENGINE)NULL)")] + public static HCERTCHAINENGINE HCCE_CURRENT_USER => ((HCERTCHAINENGINE)(NULL)); + + [NativeTypeName("#define HCCE_LOCAL_MACHINE ((HCERTCHAINENGINE)0x1)")] + public static HCERTCHAINENGINE HCCE_LOCAL_MACHINE => ((HCERTCHAINENGINE)(0x1)); + + [NativeTypeName("#define HCCE_SERIAL_LOCAL_MACHINE ((HCERTCHAINENGINE)0x2)")] + public static HCERTCHAINENGINE HCCE_SERIAL_LOCAL_MACHINE => ((HCERTCHAINENGINE)(0x2)); +} diff --git a/sources/Win32/Win32/Windows/um/wingdi/EMR.Manual.cs b/sources/Win32/Win32/Windows/um/wingdi/EMR.Manual.cs new file mode 100644 index 0000000000..775cb66bb7 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/wingdi/EMR.Manual.cs @@ -0,0 +1,17 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct EMR +{ + public const int EMR_COMMENT = EMR_GDICOMMENT; + public const int EMR_DRAWESCAPE = EMR_RESERVED_105; + public const int EMR_EXTESCAPE = EMR_RESERVED_106; + public const int EMR_SMALLTEXTOUT = EMR_RESERVED_108; + public const int EMR_FORCEUFIMAPPING = EMR_RESERVED_109; + public const int EMR_NAMEDESCAPE = EMR_RESERVED_110; + public const int EMR_SETLINKEDUFIS = EMR_RESERVED_119; + public const int EMR_SETTEXTJUSTIFICATION = EMR_RESERVED_120; +} diff --git a/sources/Win32/Win32/Windows/um/wingdi/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/wingdi/Windows.Manual.cs new file mode 100644 index 0000000000..4635b38793 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/wingdi/Windows.Manual.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static HANDLE HGDI_ERROR => (HANDLE)(-1); + public const int GDIREGISTERDDRAWPACKETVERSION = 0x1; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static COLORREF CMYK(byte c, byte m, byte y, byte k) => + k | ((uint)y << 8) | (((uint)m) << 16) | (((uint)c) << 24); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GDI__DIBSIZE(BITMAPINFOHEADER bi) => + GDI_DIBWIDTHBYTES(bi) * (uint)bi.biHeight; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GDI_DIBSIZE(BITMAPINFOHEADER bi) => + bi.biHeight < 0 ? unchecked((uint)-1) * GDI__DIBSIZE(bi) : GDI__DIBSIZE(bi); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GDI_DIBWIDTHBYTES(BITMAPINFOHEADER bi) => + GDI_WIDTHBYTES((uint)bi.biWidth * bi.biBitCount); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint GDI_WIDTHBYTES(uint bits) => ((bits + 31) & ~31u) / 8; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetBValue(COLORREF rgb) => LOBYTE((ushort)(rgb >> 16)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetCValue(COLORREF cmyk) => (byte)(cmyk >> 24); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetGValue(COLORREF rgb) => LOBYTE((ushort)(rgb >> 8)); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetKValue(COLORREF cmyk) => (byte)cmyk; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetMValue(COLORREF cmyk) => (byte)(cmyk >> 16); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetRValue(COLORREF rgb) => LOBYTE((ushort)rgb); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static byte GetYValue(COLORREF cmyk) => (byte)(cmyk >> 8); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static POINTS MAKEPOINTS(int l) => *(POINTS*)&l; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint MAKEROP4(uint fore, uint back) => ((back << 8) & 0xFF000000) | fore; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static COLORREF PALETTEINDEX(ushort i) => 0x01000000 | (uint)i; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static COLORREF PALETTERGB(byte r, byte g, byte b) => 0x02000000 | RGB(r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static COLORREF RGB(byte r, byte g, byte b) => r | ((uint)g << 8) | (((uint)b) << 16); +} diff --git a/sources/Win32/Win32/Windows/um/winhttp/WINHTTP.Manual.cs b/sources/Win32/Win32/Windows/um/winhttp/WINHTTP.Manual.cs new file mode 100644 index 0000000000..c5041ea3a0 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winhttp/WINHTTP.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winhttp.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class WINHTTP +{ + [NativeTypeName("#define WINHTTP_INVALID_STATUS_CALLBACK ((WINHTTP_STATUS_CALLBACK)(-1L))")] + public static delegate* unmanaged< + HINTERNET, + nuint, + uint, + void*, + uint, + void> WINHTTP_INVALID_STATUS_CALLBACK => + ((delegate* unmanaged)(-1)); +} diff --git a/sources/Win32/Win32/Windows/um/winioctl/FILE.Manual.cs b/sources/Win32/Win32/Windows/um/winioctl/FILE.Manual.cs new file mode 100644 index 0000000000..fe0ee2d144 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winioctl/FILE.Manual.cs @@ -0,0 +1,114 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class FILE +{ + [NativeTypeName("#define FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT 0x00000010")] + public static int FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT + { + get + { + if (sizeof(nint) == 4) + { + return 0; + } + else + { + return 0x00000010; + } + } + } + + [NativeTypeName( + "#define FILE_REGION_USAGE_QUERY_ALIGNMENT (FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT |\\\r\n FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT)" + )] + public static readonly int FILE_REGION_USAGE_QUERY_ALIGNMENT = + FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT | FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT; + public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xA1, + 0x64, + 0x0A, + 0x0D, + 0xFC, + 0x38, + 0xB8, + 0x4D, + 0x9F, + 0xE7, + 0x3F, + 0x43, + 0x52, + 0xCD, + 0x7C, + 0x5C, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x64, + 0x4D, + 0x62, + 0xB7, + 0xA3, + 0xB9, + 0xF8, + 0x4C, + 0x80, + 0x11, + 0x5B, + 0x86, + 0xC9, + 0x40, + 0xE7, + 0xB7, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xB7, + 0x3E, + 0x45, + 0x9D, + 0xA6, + 0xD2, + 0xBD, + 0x4D, + 0xA2, + 0xE3, + 0xFB, + 0xD0, + 0xED, + 0x91, + 0x09, + 0xA9, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winioctl/FS.Manual.cs b/sources/Win32/Win32/Windows/um/winioctl/FS.Manual.cs new file mode 100644 index 0000000000..2656f74464 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winioctl/FS.Manual.cs @@ -0,0 +1,115 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class FS +{ + [NativeTypeName( + "#define FS_BPIO_OUTPUT_ENABLE_SIZE (RTL_SIZEOF_THROUGH_FIELD(FS_BPIO_OUTPUT,Enable))" + )] + public static uint FS_BPIO_OUTPUT_ENABLE_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.Enable) - (uint)(&tmp)) + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_QUERY_SIZE (RTL_SIZEOF_THROUGH_FIELD(FS_BPIO_OUTPUT,Query))" + )] + public static uint FS_BPIO_OUTPUT_QUERY_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.Query) - (uint)(&tmp)) + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_DISABLE_SIZE ((size_t)FIELD_OFFSET(FS_BPIO_OUTPUT, Enable))" + )] + public static nuint FS_BPIO_OUTPUT_DISABLE_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.Enable) - (uint)(&tmp)) + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_VOLUME_STACK_PAUSE_SIZE ((size_t)FIELD_OFFSET(FS_BPIO_OUTPUT, Enable))" + )] + public static nuint FS_BPIO_OUTPUT_VOLUME_STACK_PAUSE_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.Enable) - (uint)(&tmp)) + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_VOLUME_STACK_RESUME_SIZE (RTL_SIZEOF_THROUGH_FIELD(FS_BPIO_OUTPUT,VolumeStackResume))" + )] + public static uint FS_BPIO_OUTPUT_VOLUME_STACK_RESUME_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.VolumeStackResume) - (uint)(&tmp)) + + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_STREAM_PAUSE_SIZE ((size_t)FIELD_OFFSET(FS_BPIO_OUTPUT, Enable))" + )] + public static nuint FS_BPIO_OUTPUT_STREAM_PAUSE_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.Enable) - (uint)(&tmp)) + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_STREAM_RESUME_SIZE (RTL_SIZEOF_THROUGH_FIELD(FS_BPIO_OUTPUT,StreamResume))" + )] + public static uint FS_BPIO_OUTPUT_STREAM_RESUME_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.StreamResume) - (uint)(&tmp)) + + (uint)(sizeof(FS_BPIO_RESULTS)); + } + } + + [NativeTypeName( + "#define FS_BPIO_OUTPUT_GET_INFO_SIZE (RTL_SIZEOF_THROUGH_FIELD(FS_BPIO_OUTPUT,GetInfo))" + )] + public static uint FS_BPIO_OUTPUT_GET_INFO_SIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + Unsafe.SkipInit(out FS_BPIO_OUTPUT tmp); + return ((uint)(&tmp.Anonymous.GetInfo) - (uint)(&tmp)) + (uint)(sizeof(FS_BPIO_INFO)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winioctl/FSCTL.Manual.cs b/sources/Win32/Win32/Windows/um/winioctl/FSCTL.Manual.cs new file mode 100644 index 0000000000..6acb8ebc66 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winioctl/FSCTL.Manual.cs @@ -0,0 +1,26 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class FSCTL +{ + [NativeTypeName( + "#define FSCTL_ENABLE_PER_IO_FLAGS CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 267, METHOD_BUFFERED, FILE_ANY_ACCESS)" + )] + public static int FSCTL_ENABLE_PER_IO_FLAGS + { + get + { + if (sizeof(nint) == 4) + { + return 0; + } + else + { + return (((0x00000009) << 16) | ((0) << 14) | ((267) << 2) | (0)); + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winioctl/GUID.Manual.cs b/sources/Win32/Win32/Windows/um/winioctl/GUID.Manual.cs new file mode 100644 index 0000000000..7869a70796 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winioctl/GUID.Manual.cs @@ -0,0 +1,552 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class GUID +{ + public static ref readonly Guid GUID_DEVINTERFACE_DISK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x07, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_CDROM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x08, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_PARTITION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x0A, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_TAPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x0B, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_WRITEONCEDISK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x0C, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_VOLUME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x0D, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_MEDIUMCHANGER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x10, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_FLOPPY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x11, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_CDCHANGER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x12, + 0x63, + 0xF5, + 0x53, + 0xBF, + 0xB6, + 0xD0, + 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_STORAGEPORT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x60, + 0xFE, + 0xCC, + 0x2A, + 0x30, + 0xC1, + 0xD2, + 0x11, + 0xB0, + 0x82, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_VMLUN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x19, + 0x66, + 0x41, + 0x6F, + 0x29, + 0x9F, + 0xA5, + 0x42, + 0xB2, + 0x0B, + 0x37, + 0xE2, + 0x19, + 0xCA, + 0x02, + 0xB0, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_SES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xEC, + 0xC9, + 0x90, + 0x17, + 0xD5, + 0x47, + 0xF3, + 0x4D, + 0xB5, + 0xAF, + 0x9A, + 0xDF, + 0x3C, + 0xF2, + 0x3E, + 0x48, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_SERVICE_VOLUME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x82, + 0x3D, + 0xAD, + 0x6E, + 0xEC, + 0x25, + 0xBC, + 0x46, + 0xB7, + 0xFD, + 0xC1, + 0xF0, + 0xDF, + 0x8F, + 0x50, + 0x37, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_HIDDEN_VOLUME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x28, + 0x8A, + 0x10, + 0x7F, + 0x33, + 0x98, + 0x3B, + 0x4B, + 0xB7, + 0x80, + 0x2C, + 0x6B, + 0x5F, + 0xA5, + 0xC0, + 0x62, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x21, + 0x7C, + 0x44, + 0x27, + 0xC3, + 0xBC, + 0x07, + 0x4D, + 0xA0, + 0x5B, + 0xA3, + 0x39, + 0x5B, + 0xB4, + 0xEE, + 0xE7, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x9D, + 0x60, + 0x83, + 0x42, + 0xC2, + 0x4D, + 0xBE, + 0x43, + 0xBB, + 0xB4, + 0x4F, + 0x15, + 0xDF, + 0xCE, + 0x2C, + 0x61, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_SCM_PD_HEALTH_NOTIFICATION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x86, + 0xD3, + 0xA2, + 0x9D, + 0xF5, + 0x72, + 0xE3, + 0x4E, + 0x81, + 0x55, + 0xEC, + 0xA0, + 0x67, + 0x8E, + 0x3B, + 0x06, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_SCM_PD_PASSTHROUGH_INVDIMM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x30, + 0xAC, + 0x09, + 0x43, + 0x11, + 0x0D, + 0xE4, + 0x11, + 0x91, + 0x91, + 0x08, + 0x00, + 0x20, + 0x0C, + 0x9A, + 0x66, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_COMPORT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xD1, + 0xE0, + 0x86, + 0x89, + 0x80, + 0xD0, + 0x11, + 0x9C, + 0xE4, + 0x08, + 0x00, + 0x3E, + 0x30, + 0x1F, + 0x73, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x78, + 0xE9, + 0x36, + 0x4D, + 0x25, + 0xE3, + 0xCE, + 0x11, + 0xBF, + 0xC1, + 0x08, + 0x00, + 0x2B, + 0xE1, + 0x03, + 0x18, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winioctl/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/winioctl/Windows.Manual.cs new file mode 100644 index 0000000000..703f0b681a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winioctl/Windows.Manual.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int CTL_CODE(int DeviceType, int Function, int Method, int Access) => + (DeviceType << 16) | (Access << 14) | (Function << 2) | Method; +} diff --git a/sources/Win32/Win32/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs new file mode 100644 index 0000000000..ab2f0c6d6a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/AMD64_NT_CONTEXT.Manual.cs @@ -0,0 +1,405 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct AMD64_NT_CONTEXT +{ + [NativeTypeName("DWORD64")] + public ulong P1Home; + + [NativeTypeName("DWORD64")] + public ulong P2Home; + + [NativeTypeName("DWORD64")] + public ulong P3Home; + + [NativeTypeName("DWORD64")] + public ulong P4Home; + + [NativeTypeName("DWORD64")] + public ulong P5Home; + + [NativeTypeName("DWORD64")] + public ulong P6Home; + + [NativeTypeName("DWORD")] + public uint ContextFlags; + + [NativeTypeName("DWORD")] + public uint MxCsr; + + [NativeTypeName("WORD")] + public ushort SegCs; + + [NativeTypeName("WORD")] + public ushort SegDs; + + [NativeTypeName("WORD")] + public ushort SegEs; + + [NativeTypeName("WORD")] + public ushort SegFs; + + [NativeTypeName("WORD")] + public ushort SegGs; + + [NativeTypeName("WORD")] + public ushort SegSs; + + [NativeTypeName("DWORD")] + public uint EFlags; + + [NativeTypeName("DWORD64")] + public ulong Dr0; + + [NativeTypeName("DWORD64")] + public ulong Dr1; + + [NativeTypeName("DWORD64")] + public ulong Dr2; + + [NativeTypeName("DWORD64")] + public ulong Dr3; + + [NativeTypeName("DWORD64")] + public ulong Dr6; + + [NativeTypeName("DWORD64")] + public ulong Dr7; + + [NativeTypeName("DWORD64")] + public ulong Rax; + + [NativeTypeName("DWORD64")] + public ulong Rcx; + + [NativeTypeName("DWORD64")] + public ulong Rdx; + + [NativeTypeName("DWORD64")] + public ulong Rbx; + + [NativeTypeName("DWORD64")] + public ulong Rsp; + + [NativeTypeName("DWORD64")] + public ulong Rbp; + + [NativeTypeName("DWORD64")] + public ulong Rsi; + + [NativeTypeName("DWORD64")] + public ulong Rdi; + + [NativeTypeName("DWORD64")] + public ulong R8; + + [NativeTypeName("DWORD64")] + public ulong R9; + + [NativeTypeName("DWORD64")] + public ulong R10; + + [NativeTypeName("DWORD64")] + public ulong R11; + + [NativeTypeName("DWORD64")] + public ulong R12; + + [NativeTypeName("DWORD64")] + public ulong R13; + + [NativeTypeName("DWORD64")] + public ulong R14; + + [NativeTypeName("DWORD64")] + public ulong R15; + + [NativeTypeName("DWORD64")] + public ulong Rip; + + [NativeTypeName( + "_CONTEXT::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:4242:5)" + )] + public _Anonymous_e__Union Anonymous; + + [NativeTypeName("M128A [26]")] + public _VectorRegister_e__FixedBuffer VectorRegister; + + [NativeTypeName("DWORD64")] + public ulong VectorControl; + + [NativeTypeName("DWORD64")] + public ulong DebugControl; + + [NativeTypeName("DWORD64")] + public ulong LastBranchToRip; + + [NativeTypeName("DWORD64")] + public ulong LastBranchFromRip; + + [NativeTypeName("DWORD64")] + public ulong LastExceptionToRip; + + [NativeTypeName("DWORD64")] + public ulong LastExceptionFromRip; + + [UnscopedRef] + public ref XSAVE_FORMAT FltSave + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.FltSave; } + } + + [UnscopedRef] + public Span Header + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return Anonymous.Anonymous.Header.AsSpan(); } + } + + [UnscopedRef] + public Span Legacy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return Anonymous.Anonymous.Legacy.AsSpan(); } + } + + [UnscopedRef] + public ref M128A Xmm0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm0; } + } + + [UnscopedRef] + public ref M128A Xmm1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm1; } + } + + [UnscopedRef] + public ref M128A Xmm2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm2; } + } + + [UnscopedRef] + public ref M128A Xmm3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm3; } + } + + [UnscopedRef] + public ref M128A Xmm4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm4; } + } + + [UnscopedRef] + public ref M128A Xmm5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm5; } + } + + [UnscopedRef] + public ref M128A Xmm6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm6; } + } + + [UnscopedRef] + public ref M128A Xmm7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm7; } + } + + [UnscopedRef] + public ref M128A Xmm8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm8; } + } + + [UnscopedRef] + public ref M128A Xmm9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm9; } + } + + [UnscopedRef] + public ref M128A Xmm10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm10; } + } + + [UnscopedRef] + public ref M128A Xmm11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm11; } + } + + [UnscopedRef] + public ref M128A Xmm12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm12; } + } + + [UnscopedRef] + public ref M128A Xmm13 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm13; } + } + + [UnscopedRef] + public ref M128A Xmm14 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm14; } + } + + [UnscopedRef] + public ref M128A Xmm15 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Xmm15; } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + [FieldOffset(0)] + [NativeTypeName("XMM_SAVE_AREA32")] + public XSAVE_FORMAT FltSave; + + [FieldOffset(0)] + [NativeTypeName( + "_CONTEXT::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:4244:9)" + )] + public _Anonymous_e__Struct Anonymous; + + public partial struct _Anonymous_e__Struct + { + [NativeTypeName("M128A [2]")] + public _Header_e__FixedBuffer Header; + + [NativeTypeName("M128A [8]")] + public _Legacy_e__FixedBuffer Legacy; + public M128A Xmm0; + public M128A Xmm1; + public M128A Xmm2; + public M128A Xmm3; + public M128A Xmm4; + public M128A Xmm5; + public M128A Xmm6; + public M128A Xmm7; + public M128A Xmm8; + public M128A Xmm9; + public M128A Xmm10; + public M128A Xmm11; + public M128A Xmm12; + public M128A Xmm13; + public M128A Xmm14; + public M128A Xmm15; + + public partial struct _Header_e__FixedBuffer + { + public M128A e0; + public M128A e1; + + [UnscopedRef] + public ref M128A this[int index] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref AsSpan()[index]; } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] + public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 2); + } + + public partial struct _Legacy_e__FixedBuffer + { + public M128A e0; + public M128A e1; + public M128A e2; + public M128A e3; + public M128A e4; + public M128A e5; + public M128A e6; + public M128A e7; + + [UnscopedRef] + public ref M128A this[int index] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref AsSpan()[index]; } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] + public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 8); + } + } + } + + public partial struct _VectorRegister_e__FixedBuffer + { + public M128A e0; + public M128A e1; + public M128A e2; + public M128A e3; + public M128A e4; + public M128A e5; + public M128A e6; + public M128A e7; + public M128A e8; + public M128A e9; + public M128A e10; + public M128A e11; + public M128A e12; + public M128A e13; + public M128A e14; + public M128A e15; + public M128A e16; + public M128A e17; + public M128A e18; + public M128A e19; + public M128A e20; + public M128A e21; + public M128A e22; + public M128A e23; + public M128A e24; + public M128A e25; + + [UnscopedRef] + public ref M128A this[int index] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref AsSpan()[index]; } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] + public Span AsSpan() => MemoryMarshal.CreateSpan(ref e0, 26); + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs new file mode 100644 index 0000000000..21785f70b2 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/ARM64EC_NT_CONTEXT.Manual.cs @@ -0,0 +1,978 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct ARM64EC_NT_CONTEXT +{ + [NativeTypeName( + "_ARM64EC_NT_CONTEXT::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:7016:5)" + )] + public _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public ref ulong AMD64_P1Home + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_P1Home; } + } + + [UnscopedRef] + public ref ulong AMD64_P2Home + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_P2Home; } + } + + [UnscopedRef] + public ref ulong AMD64_P3Home + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_P3Home; } + } + + [UnscopedRef] + public ref ulong AMD64_P4Home + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_P4Home; } + } + + [UnscopedRef] + public ref ulong AMD64_P5Home + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_P5Home; } + } + + [UnscopedRef] + public ref ulong AMD64_P6Home + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_P6Home; } + } + + [UnscopedRef] + public ref uint ContextFlags + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.ContextFlags; } + } + + [UnscopedRef] + public ref uint AMD64_MxCsr_copy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_MxCsr_copy; } + } + + [UnscopedRef] + public ref ushort AMD64_SegCs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_SegCs; } + } + + [UnscopedRef] + public ref ushort AMD64_SegDs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_SegDs; } + } + + [UnscopedRef] + public ref ushort AMD64_SegEs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_SegEs; } + } + + [UnscopedRef] + public ref ushort AMD64_SegFs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_SegFs; } + } + + [UnscopedRef] + public ref ushort AMD64_SegGs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_SegGs; } + } + + [UnscopedRef] + public ref ushort AMD64_SegSs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_SegSs; } + } + + [UnscopedRef] + public ref uint AMD64_EFlags + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_EFlags; } + } + + [UnscopedRef] + public ref ulong AMD64_Dr0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_Dr0; } + } + + [UnscopedRef] + public ref ulong AMD64_Dr1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_Dr1; } + } + + [UnscopedRef] + public ref ulong AMD64_Dr2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_Dr2; } + } + + [UnscopedRef] + public ref ulong AMD64_Dr3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_Dr3; } + } + + [UnscopedRef] + public ref ulong AMD64_Dr6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_Dr6; } + } + + [UnscopedRef] + public ref ulong AMD64_Dr7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_Dr7; } + } + + [UnscopedRef] + public ref ulong X8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X8; } + } + + [UnscopedRef] + public ref ulong X0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X0; } + } + + [UnscopedRef] + public ref ulong X1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X1; } + } + + [UnscopedRef] + public ref ulong X27 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X27; } + } + + [UnscopedRef] + public ref ulong Sp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Sp; } + } + + [UnscopedRef] + public ref ulong Fp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Fp; } + } + + [UnscopedRef] + public ref ulong X25 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X25; } + } + + [UnscopedRef] + public ref ulong X26 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X26; } + } + + [UnscopedRef] + public ref ulong X2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X2; } + } + + [UnscopedRef] + public ref ulong X3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X3; } + } + + [UnscopedRef] + public ref ulong X4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X4; } + } + + [UnscopedRef] + public ref ulong X5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X5; } + } + + [UnscopedRef] + public ref ulong X19 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X19; } + } + + [UnscopedRef] + public ref ulong X20 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X20; } + } + + [UnscopedRef] + public ref ulong X21 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X21; } + } + + [UnscopedRef] + public ref ulong X22 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.X22; } + } + + [UnscopedRef] + public ref ulong Pc + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Pc; } + } + + [UnscopedRef] + public ref ushort AMD64_ControlWord + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_ControlWord; } + } + + [UnscopedRef] + public ref ushort AMD64_StatusWord + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_StatusWord; } + } + + [UnscopedRef] + public ref byte AMD64_TagWord + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_TagWord; } + } + + [UnscopedRef] + public ref byte AMD64_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_Reserved1; } + } + + [UnscopedRef] + public ref ushort AMD64_ErrorOpcode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_ErrorOpcode; } + } + + [UnscopedRef] + public ref uint AMD64_ErrorOffset + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_ErrorOffset; } + } + + [UnscopedRef] + public ref ushort AMD64_ErrorSelector + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_ErrorSelector; } + } + + [UnscopedRef] + public ref ushort AMD64_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_Reserved2; } + } + + [UnscopedRef] + public ref uint AMD64_DataOffset + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_DataOffset; } + } + + [UnscopedRef] + public ref ushort AMD64_DataSelector + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_DataSelector; } + } + + [UnscopedRef] + public ref ushort AMD64_Reserved3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_Reserved3; } + } + + [UnscopedRef] + public ref uint AMD64_MxCsr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_MxCsr; } + } + + [UnscopedRef] + public ref uint AMD64_MxCsr_Mask + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_MxCsr_Mask; } + } + + [UnscopedRef] + public ref ulong Lr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.Lr; } + } + + [UnscopedRef] + public ref ushort X16_0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X16_0; } + } + + [UnscopedRef] + public ref ushort AMD64_St0_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St0_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St0_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St0_Reserved2; } + } + + [UnscopedRef] + public ref ulong X6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X6; } + } + + [UnscopedRef] + public ref ushort X16_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X16_1; } + } + + [UnscopedRef] + public ref ushort AMD64_St1_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St1_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St1_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St1_Reserved2; } + } + + [UnscopedRef] + public ref ulong X7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X7; } + } + + [UnscopedRef] + public ref ushort X16_2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X16_2; } + } + + [UnscopedRef] + public ref ushort AMD64_St2_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St2_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St2_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St2_Reserved2; } + } + + [UnscopedRef] + public ref ulong X9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X9; } + } + + [UnscopedRef] + public ref ushort X16_3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X16_3; } + } + + [UnscopedRef] + public ref ushort AMD64_St3_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St3_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St3_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St3_Reserved2; } + } + + [UnscopedRef] + public ref ulong X10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X10; } + } + + [UnscopedRef] + public ref ushort X17_0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X17_0; } + } + + [UnscopedRef] + public ref ushort AMD64_St4_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St4_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St4_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St4_Reserved2; } + } + + [UnscopedRef] + public ref ulong X11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X11; } + } + + [UnscopedRef] + public ref ushort X17_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X17_1; } + } + + [UnscopedRef] + public ref ushort AMD64_St5_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St5_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St5_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St5_Reserved2; } + } + + [UnscopedRef] + public ref ulong X12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X12; } + } + + [UnscopedRef] + public ref ushort X17_2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X17_2; } + } + + [UnscopedRef] + public ref ushort AMD64_St6_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St6_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St6_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St6_Reserved2; } + } + + [UnscopedRef] + public ref ulong X15 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X15; } + } + + [UnscopedRef] + public ref ushort X17_3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.X17_3; } + } + + [UnscopedRef] + public ref ushort AMD64_St7_Reserved1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St7_Reserved1; } + } + + [UnscopedRef] + public ref uint AMD64_St7_Reserved2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.Anonymous.AMD64_St7_Reserved2; } + } + + [UnscopedRef] + public Span V + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return Anonymous.Anonymous.Anonymous.V; } + } + + [UnscopedRef] + public Span AMD64_XSAVE_FORMAT_Reserved4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return MemoryMarshal.CreateSpan( + ref Anonymous.Anonymous.Anonymous.AMD64_XSAVE_FORMAT_Reserved4[0], + 96 + ); + } + } + + [UnscopedRef] + public Span AMD64_VectorRegister + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return Anonymous.Anonymous.AMD64_VectorRegister; } + } + + [UnscopedRef] + public ref ulong AMD64_VectorControl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_VectorControl; } + } + + [UnscopedRef] + public ref ulong AMD64_DebugControl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_DebugControl; } + } + + [UnscopedRef] + public ref ulong AMD64_LastBranchToRip + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_LastBranchToRip; } + } + + [UnscopedRef] + public ref ulong AMD64_LastBranchFromRip + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_LastBranchFromRip; } + } + + [UnscopedRef] + public ref ulong AMD64_LastExceptionToRip + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_LastExceptionToRip; } + } + + [UnscopedRef] + public ref ulong AMD64_LastExceptionFromRip + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Anonymous.AMD64_LastExceptionFromRip; } + } + + [StructLayout(LayoutKind.Explicit)] + public unsafe partial struct _Anonymous_e__Union + { + [FieldOffset(0)] + [NativeTypeName( + "_ARM64EC_NT_CONTEXT::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:7017:9)" + )] + public _Anonymous_e__Struct Anonymous; + + public unsafe partial struct _Anonymous_e__Struct + { + [NativeTypeName("DWORD64")] + public ulong AMD64_P1Home; + + [NativeTypeName("DWORD64")] + public ulong AMD64_P2Home; + + [NativeTypeName("DWORD64")] + public ulong AMD64_P3Home; + + [NativeTypeName("DWORD64")] + public ulong AMD64_P4Home; + + [NativeTypeName("DWORD64")] + public ulong AMD64_P5Home; + + [NativeTypeName("DWORD64")] + public ulong AMD64_P6Home; + + [NativeTypeName("DWORD")] + public uint ContextFlags; + + [NativeTypeName("DWORD")] + public uint AMD64_MxCsr_copy; + + [NativeTypeName("WORD")] + public ushort AMD64_SegCs; + + [NativeTypeName("WORD")] + public ushort AMD64_SegDs; + + [NativeTypeName("WORD")] + public ushort AMD64_SegEs; + + [NativeTypeName("WORD")] + public ushort AMD64_SegFs; + + [NativeTypeName("WORD")] + public ushort AMD64_SegGs; + + [NativeTypeName("WORD")] + public ushort AMD64_SegSs; + + [NativeTypeName("DWORD")] + public uint AMD64_EFlags; + + [NativeTypeName("DWORD64")] + public ulong AMD64_Dr0; + + [NativeTypeName("DWORD64")] + public ulong AMD64_Dr1; + + [NativeTypeName("DWORD64")] + public ulong AMD64_Dr2; + + [NativeTypeName("DWORD64")] + public ulong AMD64_Dr3; + + [NativeTypeName("DWORD64")] + public ulong AMD64_Dr6; + + [NativeTypeName("DWORD64")] + public ulong AMD64_Dr7; + + [NativeTypeName("DWORD64")] + public ulong X8; + + [NativeTypeName("DWORD64")] + public ulong X0; + + [NativeTypeName("DWORD64")] + public ulong X1; + + [NativeTypeName("DWORD64")] + public ulong X27; + + [NativeTypeName("DWORD64")] + public ulong Sp; + + [NativeTypeName("DWORD64")] + public ulong Fp; + + [NativeTypeName("DWORD64")] + public ulong X25; + + [NativeTypeName("DWORD64")] + public ulong X26; + + [NativeTypeName("DWORD64")] + public ulong X2; + + [NativeTypeName("DWORD64")] + public ulong X3; + + [NativeTypeName("DWORD64")] + public ulong X4; + + [NativeTypeName("DWORD64")] + public ulong X5; + + [NativeTypeName("DWORD64")] + public ulong X19; + + [NativeTypeName("DWORD64")] + public ulong X20; + + [NativeTypeName("DWORD64")] + public ulong X21; + + [NativeTypeName("DWORD64")] + public ulong X22; + + [NativeTypeName("DWORD64")] + public ulong Pc; + + [NativeTypeName( + "_ARM64EC_NT_CONTEXT::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:7098:13)" + )] + public _Anonymous1_e__Struct Anonymous; + + [NativeTypeName("ARM64_NT_NEON128[26]")] + public _AMD64_VectorRegister_e__FixedBuffer AMD64_VectorRegister; + + [NativeTypeName("DWORD64")] + public ulong AMD64_VectorControl; + + [NativeTypeName("DWORD64")] + public ulong AMD64_DebugControl; + + [NativeTypeName("DWORD64")] + public ulong AMD64_LastBranchToRip; + + [NativeTypeName("DWORD64")] + public ulong AMD64_LastBranchFromRip; + + [NativeTypeName("DWORD64")] + public ulong AMD64_LastExceptionToRip; + + [NativeTypeName("DWORD64")] + public ulong AMD64_LastExceptionFromRip; + + public unsafe partial struct _Anonymous1_e__Struct + { + [NativeTypeName("WORD")] + public ushort AMD64_ControlWord; + + [NativeTypeName("WORD")] + public ushort AMD64_StatusWord; + public byte AMD64_TagWord; + public byte AMD64_Reserved1; + + [NativeTypeName("WORD")] + public ushort AMD64_ErrorOpcode; + + [NativeTypeName("DWORD")] + public uint AMD64_ErrorOffset; + + [NativeTypeName("WORD")] + public ushort AMD64_ErrorSelector; + + [NativeTypeName("WORD")] + public ushort AMD64_Reserved2; + + [NativeTypeName("DWORD")] + public uint AMD64_DataOffset; + + [NativeTypeName("WORD")] + public ushort AMD64_DataSelector; + + [NativeTypeName("WORD")] + public ushort AMD64_Reserved3; + + [NativeTypeName("DWORD")] + public uint AMD64_MxCsr; + + [NativeTypeName("DWORD")] + public uint AMD64_MxCsr_Mask; + + [NativeTypeName("DWORD64")] + public ulong Lr; + + [NativeTypeName("WORD")] + public ushort X16_0; + + [NativeTypeName("WORD")] + public ushort AMD64_St0_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St0_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X6; + + [NativeTypeName("WORD")] + public ushort X16_1; + + [NativeTypeName("WORD")] + public ushort AMD64_St1_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St1_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X7; + + [NativeTypeName("WORD")] + public ushort X16_2; + + [NativeTypeName("WORD")] + public ushort AMD64_St2_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St2_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X9; + + [NativeTypeName("WORD")] + public ushort X16_3; + + [NativeTypeName("WORD")] + public ushort AMD64_St3_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St3_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X10; + + [NativeTypeName("WORD")] + public ushort X17_0; + + [NativeTypeName("WORD")] + public ushort AMD64_St4_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St4_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X11; + + [NativeTypeName("WORD")] + public ushort X17_1; + + [NativeTypeName("WORD")] + public ushort AMD64_St5_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St5_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X12; + + [NativeTypeName("WORD")] + public ushort X17_2; + + [NativeTypeName("WORD")] + public ushort AMD64_St6_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St6_Reserved2; + + [NativeTypeName("DWORD64")] + public ulong X15; + + [NativeTypeName("WORD")] + public ushort X17_3; + + [NativeTypeName("WORD")] + public ushort AMD64_St7_Reserved1; + + [NativeTypeName("DWORD")] + public uint AMD64_St7_Reserved2; + + [NativeTypeName("ARM64_NT_NEON128[16]")] + public _V_e__FixedBuffer V; + + [NativeTypeName("BYTE[96]")] + public _AMD64_XSAVE_FORMAT_Reserved4_e__FixedBuffer AMD64_XSAVE_FORMAT_Reserved4; + + [InlineArray(16)] + public partial struct _V_e__FixedBuffer + { + public ARM64_NT_NEON128 e0; + } + + [InlineArray(96)] + public partial struct _AMD64_XSAVE_FORMAT_Reserved4_e__FixedBuffer + { + public byte e0; + } + } + + [InlineArray(26)] + public partial struct _AMD64_VectorRegister_e__FixedBuffer + { + public ARM64_NT_NEON128 e0; + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs new file mode 100644 index 0000000000..20d5a8e973 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/CACHE_RELATIONSHIP.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct CACHE_RELATIONSHIP +{ + [UnscopedRef] + public Span GroupMasks + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return Anonymous.GroupMasks.AsSpan(GroupCount); } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/CONTEXT.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/CONTEXT.Manual.cs new file mode 100644 index 0000000000..2433b6d4b2 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/CONTEXT.Manual.cs @@ -0,0 +1,174 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.Intrinsics.Arm; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class SYSTEM +{ + [NativeTypeName("#define CONTEXT_AMD64 0x00100000L")] + public const int CONTEXT_AMD64 = 0x00100000; + + [NativeTypeName("#define CONTEXT_CONTROL (CONTEXT_AMD64 | 0x00000001L)")] + public const int CONTEXT_AMD64_CONTROL = (0x00100000 | 0x00000001); + + [NativeTypeName("#define CONTEXT_INTEGER (CONTEXT_AMD64 | 0x00000002L)")] + public const int CONTEXT_AMD64_INTEGER = (0x00100000 | 0x00000002); + + [NativeTypeName("#define CONTEXT_SEGMENTS (CONTEXT_AMD64 | 0x00000004L)")] + public const int CONTEXT_AMD64_SEGMENTS = (0x00100000 | 0x00000004); + + [NativeTypeName("#define CONTEXT_FLOATING_POINT (CONTEXT_AMD64 | 0x00000008L)")] + public const int CONTEXT_AMD64_FLOATING_POINT = (0x00100000 | 0x00000008); + + [NativeTypeName("#define CONTEXT_DEBUG_REGISTERS (CONTEXT_AMD64 | 0x00000010L)")] + public const int CONTEXT_AMD64_DEBUG_REGISTERS = (0x00100000 | 0x00000010); + + [NativeTypeName( + "#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | \\\r\n CONTEXT_FLOATING_POINT)" + )] + public const int CONTEXT_AMD64_FULL = ( + (0x00100000 | 0x00000001) | (0x00100000 | 0x00000002) | (0x00100000 | 0x00000008) + ); + + [NativeTypeName( + "#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | \\\r\n CONTEXT_SEGMENTS | CONTEXT_FLOATING_POINT | \\\r\n CONTEXT_DEBUG_REGISTERS)" + )] + public const int CONTEXT_AMD64_ALL = ( + (0x00100000 | 0x00000001) + | (0x00100000 | 0x00000002) + | (0x00100000 | 0x00000004) + | (0x00100000 | 0x00000008) + | (0x00100000 | 0x00000010) + ); + + [NativeTypeName("#define CONTEXT_XSTATE (CONTEXT_AMD64 | 0x00000040L)")] + public const int CONTEXT_AMD64_XSTATE = (0x00100000 | 0x00000040); + + [NativeTypeName("#define CONTEXT_KERNEL_CET (CONTEXT_AMD64 | 0x00000080L)")] + public const int CONTEXT_AMD64_KERNEL_CET = (0x00100000 | 0x00000080); + + [NativeTypeName("#define CONTEXT_UNWOUND_TO_CALL 0x20000000")] + public const int CONTEXT_AMD64_UNWOUND_TO_CALL = 0x20000000; + + [NativeTypeName("#define CONTEXT_ARM64 0x00400000L")] + public const int CONTEXT_ARM64 = 0x00400000; + + [NativeTypeName("#define CONTEXT_ARM64_CONTROL (CONTEXT_ARM64 | 0x1L)")] + public const int CONTEXT_ARM64_CONTROL = (0x00400000 | 0x1); + + [NativeTypeName("#define CONTEXT_ARM64_INTEGER (CONTEXT_ARM64 | 0x2L)")] + public const int CONTEXT_ARM64_INTEGER = (0x00400000 | 0x2); + + [NativeTypeName("#define CONTEXT_ARM64_FLOATING_POINT (CONTEXT_ARM64 | 0x4L)")] + public const int CONTEXT_ARM64_FLOATING_POINT = (0x00400000 | 0x4); + + [NativeTypeName("#define CONTEXT_ARM64_DEBUG_REGISTERS (CONTEXT_ARM64 | 0x8L)")] + public const int CONTEXT_ARM64_DEBUG_REGISTERS = (0x00400000 | 0x8); + + [NativeTypeName("#define CONTEXT_ARM64_X18 (CONTEXT_ARM64 | 0x10L)")] + public const int CONTEXT_ARM64_X18 = (0x00400000 | 0x10); + + [NativeTypeName( + "#define CONTEXT_ARM64_FULL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT)" + )] + public const int CONTEXT_ARM64_FULL = ( + (0x00400000 | 0x1) | (0x00400000 | 0x2) | (0x00400000 | 0x4) + ); + + [NativeTypeName( + "#define CONTEXT_ARM64_ALL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT | CONTEXT_ARM64_DEBUG_REGISTERS | CONTEXT_ARM64_X18)" + )] + public const int CONTEXT_ARM64_ALL = ( + (0x00400000 | 0x1) + | (0x00400000 | 0x2) + | (0x00400000 | 0x4) + | (0x00400000 | 0x8) + | (0x00400000 | 0x10) + ); + + [NativeTypeName("#define CONTEXT_ARM64_UNWOUND_TO_CALL 0x20000000")] + public const int CONTEXT_ARM64_UNWOUND_TO_CALL = 0x20000000; + + [NativeTypeName("#define CONTEXT_ARM64_RET_TO_GUEST 0x04000000")] + public const int CONTEXT_ARM64_RET_TO_GUEST = 0x04000000; + + [NativeTypeName("#define CONTEXT_UNWOUND_TO_CALL CONTEXT_ARM64_UNWOUND_TO_CALL")] + public static int CONTEXT_UNWOUND_TO_CALL + { + get + { + if (ArmBase.Arm64.IsSupported) + { + return CONTEXT_ARM64_UNWOUND_TO_CALL; + } + else + { + return 0; + } + } + } + + [NativeTypeName("#define CONTEXT_RET_TO_GUEST CONTEXT_ARM64_RET_TO_GUEST")] + public static int CONTEXT_RET_TO_GUEST + { + get + { + if (ArmBase.Arm64.IsSupported) + { + return 0x04000000; + } + else + { + return 0; + } + } + } + + [NativeTypeName("#define CONTEXT_i386 0x00010000L")] + public const int CONTEXT_i386 = 0x00010000; + + [NativeTypeName("#define CONTEXT_i486 0x00010000L")] + public const int CONTEXT_i486 = 0x00010000; + + [NativeTypeName("#define CONTEXT_CONTROL (CONTEXT_i386 | 0x00000001L)")] + public const int CONTEXT_i386_CONTROL = (0x00010000 | 0x00000001); + + [NativeTypeName("#define CONTEXT_INTEGER (CONTEXT_i386 | 0x00000002L)")] + public const int CONTEXT_i386_INTEGER = (0x00010000 | 0x00000002); + + [NativeTypeName("#define CONTEXT_SEGMENTS (CONTEXT_i386 | 0x00000004L)")] + public const int CONTEXT_i386_SEGMENTS = (0x00010000 | 0x00000004); + + [NativeTypeName("#define CONTEXT_FLOATING_POINT (CONTEXT_i386 | 0x00000008L)")] + public const int CONTEXT_i386_FLOATING_POINT = (0x00010000 | 0x00000008); + + [NativeTypeName("#define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386 | 0x00000010L)")] + public const int CONTEXT_i386_DEBUG_REGISTERS = (0x00010000 | 0x00000010); + + [NativeTypeName("#define CONTEXT_EXTENDED_REGISTERS (CONTEXT_i386 | 0x00000020L)")] + public const int CONTEXT_i386_EXTENDED_REGISTERS = (0x00010000 | 0x00000020); + + [NativeTypeName( + "#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER |\\\r\n CONTEXT_SEGMENTS)" + )] + public const int CONTEXT_i386_FULL = ( + (0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004) + ); + + [NativeTypeName( + "#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS | \\\r\n CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS | \\\r\n CONTEXT_EXTENDED_REGISTERS)" + )] + public const int CONTEXT_i386_ALL = ( + (0x00010000 | 0x00000001) + | (0x00010000 | 0x00000002) + | (0x00010000 | 0x00000004) + | (0x00010000 | 0x00000008) + | (0x00010000 | 0x00000010) + | (0x00010000 | 0x00000020) + ); + + [NativeTypeName("#define CONTEXT_XSTATE (CONTEXT_i386 | 0x00000040L)")] + public const int CONTEXT_i386_XSTATE = (0x00010000 | 0x00000040); +} diff --git a/sources/Win32/Win32/Windows/um/winnt/DISPATCHER_CONTEXT_OTHER.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/DISPATCHER_CONTEXT_OTHER.Manual.cs new file mode 100644 index 0000000000..afe86d9cfe --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/DISPATCHER_CONTEXT_OTHER.Manual.cs @@ -0,0 +1,41 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct DISPATCHER_CONTEXT_OTHER +{ + [NativeTypeName("DWORD64")] + public ulong ControlPc; + + [NativeTypeName("DWORD64")] + public ulong ImageBase; + + [NativeTypeName("PRUNTIME_FUNCTION")] + public void* FunctionEntry; + + [NativeTypeName("DWORD64")] + public ulong EstablisherFrame; + + [NativeTypeName("DWORD64")] + public ulong TargetIp; + + [NativeTypeName("PCONTEXT")] + public void* ContextRecord; + + [NativeTypeName("PEXCEPTION_ROUTINE")] + public delegate* unmanaged LanguageHandler; + + [NativeTypeName("PVOID")] + public void* HandlerData; + + [NativeTypeName("struct _UNWIND_HISTORY_TABLE *")] + public UNWIND_HISTORY_TABLE* HistoryTable; + + [NativeTypeName("DWORD")] + public uint ScopeIndex; + + [NativeTypeName("DWORD")] + public uint Fill0; +} diff --git a/sources/Win32/Win32/Windows/um/winnt/FLOATING_SAVE_AREA.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/FLOATING_SAVE_AREA.Manual.cs new file mode 100644 index 0000000000..46ce288e67 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/FLOATING_SAVE_AREA.Manual.cs @@ -0,0 +1,42 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct FLOATING_SAVE_AREA +{ + [NativeTypeName("DWORD")] + public uint ControlWord; + + [NativeTypeName("DWORD")] + public uint StatusWord; + + [NativeTypeName("DWORD")] + public uint TagWord; + + [NativeTypeName("DWORD")] + public uint ErrorOffset; + + [NativeTypeName("DWORD")] + public uint ErrorSelector; + + [NativeTypeName("DWORD")] + public uint DataOffset; + + [NativeTypeName("DWORD")] + public uint DataSelector; + + [NativeTypeName("BYTE[80]")] + public _RegisterArea_e__FixedBuffer RegisterArea; + + [NativeTypeName("DWORD")] + public uint Spare0; + + [InlineArray(80)] + public partial struct _RegisterArea_e__FixedBuffer + { + public byte e0; + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/IMAGE.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/IMAGE.Manual.cs new file mode 100644 index 0000000000..f67153f325 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/IMAGE.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class IMAGE +{ + public static int IMAGE_NT_OPTIONAL_HDR_MAGIC + { + get + { + if (sizeof(nint) == 4) + { + return IMAGE_NT_OPTIONAL_HDR32_MAGIC; + } + else + { + return IMAGE_NT_OPTIONAL_HDR64_MAGIC; + } + } + } + public static nuint IMAGE_ORDINAL_FLAG + { + get + { + if (sizeof(nint) == 4) + { + return IMAGE_ORDINAL_FLAG32; + } + else + { + return unchecked((nuint)(IMAGE_ORDINAL_FLAG64)); + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs new file mode 100644 index 0000000000..72b380a8d0 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY.Manual.cs @@ -0,0 +1,48 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct IMAGE_OTHER_RUNTIME_FUNCTION_ENTRY +{ + [NativeTypeName("DWORD")] + public uint BeginAddress; + + [NativeTypeName("DWORD")] + public uint EndAddress; + + [NativeTypeName( + "_IMAGE_RUNTIME_FUNCTION_ENTRY::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:20134:5)" + )] + public _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public ref uint UnwindInfoAddress + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.UnwindInfoAddress; } + } + + [UnscopedRef] + public ref uint UnwindData + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.UnwindData; } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + [FieldOffset(0)] + [NativeTypeName("DWORD")] + public uint UnwindInfoAddress; + + [FieldOffset(0)] + [NativeTypeName("DWORD")] + public uint UnwindData; + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/KNONVOLATILE_CONTEXT_POINTERS_AMD64.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/KNONVOLATILE_CONTEXT_POINTERS_AMD64.Manual.cs new file mode 100644 index 0000000000..25c1aaa924 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/KNONVOLATILE_CONTEXT_POINTERS_AMD64.Manual.cs @@ -0,0 +1,437 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct KNONVOLATILE_CONTEXT_POINTERS_AMD64 +{ + [NativeTypeName( + "_KNONVOLATILE_CONTEXT_POINTERS::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:4397:5)" + )] + public _Anonymous1_e__Union Anonymous1; + + [NativeTypeName( + "_KNONVOLATILE_CONTEXT_POINTERS::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:4419:5)" + )] + public _Anonymous2_e__Union Anonymous2; + + [UnscopedRef] + public ref M128A* Xmm0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm0; } + } + + [UnscopedRef] + public ref M128A* Xmm1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm1; } + } + + [UnscopedRef] + public ref M128A* Xmm2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm2; } + } + + [UnscopedRef] + public ref M128A* Xmm3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm3; } + } + + [UnscopedRef] + public ref M128A* Xmm4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm4; } + } + + [UnscopedRef] + public ref M128A* Xmm5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm5; } + } + + [UnscopedRef] + public ref M128A* Xmm6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm6; } + } + + [UnscopedRef] + public ref M128A* Xmm7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm7; } + } + + [UnscopedRef] + public ref M128A* Xmm8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm8; } + } + + [UnscopedRef] + public ref M128A* Xmm9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm9; } + } + + [UnscopedRef] + public ref M128A* Xmm10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm10; } + } + + [UnscopedRef] + public ref M128A* Xmm11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm11; } + } + + [UnscopedRef] + public ref M128A* Xmm12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm12; } + } + + [UnscopedRef] + public ref M128A* Xmm13 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm13; } + } + + [UnscopedRef] + public ref M128A* Xmm14 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm14; } + } + + [UnscopedRef] + public ref M128A* Xmm15 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous1.Anonymous.Xmm15; } + } + + [UnscopedRef] + public ref ulong* Rax + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rax; } + } + + [UnscopedRef] + public ref ulong* Rcx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rcx; } + } + + [UnscopedRef] + public ref ulong* Rdx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rdx; } + } + + [UnscopedRef] + public ref ulong* Rbx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rbx; } + } + + [UnscopedRef] + public ref ulong* Rsp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rsp; } + } + + [UnscopedRef] + public ref ulong* Rbp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rbp; } + } + + [UnscopedRef] + public ref ulong* Rsi + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rsi; } + } + + [UnscopedRef] + public ref ulong* Rdi + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.Rdi; } + } + + [UnscopedRef] + public ref ulong* R8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R8; } + } + + [UnscopedRef] + public ref ulong* R9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R9; } + } + + [UnscopedRef] + public ref ulong* R10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R10; } + } + + [UnscopedRef] + public ref ulong* R11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R11; } + } + + [UnscopedRef] + public ref ulong* R12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R12; } + } + + [UnscopedRef] + public ref ulong* R13 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R13; } + } + + [UnscopedRef] + public ref ulong* R14 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R14; } + } + + [UnscopedRef] + public ref ulong* R15 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous2.Anonymous.R15; } + } + + [StructLayout(LayoutKind.Explicit)] + public unsafe partial struct _Anonymous1_e__Union + { + [FieldOffset(0)] + [NativeTypeName("PM128A[16]")] + public _FloatingContext_e__FixedBuffer FloatingContext; + + [FieldOffset(0)] + [NativeTypeName( + "_KNONVOLATILE_CONTEXT_POINTERS::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:4399:9)" + )] + public _Anonymous_e__Struct Anonymous; + + public unsafe partial struct _Anonymous_e__Struct + { + [NativeTypeName("PM128A")] + public M128A* Xmm0; + + [NativeTypeName("PM128A")] + public M128A* Xmm1; + + [NativeTypeName("PM128A")] + public M128A* Xmm2; + + [NativeTypeName("PM128A")] + public M128A* Xmm3; + + [NativeTypeName("PM128A")] + public M128A* Xmm4; + + [NativeTypeName("PM128A")] + public M128A* Xmm5; + + [NativeTypeName("PM128A")] + public M128A* Xmm6; + + [NativeTypeName("PM128A")] + public M128A* Xmm7; + + [NativeTypeName("PM128A")] + public M128A* Xmm8; + + [NativeTypeName("PM128A")] + public M128A* Xmm9; + + [NativeTypeName("PM128A")] + public M128A* Xmm10; + + [NativeTypeName("PM128A")] + public M128A* Xmm11; + + [NativeTypeName("PM128A")] + public M128A* Xmm12; + + [NativeTypeName("PM128A")] + public M128A* Xmm13; + + [NativeTypeName("PM128A")] + public M128A* Xmm14; + + [NativeTypeName("PM128A")] + public M128A* Xmm15; + } + + public unsafe partial struct _FloatingContext_e__FixedBuffer + { + public M128A* e0; + public M128A* e1; + public M128A* e2; + public M128A* e3; + public M128A* e4; + public M128A* e5; + public M128A* e6; + public M128A* e7; + public M128A* e8; + public M128A* e9; + public M128A* e10; + public M128A* e11; + public M128A* e12; + public M128A* e13; + public M128A* e14; + public M128A* e15; + public ref M128A* this[int index] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + fixed (M128A** pThis = &e0) + { + return ref pThis[index]; + } + } + } + } + } + + [StructLayout(LayoutKind.Explicit)] + public unsafe partial struct _Anonymous2_e__Union + { + [FieldOffset(0)] + [NativeTypeName("PDWORD64[16]")] + public _IntegerContext_e__FixedBuffer IntegerContext; + + [FieldOffset(0)] + [NativeTypeName( + "_KNONVOLATILE_CONTEXT_POINTERS::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:4421:9)" + )] + public _Anonymous_e__Struct Anonymous; + + public unsafe partial struct _Anonymous_e__Struct + { + [NativeTypeName("PDWORD64")] + public ulong* Rax; + + [NativeTypeName("PDWORD64")] + public ulong* Rcx; + + [NativeTypeName("PDWORD64")] + public ulong* Rdx; + + [NativeTypeName("PDWORD64")] + public ulong* Rbx; + + [NativeTypeName("PDWORD64")] + public ulong* Rsp; + + [NativeTypeName("PDWORD64")] + public ulong* Rbp; + + [NativeTypeName("PDWORD64")] + public ulong* Rsi; + + [NativeTypeName("PDWORD64")] + public ulong* Rdi; + + [NativeTypeName("PDWORD64")] + public ulong* R8; + + [NativeTypeName("PDWORD64")] + public ulong* R9; + + [NativeTypeName("PDWORD64")] + public ulong* R10; + + [NativeTypeName("PDWORD64")] + public ulong* R11; + + [NativeTypeName("PDWORD64")] + public ulong* R12; + + [NativeTypeName("PDWORD64")] + public ulong* R13; + + [NativeTypeName("PDWORD64")] + public ulong* R14; + + [NativeTypeName("PDWORD64")] + public ulong* R15; + } + + public unsafe partial struct _IntegerContext_e__FixedBuffer + { + public ulong* e0; + public ulong* e1; + public ulong* e2; + public ulong* e3; + public ulong* e4; + public ulong* e5; + public ulong* e6; + public ulong* e7; + public ulong* e8; + public ulong* e9; + public ulong* e10; + public ulong* e11; + public ulong* e12; + public ulong* e13; + public ulong* e14; + public ulong* e15; + public ref ulong* this[int index] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + fixed (ulong** pThis = &e0) + { + return ref pThis[index]; + } + } + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/KNONVOLATILE_CONTEXT_POINTERS_X86.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/KNONVOLATILE_CONTEXT_POINTERS_X86.Manual.cs new file mode 100644 index 0000000000..e90810cd08 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/KNONVOLATILE_CONTEXT_POINTERS_X86.Manual.cs @@ -0,0 +1,11 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct KNONVOLATILE_CONTEXT_POINTERS_X86 +{ + [NativeTypeName("DWORD")] + public uint Dummy; +} diff --git a/sources/Win32/Win32/Windows/um/winnt/LARGE_INTEGER.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/LARGE_INTEGER.Manual.cs new file mode 100644 index 0000000000..c9a098094d --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/LARGE_INTEGER.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct LARGE_INTEGER +{ + public static implicit operator long(LARGE_INTEGER value) => value.QuadPart; + + public static implicit operator LARGE_INTEGER(long value) + { + Unsafe.SkipInit(out LARGE_INTEGER result); + result.QuadPart = value; + return result; + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/MAX.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/MAX.Manual.cs new file mode 100644 index 0000000000..721bd61d75 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/MAX.Manual.cs @@ -0,0 +1,10 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class MAX +{ + public static uint MAX_NATURAL_ALIGNMENT => unchecked((uint)(sizeof(nint))); +} diff --git a/sources/Win32/Win32/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs new file mode 100644 index 0000000000..40ef3e3e8f --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/NUMA_NODE_RELATIONSHIP.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct NUMA_NODE_RELATIONSHIP +{ + [UnscopedRef] + public Span GroupMasks + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return Anonymous.GroupMasks.AsSpan(GroupCount); } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs new file mode 100644 index 0000000000..86dc081fcc --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_AMD64.Manual.cs @@ -0,0 +1,89 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Explicit)] +public partial struct SLIST_HEADER_AMD64 +{ + [FieldOffset(0)] + [NativeTypeName( + "_SLIST_HEADER::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21223:5)" + )] + public _Anonymous_e__Struct Anonymous; + + [FieldOffset(0)] + [NativeTypeName( + "struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21227:5)" + )] + public _HeaderX64_e__Struct HeaderX64; + + [UnscopedRef] + public ref ulong Alignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Alignment; } + } + + [UnscopedRef] + public ref ulong Region + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Region; } + } + + public partial struct _Anonymous_e__Struct + { + [NativeTypeName("ULONGLONG")] + public ulong Alignment; + + [NativeTypeName("ULONGLONG")] + public ulong Region; + } + + public partial struct _HeaderX64_e__Struct + { + public ulong _bitfield1; + + [NativeTypeName("ULONGLONG : 16")] + public ulong Depth + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield1 & 0xFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (_bitfield1 & ~0xFFFFUL) | (value & 0xFFFFUL); } + } + + [NativeTypeName("ULONGLONG : 48")] + public ulong Sequence + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield1 >> 16) & 0xFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (_bitfield1 & ~(0xFFFFUL << 16)) | ((value & 0xFFFFUL) << 16); } + } + public ulong _bitfield2; + + [NativeTypeName("ULONGLONG : 4")] + public ulong Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield2 & 0xFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~0xFUL) | (value & 0xFUL); } + } + + [NativeTypeName("ULONGLONG : 60")] + public ulong NextEntry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield2 >> 4) & 0xFFFFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0xFFFFFFFUL << 4)) | ((value & 0xFFFFFFFUL) << 4); } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs new file mode 100644 index 0000000000..b48351034e --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_ARM.Manual.cs @@ -0,0 +1,54 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Explicit)] +public partial struct SLIST_HEADER_ARM +{ + [FieldOffset(0)] + [NativeTypeName("ULONGLONG")] + public ulong Alignment; + + [FieldOffset(0)] + [NativeTypeName( + "_SLIST_HEADER::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21266:5)" + )] + public _Anonymous_e__Struct Anonymous; + + [UnscopedRef] + public ref SLIST_ENTRY Next + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Next; } + } + + [UnscopedRef] + public ref ushort Depth + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Depth; } + } + + [UnscopedRef] + public ref ushort Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Reserved; } + } + + public partial struct _Anonymous_e__Struct + { + public SLIST_ENTRY Next; + + [NativeTypeName("WORD")] + public ushort Depth; + + [NativeTypeName("WORD")] + public ushort Reserved; + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs new file mode 100644 index 0000000000..e636f6a61e --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_ARM64.Manual.cs @@ -0,0 +1,89 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Explicit)] +public partial struct SLIST_HEADER_ARM64 +{ + [FieldOffset(0)] + [NativeTypeName( + "_SLIST_HEADER::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21239:5)" + )] + public _Anonymous_e__Struct Anonymous; + + [FieldOffset(0)] + [NativeTypeName( + "struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21243:5)" + )] + public _HeaderArm64_e__Struct HeaderArm64; + + [UnscopedRef] + public ref ulong Alignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Alignment; } + } + + [UnscopedRef] + public ref ulong Region + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Region; } + } + + public partial struct _Anonymous_e__Struct + { + [NativeTypeName("ULONGLONG")] + public ulong Alignment; + + [NativeTypeName("ULONGLONG")] + public ulong Region; + } + + public partial struct _HeaderArm64_e__Struct + { + public ulong _bitfield1; + + [NativeTypeName("ULONGLONG : 16")] + public ulong Depth + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield1 & 0xFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (_bitfield1 & ~0xFFFFUL) | (value & 0xFFFFUL); } + } + + [NativeTypeName("ULONGLONG : 48")] + public ulong Sequence + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield1 >> 16) & 0xFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (_bitfield1 & ~(0xFFFFUL << 16)) | ((value & 0xFFFFUL) << 16); } + } + public ulong _bitfield2; + + [NativeTypeName("ULONGLONG : 4")] + public ulong Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield2 & 0xFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~0xFUL) | (value & 0xFUL); } + } + + [NativeTypeName("ULONGLONG : 60")] + public ulong NextEntry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield2 >> 4) & 0xFFFFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0xFFFFFFFUL << 4)) | ((value & 0xFFFFFFFUL) << 4); } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs new file mode 100644 index 0000000000..af0b2c6085 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/SLIST_HEADER_X86.Manual.cs @@ -0,0 +1,89 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +[StructLayout(LayoutKind.Explicit)] +public partial struct SLIST_HEADER_X86 +{ + [FieldOffset(0)] + [NativeTypeName( + "_SLIST_HEADER::(anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21223:5)" + )] + public _Anonymous_e__Struct Anonymous; + + [FieldOffset(0)] + [NativeTypeName( + "struct (anonymous struct at C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/winnt.h:21227:5)" + )] + public _HeaderX64_e__Struct HeaderX64; + + [UnscopedRef] + public ref ulong Alignment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Alignment; } + } + + [UnscopedRef] + public ref ulong Region + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return ref Anonymous.Region; } + } + + public partial struct _Anonymous_e__Struct + { + [NativeTypeName("ULONGLONG")] + public ulong Alignment; + + [NativeTypeName("ULONGLONG")] + public ulong Region; + } + + public partial struct _HeaderX64_e__Struct + { + public ulong _bitfield1; + + [NativeTypeName("ULONGLONG : 16")] + public ulong Depth + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield1 & 0xFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (_bitfield1 & ~0xFFFFUL) | (value & 0xFFFFUL); } + } + + [NativeTypeName("ULONGLONG : 48")] + public ulong Sequence + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield1 >> 16) & 0xFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield1 = (_bitfield1 & ~(0xFFFFUL << 16)) | ((value & 0xFFFFUL) << 16); } + } + public ulong _bitfield2; + + [NativeTypeName("ULONGLONG : 4")] + public ulong Reserved + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return _bitfield2 & 0xFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~0xFUL) | (value & 0xFUL); } + } + + [NativeTypeName("ULONGLONG : 60")] + public ulong NextEntry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + readonly get { return (_bitfield2 >> 4) & 0xFFFFFFFUL; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { _bitfield2 = (_bitfield2 & ~(0xFFFFFFFUL << 4)) | ((value & 0xFFFFFFFUL) << 4); } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/SYSTEM.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/SYSTEM.Manual.cs new file mode 100644 index 0000000000..f3028d769d --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/SYSTEM.Manual.cs @@ -0,0 +1,24 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.Intrinsics.X86; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class SYSTEM +{ + public static int SYSTEM_CACHE_ALIGNMENT_SIZE + { + get + { + if (X86Base.IsSupported) + { + return 64; + } + else + { + return 128; + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/ULARGE_INTEGER.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/ULARGE_INTEGER.Manual.cs new file mode 100644 index 0000000000..c86426c1a4 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/ULARGE_INTEGER.Manual.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public partial struct ULARGE_INTEGER +{ + public static implicit operator ulong(ULARGE_INTEGER value) => value.QuadPart; + + public static implicit operator ULARGE_INTEGER(ulong value) + { + Unsafe.SkipInit(out ULARGE_INTEGER result); + result.QuadPart = value; + return result; + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/Windows.Manual.cs new file mode 100644 index 0000000000..1f9f033ef1 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/Windows.Manual.cs @@ -0,0 +1,107 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class Windows +{ + public static int MEMORY_ALLOCATION_ALIGNMENT + { + get + { + if (sizeof(nint) == 4) + { + return 8; + } + else + { + return 16; + } + } + } + public static int MAXIMUM_PROC_PER_GROUP + { + get + { + if (sizeof(nint) == 4) + { + return 32; + } + else + { + return 64; + } + } + } + + [NativeTypeName("#define MAXIMUM_PROCESSORS MAXIMUM_PROC_PER_GROUP")] + public static int MAXIMUM_PROCESSORS => MAXIMUM_PROC_PER_GROUP; + + [NativeTypeName("#define MAXIMUM_SUPPORTED_EXTENSION 512")] + public const int MAXIMUM_SUPPORTED_EXTENSION = 512; + + [NativeTypeName("#define INITIAL_MXCSR 0x1f80")] + public const int INITIAL_MXCSR = 0x1f80; + + [NativeTypeName("#define INITIAL_FPCSR 0x027f")] + public const int INITIAL_FPCSR = 0x027f; + + [NativeTypeName("#define RUNTIME_FUNCTION_INDIRECT 0x1")] + public const int RUNTIME_FUNCTION_INDIRECT = 0x1; + + [NativeTypeName("#define UNW_FLAG_NHANDLER 0x0")] + public const int UNW_FLAG_NHANDLER = 0x0; + + [NativeTypeName("#define UNW_FLAG_EHANDLER 0x1")] + public const int UNW_FLAG_EHANDLER = 0x1; + + [NativeTypeName("#define UNW_FLAG_UHANDLER 0x2")] + public const int UNW_FLAG_UHANDLER = 0x2; + + [NativeTypeName("#define UNW_FLAG_CHAININFO 0x4")] + public const int UNW_FLAG_CHAININFO = 0x4; + + [NativeTypeName("#define UNW_FLAG_NO_EPILOGUE 0x80000000UL")] + public const uint UNW_FLAG_NO_EPILOGUE = 0x80000000U; + + [NativeTypeName("#define UNWIND_CHAIN_LIMIT 32")] + public const int UNWIND_CHAIN_LIMIT = 32; + + [NativeTypeName( + "#define OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME \"OutOfProcessFunctionTableCallback\"" + )] + public static ReadOnlySpan OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME => + "OutOfProcessFunctionTableCallback"u8; + + [NativeTypeName("#define ARM64_MAX_BREAKPOINTS 8")] + public const int ARM64_MAX_BREAKPOINTS = 8; + + [NativeTypeName("#define ARM64_MAX_WATCHPOINTS 2")] + public const int ARM64_MAX_WATCHPOINTS = 2; + + [NativeTypeName("#define NONVOL_INT_NUMREG_ARM64 (11)")] + public const int NONVOL_INT_NUMREG_ARM64 = (11); + + [NativeTypeName("#define NONVOL_FP_NUMREG_ARM64 (8)")] + public const int NONVOL_FP_NUMREG_ARM64 = (8); + + [NativeTypeName("#define NONVOL_INT_SIZE_ARM64 (NONVOL_INT_NUMREG_ARM64 * sizeof(DWORD64))")] + public const uint NONVOL_INT_SIZE_ARM64 = ((11) * 8); + + [NativeTypeName("#define NONVOL_FP_SIZE_ARM64 (NONVOL_FP_NUMREG_ARM64 * sizeof(double))")] + public const uint NONVOL_FP_SIZE_ARM64 = ((8) * 8); + + [NativeTypeName("#define SIZE_OF_80387_REGISTERS 80")] + public const int SIZE_OF_80387_REGISTERS = 80; + + [NativeTypeName("#define MEMORY_CURRENT_PARTITION_HANDLE ((HANDLE) (LONG_PTR) -1)")] + public static HANDLE MEMORY_CURRENT_PARTITION_HANDLE => unchecked((HANDLE)((nint)(-1))); + + [NativeTypeName("#define MEMORY_SYSTEM_PARTITION_HANDLE ((HANDLE) (LONG_PTR) -2)")] + public static HANDLE MEMORY_SYSTEM_PARTITION_HANDLE => unchecked((HANDLE)((nint)(-2))); + + [NativeTypeName("#define MEMORY_EXISTING_VAD_PARTITION_HANDLE ((HANDLE) (LONG_PTR) -3)")] + public static HANDLE MEMORY_EXISTING_VAD_PARTITION_HANDLE => unchecked((HANDLE)((nint)(-3))); +} diff --git a/sources/Win32/Win32/Windows/um/winnt/X86_NT_CONTEXT.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/X86_NT_CONTEXT.Manual.cs new file mode 100644 index 0000000000..cef9c03712 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/X86_NT_CONTEXT.Manual.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System.Runtime.CompilerServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct X86_NT_CONTEXT +{ + [NativeTypeName("DWORD")] + public uint ContextFlags; + + [NativeTypeName("DWORD")] + public uint Dr0; + + [NativeTypeName("DWORD")] + public uint Dr1; + + [NativeTypeName("DWORD")] + public uint Dr2; + + [NativeTypeName("DWORD")] + public uint Dr3; + + [NativeTypeName("DWORD")] + public uint Dr6; + + [NativeTypeName("DWORD")] + public uint Dr7; + public FLOATING_SAVE_AREA FloatSave; + + [NativeTypeName("DWORD")] + public uint SegGs; + + [NativeTypeName("DWORD")] + public uint SegFs; + + [NativeTypeName("DWORD")] + public uint SegEs; + + [NativeTypeName("DWORD")] + public uint SegDs; + + [NativeTypeName("DWORD")] + public uint Edi; + + [NativeTypeName("DWORD")] + public uint Esi; + + [NativeTypeName("DWORD")] + public uint Ebx; + + [NativeTypeName("DWORD")] + public uint Edx; + + [NativeTypeName("DWORD")] + public uint Ecx; + + [NativeTypeName("DWORD")] + public uint Eax; + + [NativeTypeName("DWORD")] + public uint Ebp; + + [NativeTypeName("DWORD")] + public uint Eip; + + [NativeTypeName("DWORD")] + public uint SegCs; + + [NativeTypeName("DWORD")] + public uint EFlags; + + [NativeTypeName("DWORD")] + public uint Esp; + + [NativeTypeName("DWORD")] + public uint SegSs; + + [NativeTypeName("BYTE[512]")] + public _ExtendedRegisters_e__FixedBuffer ExtendedRegisters; + + [InlineArray(512)] + public partial struct _ExtendedRegisters_e__FixedBuffer + { + public byte e0; + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/XSTATE.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/XSTATE.Manual.cs new file mode 100644 index 0000000000..6825b41e47 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/XSTATE.Manual.cs @@ -0,0 +1,41 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static unsafe partial class XSTATE +{ + public static ulong XSTATE_MASK_ALLOWED + { + get + { + if (sizeof(nint) == 4) + { + return ( + XSTATE_MASK_LEGACY + | XSTATE_MASK_AVX + | XSTATE_MASK_MPX + | XSTATE_MASK_AVX512 + | XSTATE_MASK_IPT + | XSTATE_MASK_CET_U + | XSTATE_MASK_LWP + ); + } + else + { + return ( + XSTATE_MASK_LEGACY + | XSTATE_MASK_AVX + | XSTATE_MASK_MPX + | XSTATE_MASK_AVX512 + | XSTATE_MASK_IPT + | XSTATE_MASK_CET_U + | XSTATE_MASK_AMX_TILE_CONFIG + | XSTATE_MASK_AMX_TILE_DATA + | XSTATE_MASK_LWP + ); + } + } + } +} diff --git a/sources/Win32/Win32/Windows/um/winnt/XSTATE_CONTEXT_AMD64.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/XSTATE_CONTEXT_AMD64.Manual.cs new file mode 100644 index 0000000000..3a8fd998dc --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/XSTATE_CONTEXT_AMD64.Manual.cs @@ -0,0 +1,23 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct XSTATE_CONTEXT_AMD64 +{ + [NativeTypeName("DWORD64")] + public ulong Mask; + + [NativeTypeName("DWORD")] + public uint Length; + + [NativeTypeName("DWORD")] + public uint Reserved1; + + [NativeTypeName("PXSAVE_AREA")] + public XSAVE_AREA* Area; + + [NativeTypeName("PVOID")] + public void* Buffer; +} diff --git a/sources/Win32/Win32/Windows/um/winnt/XSTATE_CONTEXT_X86.Manual.cs b/sources/Win32/Win32/Windows/um/winnt/XSTATE_CONTEXT_X86.Manual.cs new file mode 100644 index 0000000000..9b9fd9026b --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winnt/XSTATE_CONTEXT_X86.Manual.cs @@ -0,0 +1,29 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct XSTATE_CONTEXT_X86 +{ + [NativeTypeName("DWORD64")] + public ulong Mask; + + [NativeTypeName("DWORD")] + public uint Length; + + [NativeTypeName("DWORD")] + public uint Reserved1; + + [NativeTypeName("PXSAVE_AREA")] + public XSAVE_AREA* Area; + + [NativeTypeName("DWORD")] + public uint Reserved2; + + [NativeTypeName("PVOID")] + public void* Buffer; + + [NativeTypeName("DWORD")] + public uint Reserved3; +} diff --git a/sources/Win32/Win32/Windows/um/winreg/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/winreg/Windows.Manual.cs new file mode 100644 index 0000000000..43174b7d0a --- /dev/null +++ b/sources/Win32/Win32/Windows/um/winreg/Windows.Manual.cs @@ -0,0 +1,41 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/winreg.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public unsafe partial struct HKEY +{ + [NativeTypeName("#define HKEY_CLASSES_ROOT (( HKEY ) (ULONG_PTR)((LONG)0x80000000) )")] + public static HKEY HKEY_CLASSES_ROOT => unchecked((HKEY)((nuint)((int)(0x80000000)))); + + [NativeTypeName("#define HKEY_CURRENT_USER (( HKEY ) (ULONG_PTR)((LONG)0x80000001) )")] + public static HKEY HKEY_CURRENT_USER => unchecked((HKEY)((nuint)((int)(0x80000001)))); + + [NativeTypeName("#define HKEY_LOCAL_MACHINE (( HKEY ) (ULONG_PTR)((LONG)0x80000002) )")] + public static HKEY HKEY_LOCAL_MACHINE => unchecked((HKEY)((nuint)((int)(0x80000002)))); + + [NativeTypeName("#define HKEY_USERS (( HKEY ) (ULONG_PTR)((LONG)0x80000003) )")] + public static HKEY HKEY_USERS => unchecked((HKEY)((nuint)((int)(0x80000003)))); + + [NativeTypeName("#define HKEY_PERFORMANCE_DATA (( HKEY ) (ULONG_PTR)((LONG)0x80000004) )")] + public static HKEY HKEY_PERFORMANCE_DATA => unchecked((HKEY)((nuint)((int)(0x80000004)))); + + [NativeTypeName("#define HKEY_PERFORMANCE_TEXT (( HKEY ) (ULONG_PTR)((LONG)0x80000050) )")] + public static HKEY HKEY_PERFORMANCE_TEXT => unchecked((HKEY)((nuint)((int)(0x80000050)))); + + [NativeTypeName("#define HKEY_PERFORMANCE_NLSTEXT (( HKEY ) (ULONG_PTR)((LONG)0x80000060) )")] + public static HKEY HKEY_PERFORMANCE_NLSTEXT => unchecked((HKEY)((nuint)((int)(0x80000060)))); + + [NativeTypeName("#define HKEY_CURRENT_CONFIG (( HKEY ) (ULONG_PTR)((LONG)0x80000005) )")] + public static HKEY HKEY_CURRENT_CONFIG => unchecked((HKEY)((nuint)((int)(0x80000005)))); + + [NativeTypeName("#define HKEY_DYN_DATA (( HKEY ) (ULONG_PTR)((LONG)0x80000006) )")] + public static HKEY HKEY_DYN_DATA => unchecked((HKEY)((nuint)((int)(0x80000006)))); + + [NativeTypeName( + "#define HKEY_CURRENT_USER_LOCAL_SETTINGS (( HKEY ) (ULONG_PTR)((LONG)0x80000007) )" + )] + public static HKEY HKEY_CURRENT_USER_LOCAL_SETTINGS => + unchecked((HKEY)((nuint)((int)(0x80000007)))); +} diff --git a/sources/Win32/Win32/Windows/um/wintrust/Windows.Manual.cs b/sources/Win32/Win32/Windows/um/wintrust/Windows.Manual.cs new file mode 100644 index 0000000000..67fb9abec4 --- /dev/null +++ b/sources/Win32/Win32/Windows/um/wintrust/Windows.Manual.cs @@ -0,0 +1,355 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32; + +public static partial class Windows +{ + public static ReadOnlySpan SpcSerializedObjectAttributesClassId => + [ + 0xA6, + 0xB5, + 0x86, + 0xD5, + 0xB4, + 0xA1, + 0x24, + 0x66, + 0xAE, + 0x05, + 0xA2, + 0x17, + 0xDA, + 0x8E, + 0x60, + 0xD6, + ]; + public static ref readonly Guid WIN_TRUST_SUBJTYPE_RAW_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x50, + 0xC4, + 0x9D, + 0x95, + 0x9E, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_PE_IMAGE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0xE0, + 0xA1, + 0xC9, + 0x43, + 0xA0, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_JAVA_CLASS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x90, + 0x39, + 0xAD, + 0x08, + 0xA1, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_CABINET + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x74, + 0x53, + 0x7C, + 0xD1, + 0x92, + 0xA3, + 0xCF, + 0x11, + 0x9D, + 0xF5, + 0x00, + 0xAA, + 0x00, + 0xC1, + 0x84, + 0xE0, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_RAW_FILEEX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x10, + 0x81, + 0x45, + 0x6F, + 0xF1, + 0xC2, + 0xCF, + 0x11, + 0x8A, + 0x69, + 0x00, + 0xAA, + 0x00, + 0x6C, + 0x37, + 0x06, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_PE_IMAGEEX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x11, + 0x81, + 0x45, + 0x6F, + 0xF1, + 0xC2, + 0xCF, + 0x11, + 0x8A, + 0x69, + 0x00, + 0xAA, + 0x00, + 0x6C, + 0x37, + 0x06, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_JAVA_CLASSEX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x13, + 0x81, + 0x45, + 0x6F, + 0xF1, + 0xC2, + 0xCF, + 0x11, + 0x8A, + 0x69, + 0x00, + 0xAA, + 0x00, + 0x6C, + 0x37, + 0x06, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_CABINETEX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x14, + 0x81, + 0x45, + 0x6F, + 0xF1, + 0xC2, + 0xCF, + 0x11, + 0x8A, + 0x69, + 0x00, + 0xAA, + 0x00, + 0x6C, + 0x37, + 0x06, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_TRUST_SUBJTYPE_OLE_STORAGE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x40, + 0xE7, + 0x57, + 0xC2, + 0xA0, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_SPUB_ACTION_TRUSTED_PUBLISHER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x30, + 0x67, + 0x42, + 0x66, + 0xA1, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_SPUB_ACTION_NT_ACTIVATE_IMAGE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x00, + 0x6B, + 0xC9, + 0x8B, + 0xA1, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public static ref readonly Guid WIN_SPUB_ACTION_PUBLISHED_SOFTWARE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = + [ + 0x80, + 0xD1, + 0xB9, + 0x64, + 0xA2, + 0x8D, + 0xCF, + 0x11, + 0x87, + 0x36, + 0x00, + 0xAA, + 0x00, + 0xA4, + 0x85, + 0xEB, + ]; + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } +} diff --git a/tests/Core/Core/WinRT/winrt/inspectable/IInspectableTests.gen.cs b/tests/Core/Core/WinRT/winrt/inspectable/IInspectableTests.gen.cs new file mode 100644 index 0000000000..2e2d143eb1 --- /dev/null +++ b/tests/Core/Core/WinRT/winrt/inspectable/IInspectableTests.gen.cs @@ -0,0 +1,54 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from winrt/inspectable.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using NUnit.Framework; +using static Silk.NET.Core.IID; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core.UnitTests; + +/// Provides validation of the struct. +[SupportedOSPlatform("windows6.2")] +public static unsafe partial class IInspectableTests +{ + /// Validates that the of the struct is correct. + + [Test] + public static void GuidOfTest() + { + Assert.That(typeof(IInspectable).GUID, Is.EqualTo(IID_IInspectable)); + } + + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IInspectable))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(IInspectable).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(IInspectable), Is.EqualTo(8)); + } + else + { + Assert.That(sizeof(IInspectable), Is.EqualTo(4)); + } + } +} diff --git a/tests/Core/Core/Windows/um/Unknwnbase/AsyncIUnknownTests.gen.cs b/tests/Core/Core/Windows/um/Unknwnbase/AsyncIUnknownTests.gen.cs new file mode 100644 index 0000000000..ce437e8120 --- /dev/null +++ b/tests/Core/Core/Windows/um/Unknwnbase/AsyncIUnknownTests.gen.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; +using static Silk.NET.Core.IID; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class AsyncIUnknownTests +{ + /// Validates that the of the struct is correct. + + [Test] + public static void GuidOfTest() + { + Assert.That(typeof(AsyncIUnknown).GUID, Is.EqualTo(IID_AsyncIUnknown)); + } + + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(AsyncIUnknown))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(AsyncIUnknown).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(AsyncIUnknown), Is.EqualTo(8)); + } + else + { + Assert.That(sizeof(AsyncIUnknown), Is.EqualTo(4)); + } + } +} diff --git a/tests/Core/Core/Windows/um/Unknwnbase/IClassFactoryTests.gen.cs b/tests/Core/Core/Windows/um/Unknwnbase/IClassFactoryTests.gen.cs new file mode 100644 index 0000000000..13c8a80c86 --- /dev/null +++ b/tests/Core/Core/Windows/um/Unknwnbase/IClassFactoryTests.gen.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; +using static Silk.NET.Core.IID; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class IClassFactoryTests +{ + /// Validates that the of the struct is correct. + + [Test] + public static void GuidOfTest() + { + Assert.That(typeof(IClassFactory).GUID, Is.EqualTo(IID_IClassFactory)); + } + + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IClassFactory))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(IClassFactory).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(IClassFactory), Is.EqualTo(8)); + } + else + { + Assert.That(sizeof(IClassFactory), Is.EqualTo(4)); + } + } +} diff --git a/tests/Core/Core/Windows/um/Unknwnbase/IUnknownTests.gen.cs b/tests/Core/Core/Windows/um/Unknwnbase/IUnknownTests.gen.cs new file mode 100644 index 0000000000..6ec15b8607 --- /dev/null +++ b/tests/Core/Core/Windows/um/Unknwnbase/IUnknownTests.gen.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.26100.0 +// Original source is Copyright © Microsoft. All rights reserved. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; +using static Silk.NET.Core.IID; +#pragma warning disable CS1589, CS1591, CS0419, CA1416, CS0618 +namespace Silk.NET.Core.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class IUnknownTests +{ + /// Validates that the of the struct is correct. + + [Test] + public static void GuidOfTest() + { + Assert.That(typeof(IUnknown).GUID, Is.EqualTo(IID_IUnknown)); + } + + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IUnknown))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(IUnknown).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(IUnknown), Is.EqualTo(8)); + } + else + { + Assert.That(sizeof(IUnknown), Is.EqualTo(4)); + } + } +} diff --git a/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs b/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs index 2daa4bf31b..c646323233 100644 --- a/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs +++ b/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs @@ -6,7 +6,9 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.Extensions.Options; using NUnit.Framework; +using Silk.NET.SilkTouch.Mods; using Silk.NET.SilkTouch.Mods.Metadata; using Silk.NET.SilkTouch.Mods.Transformation; @@ -15,6 +17,13 @@ namespace Silk.NET.SilkTouch.UnitTests; [TestFixture] public class ArrayParameterTransformerTests { + struct Options : IOptionsSnapshot + { + public required TransformFunctions.Configuration Value { get; init; } + + public TransformFunctions.Configuration Get(string? name) => Value; + } + [ Test, TestCase( @@ -198,9 +207,9 @@ public void Transform(string originalMethod, string expectedMethod) var og = SyntaxFactory.ParseMemberDeclaration(originalMethod) as MethodDeclarationSyntax ?? throw new InvalidOperationException("failed to cast original"); - var uut = new ArrayParameterTransformer(); + var uut = new ArrayParameterTransformer(new Options() { Value = new() { IntReturnsMaybeBool = false, BenefitOfTheDoubtArrayTransformation = true } }); var result = og; - uut.Transform(og, new TestApiMetadata { Original = og }, x => result = x); + uut.Transform(og, new TestApiMetadata { Original = og }, (x) => result = x); Assert.That( result.NormalizeWhitespace().ToFullString().ReplaceLineEndings(), Is.EqualTo(expectedMethod.ReplaceLineEndings()) diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/D3DTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/D3DTests.gen.cs similarity index 95% rename from tests/Win32/Win32/DirectX/headers/d3dcommon/D3DTests.gen.cs rename to tests/Win32/Win32/DirectX/d3d12/d3dcommon/D3DTests.gen.cs index 9ff53dc1d2..61666d6f04 100644 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/D3DTests.gen.cs +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/D3DTests.gen.cs @@ -1,10 +1,10 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; using System; +using NUnit.Framework; using static Silk.NET.DirectX.D3D; - +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX.UnitTests; /// Provides validation of the class. diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_MACROTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_MACROTests.gen.cs similarity index 96% rename from tests/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_MACROTests.gen.cs rename to tests/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_MACROTests.gen.cs index bd149461a3..3996f925b7 100644 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/D3D_SHADER_MACROTests.gen.cs +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/D3D_SHADER_MACROTests.gen.cs @@ -1,10 +1,10 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; using System; using System.Runtime.InteropServices; - +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX.UnitTests; /// Provides validation of the struct. diff --git a/tests/Win32/Win32/DirectX/d3d12/d3dcommon/DirectXTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/DirectXTests.gen.cs new file mode 100644 index 0000000000..7e5ca8aa8d --- /dev/null +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/DirectXTests.gen.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using NUnit.Framework; +using static Silk.NET.DirectX.DirectX; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.DirectX.UnitTests; + +/// Provides validation of the class. +public static partial class DirectXTests +{ + /// Validates that the value of the property is correct. + + [Test] + public static void WKPDID_D3DDebugObjectNameTest() + { + Assert.That( + WKPDID_D3DDebugObjectName, + Is.EqualTo( + new Guid(0x429b8c22, 0x9188, 0x4b0c, 0x87, 0x42, 0xac, 0xb0, 0xbf, 0x85, 0xc2, 0x00) + ) + ); + } + + /// Validates that the value of the property is correct. + + [Test] + public static void WKPDID_D3DDebugObjectNameWTest() + { + Assert.That( + WKPDID_D3DDebugObjectNameW, + Is.EqualTo( + new Guid(0x4cca5fd8, 0x921f, 0x42c8, 0x85, 0x66, 0x70, 0xca, 0xf2, 0xa9, 0xb7, 0x41) + ) + ); + } + + /// Validates that the value of the property is correct. + + [Test] + public static void WKPDID_CommentStringWTest() + { + Assert.That( + WKPDID_CommentStringW, + Is.EqualTo( + new Guid(0xd0149dc0, 0x90e8, 0x4ec8, 0x81, 0x44, 0xe9, 0x00, 0xad, 0x26, 0x6b, 0xb2) + ) + ); + } + + /// Validates that the value of the property is correct. + + [Test] + public static void WKPDID_D3D12UniqueObjectIdTest() + { + Assert.That( + WKPDID_D3D12UniqueObjectId, + Is.EqualTo( + new Guid(0x1b39de15, 0xec04, 0x4bae, 0xba, 0x4d, 0x8c, 0xef, 0x79, 0xfc, 0x04, 0xc1) + ) + ); + } +} diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DBlobTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DBlobTests.gen.cs similarity index 94% rename from tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DBlobTests.gen.cs rename to tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DBlobTests.gen.cs index df227b7700..1ca68a575d 100644 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DBlobTests.gen.cs +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DBlobTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; using System; using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - +using NUnit.Framework; +using static Silk.NET.Win32.IID; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX.UnitTests; /// Provides validation of the struct. diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DDestructionNotifierTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DDestructionNotifierTests.gen.cs similarity index 95% rename from tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DDestructionNotifierTests.gen.cs rename to tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DDestructionNotifierTests.gen.cs index fcaa639dc8..ea0e2f2662 100644 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DDestructionNotifierTests.gen.cs +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DDestructionNotifierTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; using System; using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - +using NUnit.Framework; +using static Silk.NET.Win32.IID; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX.UnitTests; /// Provides validation of the struct. diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DIncludeTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DIncludeTests.gen.cs similarity index 95% rename from tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DIncludeTests.gen.cs rename to tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DIncludeTests.gen.cs index 88304ec6ed..007cc1fd49 100644 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/ID3DIncludeTests.gen.cs +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/ID3DIncludeTests.gen.cs @@ -1,10 +1,10 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 // Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; using System; using System.Runtime.InteropServices; - +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 namespace Silk.NET.DirectX.UnitTests; /// Provides validation of the struct. diff --git a/tests/Win32/Win32/DirectX/d3d12/d3dcommon/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/IIDTests.gen.cs new file mode 100644 index 0000000000..6c8938296b --- /dev/null +++ b/tests/Win32/Win32/DirectX/d3d12/d3dcommon/IIDTests.gen.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. +// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0 +// Original source is Copyright © Microsoft. Licensed under the MIT license +using System; +using NUnit.Framework; +using static Silk.NET.Win32.IID; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; + +/// Provides validation of the class. +public static partial class IIDTests +{ + /// Validates that the value of the property is correct. + + [Test] + public static void IID_ID3D10BlobTest() + { + Assert.That( + IID_ID3D10Blob, + Is.EqualTo( + new Guid(0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2) + ) + ); + } +} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/CLSIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/CLSIDTests.gen.cs deleted file mode 100644 index ceb07cae43..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/CLSIDTests.gen.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.CLSID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class CLSIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void CLSID_D3D12DebugTest() - { - Assert.That( - CLSID_D3D12Debug, - Is.EqualTo( - new Guid(0xf2352aeb, 0xdd84, 0x49fe, 0xb9, 0x7b, 0xa9, 0xdc, 0xfd, 0xcc, 0x1b, 0x4f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void CLSID_D3D12ToolsTest() - { - Assert.That( - CLSID_D3D12Tools, - Is.EqualTo( - new Guid(0xe38216b1, 0x3c8c, 0x4833, 0xaa, 0x09, 0x0a, 0x06, 0xb6, 0x5d, 0x96, 0xc8) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void CLSID_D3D12DeviceRemovedExtendedDataTest() - { - Assert.That( - CLSID_D3D12DeviceRemovedExtendedData, - Is.EqualTo( - new Guid(0x4a75bbc4, 0x9ff4, 0x4ad8, 0x9f, 0x18, 0xab, 0xae, 0x84, 0xdc, 0x5f, 0xf2) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void CLSID_D3D12SDKConfigurationTest() - { - Assert.That( - CLSID_D3D12SDKConfiguration, - Is.EqualTo( - new Guid(0x7cda6aca, 0xa03e, 0x49c8, 0x94, 0x58, 0x03, 0x34, 0xd2, 0x0e, 0x07, 0xce) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void CLSID_D3D12DeviceFactoryTest() - { - Assert.That( - CLSID_D3D12DeviceFactory, - Is.EqualTo( - new Guid(0x114863bf, 0xc386, 0x4aee, 0xb3, 0x9d, 0x8f, 0x0b, 0xbb, 0x06, 0x29, 0x55) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12Tests.gen.cs deleted file mode 100644 index 11a4965384..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12Tests.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.D3D12; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static partial class D3D12Tests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTEDTest() - { - Assert.That( - D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, - Is.EqualTo( - new Guid(0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE1Tests.gen.cs deleted file mode 100644 index fddd5e9071..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODE1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_AUTO_BREADCRUMB_NODE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_AUTO_BREADCRUMB_NODE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_AUTO_BREADCRUMB_NODE1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE1), Is.EqualTo(96)); - } - else - { - Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE1), Is.EqualTo(48)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODETests.gen.cs deleted file mode 100644 index 4d1276484c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_AUTO_BREADCRUMB_NODETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_AUTO_BREADCRUMB_NODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_AUTO_BREADCRUMB_NODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_AUTO_BREADCRUMB_NODE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE), Is.EqualTo(80)); - } - else - { - Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE), Is.EqualTo(40)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_GROUPTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_GROUPTests.gen.cs deleted file mode 100644 index ba739124c8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_GROUPTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BARRIER_GROUPTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_BARRIER_GROUP))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BARRIER_GROUP).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_BARRIER_GROUP), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_BARRIER_GROUP), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SUBRESOURCE_RANGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SUBRESOURCE_RANGETests.gen.cs deleted file mode 100644 index 31600a6773..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BARRIER_SUBRESOURCE_RANGETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BARRIER_SUBRESOURCE_RANGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_BARRIER_SUBRESOURCE_RANGE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BARRIER_SUBRESOURCE_RANGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BARRIER_SUBRESOURCE_RANGE), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_DESCTests.gen.cs deleted file mode 100644 index a82cc483c1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BLEND_DESCTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BLEND_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_BLEND_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BLEND_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BLEND_DESC), Is.EqualTo(328)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BOXTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BOXTests.gen.cs deleted file mode 100644 index 79b9c5175c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BOXTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BOXTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_BOX))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BOX).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BOX), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_BARRIERTests.gen.cs deleted file mode 100644 index c6282e458f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_BARRIERTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUFFER_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_BUFFER_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BUFFER_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BUFFER_BARRIER), Is.EqualTo(40)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_RTVTests.gen.cs deleted file mode 100644 index d434c5ec5b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_RTVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUFFER_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_BUFFER_RTV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BUFFER_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BUFFER_RTV), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRVTests.gen.cs deleted file mode 100644 index faffa2f263..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_SRVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUFFER_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_BUFFER_SRV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BUFFER_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BUFFER_SRV), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAVTests.gen.cs deleted file mode 100644 index 038817ba8a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUFFER_UAVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUFFER_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_BUFFER_UAV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_BUFFER_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BUFFER_UAV), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESCTests.gen.cs deleted file mode 100644 index 5efd58edb6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTSTests.gen.cs deleted file mode 100644 index fc49361e09..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADERTests.gen.cs deleted file mode 100644 index 6f6648c98d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER), - Is.EqualTo(8) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CACHED_PIPELINE_STATETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CACHED_PIPELINE_STATETests.gen.cs deleted file mode 100644 index ad307da2fa..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CACHED_PIPELINE_STATETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_CACHED_PIPELINE_STATETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_CACHED_PIPELINE_STATE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_CACHED_PIPELINE_STATE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_CACHED_PIPELINE_STATE), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_CACHED_PIPELINE_STATE), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_VALUETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_VALUETests.gen.cs deleted file mode 100644 index 9acd281e67..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CLEAR_VALUETests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_CLEAR_VALUETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_CLEAR_VALUE))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_CLEAR_VALUE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_CLEAR_VALUE), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_DESCTests.gen.cs deleted file mode 100644 index 2910fccaa0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_QUEUE_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_COMMAND_QUEUE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_COMMAND_QUEUE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_COMMAND_QUEUE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_COMMAND_QUEUE_DESC), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_SIGNATURE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_SIGNATURE_DESCTests.gen.cs deleted file mode 100644 index 99e17fa5ce..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMMAND_SIGNATURE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_COMMAND_SIGNATURE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_COMMAND_SIGNATURE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_COMMAND_SIGNATURE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_COMMAND_SIGNATURE_DESC), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_COMMAND_SIGNATURE_DESC), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESCTests.gen.cs deleted file mode 100644 index 4b32a4b28a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_COMPUTE_PIPELINE_STATE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_COMPUTE_PIPELINE_STATE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_COMPUTE_PIPELINE_STATE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_COMPUTE_PIPELINE_STATE_DESC), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_COMPUTE_PIPELINE_STATE_DESC), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSTANT_BUFFER_VIEW_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSTANT_BUFFER_VIEW_DESCTests.gen.cs deleted file mode 100644 index 9e57a4cd75..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CONSTANT_BUFFER_VIEW_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_CONSTANT_BUFFER_VIEW_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_CONSTANT_BUFFER_VIEW_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_CONSTANT_BUFFER_VIEW_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_CONSTANT_BUFFER_VIEW_DESC), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_DESCRIPTOR_HANDLETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_DESCRIPTOR_HANDLETests.gen.cs deleted file mode 100644 index f0b58b6689..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_CPU_DESCRIPTOR_HANDLETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_CPU_DESCRIPTOR_HANDLETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_CPU_DESCRIPTOR_HANDLE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_CPU_DESCRIPTOR_HANDLE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_CPU_DESCRIPTOR_HANDLE), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_CPU_DESCRIPTOR_HANDLE), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC1Tests.gen.cs deleted file mode 100644 index 802e9247ab..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESC1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCILOP_DESC1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCILOP_DESC1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCILOP_DESC1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCILOP_DESC1), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESCTests.gen.cs deleted file mode 100644 index d6a190d9db..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCILOP_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCILOP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCILOP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCILOP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCILOP_DESC), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC1Tests.gen.cs deleted file mode 100644 index 24632e41a8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCIL_DESC1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCIL_DESC1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCIL_DESC1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCIL_DESC1), Is.EqualTo(56)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC2Tests.gen.cs deleted file mode 100644 index d8fcae34cc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESC2Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCIL_DESC2Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCIL_DESC2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCIL_DESC2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCIL_DESC2), Is.EqualTo(60)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESCTests.gen.cs deleted file mode 100644 index 28d800148b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCIL_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCIL_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCIL_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCIL_DESC), Is.EqualTo(52)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VALUETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VALUETests.gen.cs deleted file mode 100644 index caeea52f7d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VALUETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCIL_VALUETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCIL_VALUE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCIL_VALUE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCIL_VALUE), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESCTests.gen.cs deleted file mode 100644 index 4f658484b3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEPTH_STENCIL_VIEW_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEPTH_STENCIL_VIEW_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEPTH_STENCIL_VIEW_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEPTH_STENCIL_VIEW_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEPTH_STENCIL_VIEW_DESC), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_DESCTests.gen.cs deleted file mode 100644 index b78ac1bbe6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_HEAP_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DESCRIPTOR_HEAP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DESCRIPTOR_HEAP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DESCRIPTOR_HEAP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DESCRIPTOR_HEAP_DESC), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE1Tests.gen.cs deleted file mode 100644 index 70821e8af6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGE1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DESCRIPTOR_RANGE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DESCRIPTOR_RANGE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DESCRIPTOR_RANGE1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DESCRIPTOR_RANGE1), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGETests.gen.cs deleted file mode 100644 index fcd2393e45..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DESCRIPTOR_RANGETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DESCRIPTOR_RANGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DESCRIPTOR_RANGE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DESCRIPTOR_RANGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DESCRIPTOR_RANGE), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_CONFIGURATION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_CONFIGURATION_DESCTests.gen.cs deleted file mode 100644 index 6d6850cd52..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_CONFIGURATION_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEVICE_CONFIGURATION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEVICE_CONFIGURATION_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEVICE_CONFIGURATION_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEVICE_CONFIGURATION_DESC), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA1Tests.gen.cs deleted file mode 100644 index 65fb82b258..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEVICE_REMOVED_EXTENDED_DATA1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA1), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA1), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA2Tests.gen.cs deleted file mode 100644 index e2ffa6dbad..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA2Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEVICE_REMOVED_EXTENDED_DATA2Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA2), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA2), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA3Tests.gen.cs deleted file mode 100644 index d1cb652924..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATA3Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEVICE_REMOVED_EXTENDED_DATA3Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA3), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA3), Is.EqualTo(40)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATATests.gen.cs deleted file mode 100644 index 8b9bd20550..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DEVICE_REMOVED_EXTENDED_DATATests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEVICE_REMOVED_EXTENDED_DATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_DEVICE_REMOVED_EXTENDED_DATA), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISCARD_REGIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISCARD_REGIONTests.gen.cs deleted file mode 100644 index 0e2e4125b0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISCARD_REGIONTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DISCARD_REGIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DISCARD_REGION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DISCARD_REGION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DISCARD_REGION), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_DISCARD_REGION), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_ARGUMENTSTests.gen.cs deleted file mode 100644 index feb2248061..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DISPATCH_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DISPATCH_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DISPATCH_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DISPATCH_ARGUMENTS), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_MESH_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_MESH_ARGUMENTSTests.gen.cs deleted file mode 100644 index 80862875f1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_MESH_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DISPATCH_MESH_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DISPATCH_MESH_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DISPATCH_MESH_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DISPATCH_MESH_ARGUMENTS), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_RAYS_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_RAYS_DESCTests.gen.cs deleted file mode 100644 index 41af76566d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DISPATCH_RAYS_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DISPATCH_RAYS_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DISPATCH_RAYS_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DISPATCH_RAYS_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DISPATCH_RAYS_DESC), Is.EqualTo(104)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_ARGUMENTSTests.gen.cs deleted file mode 100644 index 36c85164a9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRAW_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRAW_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRAW_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DRAW_ARGUMENTS), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_INDEXED_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_INDEXED_ARGUMENTSTests.gen.cs deleted file mode 100644 index 0323a0fa54..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRAW_INDEXED_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRAW_INDEXED_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRAW_INDEXED_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRAW_INDEXED_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DRAW_INDEXED_ARGUMENTS), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE1Tests.gen.cs deleted file mode 100644 index 6b9083d450..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODE1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_ALLOCATION_NODE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_ALLOCATION_NODE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_ALLOCATION_NODE1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_ALLOCATION_NODE1), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_DRED_ALLOCATION_NODE1), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODETests.gen.cs deleted file mode 100644 index 654b5a50ee..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_ALLOCATION_NODETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_ALLOCATION_NODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_ALLOCATION_NODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_ALLOCATION_NODE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_ALLOCATION_NODE), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_DRED_ALLOCATION_NODE), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1Tests.gen.cs deleted file mode 100644 index a5aaafb489..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUTTests.gen.cs deleted file mode 100644 index bfa5f203be..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_AUTO_BREADCRUMBS_OUTPUTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_AUTO_BREADCRUMBS_OUTPUTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_BREADCRUMB_CONTEXTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_BREADCRUMB_CONTEXTTests.gen.cs deleted file mode 100644 index 6142f17ff3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_BREADCRUMB_CONTEXTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_BREADCRUMB_CONTEXTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_BREADCRUMB_CONTEXT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_BREADCRUMB_CONTEXT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_BREADCRUMB_CONTEXT), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_DRED_BREADCRUMB_CONTEXT), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT1Tests.gen.cs deleted file mode 100644 index 74ef6bc49b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_PAGE_FAULT_OUTPUT1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_PAGE_FAULT_OUTPUT1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT1), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT1), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT2Tests.gen.cs deleted file mode 100644 index fe45bce901..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUT2Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_PAGE_FAULT_OUTPUT2Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_PAGE_FAULT_OUTPUT2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT2), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT2), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUTTests.gen.cs deleted file mode 100644 index e594320535..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DRED_PAGE_FAULT_OUTPUTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DRED_PAGE_FAULT_OUTPUTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DRED_PAGE_FAULT_OUTPUT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_DRED_PAGE_FAULT_OUTPUT), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_LIBRARY_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_LIBRARY_DESCTests.gen.cs deleted file mode 100644 index 905ce78132..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_LIBRARY_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DXIL_LIBRARY_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DXIL_LIBRARY_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_DXIL_LIBRARY_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DXIL_LIBRARY_DESC), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_DXIL_LIBRARY_DESC), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests.gen.cs deleted file mode 100644 index 6f791bda40..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_EXISTING_COLLECTION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_EXISTING_COLLECTION_DESCTests.gen.cs deleted file mode 100644 index 0e34ad317f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_EXISTING_COLLECTION_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_EXISTING_COLLECTION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_EXISTING_COLLECTION_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_EXISTING_COLLECTION_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_EXISTING_COLLECTION_DESC), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_EXISTING_COLLECTION_DESC), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_DESCTests.gen.cs deleted file mode 100644 index d0c63576ce..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_EXPORT_DESCTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_EXPORT_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_EXPORT_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_EXPORT_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_EXPORT_DESC), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_EXPORT_DESC), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE1Tests.gen.cs deleted file mode 100644 index 26f3d4e86b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURE1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_ARCHITECTURE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_ARCHITECTURE1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE1), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURETests.gen.cs deleted file mode 100644 index 8656ff8d2b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ARCHITECTURETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_ARCHITECTURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_ARCHITECTURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_ARCHITECTURE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITYTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITYTests.gen.cs deleted file mode 100644 index bebe36ff30..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITYTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITYTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_CROSS_NODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_CROSS_NODETests.gen.cs deleted file mode 100644 index 958e68f241..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_CROSS_NODETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_CROSS_NODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_CROSS_NODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_CROSS_NODE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_CROSS_NODE), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS10Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS10Tests.gen.cs deleted file mode 100644 index b771a92602..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS10Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS10Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS10)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS10).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS10), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS11Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS11Tests.gen.cs deleted file mode 100644 index cf82d7660b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS11Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS11Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS11)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS11).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS11), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS12Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS12Tests.gen.cs deleted file mode 100644 index 0c0e4921ff..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS12Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS12Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS12)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS12).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS12), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS13Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS13Tests.gen.cs deleted file mode 100644 index 8db64796ce..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS13Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS13Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS13)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS13).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS13), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS14Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS14Tests.gen.cs deleted file mode 100644 index 2a892f11d7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS14Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS14Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS14)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS14).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS14), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS15Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS15Tests.gen.cs deleted file mode 100644 index 29658724ab..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS15Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS15Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS15)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS15).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS15), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS1Tests.gen.cs deleted file mode 100644 index 3ef1585468..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS1), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS2Tests.gen.cs deleted file mode 100644 index cbf3b904c6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS2Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS2Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS2), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS3Tests.gen.cs deleted file mode 100644 index e886a555fb..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS3Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS3Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS3), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS4Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS4Tests.gen.cs deleted file mode 100644 index dffeaf4ad6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS4Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS4Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS4)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS4).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS4), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS5Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS5Tests.gen.cs deleted file mode 100644 index 53bfb3906d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS5Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS5Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS6Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS6Tests.gen.cs deleted file mode 100644 index c243079999..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS6Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS6Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS6)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS6).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS6), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS7Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS7Tests.gen.cs deleted file mode 100644 index edc32cc21b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS7Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS7Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS7)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS7).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS7), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS8Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS8Tests.gen.cs deleted file mode 100644 index cb0b60eb12..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS8Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS8Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS8)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS8).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS8), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS9Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS9Tests.gen.cs deleted file mode 100644 index f09b762b2a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONS9Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONS9Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS9)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS9).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS9), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONSTests.gen.cs deleted file mode 100644 index 37128d0bec..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_D3D12_OPTIONSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_D3D12_OPTIONSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_D3D12_OPTIONS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS), Is.EqualTo(60)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_DISPLAYABLETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_DISPLAYABLETests.gen.cs deleted file mode 100644 index 5c51b044f1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_DISPLAYABLETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_DISPLAYABLETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_DISPLAYABLE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_DISPLAYABLE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_DISPLAYABLE), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_EXISTING_HEAPSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_EXISTING_HEAPSTests.gen.cs deleted file mode 100644 index 2d137a2380..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_EXISTING_HEAPSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_EXISTING_HEAPSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_EXISTING_HEAPS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_EXISTING_HEAPS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_EXISTING_HEAPS), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FEATURE_LEVELSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FEATURE_LEVELSTests.gen.cs deleted file mode 100644 index ab83d34057..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FEATURE_LEVELSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_FEATURE_LEVELSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_FEATURE_LEVELS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_FEATURE_LEVELS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_FEATURE_LEVELS), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_FEATURE_LEVELS), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_INFOTests.gen.cs deleted file mode 100644 index 3c1146a62e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_INFOTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_FORMAT_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_FORMAT_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_FORMAT_INFO).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_FORMAT_INFO), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_SUPPORTTests.gen.cs deleted file mode 100644 index 7270e71f0f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_FORMAT_SUPPORTTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_FORMAT_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_FORMAT_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_FORMAT_SUPPORT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_FORMAT_SUPPORT), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORTTests.gen.cs deleted file mode 100644 index 5c30cac04f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORTTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELSTests.gen.cs deleted file mode 100644 index d7bdd6116f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORTTests.gen.cs deleted file mode 100644 index 12680e4338..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORTTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPESTests.gen.cs deleted file mode 100644 index c3f6eb2707..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPESTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES), - Is.EqualTo(16) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES), - Is.EqualTo(12) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNTTests.gen.cs deleted file mode 100644 index 6b5753f4dc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNTTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT), - Is.EqualTo(8) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_QUERY_META_COMMANDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_QUERY_META_COMMANDTests.gen.cs deleted file mode 100644 index 5754817820..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_QUERY_META_COMMANDTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_QUERY_META_COMMANDTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_QUERY_META_COMMAND)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_QUERY_META_COMMAND).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_QUERY_META_COMMAND), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_QUERY_META_COMMAND), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ROOT_SIGNATURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ROOT_SIGNATURETests.gen.cs deleted file mode 100644 index 85bf3b42fa..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_ROOT_SIGNATURETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_ROOT_SIGNATURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_ROOT_SIGNATURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_ROOT_SIGNATURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_ROOT_SIGNATURE), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SERIALIZATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SERIALIZATIONTests.gen.cs deleted file mode 100644 index a67b9c0bbc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SERIALIZATIONTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_SERIALIZATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_SERIALIZATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_SERIALIZATION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_SERIALIZATION), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_CACHETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_CACHETests.gen.cs deleted file mode 100644 index 3463d4ffc6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_CACHETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_SHADER_CACHETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_SHADER_CACHE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_SHADER_CACHE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_SHADER_CACHE), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_MODELTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_MODELTests.gen.cs deleted file mode 100644 index 7f22c4e15e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_FEATURE_DATA_SHADER_MODELTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_SHADER_MODELTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_SHADER_MODEL)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_SHADER_MODEL).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_SHADER_MODEL), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_BARRIERTests.gen.cs deleted file mode 100644 index 1a7833a2e8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_BARRIERTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GLOBAL_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GLOBAL_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GLOBAL_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_GLOBAL_BARRIER), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_ROOT_SIGNATURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_ROOT_SIGNATURETests.gen.cs deleted file mode 100644 index 3370d6afcf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GLOBAL_ROOT_SIGNATURETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GLOBAL_ROOT_SIGNATURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GLOBAL_ROOT_SIGNATURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GLOBAL_ROOT_SIGNATURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_GLOBAL_ROOT_SIGNATURE), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_GLOBAL_ROOT_SIGNATURE), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_DESCRIPTOR_HANDLETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_DESCRIPTOR_HANDLETests.gen.cs deleted file mode 100644 index b7278e826f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_DESCRIPTOR_HANDLETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GPU_DESCRIPTOR_HANDLETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GPU_DESCRIPTOR_HANDLE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GPU_DESCRIPTOR_HANDLE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_GPU_DESCRIPTOR_HANDLE), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDETests.gen.cs deleted file mode 100644 index 64d1f1f70e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGETests.gen.cs deleted file mode 100644 index 76291f0917..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GPU_VIRTUAL_ADDRESS_RANGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GPU_VIRTUAL_ADDRESS_RANGE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GPU_VIRTUAL_ADDRESS_RANGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_GPU_VIRTUAL_ADDRESS_RANGE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDETests.gen.cs deleted file mode 100644 index 043e7726bf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESCTests.gen.cs deleted file mode 100644 index 2f0feefe7f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_GRAPHICS_PIPELINE_STATE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_GRAPHICS_PIPELINE_STATE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_GRAPHICS_PIPELINE_STATE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_GRAPHICS_PIPELINE_STATE_DESC), Is.EqualTo(656)); - } - else - { - Assert.That(sizeof(D3D12_GRAPHICS_PIPELINE_STATE_DESC), Is.EqualTo(572)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_DESCTests.gen.cs deleted file mode 100644 index 02070346bd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_DESCTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_HEAP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_HEAP_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_HEAP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_HEAP_DESC), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_PROPERTIESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_PROPERTIESTests.gen.cs deleted file mode 100644 index c03adba31c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HEAP_PROPERTIESTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_HEAP_PROPERTIESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_HEAP_PROPERTIES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_HEAP_PROPERTIES).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_HEAP_PROPERTIES), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_DESCTests.gen.cs deleted file mode 100644 index 50e552e59c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_HIT_GROUP_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_HIT_GROUP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_HIT_GROUP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_HIT_GROUP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_HIT_GROUP_DESC), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_HIT_GROUP_DESC), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_VIEWTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_VIEWTests.gen.cs deleted file mode 100644 index c3b2a36199..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INDEX_BUFFER_VIEWTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_INDEX_BUFFER_VIEWTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_INDEX_BUFFER_VIEW)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_INDEX_BUFFER_VIEW).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_INDEX_BUFFER_VIEW), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_DESCTests.gen.cs deleted file mode 100644 index 0c30b8dab8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INDIRECT_ARGUMENT_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_INDIRECT_ARGUMENT_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_INDIRECT_ARGUMENT_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_INDIRECT_ARGUMENT_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_INDIRECT_ARGUMENT_DESC), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_ELEMENT_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_ELEMENT_DESCTests.gen.cs deleted file mode 100644 index 8f20beabb8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_ELEMENT_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_INPUT_ELEMENT_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_INPUT_ELEMENT_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_INPUT_ELEMENT_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_INPUT_ELEMENT_DESC), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_INPUT_ELEMENT_DESC), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_LAYOUT_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_LAYOUT_DESCTests.gen.cs deleted file mode 100644 index 585a05d406..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_INPUT_LAYOUT_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_INPUT_LAYOUT_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_INPUT_LAYOUT_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_INPUT_LAYOUT_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_INPUT_LAYOUT_DESC), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_INPUT_LAYOUT_DESC), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_LOCAL_ROOT_SIGNATURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_LOCAL_ROOT_SIGNATURETests.gen.cs deleted file mode 100644 index ba2d59df76..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_LOCAL_ROOT_SIGNATURETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_LOCAL_ROOT_SIGNATURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_LOCAL_ROOT_SIGNATURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_LOCAL_ROOT_SIGNATURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_LOCAL_ROOT_SIGNATURE), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_LOCAL_ROOT_SIGNATURE), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMCPY_DESTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMCPY_DESTTests.gen.cs deleted file mode 100644 index 0e9fee7b8f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_MEMCPY_DESTTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_MEMCPY_DESTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_MEMCPY_DEST))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_MEMCPY_DEST).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_MEMCPY_DEST), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_MEMCPY_DEST), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_DESCTests.gen.cs deleted file mode 100644 index 4e93e7c565..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_META_COMMAND_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_META_COMMAND_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_META_COMMAND_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_META_COMMAND_DESC), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_META_COMMAND_DESC), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_DESCTests.gen.cs deleted file mode 100644 index 1b2ac32f68..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_META_COMMAND_PARAMETER_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_META_COMMAND_PARAMETER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_META_COMMAND_PARAMETER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_META_COMMAND_PARAMETER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_META_COMMAND_PARAMETER_DESC), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_META_COMMAND_PARAMETER_DESC), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_MIP_REGIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_MIP_REGIONTests.gen.cs deleted file mode 100644 index cfb2244124..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_MIP_REGIONTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_MIP_REGIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_MIP_REGION))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_MIP_REGION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_MIP_REGION), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_NODE_MASKTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_NODE_MASKTests.gen.cs deleted file mode 100644 index 9ba1067212..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_NODE_MASKTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_NODE_MASKTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_NODE_MASK))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_NODE_MASK).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_NODE_MASK), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PACKED_MIP_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PACKED_MIP_INFOTests.gen.cs deleted file mode 100644 index 70a5478cd1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PACKED_MIP_INFOTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_PACKED_MIP_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_PACKED_MIP_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_PACKED_MIP_INFO).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_PACKED_MIP_INFO), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_STREAM_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_STREAM_DESCTests.gen.cs deleted file mode 100644 index a659ac5368..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PIPELINE_STATE_STREAM_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_PIPELINE_STATE_STREAM_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_PIPELINE_STATE_STREAM_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_PIPELINE_STATE_STREAM_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_PIPELINE_STATE_STREAM_DESC), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_PIPELINE_STATE_STREAM_DESC), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PLACED_SUBRESOURCE_FOOTPRINTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PLACED_SUBRESOURCE_FOOTPRINTTests.gen.cs deleted file mode 100644 index 441693e53c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PLACED_SUBRESOURCE_FOOTPRINTTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_PLACED_SUBRESOURCE_FOOTPRINTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_PLACED_SUBRESOURCE_FOOTPRINT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_PLACED_SUBRESOURCE_FOOTPRINT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_PLACED_SUBRESOURCE_FOOTPRINT), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC1Tests.gen.cs deleted file mode 100644 index 80174be476..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESC1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_PROTECTED_RESOURCE_SESSION_DESC1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_PROTECTED_RESOURCE_SESSION_DESC1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_PROTECTED_RESOURCE_SESSION_DESC1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_PROTECTED_RESOURCE_SESSION_DESC1), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESCTests.gen.cs deleted file mode 100644 index 57a90291f3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_PROTECTED_RESOURCE_SESSION_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_PROTECTED_RESOURCE_SESSION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_PROTECTED_RESOURCE_SESSION_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_PROTECTED_RESOURCE_SESSION_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_PROTECTED_RESOURCE_SESSION_DESC), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS1Tests.gen.cs deleted file mode 100644 index 7e665c4a1d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICS1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_QUERY_DATA_PIPELINE_STATISTICS1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS1), Is.EqualTo(112)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICSTests.gen.cs deleted file mode 100644 index 31e37195d9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_PIPELINE_STATISTICSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_QUERY_DATA_PIPELINE_STATISTICSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_QUERY_DATA_PIPELINE_STATISTICS), Is.EqualTo(88)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_SO_STATISTICSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_SO_STATISTICSTests.gen.cs deleted file mode 100644 index 4117c6db31..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_DATA_SO_STATISTICSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_QUERY_DATA_SO_STATISTICSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_QUERY_DATA_SO_STATISTICS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_QUERY_DATA_SO_STATISTICS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_QUERY_DATA_SO_STATISTICS), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_DESCTests.gen.cs deleted file mode 100644 index b0ed36f545..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_QUERY_HEAP_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_QUERY_HEAP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_QUERY_HEAP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_QUERY_HEAP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_QUERY_HEAP_DESC), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGETests.gen.cs deleted file mode 100644 index 892012cb34..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGETests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RANGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_RANGE))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RANGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RANGE), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_RANGE), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE_UINT64Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE_UINT64Tests.gen.cs deleted file mode 100644 index a508c544d9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RANGE_UINT64Tests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RANGE_UINT64Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_RANGE_UINT64))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RANGE_UINT64).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RANGE_UINT64), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RASTERIZER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RASTERIZER_DESCTests.gen.cs deleted file mode 100644 index 7d8c2c93cc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RASTERIZER_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RASTERIZER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RASTERIZER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RASTERIZER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RASTERIZER_DESC), Is.EqualTo(44)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_AABBTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_AABBTests.gen.cs deleted file mode 100644 index 44b357def5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_AABBTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_AABBTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_AABB)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_AABB).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_AABB), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESCTests.gen.cs deleted file mode 100644 index 1d450e4d30..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC), - Is.EqualTo(8) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESCTests.gen.cs deleted file mode 100644 index 68ac01d902..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC), - Is.EqualTo(8) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESCTests.gen.cs deleted file mode 100644 index eb451be2ba..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESCTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC), - Is.EqualTo(16) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESCTests.gen.cs deleted file mode 100644 index 15c37977c9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC), - Is.EqualTo(16) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESCTests.gen.cs deleted file mode 100644 index 0cc0338d92..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC), - Is.EqualTo(8) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFOTests.gen.cs deleted file mode 100644 index 7c153fe515..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFOTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRVTests.gen.cs deleted file mode 100644 index c50f68a6d7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRVTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_AABBS_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_AABBS_DESCTests.gen.cs deleted file mode 100644 index ddace228fa..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_AABBS_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_GEOMETRY_AABBS_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_GEOMETRY_AABBS_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_GEOMETRY_AABBS_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_GEOMETRY_AABBS_DESC), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_DESCTests.gen.cs deleted file mode 100644 index 3cb86620c6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_GEOMETRY_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_GEOMETRY_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_GEOMETRY_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_GEOMETRY_DESC), Is.EqualTo(56)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESCTests.gen.cs deleted file mode 100644 index 694273ca05..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_DESCTests.gen.cs deleted file mode 100644 index 93a8b3f761..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_INSTANCE_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_INSTANCE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_INSTANCE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_INSTANCE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_INSTANCE_DESC), Is.EqualTo(64)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG1Tests.gen.cs deleted file mode 100644 index fdd49c814d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIG1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_PIPELINE_CONFIG1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_PIPELINE_CONFIG1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_PIPELINE_CONFIG1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_PIPELINE_CONFIG1), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIGTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIGTests.gen.cs deleted file mode 100644 index a35bf792d5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_PIPELINE_CONFIGTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_PIPELINE_CONFIGTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_PIPELINE_CONFIG)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_PIPELINE_CONFIG).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_PIPELINE_CONFIG), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_SHADER_CONFIGTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_SHADER_CONFIGTests.gen.cs deleted file mode 100644 index 19bc690be8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RAYTRACING_SHADER_CONFIGTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RAYTRACING_SHADER_CONFIGTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RAYTRACING_SHADER_CONFIG)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RAYTRACING_SHADER_CONFIG).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RAYTRACING_SHADER_CONFIG), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESSTests.gen.cs deleted file mode 100644 index 5f3ce7a3cd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_BEGINNING_ACCESSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_BEGINNING_ACCESS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RENDER_PASS_BEGINNING_ACCESS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RENDER_PASS_BEGINNING_ACCESS), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERSTests.gen.cs deleted file mode 100644 index fa530e679b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_DEPTH_STENCIL_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_DEPTH_STENCIL_DESCTests.gen.cs deleted file mode 100644 index 5eaa3df4a7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_DEPTH_STENCIL_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_DEPTH_STENCIL_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_DEPTH_STENCIL_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RENDER_PASS_DEPTH_STENCIL_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RENDER_PASS_DEPTH_STENCIL_DESC), Is.EqualTo(168)); - } - else - { - Assert.That(sizeof(D3D12_RENDER_PASS_DEPTH_STENCIL_DESC), Is.EqualTo(116)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESSTests.gen.cs deleted file mode 100644 index 0eb639a234..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_ENDING_ACCESSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RENDER_PASS_ENDING_ACCESS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS), Is.EqualTo(32)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERSTests.gen.cs deleted file mode 100644 index 4749dc015a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERSTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERSTests.gen.cs deleted file mode 100644 index ed8096705a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERSTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS), - Is.EqualTo(32) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_RENDER_TARGET_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_RENDER_TARGET_DESCTests.gen.cs deleted file mode 100644 index 80556d2c7f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_PASS_RENDER_TARGET_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_PASS_RENDER_TARGET_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_PASS_RENDER_TARGET_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RENDER_PASS_RENDER_TARGET_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RENDER_PASS_RENDER_TARGET_DESC), Is.EqualTo(88)); - } - else - { - Assert.That(sizeof(D3D12_RENDER_PASS_RENDER_TARGET_DESC), Is.EqualTo(60)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_BLEND_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_BLEND_DESCTests.gen.cs deleted file mode 100644 index f6c20c3d46..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_BLEND_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_TARGET_BLEND_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_TARGET_BLEND_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RENDER_TARGET_BLEND_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RENDER_TARGET_BLEND_DESC), Is.EqualTo(40)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_VIEW_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_VIEW_DESCTests.gen.cs deleted file mode 100644 index 0b866baba7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RENDER_TARGET_VIEW_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RENDER_TARGET_VIEW_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RENDER_TARGET_VIEW_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RENDER_TARGET_VIEW_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RENDER_TARGET_VIEW_DESC), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALIASING_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALIASING_BARRIERTests.gen.cs deleted file mode 100644 index da07bcb1b7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALIASING_BARRIERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_ALIASING_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_ALIASING_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_ALIASING_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RESOURCE_ALIASING_BARRIER), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_RESOURCE_ALIASING_BARRIER), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO1Tests.gen.cs deleted file mode 100644 index 7eeb79b8ef..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFO1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_ALLOCATION_INFO1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_ALLOCATION_INFO1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_ALLOCATION_INFO1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RESOURCE_ALLOCATION_INFO1), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFOTests.gen.cs deleted file mode 100644 index 4caa3b573c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_ALLOCATION_INFOTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_ALLOCATION_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_ALLOCATION_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_ALLOCATION_INFO).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RESOURCE_ALLOCATION_INFO), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIERTests.gen.cs deleted file mode 100644 index 0a9ed17816..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_BARRIERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RESOURCE_BARRIER), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_RESOURCE_BARRIER), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC1Tests.gen.cs deleted file mode 100644 index b8447c35cf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESC1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_DESC1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_DESC1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_DESC1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RESOURCE_DESC1), Is.EqualTo(64)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESCTests.gen.cs deleted file mode 100644 index accb1b3f49..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_DESCTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_RESOURCE_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RESOURCE_DESC), Is.EqualTo(56)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_TRANSITION_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_TRANSITION_BARRIERTests.gen.cs deleted file mode 100644 index f8a655b18a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_TRANSITION_BARRIERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_TRANSITION_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_TRANSITION_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_TRANSITION_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RESOURCE_TRANSITION_BARRIER), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_RESOURCE_TRANSITION_BARRIER), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_UAV_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_UAV_BARRIERTests.gen.cs deleted file mode 100644 index 12e846e35f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RESOURCE_UAV_BARRIERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RESOURCE_UAV_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_UAV_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_UAV_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RESOURCE_UAV_BARRIER), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_RESOURCE_UAV_BARRIER), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_CONSTANTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_CONSTANTSTests.gen.cs deleted file mode 100644 index f393d8289f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_CONSTANTSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_CONSTANTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_CONSTANTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_CONSTANTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_ROOT_CONSTANTS), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR1Tests.gen.cs deleted file mode 100644 index 79f6f77211..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR1Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_DESCRIPTOR1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_DESCRIPTOR1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_DESCRIPTOR1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_ROOT_DESCRIPTOR1), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTORTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTORTests.gen.cs deleted file mode 100644 index 3c9deec4b6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTORTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_DESCRIPTORTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_DESCRIPTOR)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_DESCRIPTOR).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_ROOT_DESCRIPTOR), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE1Tests.gen.cs deleted file mode 100644 index f062a2cecf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLE1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_DESCRIPTOR_TABLE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_DESCRIPTOR_TABLE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_DESCRIPTOR_TABLE1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_ROOT_DESCRIPTOR_TABLE1), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_ROOT_DESCRIPTOR_TABLE1), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLETests.gen.cs deleted file mode 100644 index e84ec25b34..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_DESCRIPTOR_TABLETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_DESCRIPTOR_TABLETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_DESCRIPTOR_TABLE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_DESCRIPTOR_TABLE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_ROOT_DESCRIPTOR_TABLE), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_ROOT_DESCRIPTOR_TABLE), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER1Tests.gen.cs deleted file mode 100644 index e440917896..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETER1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_PARAMETER1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_PARAMETER1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_PARAMETER1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_ROOT_PARAMETER1), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_ROOT_PARAMETER1), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETERTests.gen.cs deleted file mode 100644 index 51f5845abe..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_PARAMETERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_PARAMETERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_PARAMETER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_PARAMETER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_ROOT_PARAMETER), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_ROOT_PARAMETER), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC1Tests.gen.cs deleted file mode 100644 index 6dd5baf20c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESC1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_SIGNATURE_DESC1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_SIGNATURE_DESC1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_SIGNATURE_DESC1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_ROOT_SIGNATURE_DESC1), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_ROOT_SIGNATURE_DESC1), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESCTests.gen.cs deleted file mode 100644 index 3d8249d0ff..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_ROOT_SIGNATURE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_ROOT_SIGNATURE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_ROOT_SIGNATURE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_ROOT_SIGNATURE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_ROOT_SIGNATURE_DESC), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_ROOT_SIGNATURE_DESC), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RT_FORMAT_ARRAYTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RT_FORMAT_ARRAYTests.gen.cs deleted file mode 100644 index b2fd691267..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_RT_FORMAT_ARRAYTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_RT_FORMAT_ARRAYTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RT_FORMAT_ARRAY)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RT_FORMAT_ARRAY).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RT_FORMAT_ARRAY), Is.EqualTo(36)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC2Tests.gen.cs deleted file mode 100644 index aac2ab2829..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESC2Tests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SAMPLER_DESC2Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_SAMPLER_DESC2))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SAMPLER_DESC2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SAMPLER_DESC2), Is.EqualTo(56)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESCTests.gen.cs deleted file mode 100644 index 62e3d598e3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLER_DESCTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SAMPLER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_SAMPLER_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SAMPLER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SAMPLER_DESC), Is.EqualTo(52)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLE_POSITIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLE_POSITIONTests.gen.cs deleted file mode 100644 index a562571a5d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SAMPLE_POSITIONTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SAMPLE_POSITIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SAMPLE_POSITION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SAMPLE_POSITION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SAMPLE_POSITION), Is.EqualTo(2)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIERTests.gen.cs deleted file mode 100644 index d2dde558b1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIERTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADERTests.gen.cs deleted file mode 100644 index ad492b42c5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADERTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER), - Is.EqualTo(56) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_BYTECODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_BYTECODETests.gen.cs deleted file mode 100644 index 6799861e02..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_BYTECODETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_BYTECODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_BYTECODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_BYTECODE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SHADER_BYTECODE), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_SHADER_BYTECODE), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SESSION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SESSION_DESCTests.gen.cs deleted file mode 100644 index 51ffe2f87d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_CACHE_SESSION_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_CACHE_SESSION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_CACHE_SESSION_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_CACHE_SESSION_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SHADER_CACHE_SESSION_DESC), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESCTests.gen.cs deleted file mode 100644 index cc08faf1dd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_RESOURCE_VIEW_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_RESOURCE_VIEW_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_RESOURCE_VIEW_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SHADER_RESOURCE_VIEW_DESC), Is.EqualTo(40)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SO_DECLARATION_ENTRYTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SO_DECLARATION_ENTRYTests.gen.cs deleted file mode 100644 index f0cc22fdc0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SO_DECLARATION_ENTRYTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SO_DECLARATION_ENTRYTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SO_DECLARATION_ENTRY)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SO_DECLARATION_ENTRY).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SO_DECLARATION_ENTRY), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_SO_DECLARATION_ENTRY), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_CONFIGTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_CONFIGTests.gen.cs deleted file mode 100644 index b3a17ef0f5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_CONFIGTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_STATE_OBJECT_CONFIGTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_STATE_OBJECT_CONFIG)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_STATE_OBJECT_CONFIG).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_STATE_OBJECT_CONFIG), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_DESCTests.gen.cs deleted file mode 100644 index 89d79f7f2c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_OBJECT_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_STATE_OBJECT_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_STATE_OBJECT_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_STATE_OBJECT_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_STATE_OBJECT_DESC), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_STATE_OBJECT_DESC), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECTTests.gen.cs deleted file mode 100644 index d7f2ea1ae1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATE_SUBOBJECTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_STATE_SUBOBJECTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_STATE_SUBOBJECT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_STATE_SUBOBJECT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_STATE_SUBOBJECT), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_STATE_SUBOBJECT), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_SAMPLER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_SAMPLER_DESCTests.gen.cs deleted file mode 100644 index e419ab468d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STATIC_SAMPLER_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_STATIC_SAMPLER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_STATIC_SAMPLER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_STATIC_SAMPLER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_STATIC_SAMPLER_DESC), Is.EqualTo(52)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_BUFFER_VIEWTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_BUFFER_VIEWTests.gen.cs deleted file mode 100644 index aac29015d9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_BUFFER_VIEWTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_STREAM_OUTPUT_BUFFER_VIEWTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_STREAM_OUTPUT_BUFFER_VIEW)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_STREAM_OUTPUT_BUFFER_VIEW).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_STREAM_OUTPUT_BUFFER_VIEW), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_DESCTests.gen.cs deleted file mode 100644 index 2098a7ccaf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_STREAM_OUTPUT_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_STREAM_OUTPUT_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_STREAM_OUTPUT_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_STREAM_OUTPUT_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_STREAM_OUTPUT_DESC), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_STREAM_OUTPUT_DESC), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests.gen.cs deleted file mode 100644 index 33c92ad85c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_DATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_DATATests.gen.cs deleted file mode 100644 index 39323db47a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_DATATests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SUBRESOURCE_DATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SUBRESOURCE_DATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SUBRESOURCE_DATA).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SUBRESOURCE_DATA), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_SUBRESOURCE_DATA), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_FOOTPRINTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_FOOTPRINTTests.gen.cs deleted file mode 100644 index ad8ca192d6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_FOOTPRINTTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SUBRESOURCE_FOOTPRINTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SUBRESOURCE_FOOTPRINT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SUBRESOURCE_FOOTPRINT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SUBRESOURCE_FOOTPRINT), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_INFOTests.gen.cs deleted file mode 100644 index 76cd4c5ef0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_INFOTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SUBRESOURCE_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SUBRESOURCE_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SUBRESOURCE_INFO).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SUBRESOURCE_INFO), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_RANGE_UINT64Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_RANGE_UINT64Tests.gen.cs deleted file mode 100644 index 1d99fe1f9a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_RANGE_UINT64Tests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SUBRESOURCE_RANGE_UINT64Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SUBRESOURCE_RANGE_UINT64)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SUBRESOURCE_RANGE_UINT64).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SUBRESOURCE_RANGE_UINT64), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_TILINGTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_TILINGTests.gen.cs deleted file mode 100644 index 88db308176..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_SUBRESOURCE_TILINGTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SUBRESOURCE_TILINGTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SUBRESOURCE_TILING)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SUBRESOURCE_TILING).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_SUBRESOURCE_TILING), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_DSVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_DSVTests.gen.cs deleted file mode 100644 index 8b6c87664e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_DSVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_ARRAY_DSVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX1D_ARRAY_DSV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_ARRAY_DSV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_ARRAY_DSV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_RTVTests.gen.cs deleted file mode 100644 index a1032ff60c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_RTVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_ARRAY_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX1D_ARRAY_RTV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_ARRAY_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_ARRAY_RTV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_SRVTests.gen.cs deleted file mode 100644 index a09434b5b6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_SRVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_ARRAY_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX1D_ARRAY_SRV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_ARRAY_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_ARRAY_SRV), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_UAVTests.gen.cs deleted file mode 100644 index 5798ab67b1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_ARRAY_UAVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_ARRAY_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX1D_ARRAY_UAV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_ARRAY_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_ARRAY_UAV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_DSVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_DSVTests.gen.cs deleted file mode 100644 index ff514355a6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_DSVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_DSVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX1D_DSV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_DSV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_DSV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_RTVTests.gen.cs deleted file mode 100644 index 80721323bd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_RTVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX1D_RTV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_RTV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_SRVTests.gen.cs deleted file mode 100644 index b735cf13f6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_SRVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX1D_SRV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_SRV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_UAVTests.gen.cs deleted file mode 100644 index 6ad264b2a6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX1D_UAVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX1D_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX1D_UAV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX1D_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX1D_UAV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_DSVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_DSVTests.gen.cs deleted file mode 100644 index 980b0e4a98..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_DSVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_ARRAY_DSVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2DMS_ARRAY_DSV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_ARRAY_DSV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_ARRAY_DSV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_RTVTests.gen.cs deleted file mode 100644 index d2cf781f24..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_RTVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_ARRAY_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2DMS_ARRAY_RTV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_ARRAY_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_ARRAY_RTV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_SRVTests.gen.cs deleted file mode 100644 index 1bec306204..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_SRVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_ARRAY_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2DMS_ARRAY_SRV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_ARRAY_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_ARRAY_SRV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_UAVTests.gen.cs deleted file mode 100644 index 80cbb1914b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_ARRAY_UAVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_ARRAY_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2DMS_ARRAY_UAV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_ARRAY_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_ARRAY_UAV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_DSVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_DSVTests.gen.cs deleted file mode 100644 index 98f215211a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_DSVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_DSVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2DMS_DSV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_DSV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_DSV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_RTVTests.gen.cs deleted file mode 100644 index a3b8c3cd9d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_RTVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2DMS_RTV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_RTV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_SRVTests.gen.cs deleted file mode 100644 index 2b973aec21..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_SRVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2DMS_SRV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_SRV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_UAVTests.gen.cs deleted file mode 100644 index 9dbe81bf96..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2DMS_UAVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2DMS_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2DMS_UAV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2DMS_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2DMS_UAV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_DSVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_DSVTests.gen.cs deleted file mode 100644 index 677f95bcc5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_DSVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_ARRAY_DSVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2D_ARRAY_DSV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_ARRAY_DSV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_ARRAY_DSV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_RTVTests.gen.cs deleted file mode 100644 index 25d1087afe..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_RTVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_ARRAY_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2D_ARRAY_RTV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_ARRAY_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_ARRAY_RTV), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_SRVTests.gen.cs deleted file mode 100644 index f87bf71de2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_SRVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_ARRAY_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2D_ARRAY_SRV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_ARRAY_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_ARRAY_SRV), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_UAVTests.gen.cs deleted file mode 100644 index a966cc493e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_ARRAY_UAVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_ARRAY_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEX2D_ARRAY_UAV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_ARRAY_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_ARRAY_UAV), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_DSVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_DSVTests.gen.cs deleted file mode 100644 index 92ec0df8df..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_DSVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_DSVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2D_DSV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_DSV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_DSV), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_RTVTests.gen.cs deleted file mode 100644 index e45abefea6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_RTVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2D_RTV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_RTV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_SRVTests.gen.cs deleted file mode 100644 index e28cda000a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_SRVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2D_SRV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_SRV), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_UAVTests.gen.cs deleted file mode 100644 index 77f4ef689b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX2D_UAVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX2D_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX2D_UAV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX2D_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX2D_UAV), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_RTVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_RTVTests.gen.cs deleted file mode 100644 index 699b05bdf3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_RTVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX3D_RTVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX3D_RTV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX3D_RTV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX3D_RTV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_SRVTests.gen.cs deleted file mode 100644 index fbb6f6da3b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_SRVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX3D_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX3D_SRV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX3D_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX3D_SRV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_UAVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_UAVTests.gen.cs deleted file mode 100644 index f3f80e99b6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEX3D_UAVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEX3D_UAVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEX3D_UAV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEX3D_UAV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEX3D_UAV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_ARRAY_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_ARRAY_SRVTests.gen.cs deleted file mode 100644 index 5bacc74308..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_ARRAY_SRVTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEXCUBE_ARRAY_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEXCUBE_ARRAY_SRV)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEXCUBE_ARRAY_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEXCUBE_ARRAY_SRV), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_SRVTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_SRVTests.gen.cs deleted file mode 100644 index 399a78a976..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXCUBE_SRVTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEXCUBE_SRVTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TEXCUBE_SRV))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEXCUBE_SRV).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TEXCUBE_SRV), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIERTests.gen.cs deleted file mode 100644 index 989c76ce91..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_BARRIERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEXTURE_BARRIERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEXTURE_BARRIER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEXTURE_BARRIER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_TEXTURE_BARRIER), Is.EqualTo(64)); - } - else - { - Assert.That(sizeof(D3D12_TEXTURE_BARRIER), Is.EqualTo(56)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_LOCATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_LOCATIONTests.gen.cs deleted file mode 100644 index 8000f7a7bc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TEXTURE_COPY_LOCATIONTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TEXTURE_COPY_LOCATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TEXTURE_COPY_LOCATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TEXTURE_COPY_LOCATION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_TEXTURE_COPY_LOCATION), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_TEXTURE_COPY_LOCATION), Is.EqualTo(40)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCE_COORDINATETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCE_COORDINATETests.gen.cs deleted file mode 100644 index 2510c116f5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILED_RESOURCE_COORDINATETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TILED_RESOURCE_COORDINATETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TILED_RESOURCE_COORDINATE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TILED_RESOURCE_COORDINATE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TILED_RESOURCE_COORDINATE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_REGION_SIZETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_REGION_SIZETests.gen.cs deleted file mode 100644 index ae4a9161f1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_REGION_SIZETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TILE_REGION_SIZETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_TILE_REGION_SIZE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TILE_REGION_SIZE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TILE_REGION_SIZE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_SHAPETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_SHAPETests.gen.cs deleted file mode 100644 index 6e7e7aeb0d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_TILE_SHAPETests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_TILE_SHAPETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_TILE_SHAPE))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_TILE_SHAPE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_TILE_SHAPE), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESCTests.gen.cs deleted file mode 100644 index 50fc2d9e06..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_UNORDERED_ACCESS_VIEW_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_UNORDERED_ACCESS_VIEW_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_UNORDERED_ACCESS_VIEW_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_UNORDERED_ACCESS_VIEW_DESC), Is.EqualTo(40)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATATests.gen.cs deleted file mode 100644 index 8b8f4cb68e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATATests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA), Is.EqualTo(64)); - } - else - { - Assert.That(sizeof(D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA), Is.EqualTo(48)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESCTests.gen.cs deleted file mode 100644 index e5a79cca04..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VERSIONED_ROOT_SIGNATURE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VERSIONED_ROOT_SIGNATURE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VERSIONED_ROOT_SIGNATURE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VERSIONED_ROOT_SIGNATURE_DESC), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_VERSIONED_ROOT_SIGNATURE_DESC), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERTEX_BUFFER_VIEWTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERTEX_BUFFER_VIEWTests.gen.cs deleted file mode 100644 index 45401ccfe3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VERTEX_BUFFER_VIEWTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VERTEX_BUFFER_VIEWTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VERTEX_BUFFER_VIEW)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VERTEX_BUFFER_VIEW).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VERTEX_BUFFER_VIEW), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEWPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEWPORTTests.gen.cs deleted file mode 100644 index 40768da6b6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEWPORTTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIEWPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_VIEWPORT))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIEWPORT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIEWPORT), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCE_LOCATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCE_LOCATIONTests.gen.cs deleted file mode 100644 index d7ef11137b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCE_LOCATIONTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIEW_INSTANCE_LOCATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIEW_INSTANCE_LOCATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIEW_INSTANCE_LOCATION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIEW_INSTANCE_LOCATION), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_DESCTests.gen.cs deleted file mode 100644 index cee76648e9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_VIEW_INSTANCING_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIEW_INSTANCING_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIEW_INSTANCING_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIEW_INSTANCING_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIEW_INSTANCING_DESC), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_VIEW_INSTANCING_DESC), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_PARAMETERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_PARAMETERTests.gen.cs deleted file mode 100644 index f419d23972..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/D3D12_WRITEBUFFERIMMEDIATE_PARAMETERTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_WRITEBUFFERIMMEDIATE_PARAMETERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_WRITEBUFFERIMMEDIATE_PARAMETER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_WRITEBUFFERIMMEDIATE_PARAMETER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_WRITEBUFFERIMMEDIATE_PARAMETER), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/DirectXTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/DirectXTests.gen.cs deleted file mode 100644 index 0bd70a4dcb..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/DirectXTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.DirectX; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static unsafe partial class DirectXTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12ExperimentalShaderModelsTest() - { - Assert.That( - D3D12ExperimentalShaderModels, - Is.EqualTo( - new Guid(0x76f5573e, 0xf13a, 0x40f5, 0xb2, 0x97, 0x81, 0xce, 0x9e, 0x18, 0x93, 0x3f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12TiledResourceTier4Test() - { - Assert.That( - D3D12TiledResourceTier4, - Is.EqualTo( - new Guid(0xc9c4725f, 0xa81a, 0x4f56, 0x8c, 0x5b, 0xc5, 0x10, 0x39, 0xd6, 0x94, 0xfb) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandAllocatorTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandAllocatorTests.gen.cs deleted file mode 100644 index 4ba9a41444..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandAllocatorTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12CommandAllocatorTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12CommandAllocator).GUID, Is.EqualTo(IID_ID3D12CommandAllocator)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12CommandAllocator)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12CommandAllocator).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12CommandAllocator), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12CommandAllocator), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandListTests.gen.cs deleted file mode 100644 index 48482c3287..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandListTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12CommandListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12CommandList).GUID, Is.EqualTo(IID_ID3D12CommandList)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12CommandList))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12CommandList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12CommandList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12CommandList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandQueueTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandQueueTests.gen.cs deleted file mode 100644 index f35d2bf861..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandQueueTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12CommandQueueTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12CommandQueue).GUID, Is.EqualTo(IID_ID3D12CommandQueue)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12CommandQueue))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12CommandQueue).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12CommandQueue), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12CommandQueue), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandSignatureTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandSignatureTests.gen.cs deleted file mode 100644 index 45930a1e3d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12CommandSignatureTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12CommandSignatureTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12CommandSignature).GUID, Is.EqualTo(IID_ID3D12CommandSignature)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12CommandSignature)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12CommandSignature).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12CommandSignature), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12CommandSignature), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DescriptorHeapTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DescriptorHeapTests.gen.cs deleted file mode 100644 index 8dbbdc6f53..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DescriptorHeapTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DescriptorHeapTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DescriptorHeap).GUID, Is.EqualTo(IID_ID3D12DescriptorHeap)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DescriptorHeap)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DescriptorHeap).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DescriptorHeap), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DescriptorHeap), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device10Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device10Tests.gen.cs deleted file mode 100644 index e19779fa7c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device10Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device10Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device10).GUID, Is.EqualTo(IID_ID3D12Device10)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device10))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device10).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device10), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device10), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device11Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device11Tests.gen.cs deleted file mode 100644 index 6010b336fc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device11Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device11Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device11).GUID, Is.EqualTo(IID_ID3D12Device11)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device11))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device11).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device11), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device11), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device1Tests.gen.cs deleted file mode 100644 index 6441866f1f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device1).GUID, Is.EqualTo(IID_ID3D12Device1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device2Tests.gen.cs deleted file mode 100644 index 2d24e54e5e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device2Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device2).GUID, Is.EqualTo(IID_ID3D12Device2)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device2))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device3Tests.gen.cs deleted file mode 100644 index 46b424e63e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device3Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device3).GUID, Is.EqualTo(IID_ID3D12Device3)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device3))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device4Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device4Tests.gen.cs deleted file mode 100644 index e4c7f66a3a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device4Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device4Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device4).GUID, Is.EqualTo(IID_ID3D12Device4)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device4))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device4).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device4), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device4), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device5Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device5Tests.gen.cs deleted file mode 100644 index 1fd95f3d36..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device5Tests.gen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.17763.0")] -public static unsafe partial class ID3D12Device5Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device5).GUID, Is.EqualTo(IID_ID3D12Device5)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device5))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device5).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device5), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device5), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device6Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device6Tests.gen.cs deleted file mode 100644 index ad2868d72e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device6Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device6Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device6).GUID, Is.EqualTo(IID_ID3D12Device6)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device6))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device6).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device6), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device6), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device7Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device7Tests.gen.cs deleted file mode 100644 index 212d5eebd1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device7Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device7Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device7).GUID, Is.EqualTo(IID_ID3D12Device7)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device7))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device7).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device7), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device7), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device8Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device8Tests.gen.cs deleted file mode 100644 index 6ca7350c20..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device8Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device8Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device8).GUID, Is.EqualTo(IID_ID3D12Device8)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device8))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device8).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device8), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device8), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device9Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device9Tests.gen.cs deleted file mode 100644 index a7ffc8c75d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Device9Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Device9Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device9).GUID, Is.EqualTo(IID_ID3D12Device9)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device9))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device9).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device9), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device9), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceChildTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceChildTests.gen.cs deleted file mode 100644 index 43a4d285a2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceChildTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceChildTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DeviceChild).GUID, Is.EqualTo(IID_ID3D12DeviceChild)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12DeviceChild))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceChild).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceChild), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceChild), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceConfigurationTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceConfigurationTests.gen.cs deleted file mode 100644 index 5deab91a60..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceConfigurationTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceConfigurationTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceConfiguration).GUID, - Is.EqualTo(IID_ID3D12DeviceConfiguration) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceConfiguration)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceConfiguration).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceConfiguration), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceConfiguration), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceFactoryTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceFactoryTests.gen.cs deleted file mode 100644 index 43bc2aca17..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceFactoryTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceFactoryTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DeviceFactory).GUID, Is.EqualTo(IID_ID3D12DeviceFactory)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12DeviceFactory))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceFactory).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceFactory), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceFactory), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData1Tests.gen.cs deleted file mode 100644 index fabf88d381..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceRemovedExtendedData1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceRemovedExtendedData1).GUID, - Is.EqualTo(IID_ID3D12DeviceRemovedExtendedData1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceRemovedExtendedData1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceRemovedExtendedData1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedData1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedData1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData2Tests.gen.cs deleted file mode 100644 index 914ab59bf8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedData2Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceRemovedExtendedData2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceRemovedExtendedData2).GUID, - Is.EqualTo(IID_ID3D12DeviceRemovedExtendedData2) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceRemovedExtendedData2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceRemovedExtendedData2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedData2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedData2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings1Tests.gen.cs deleted file mode 100644 index 64b14b6b07..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceRemovedExtendedDataSettings1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceRemovedExtendedDataSettings1).GUID, - Is.EqualTo(IID_ID3D12DeviceRemovedExtendedDataSettings1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceRemovedExtendedDataSettings1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceRemovedExtendedDataSettings1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedDataSettings1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedDataSettings1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings2Tests.gen.cs deleted file mode 100644 index 509016ae24..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettings2Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceRemovedExtendedDataSettings2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceRemovedExtendedDataSettings2).GUID, - Is.EqualTo(IID_ID3D12DeviceRemovedExtendedDataSettings2) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceRemovedExtendedDataSettings2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceRemovedExtendedDataSettings2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedDataSettings2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedDataSettings2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettingsTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettingsTests.gen.cs deleted file mode 100644 index 98c9612798..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataSettingsTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.18362.0")] -public static unsafe partial class ID3D12DeviceRemovedExtendedDataSettingsTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceRemovedExtendedDataSettings).GUID, - Is.EqualTo(IID_ID3D12DeviceRemovedExtendedDataSettings) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceRemovedExtendedDataSettings)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceRemovedExtendedDataSettings).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedDataSettings), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedDataSettings), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataTests.gen.cs deleted file mode 100644 index 1f79399e7a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceRemovedExtendedDataTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.18362.0")] -public static unsafe partial class ID3D12DeviceRemovedExtendedDataTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DeviceRemovedExtendedData).GUID, - Is.EqualTo(IID_ID3D12DeviceRemovedExtendedData) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceRemovedExtendedData)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceRemovedExtendedData).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedData), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceRemovedExtendedData), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceTests.gen.cs deleted file mode 100644 index 714efa3d23..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12DeviceTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Device).GUID, Is.EqualTo(IID_ID3D12Device)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Device))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Device).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Device), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Device), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence1Tests.gen.cs deleted file mode 100644 index 4363b1765e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Fence1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Fence1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Fence1).GUID, Is.EqualTo(IID_ID3D12Fence1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Fence1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Fence1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Fence1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Fence1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12FenceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12FenceTests.gen.cs deleted file mode 100644 index f83e5f6417..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12FenceTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12FenceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Fence).GUID, Is.EqualTo(IID_ID3D12Fence)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Fence))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Fence).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Fence), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Fence), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList1Tests.gen.cs deleted file mode 100644 index 3d3898343c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12GraphicsCommandList1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList1).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList2Tests.gen.cs deleted file mode 100644 index 9aa4a0ba2a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList2Tests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0")] -public static unsafe partial class ID3D12GraphicsCommandList2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList2).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList2) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList3Tests.gen.cs deleted file mode 100644 index 93a3dfbe85..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList3Tests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0")] -public static unsafe partial class ID3D12GraphicsCommandList3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList3).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList3) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList4Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList4Tests.gen.cs deleted file mode 100644 index 8cc159c311..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList4Tests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.17763.0")] -public static unsafe partial class ID3D12GraphicsCommandList4Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList4).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList4) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList4)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList4).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList4), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList4), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList5Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList5Tests.gen.cs deleted file mode 100644 index d28fcde11b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList5Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12GraphicsCommandList5Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList5).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList5) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList5)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList5).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList5), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList5), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList6Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList6Tests.gen.cs deleted file mode 100644 index 1896e52c5a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList6Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12GraphicsCommandList6Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList6).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList6) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList6)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList6).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList6), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList6), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList7Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList7Tests.gen.cs deleted file mode 100644 index 1c6880a580..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList7Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12GraphicsCommandList7Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList7).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList7) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList7)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList7).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList7), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList7), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList8Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList8Tests.gen.cs deleted file mode 100644 index 6c1319a1c2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandList8Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12GraphicsCommandList8Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList8).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList8) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList8)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList8).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList8), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList8), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandListTests.gen.cs deleted file mode 100644 index 2ebc768127..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12GraphicsCommandListTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12GraphicsCommandListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12GraphicsCommandList).GUID, - Is.EqualTo(IID_ID3D12GraphicsCommandList) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12GraphicsCommandList)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12GraphicsCommandList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12GraphicsCommandList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12GraphicsCommandList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap1Tests.gen.cs deleted file mode 100644 index a57f798a3a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Heap1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Heap1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Heap1).GUID, Is.EqualTo(IID_ID3D12Heap1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Heap1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Heap1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Heap1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Heap1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12HeapTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12HeapTests.gen.cs deleted file mode 100644 index b8aec6548d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12HeapTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12HeapTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Heap).GUID, Is.EqualTo(IID_ID3D12Heap)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Heap))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Heap).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Heap), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Heap), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeOwnerTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeOwnerTests.gen.cs deleted file mode 100644 index 1c7b6e4351..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeOwnerTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12LifetimeOwnerTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12LifetimeOwner).GUID, Is.EqualTo(IID_ID3D12LifetimeOwner)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12LifetimeOwner))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12LifetimeOwner).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12LifetimeOwner), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12LifetimeOwner), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeTrackerTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeTrackerTests.gen.cs deleted file mode 100644 index 3e0d1b3019..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12LifetimeTrackerTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12LifetimeTrackerTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12LifetimeTracker).GUID, Is.EqualTo(IID_ID3D12LifetimeTracker)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12LifetimeTracker)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12LifetimeTracker).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12LifetimeTracker), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12LifetimeTracker), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12MetaCommandTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12MetaCommandTests.gen.cs deleted file mode 100644 index 2dd0b0239d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12MetaCommandTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12MetaCommandTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12MetaCommand).GUID, Is.EqualTo(IID_ID3D12MetaCommand)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12MetaCommand))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12MetaCommand).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12MetaCommand), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12MetaCommand), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ObjectTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ObjectTests.gen.cs deleted file mode 100644 index 96df8739c9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ObjectTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ObjectTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Object).GUID, Is.EqualTo(IID_ID3D12Object)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Object))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Object).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Object), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Object), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PageableTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PageableTests.gen.cs deleted file mode 100644 index 1bcfc4b5df..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PageableTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12PageableTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Pageable).GUID, Is.EqualTo(IID_ID3D12Pageable)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Pageable))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Pageable).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Pageable), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Pageable), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary1Tests.gen.cs deleted file mode 100644 index 6ceced0576..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibrary1Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12PipelineLibrary1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12PipelineLibrary1).GUID, Is.EqualTo(IID_ID3D12PipelineLibrary1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12PipelineLibrary1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12PipelineLibrary1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12PipelineLibrary1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12PipelineLibrary1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibraryTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibraryTests.gen.cs deleted file mode 100644 index df225f5037..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineLibraryTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12PipelineLibraryTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12PipelineLibrary).GUID, Is.EqualTo(IID_ID3D12PipelineLibrary)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12PipelineLibrary)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12PipelineLibrary).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12PipelineLibrary), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12PipelineLibrary), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineStateTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineStateTests.gen.cs deleted file mode 100644 index ba406b7cea..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12PipelineStateTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12PipelineStateTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12PipelineState).GUID, Is.EqualTo(IID_ID3D12PipelineState)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12PipelineState))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12PipelineState).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12PipelineState), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12PipelineState), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession1Tests.gen.cs deleted file mode 100644 index 4a560c556d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSession1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ProtectedResourceSession1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12ProtectedResourceSession1).GUID, - Is.EqualTo(IID_ID3D12ProtectedResourceSession1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ProtectedResourceSession1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ProtectedResourceSession1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ProtectedResourceSession1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ProtectedResourceSession1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSessionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSessionTests.gen.cs deleted file mode 100644 index 67222c276e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedResourceSessionTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0")] -public static unsafe partial class ID3D12ProtectedResourceSessionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12ProtectedResourceSession).GUID, - Is.EqualTo(IID_ID3D12ProtectedResourceSession) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ProtectedResourceSession)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ProtectedResourceSession).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ProtectedResourceSession), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ProtectedResourceSession), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedSessionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedSessionTests.gen.cs deleted file mode 100644 index c0c9f2ace3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ProtectedSessionTests.gen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0")] -public static unsafe partial class ID3D12ProtectedSessionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12ProtectedSession).GUID, Is.EqualTo(IID_ID3D12ProtectedSession)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ProtectedSession)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ProtectedSession).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ProtectedSession), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ProtectedSession), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12QueryHeapTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12QueryHeapTests.gen.cs deleted file mode 100644 index 20357139be..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12QueryHeapTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12QueryHeapTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12QueryHeap).GUID, Is.EqualTo(IID_ID3D12QueryHeap)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12QueryHeap))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12QueryHeap).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12QueryHeap), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12QueryHeap), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource1Tests.gen.cs deleted file mode 100644 index 392262c1f0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Resource1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Resource1).GUID, Is.EqualTo(IID_ID3D12Resource1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Resource1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Resource1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Resource1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Resource1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource2Tests.gen.cs deleted file mode 100644 index d2abf23065..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12Resource2Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Resource2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Resource2).GUID, Is.EqualTo(IID_ID3D12Resource2)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Resource2))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Resource2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Resource2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Resource2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ResourceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ResourceTests.gen.cs deleted file mode 100644 index 4d2301d28d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ResourceTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ResourceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Resource).GUID, Is.EqualTo(IID_ID3D12Resource)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Resource))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Resource).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Resource), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Resource), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureDeserializerTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureDeserializerTests.gen.cs deleted file mode 100644 index d2d9fe6433..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureDeserializerTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12RootSignatureDeserializerTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12RootSignatureDeserializer).GUID, - Is.EqualTo(IID_ID3D12RootSignatureDeserializer) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12RootSignatureDeserializer)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12RootSignatureDeserializer).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12RootSignatureDeserializer), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12RootSignatureDeserializer), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureTests.gen.cs deleted file mode 100644 index e118932428..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12RootSignatureTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12RootSignatureTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12RootSignature).GUID, Is.EqualTo(IID_ID3D12RootSignature)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12RootSignature))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12RootSignature).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12RootSignature), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12RootSignature), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration1Tests.gen.cs deleted file mode 100644 index 3d58bae8ff..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfiguration1Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12SDKConfiguration1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12SDKConfiguration1).GUID, Is.EqualTo(IID_ID3D12SDKConfiguration1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12SDKConfiguration1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12SDKConfiguration1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12SDKConfiguration1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12SDKConfiguration1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfigurationTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfigurationTests.gen.cs deleted file mode 100644 index 87881f033a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SDKConfigurationTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12SDKConfigurationTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12SDKConfiguration).GUID, Is.EqualTo(IID_ID3D12SDKConfiguration)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12SDKConfiguration)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12SDKConfiguration).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12SDKConfiguration), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12SDKConfiguration), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ShaderCacheSessionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ShaderCacheSessionTests.gen.cs deleted file mode 100644 index bbc079f7a1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ShaderCacheSessionTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ShaderCacheSessionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12ShaderCacheSession).GUID, - Is.EqualTo(IID_ID3D12ShaderCacheSession) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ShaderCacheSession)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ShaderCacheSession).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ShaderCacheSession), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ShaderCacheSession), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectPropertiesTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectPropertiesTests.gen.cs deleted file mode 100644 index 90ffffefd1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectPropertiesTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12StateObjectPropertiesTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12StateObjectProperties).GUID, - Is.EqualTo(IID_ID3D12StateObjectProperties) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12StateObjectProperties)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12StateObjectProperties).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12StateObjectProperties), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12StateObjectProperties), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectTests.gen.cs deleted file mode 100644 index bef4a17541..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12StateObjectTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12StateObjectTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12StateObject).GUID, Is.EqualTo(IID_ID3D12StateObject)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12StateObject))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12StateObject).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12StateObject), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12StateObject), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SwapChainAssistantTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SwapChainAssistantTests.gen.cs deleted file mode 100644 index 5e32407feb..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12SwapChainAssistantTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12SwapChainAssistantTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12SwapChainAssistant).GUID, - Is.EqualTo(IID_ID3D12SwapChainAssistant) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12SwapChainAssistant)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12SwapChainAssistant).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12SwapChainAssistant), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12SwapChainAssistant), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ToolsTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ToolsTests.gen.cs deleted file mode 100644 index 8adbaef62b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12ToolsTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ToolsTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Tools).GUID, Is.EqualTo(IID_ID3D12Tools)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Tools))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Tools).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Tools), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Tools), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12VersionedRootSignatureDeserializerTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12VersionedRootSignatureDeserializerTests.gen.cs deleted file mode 100644 index e9099425ff..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12VersionedRootSignatureDeserializerTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VersionedRootSignatureDeserializerTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VersionedRootSignatureDeserializer).GUID, - Is.EqualTo(IID_ID3D12VersionedRootSignatureDeserializer) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VersionedRootSignatureDeserializer)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VersionedRootSignatureDeserializer).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VersionedRootSignatureDeserializer), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VersionedRootSignatureDeserializer), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12VirtualizationGuestDeviceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12VirtualizationGuestDeviceTests.gen.cs deleted file mode 100644 index fc55e5867c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/ID3D12VirtualizationGuestDeviceTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VirtualizationGuestDeviceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VirtualizationGuestDevice).GUID, - Is.EqualTo(IID_ID3D12VirtualizationGuestDevice) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VirtualizationGuestDevice)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VirtualizationGuestDevice).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VirtualizationGuestDevice), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VirtualizationGuestDevice), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12/IIDTests.gen.cs deleted file mode 100644 index 77c5106190..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12/IIDTests.gen.cs +++ /dev/null @@ -1,857 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ObjectTest() - { - Assert.That( - IID_ID3D12Object, - Is.EqualTo( - new Guid(0xc4fec28f, 0x7966, 0x4e95, 0x9f, 0x94, 0xf4, 0x31, 0xcb, 0x56, 0xc3, 0xb8) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceChildTest() - { - Assert.That( - IID_ID3D12DeviceChild, - Is.EqualTo( - new Guid(0x905db94b, 0xa00c, 0x4140, 0x9d, 0xf5, 0x2b, 0x64, 0xca, 0x9e, 0xa3, 0x57) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12RootSignatureTest() - { - Assert.That( - IID_ID3D12RootSignature, - Is.EqualTo( - new Guid(0xc54a6b66, 0x72df, 0x4ee8, 0x8b, 0xe5, 0xa9, 0x46, 0xa1, 0x42, 0x92, 0x14) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12RootSignatureDeserializerTest() - { - Assert.That( - IID_ID3D12RootSignatureDeserializer, - Is.EqualTo( - new Guid(0x34AB647B, 0x3CC8, 0x46AC, 0x84, 0x1B, 0xC0, 0x96, 0x56, 0x45, 0xC0, 0x46) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VersionedRootSignatureDeserializerTest() - { - Assert.That( - IID_ID3D12VersionedRootSignatureDeserializer, - Is.EqualTo( - new Guid(0x7F91CE67, 0x090C, 0x4BB7, 0xB7, 0x8E, 0xED, 0x8F, 0xF2, 0xE3, 0x1D, 0xA0) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12PageableTest() - { - Assert.That( - IID_ID3D12Pageable, - Is.EqualTo( - new Guid(0x63ee58fb, 0x1268, 0x4835, 0x86, 0xda, 0xf0, 0x08, 0xce, 0x62, 0xf0, 0xd6) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12HeapTest() - { - Assert.That( - IID_ID3D12Heap, - Is.EqualTo( - new Guid(0x6b3b2502, 0x6e51, 0x45b3, 0x90, 0xee, 0x98, 0x84, 0x26, 0x5e, 0x8d, 0xf3) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ResourceTest() - { - Assert.That( - IID_ID3D12Resource, - Is.EqualTo( - new Guid(0x696442be, 0xa72e, 0x4059, 0xbc, 0x79, 0x5b, 0x5c, 0x98, 0x04, 0x0f, 0xad) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12CommandAllocatorTest() - { - Assert.That( - IID_ID3D12CommandAllocator, - Is.EqualTo( - new Guid(0x6102dee4, 0xaf59, 0x4b09, 0xb9, 0x99, 0xb4, 0x4d, 0x73, 0xf0, 0x9b, 0x24) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12FenceTest() - { - Assert.That( - IID_ID3D12Fence, - Is.EqualTo( - new Guid(0x0a753dcf, 0xc4d8, 0x4b91, 0xad, 0xf6, 0xbe, 0x5a, 0x60, 0xd9, 0x5a, 0x76) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Fence1Test() - { - Assert.That( - IID_ID3D12Fence1, - Is.EqualTo( - new Guid(0x433685fe, 0xe22b, 0x4ca0, 0xa8, 0xdb, 0xb5, 0xb4, 0xf4, 0xdd, 0x0e, 0x4a) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12PipelineStateTest() - { - Assert.That( - IID_ID3D12PipelineState, - Is.EqualTo( - new Guid(0x765a30f3, 0xf624, 0x4c6f, 0xa8, 0x28, 0xac, 0xe9, 0x48, 0x62, 0x24, 0x45) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DescriptorHeapTest() - { - Assert.That( - IID_ID3D12DescriptorHeap, - Is.EqualTo( - new Guid(0x8efb471d, 0x616c, 0x4f49, 0x90, 0xf7, 0x12, 0x7b, 0xb7, 0x63, 0xfa, 0x51) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12QueryHeapTest() - { - Assert.That( - IID_ID3D12QueryHeap, - Is.EqualTo( - new Guid(0x0d9658ae, 0xed45, 0x469e, 0xa6, 0x1d, 0x97, 0x0e, 0xc5, 0x83, 0xca, 0xb4) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12CommandSignatureTest() - { - Assert.That( - IID_ID3D12CommandSignature, - Is.EqualTo( - new Guid(0xc36a797c, 0xec80, 0x4f0a, 0x89, 0x85, 0xa7, 0xb2, 0x47, 0x50, 0x82, 0xd1) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12CommandListTest() - { - Assert.That( - IID_ID3D12CommandList, - Is.EqualTo( - new Guid(0x7116d91c, 0xe7e4, 0x47ce, 0xb8, 0xc6, 0xec, 0x81, 0x68, 0xf4, 0x37, 0xe5) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandListTest() - { - Assert.That( - IID_ID3D12GraphicsCommandList, - Is.EqualTo( - new Guid(0x5b160d0f, 0xac1b, 0x4185, 0x8b, 0xa8, 0xb3, 0xae, 0x42, 0xa5, 0xa4, 0x55) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList1Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList1, - Is.EqualTo( - new Guid(0x553103fb, 0x1fe7, 0x4557, 0xbb, 0x38, 0x94, 0x6d, 0x7d, 0x0e, 0x7c, 0xa7) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList2Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList2, - Is.EqualTo( - new Guid(0x38C3E585, 0xFF17, 0x412C, 0x91, 0x50, 0x4F, 0xC6, 0xF9, 0xD7, 0x2A, 0x28) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12CommandQueueTest() - { - Assert.That( - IID_ID3D12CommandQueue, - Is.EqualTo( - new Guid(0x0ec870a6, 0x5d7e, 0x4c22, 0x8c, 0xfc, 0x5b, 0xaa, 0xe0, 0x76, 0x16, 0xed) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceTest() - { - Assert.That( - IID_ID3D12Device, - Is.EqualTo( - new Guid(0x189819f1, 0x1db6, 0x4b57, 0xbe, 0x54, 0x18, 0x21, 0x33, 0x9b, 0x85, 0xf7) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12PipelineLibraryTest() - { - Assert.That( - IID_ID3D12PipelineLibrary, - Is.EqualTo( - new Guid(0xc64226a8, 0x9201, 0x46af, 0xb4, 0xcc, 0x53, 0xfb, 0x9f, 0xf7, 0x41, 0x4f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12PipelineLibrary1Test() - { - Assert.That( - IID_ID3D12PipelineLibrary1, - Is.EqualTo( - new Guid(0x80eabf42, 0x2568, 0x4e5e, 0xbd, 0x82, 0xc3, 0x7f, 0x86, 0x96, 0x1d, 0xc3) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device1Test() - { - Assert.That( - IID_ID3D12Device1, - Is.EqualTo( - new Guid(0x77acce80, 0x638e, 0x4e65, 0x88, 0x95, 0xc1, 0xf2, 0x33, 0x86, 0x86, 0x3e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device2Test() - { - Assert.That( - IID_ID3D12Device2, - Is.EqualTo( - new Guid(0x30baa41e, 0xb15b, 0x475c, 0xa0, 0xbb, 0x1a, 0xf5, 0xc5, 0xb6, 0x43, 0x28) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device3Test() - { - Assert.That( - IID_ID3D12Device3, - Is.EqualTo( - new Guid(0x81dadc15, 0x2bad, 0x4392, 0x93, 0xc5, 0x10, 0x13, 0x45, 0xc4, 0xaa, 0x98) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ProtectedSessionTest() - { - Assert.That( - IID_ID3D12ProtectedSession, - Is.EqualTo( - new Guid(0xA1533D18, 0x0AC1, 0x4084, 0x85, 0xB9, 0x89, 0xA9, 0x61, 0x16, 0x80, 0x6B) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ProtectedResourceSessionTest() - { - Assert.That( - IID_ID3D12ProtectedResourceSession, - Is.EqualTo( - new Guid(0x6CD696F4, 0xF289, 0x40CC, 0x80, 0x91, 0x5A, 0x6C, 0x0A, 0x09, 0x9C, 0x3D) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device4Test() - { - Assert.That( - IID_ID3D12Device4, - Is.EqualTo( - new Guid(0xe865df17, 0xa9ee, 0x46f9, 0xa4, 0x63, 0x30, 0x98, 0x31, 0x5a, 0xa2, 0xe5) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12LifetimeOwnerTest() - { - Assert.That( - IID_ID3D12LifetimeOwner, - Is.EqualTo( - new Guid(0xe667af9f, 0xcd56, 0x4f46, 0x83, 0xce, 0x03, 0x2e, 0x59, 0x5d, 0x70, 0xa8) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12SwapChainAssistantTest() - { - Assert.That( - IID_ID3D12SwapChainAssistant, - Is.EqualTo( - new Guid(0xf1df64b6, 0x57fd, 0x49cd, 0x88, 0x07, 0xc0, 0xeb, 0x88, 0xb4, 0x5c, 0x8f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12LifetimeTrackerTest() - { - Assert.That( - IID_ID3D12LifetimeTracker, - Is.EqualTo( - new Guid(0x3fd03d36, 0x4eb1, 0x424a, 0xa5, 0x82, 0x49, 0x4e, 0xcb, 0x8b, 0xa8, 0x13) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12StateObjectTest() - { - Assert.That( - IID_ID3D12StateObject, - Is.EqualTo( - new Guid(0x47016943, 0xfca8, 0x4594, 0x93, 0xea, 0xaf, 0x25, 0x8b, 0x55, 0x34, 0x6d) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12StateObjectPropertiesTest() - { - Assert.That( - IID_ID3D12StateObjectProperties, - Is.EqualTo( - new Guid(0xde5fa827, 0x9bf9, 0x4f26, 0x89, 0xff, 0xd7, 0xf5, 0x6f, 0xde, 0x38, 0x60) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device5Test() - { - Assert.That( - IID_ID3D12Device5, - Is.EqualTo( - new Guid(0x8b4f173b, 0x2fea, 0x4b80, 0x8f, 0x58, 0x43, 0x07, 0x19, 0x1a, 0xb9, 0x5d) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceRemovedExtendedDataSettingsTest() - { - Assert.That( - IID_ID3D12DeviceRemovedExtendedDataSettings, - Is.EqualTo( - new Guid(0x82BC481C, 0x6B9B, 0x4030, 0xAE, 0xDB, 0x7E, 0xE3, 0xD1, 0xDF, 0x1E, 0x63) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceRemovedExtendedDataSettings1Test() - { - Assert.That( - IID_ID3D12DeviceRemovedExtendedDataSettings1, - Is.EqualTo( - new Guid(0xDBD5AE51, 0x3317, 0x4F0A, 0xAD, 0xF9, 0x1D, 0x7C, 0xED, 0xCA, 0xAE, 0x0B) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceRemovedExtendedDataSettings2Test() - { - Assert.That( - IID_ID3D12DeviceRemovedExtendedDataSettings2, - Is.EqualTo( - new Guid(0x61552388, 0x01ab, 0x4008, 0xa4, 0x36, 0x83, 0xdb, 0x18, 0x95, 0x66, 0xea) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceRemovedExtendedDataTest() - { - Assert.That( - IID_ID3D12DeviceRemovedExtendedData, - Is.EqualTo( - new Guid(0x98931D33, 0x5AE8, 0x4791, 0xAA, 0x3C, 0x1A, 0x73, 0xA2, 0x93, 0x4E, 0x71) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceRemovedExtendedData1Test() - { - Assert.That( - IID_ID3D12DeviceRemovedExtendedData1, - Is.EqualTo( - new Guid(0x9727A022, 0xCF1D, 0x4DDA, 0x9E, 0xBA, 0xEF, 0xFA, 0x65, 0x3F, 0xC5, 0x06) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceRemovedExtendedData2Test() - { - Assert.That( - IID_ID3D12DeviceRemovedExtendedData2, - Is.EqualTo( - new Guid(0x67FC5816, 0xE4CA, 0x4915, 0xBF, 0x18, 0x42, 0x54, 0x12, 0x72, 0xDA, 0x54) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device6Test() - { - Assert.That( - IID_ID3D12Device6, - Is.EqualTo( - new Guid(0xc70b221b, 0x40e4, 0x4a17, 0x89, 0xaf, 0x02, 0x5a, 0x07, 0x27, 0xa6, 0xdc) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ProtectedResourceSession1Test() - { - Assert.That( - IID_ID3D12ProtectedResourceSession1, - Is.EqualTo( - new Guid(0xD6F12DD6, 0x76FB, 0x406E, 0x89, 0x61, 0x42, 0x96, 0xEE, 0xFC, 0x04, 0x09) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device7Test() - { - Assert.That( - IID_ID3D12Device7, - Is.EqualTo( - new Guid(0x5c014b53, 0x68a1, 0x4b9b, 0x8b, 0xd1, 0xdd, 0x60, 0x46, 0xb9, 0x35, 0x8b) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device8Test() - { - Assert.That( - IID_ID3D12Device8, - Is.EqualTo( - new Guid(0x9218E6BB, 0xF944, 0x4F7E, 0xA7, 0x5C, 0xB1, 0xB2, 0xC7, 0xB7, 0x01, 0xF3) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Resource1Test() - { - Assert.That( - IID_ID3D12Resource1, - Is.EqualTo( - new Guid(0x9D5E227A, 0x4430, 0x4161, 0x88, 0xB3, 0x3E, 0xCA, 0x6B, 0xB1, 0x6E, 0x19) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Resource2Test() - { - Assert.That( - IID_ID3D12Resource2, - Is.EqualTo( - new Guid(0xBE36EC3B, 0xEA85, 0x4AEB, 0xA4, 0x5A, 0xE9, 0xD7, 0x64, 0x04, 0xA4, 0x95) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Heap1Test() - { - Assert.That( - IID_ID3D12Heap1, - Is.EqualTo( - new Guid(0x572F7389, 0x2168, 0x49E3, 0x96, 0x93, 0xD6, 0xDF, 0x58, 0x71, 0xBF, 0x6D) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList3Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList3, - Is.EqualTo( - new Guid(0x6FDA83A7, 0xB84C, 0x4E38, 0x9A, 0xC8, 0xC7, 0xBD, 0x22, 0x01, 0x6B, 0x3D) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12MetaCommandTest() - { - Assert.That( - IID_ID3D12MetaCommand, - Is.EqualTo( - new Guid(0xDBB84C27, 0x36CE, 0x4FC9, 0xB8, 0x01, 0xF0, 0x48, 0xC4, 0x6A, 0xC5, 0x70) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList4Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList4, - Is.EqualTo( - new Guid(0x8754318e, 0xd3a9, 0x4541, 0x98, 0xcf, 0x64, 0x5b, 0x50, 0xdc, 0x48, 0x74) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ShaderCacheSessionTest() - { - Assert.That( - IID_ID3D12ShaderCacheSession, - Is.EqualTo( - new Guid(0x28e2495d, 0x0f64, 0x4ae4, 0xa6, 0xec, 0x12, 0x92, 0x55, 0xdc, 0x49, 0xa8) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device9Test() - { - Assert.That( - IID_ID3D12Device9, - Is.EqualTo( - new Guid(0x4c80e962, 0xf032, 0x4f60, 0xbc, 0x9e, 0xeb, 0xc2, 0xcf, 0xa1, 0xd8, 0x3c) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device10Test() - { - Assert.That( - IID_ID3D12Device10, - Is.EqualTo( - new Guid(0x517f8718, 0xaa66, 0x49f9, 0xb0, 0x2b, 0xa7, 0xab, 0x89, 0xc0, 0x60, 0x31) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Device11Test() - { - Assert.That( - IID_ID3D12Device11, - Is.EqualTo( - new Guid(0x5405c344, 0xd457, 0x444e, 0xb4, 0xdd, 0x23, 0x66, 0xe4, 0x5a, 0xee, 0x39) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VirtualizationGuestDeviceTest() - { - Assert.That( - IID_ID3D12VirtualizationGuestDevice, - Is.EqualTo( - new Guid(0xbc66d368, 0x7373, 0x4943, 0x87, 0x57, 0xfc, 0x87, 0xdc, 0x79, 0xe4, 0x76) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ToolsTest() - { - Assert.That( - IID_ID3D12Tools, - Is.EqualTo( - new Guid(0x7071e1f0, 0xe84b, 0x4b33, 0x97, 0x4f, 0x12, 0xfa, 0x49, 0xde, 0x65, 0xc5) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12SDKConfigurationTest() - { - Assert.That( - IID_ID3D12SDKConfiguration, - Is.EqualTo( - new Guid(0xe9eb5314, 0x33aa, 0x42b2, 0xa7, 0x18, 0xd7, 0x7f, 0x58, 0xb1, 0xf1, 0xc7) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12SDKConfiguration1Test() - { - Assert.That( - IID_ID3D12SDKConfiguration1, - Is.EqualTo( - new Guid(0x8aaf9303, 0xad25, 0x48b9, 0x9a, 0x57, 0xd9, 0xc3, 0x7e, 0x00, 0x9d, 0x9f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceFactoryTest() - { - Assert.That( - IID_ID3D12DeviceFactory, - Is.EqualTo( - new Guid(0x61f307d3, 0xd34e, 0x4e7c, 0x83, 0x74, 0x3b, 0xa4, 0xde, 0x23, 0xcc, 0xcb) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceConfigurationTest() - { - Assert.That( - IID_ID3D12DeviceConfiguration, - Is.EqualTo( - new Guid(0x78dbf87b, 0xf766, 0x422b, 0xa6, 0x1c, 0xc8, 0xc4, 0x46, 0xbd, 0xb9, 0xad) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList5Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList5, - Is.EqualTo( - new Guid(0x55050859, 0x4024, 0x474c, 0x87, 0xf5, 0x64, 0x72, 0xea, 0xee, 0x44, 0xea) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList6Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList6, - Is.EqualTo( - new Guid(0xc3827890, 0xe548, 0x4cfa, 0x96, 0xcf, 0x56, 0x89, 0xa9, 0x37, 0x0f, 0x80) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList7Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList7, - Is.EqualTo( - new Guid(0xdd171223, 0x8b61, 0x4769, 0x90, 0xe3, 0x16, 0x0c, 0xcd, 0xe4, 0xe2, 0xc1) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12GraphicsCommandList8Test() - { - Assert.That( - IID_ID3D12GraphicsCommandList8, - Is.EqualTo( - new Guid(0xee936ef9, 0x599d, 0x4d28, 0x93, 0x8e, 0x23, 0xc4, 0xad, 0x05, 0xce, 0x51) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/D3D11On12CreatorIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/D3D11On12CreatorIDTests.gen.cs deleted file mode 100644 index 80cd9c7fe8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/D3D11On12CreatorIDTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D11On12CreatorIDTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(D3D11On12CreatorID).GUID, Is.EqualTo(IID_D3D11On12CreatorID)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D11On12CreatorID))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D11On12CreatorID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D11On12CreatorID), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D11On12CreatorID), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/D3D9On12CreatorIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/D3D9On12CreatorIDTests.gen.cs deleted file mode 100644 index 15eb7f6464..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/D3D9On12CreatorIDTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D9On12CreatorIDTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(D3D9On12CreatorID).GUID, Is.EqualTo(IID_D3D9On12CreatorID)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D9On12CreatorID))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D9On12CreatorID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D9On12CreatorID), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D9On12CreatorID), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLPyTorchCreatorIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLPyTorchCreatorIDTests.gen.cs deleted file mode 100644 index 8edf1d9521..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLPyTorchCreatorIDTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class DirectMLPyTorchCreatorIDTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(DirectMLPyTorchCreatorID).GUID, - Is.EqualTo(IID_DirectMLPyTorchCreatorID) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(DirectMLPyTorchCreatorID)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DirectMLPyTorchCreatorID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(DirectMLPyTorchCreatorID), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(DirectMLPyTorchCreatorID), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLTensorFlowCreatorIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLTensorFlowCreatorIDTests.gen.cs deleted file mode 100644 index 1376bd1957..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/DirectMLTensorFlowCreatorIDTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class DirectMLTensorFlowCreatorIDTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(DirectMLTensorFlowCreatorID).GUID, - Is.EqualTo(IID_DirectMLTensorFlowCreatorID) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(DirectMLTensorFlowCreatorID)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DirectMLTensorFlowCreatorID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(DirectMLTensorFlowCreatorID), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(DirectMLTensorFlowCreatorID), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/ID3D12CompatibilityDeviceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/ID3D12CompatibilityDeviceTests.gen.cs deleted file mode 100644 index 71c5e3efa4..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/ID3D12CompatibilityDeviceTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12CompatibilityDeviceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12CompatibilityDevice).GUID, - Is.EqualTo(IID_ID3D12CompatibilityDevice) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12CompatibilityDevice)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12CompatibilityDevice).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12CompatibilityDevice), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12CompatibilityDevice), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/IIDTests.gen.cs deleted file mode 100644 index 58ba5e1c65..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/IIDTests.gen.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12CompatibilityDeviceTest() - { - Assert.That( - IID_ID3D12CompatibilityDevice, - Is.EqualTo( - new Guid(0x8f1c0e3c, 0xfae3, 0x4a82, 0xb0, 0x98, 0xbf, 0xe1, 0x70, 0x82, 0x07, 0xff) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_D3D11On12CreatorIDTest() - { - Assert.That( - IID_D3D11On12CreatorID, - Is.EqualTo( - new Guid(0xedbf5678, 0x2960, 0x4e81, 0x84, 0x29, 0x99, 0xd4, 0xb2, 0x63, 0x0c, 0x4e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_D3D9On12CreatorIDTest() - { - Assert.That( - IID_D3D9On12CreatorID, - Is.EqualTo( - new Guid(0xfffcbb7f, 0x15d3, 0x42a2, 0x84, 0x1e, 0x9d, 0x8d, 0x32, 0xf3, 0x7d, 0xdd) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_OpenGLOn12CreatorIDTest() - { - Assert.That( - IID_OpenGLOn12CreatorID, - Is.EqualTo( - new Guid(0x6bb3cd34, 0x0d19, 0x45ab, 0x97, 0xed, 0xd7, 0x20, 0xba, 0x3d, 0xfc, 0x80) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_OpenCLOn12CreatorIDTest() - { - Assert.That( - IID_OpenCLOn12CreatorID, - Is.EqualTo( - new Guid(0x3f76bb74, 0x91b5, 0x4a88, 0xb1, 0x26, 0x20, 0xca, 0x03, 0x31, 0xcd, 0x60) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_DirectMLTensorFlowCreatorIDTest() - { - Assert.That( - IID_DirectMLTensorFlowCreatorID, - Is.EqualTo( - new Guid(0xcb7490ac, 0x8a0f, 0x44ec, 0x9b, 0x7b, 0x6f, 0x4c, 0xaf, 0xe8, 0xe9, 0xab) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_DirectMLPyTorchCreatorIDTest() - { - Assert.That( - IID_DirectMLPyTorchCreatorID, - Is.EqualTo( - new Guid(0xaf029192, 0xfba1, 0x4b05, 0x91, 0x16, 0x23, 0x5e, 0x06, 0x56, 0x03, 0x54) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/OpenCLOn12CreatorIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/OpenCLOn12CreatorIDTests.gen.cs deleted file mode 100644 index a3c0346698..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/OpenCLOn12CreatorIDTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class OpenCLOn12CreatorIDTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(OpenCLOn12CreatorID).GUID, Is.EqualTo(IID_OpenCLOn12CreatorID)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(OpenCLOn12CreatorID))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(OpenCLOn12CreatorID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(OpenCLOn12CreatorID), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(OpenCLOn12CreatorID), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/OpenGLOn12CreatorIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12compatibility/OpenGLOn12CreatorIDTests.gen.cs deleted file mode 100644 index 20a0ebed6f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12compatibility/OpenGLOn12CreatorIDTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12compatibility.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class OpenGLOn12CreatorIDTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(OpenGLOn12CreatorID).GUID, Is.EqualTo(IID_OpenGLOn12CreatorID)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(OpenGLOn12CreatorID))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(OpenGLOn12CreatorID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(OpenGLOn12CreatorID), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(OpenGLOn12CreatorID), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGSTests.gen.cs deleted file mode 100644 index cf05bcdfe3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGSTests.gen.cs deleted file mode 100644 index 6b1136a246..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTORTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTORTests.gen.cs deleted file mode 100644 index c4e0631173..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTORTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTORTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTERTests.gen.cs deleted file mode 100644 index 5c18eb03ab..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTERTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_INFO_QUEUE_FILTERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_INFO_QUEUE_FILTER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_INFO_QUEUE_FILTER).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_INFO_QUEUE_FILTER), Is.EqualTo(96)); - } - else - { - Assert.That(sizeof(D3D12_INFO_QUEUE_FILTER), Is.EqualTo(48)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER_DESCTests.gen.cs deleted file mode 100644 index 490f49e592..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_INFO_QUEUE_FILTER_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_INFO_QUEUE_FILTER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_INFO_QUEUE_FILTER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_INFO_QUEUE_FILTER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_INFO_QUEUE_FILTER_DESC), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_INFO_QUEUE_FILTER_DESC), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGETests.gen.cs deleted file mode 100644 index 43d631bcd1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/D3D12_MESSAGETests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_MESSAGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_MESSAGE))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_MESSAGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_MESSAGE), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_MESSAGE), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/DXGITests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/DXGITests.gen.cs deleted file mode 100644 index fda9c84e90..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/DXGITests.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.DXGI; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static partial class DXGITests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void DXGI_DEBUG_D3D12Test() - { - Assert.That( - DXGI_DEBUG_D3D12, - Is.EqualTo( - new Guid(0xcf59a98c, 0xa950, 0x4326, 0x91, 0xef, 0x9b, 0xba, 0xa1, 0x7b, 0xfd, 0x95) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/DirectXTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/DirectXTests.gen.cs deleted file mode 100644 index 13e74a1763..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/DirectXTests.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.DirectX; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static partial class DirectXTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void WKPDID_D3DAutoDebugObjectNameWTest() - { - Assert.That( - WKPDID_D3DAutoDebugObjectNameW, - Is.EqualTo( - new Guid(0xd4902e36, 0x757a, 0x4942, 0x95, 0x94, 0xb6, 0x76, 0x9a, 0xfa, 0x43, 0xcd) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug1Tests.gen.cs deleted file mode 100644 index 7bc933181d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Debug1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug1).GUID, Is.EqualTo(IID_ID3D12Debug1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug2Tests.gen.cs deleted file mode 100644 index 5cc24f5d24..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug2Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Debug2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug2).GUID, Is.EqualTo(IID_ID3D12Debug2)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug2))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug3Tests.gen.cs deleted file mode 100644 index c8e542284b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug3Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Debug3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug3).GUID, Is.EqualTo(IID_ID3D12Debug3)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug3))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug4Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug4Tests.gen.cs deleted file mode 100644 index ccc402f1b5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug4Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Debug4Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug4).GUID, Is.EqualTo(IID_ID3D12Debug4)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug4))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug4).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug4), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug4), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug5Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug5Tests.gen.cs deleted file mode 100644 index 233adf2762..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug5Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Debug5Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug5).GUID, Is.EqualTo(IID_ID3D12Debug5)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug5))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug5).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug5), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug5), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug6Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug6Tests.gen.cs deleted file mode 100644 index 2d4fe8a8d6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12Debug6Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12Debug6Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug6).GUID, Is.EqualTo(IID_ID3D12Debug6)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug6))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug6).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug6), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug6), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList1Tests.gen.cs deleted file mode 100644 index b0beb9bfa2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList1Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugCommandList1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugCommandList1).GUID, Is.EqualTo(IID_ID3D12DebugCommandList1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DebugCommandList1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugCommandList1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugCommandList1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugCommandList1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList2Tests.gen.cs deleted file mode 100644 index bd492670c3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList2Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugCommandList2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugCommandList2).GUID, Is.EqualTo(IID_ID3D12DebugCommandList2)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DebugCommandList2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugCommandList2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugCommandList2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugCommandList2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList3Tests.gen.cs deleted file mode 100644 index d8b846fdbc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandList3Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugCommandList3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugCommandList3).GUID, Is.EqualTo(IID_ID3D12DebugCommandList3)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DebugCommandList3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugCommandList3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugCommandList3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugCommandList3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandListTests.gen.cs deleted file mode 100644 index 1418be5f71..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandListTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugCommandListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugCommandList).GUID, Is.EqualTo(IID_ID3D12DebugCommandList)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DebugCommandList)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugCommandList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugCommandList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugCommandList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue1Tests.gen.cs deleted file mode 100644 index dd3f98e5ba..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueue1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugCommandQueue1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12DebugCommandQueue1).GUID, - Is.EqualTo(IID_ID3D12DebugCommandQueue1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DebugCommandQueue1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugCommandQueue1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugCommandQueue1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugCommandQueue1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueueTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueueTests.gen.cs deleted file mode 100644 index e48e457548..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugCommandQueueTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugCommandQueueTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugCommandQueue).GUID, Is.EqualTo(IID_ID3D12DebugCommandQueue)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DebugCommandQueue)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugCommandQueue).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugCommandQueue), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugCommandQueue), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice1Tests.gen.cs deleted file mode 100644 index ad45e57fc5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugDevice1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugDevice1).GUID, Is.EqualTo(IID_ID3D12DebugDevice1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12DebugDevice1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugDevice1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugDevice1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugDevice1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice2Tests.gen.cs deleted file mode 100644 index c20963f326..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDevice2Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugDevice2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugDevice2).GUID, Is.EqualTo(IID_ID3D12DebugDevice2)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12DebugDevice2))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugDevice2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugDevice2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugDevice2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDeviceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDeviceTests.gen.cs deleted file mode 100644 index e21685c375..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugDeviceTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugDeviceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DebugDevice).GUID, Is.EqualTo(IID_ID3D12DebugDevice)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12DebugDevice))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DebugDevice).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DebugDevice), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DebugDevice), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugTests.gen.cs deleted file mode 100644 index 704d6727e5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12DebugTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DebugTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12Debug).GUID, Is.EqualTo(IID_ID3D12Debug)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12Debug))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12Debug).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12Debug), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12Debug), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue1Tests.gen.cs deleted file mode 100644 index 8f86f8568b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueue1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12InfoQueue1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12InfoQueue1).GUID, Is.EqualTo(IID_ID3D12InfoQueue1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12InfoQueue1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12InfoQueue1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12InfoQueue1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12InfoQueue1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueueTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueueTests.gen.cs deleted file mode 100644 index f1e2b3b817..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12InfoQueueTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12InfoQueueTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12InfoQueue).GUID, Is.EqualTo(IID_ID3D12InfoQueue)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12InfoQueue))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12InfoQueue).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12InfoQueue), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12InfoQueue), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12SharingContractTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12SharingContractTests.gen.cs deleted file mode 100644 index 1ea10a275d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/ID3D12SharingContractTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12SharingContractTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12SharingContract).GUID, Is.EqualTo(IID_ID3D12SharingContract)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12SharingContract)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12SharingContract).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12SharingContract), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12SharingContract), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/IIDTests.gen.cs deleted file mode 100644 index 08dc24639d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12sdklayers/IIDTests.gen.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12sdklayers.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugTest() - { - Assert.That( - IID_ID3D12Debug, - Is.EqualTo( - new Guid(0x344488b7, 0x6846, 0x474b, 0xb9, 0x89, 0xf0, 0x27, 0x44, 0x82, 0x45, 0xe0) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Debug1Test() - { - Assert.That( - IID_ID3D12Debug1, - Is.EqualTo( - new Guid(0xaffaa4ca, 0x63fe, 0x4d8e, 0xb8, 0xad, 0x15, 0x90, 0x00, 0xaf, 0x43, 0x04) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Debug2Test() - { - Assert.That( - IID_ID3D12Debug2, - Is.EqualTo( - new Guid(0x93a665c4, 0xa3b2, 0x4e5d, 0xb6, 0x92, 0xa2, 0x6a, 0xe1, 0x4e, 0x33, 0x74) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Debug3Test() - { - Assert.That( - IID_ID3D12Debug3, - Is.EqualTo( - new Guid(0x5cf4e58f, 0xf671, 0x4ff1, 0xa5, 0x42, 0x36, 0x86, 0xe3, 0xd1, 0x53, 0xd1) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Debug4Test() - { - Assert.That( - IID_ID3D12Debug4, - Is.EqualTo( - new Guid(0x014b816e, 0x9ec5, 0x4a2f, 0xa8, 0x45, 0xff, 0xbe, 0x44, 0x1c, 0xe1, 0x3a) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Debug5Test() - { - Assert.That( - IID_ID3D12Debug5, - Is.EqualTo( - new Guid(0x548d6b12, 0x09fa, 0x40e0, 0x90, 0x69, 0x5d, 0xcd, 0x58, 0x9a, 0x52, 0xc9) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12Debug6Test() - { - Assert.That( - IID_ID3D12Debug6, - Is.EqualTo( - new Guid(0x82a816d6, 0x5d01, 0x4157, 0x97, 0xd0, 0x49, 0x75, 0x46, 0x3f, 0xd1, 0xed) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugDevice1Test() - { - Assert.That( - IID_ID3D12DebugDevice1, - Is.EqualTo( - new Guid(0xa9b71770, 0xd099, 0x4a65, 0xa6, 0x98, 0x3d, 0xee, 0x10, 0x02, 0x0f, 0x88) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugDeviceTest() - { - Assert.That( - IID_ID3D12DebugDevice, - Is.EqualTo( - new Guid(0x3febd6dd, 0x4973, 0x4787, 0x81, 0x94, 0xe4, 0x5f, 0x9e, 0x28, 0x92, 0x3e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugDevice2Test() - { - Assert.That( - IID_ID3D12DebugDevice2, - Is.EqualTo( - new Guid(0x60eccbc1, 0x378d, 0x4df1, 0x89, 0x4c, 0xf8, 0xac, 0x5c, 0xe4, 0xd7, 0xdd) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugCommandQueueTest() - { - Assert.That( - IID_ID3D12DebugCommandQueue, - Is.EqualTo( - new Guid(0x09e0bf36, 0x54ac, 0x484f, 0x88, 0x47, 0x4b, 0xae, 0xea, 0xb6, 0x05, 0x3a) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugCommandQueue1Test() - { - Assert.That( - IID_ID3D12DebugCommandQueue1, - Is.EqualTo( - new Guid(0x16be35a2, 0xbfd6, 0x49f2, 0xbc, 0xae, 0xea, 0xae, 0x4a, 0xff, 0x86, 0x2d) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugCommandList1Test() - { - Assert.That( - IID_ID3D12DebugCommandList1, - Is.EqualTo( - new Guid(0x102ca951, 0x311b, 0x4b01, 0xb1, 0x1f, 0xec, 0xb8, 0x3e, 0x06, 0x1b, 0x37) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugCommandListTest() - { - Assert.That( - IID_ID3D12DebugCommandList, - Is.EqualTo( - new Guid(0x09e0bf36, 0x54ac, 0x484f, 0x88, 0x47, 0x4b, 0xae, 0xea, 0xb6, 0x05, 0x3f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugCommandList2Test() - { - Assert.That( - IID_ID3D12DebugCommandList2, - Is.EqualTo( - new Guid(0xaeb575cf, 0x4e06, 0x48be, 0xba, 0x3b, 0xc4, 0x50, 0xfc, 0x96, 0x65, 0x2e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DebugCommandList3Test() - { - Assert.That( - IID_ID3D12DebugCommandList3, - Is.EqualTo( - new Guid(0x197d5e15, 0x4d37, 0x4d34, 0xaf, 0x78, 0x72, 0x4c, 0xd7, 0x0f, 0xdb, 0x1f) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12SharingContractTest() - { - Assert.That( - IID_ID3D12SharingContract, - Is.EqualTo( - new Guid(0x0adf7d52, 0x929c, 0x4e61, 0xad, 0xdb, 0xff, 0xed, 0x30, 0xde, 0x66, 0xef) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12InfoQueueTest() - { - Assert.That( - IID_ID3D12InfoQueue, - Is.EqualTo( - new Guid(0x0742a90b, 0xc387, 0x483f, 0xb9, 0x46, 0x30, 0xa7, 0xe4, 0xe6, 0x14, 0x58) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12InfoQueue1Test() - { - Assert.That( - IID_ID3D12InfoQueue1, - Is.EqualTo( - new Guid(0x2852dd88, 0xb484, 0x4c0c, 0xb6, 0xb1, 0x67, 0x16, 0x85, 0x00, 0xe6, 0x00) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_FUNCTION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_FUNCTION_DESCTests.gen.cs deleted file mode 100644 index c8be2c832e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_FUNCTION_DESCTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FUNCTION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_FUNCTION_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FUNCTION_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FUNCTION_DESC), Is.EqualTo(152)); - } - else - { - Assert.That(sizeof(D3D12_FUNCTION_DESC), Is.EqualTo(144)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_LIBRARY_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_LIBRARY_DESCTests.gen.cs deleted file mode 100644 index b801cc10b2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_LIBRARY_DESCTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_LIBRARY_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_LIBRARY_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_LIBRARY_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_LIBRARY_DESC), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_LIBRARY_DESC), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_PARAMETER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_PARAMETER_DESCTests.gen.cs deleted file mode 100644 index 220131d299..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_PARAMETER_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_PARAMETER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_PARAMETER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_PARAMETER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_PARAMETER_DESC), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_PARAMETER_DESC), Is.EqualTo(48)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_BUFFER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_BUFFER_DESCTests.gen.cs deleted file mode 100644 index 78df9a888d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_BUFFER_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_BUFFER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_BUFFER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_BUFFER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SHADER_BUFFER_DESC), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_SHADER_BUFFER_DESC), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_DESCTests.gen.cs deleted file mode 100644 index aafd3730e0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_DESCTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_SHADER_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SHADER_DESC), Is.EqualTo(160)); - } - else - { - Assert.That(sizeof(D3D12_SHADER_DESC), Is.EqualTo(152)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_INPUT_BIND_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_INPUT_BIND_DESCTests.gen.cs deleted file mode 100644 index 36581043e9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_INPUT_BIND_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_INPUT_BIND_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_INPUT_BIND_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_INPUT_BIND_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SHADER_INPUT_BIND_DESC), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_SHADER_INPUT_BIND_DESC), Is.EqualTo(40)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_TYPE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_TYPE_DESCTests.gen.cs deleted file mode 100644 index 9d5361b13d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_TYPE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_TYPE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_TYPE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_TYPE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SHADER_TYPE_DESC), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_SHADER_TYPE_DESC), Is.EqualTo(32)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VARIABLE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VARIABLE_DESCTests.gen.cs deleted file mode 100644 index 501ea85574..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SHADER_VARIABLE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SHADER_VARIABLE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SHADER_VARIABLE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SHADER_VARIABLE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SHADER_VARIABLE_DESC), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_SHADER_VARIABLE_DESC), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SIGNATURE_PARAMETER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SIGNATURE_PARAMETER_DESCTests.gen.cs deleted file mode 100644 index b4773db27a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/D3D12_SIGNATURE_PARAMETER_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_SIGNATURE_PARAMETER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_SIGNATURE_PARAMETER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_SIGNATURE_PARAMETER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_SIGNATURE_PARAMETER_DESC), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_SIGNATURE_PARAMETER_DESC), Is.EqualTo(32)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionParameterReflectionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionParameterReflectionTests.gen.cs deleted file mode 100644 index 47504a71d2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionParameterReflectionTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12FunctionParameterReflectionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12FunctionParameterReflection).GUID, - Is.EqualTo(IID_ID3D12FunctionParameterReflection) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12FunctionParameterReflection)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12FunctionParameterReflection).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12FunctionParameterReflection), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12FunctionParameterReflection), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionReflectionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionReflectionTests.gen.cs deleted file mode 100644 index 23aea0a2fd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12FunctionReflectionTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12FunctionReflectionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12FunctionReflection).GUID, - Is.EqualTo(IID_ID3D12FunctionReflection) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12FunctionReflection)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12FunctionReflection).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12FunctionReflection), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12FunctionReflection), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12LibraryReflectionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12LibraryReflectionTests.gen.cs deleted file mode 100644 index c30a09ec86..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12LibraryReflectionTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12LibraryReflectionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12LibraryReflection).GUID, Is.EqualTo(IID_ID3D12LibraryReflection)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12LibraryReflection)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12LibraryReflection).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12LibraryReflection), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12LibraryReflection), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionConstantBufferTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionConstantBufferTests.gen.cs deleted file mode 100644 index c13bb32afc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionConstantBufferTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ShaderReflectionConstantBufferTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12ShaderReflectionConstantBuffer).GUID, - Is.EqualTo(IID_ID3D12ShaderReflectionConstantBuffer) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ShaderReflectionConstantBuffer)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ShaderReflectionConstantBuffer).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ShaderReflectionConstantBuffer), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ShaderReflectionConstantBuffer), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionTests.gen.cs deleted file mode 100644 index 520accc269..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ShaderReflectionTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12ShaderReflection).GUID, Is.EqualTo(IID_ID3D12ShaderReflection)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ShaderReflection)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ShaderReflection).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ShaderReflection), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ShaderReflection), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionTypeTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionTypeTests.gen.cs deleted file mode 100644 index 09276ffe0e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionTypeTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ShaderReflectionTypeTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12ShaderReflectionType).GUID, - Is.EqualTo(IID_ID3D12ShaderReflectionType) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ShaderReflectionType)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ShaderReflectionType).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ShaderReflectionType), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ShaderReflectionType), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionVariableTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionVariableTests.gen.cs deleted file mode 100644 index f395865083..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/ID3D12ShaderReflectionVariableTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12ShaderReflectionVariableTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12ShaderReflectionVariable).GUID, - Is.EqualTo(IID_ID3D12ShaderReflectionVariable) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12ShaderReflectionVariable)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12ShaderReflectionVariable).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12ShaderReflectionVariable), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12ShaderReflectionVariable), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12shader/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12shader/IIDTests.gen.cs deleted file mode 100644 index 85a21182f7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12shader/IIDTests.gen.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12shader.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ShaderReflectionTypeTest() - { - Assert.That( - IID_ID3D12ShaderReflectionType, - Is.EqualTo( - new Guid(0xe913c351, 0x783d, 0x48ca, 0xa1, 0xd1, 0x4f, 0x30, 0x62, 0x84, 0xad, 0x56) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ShaderReflectionVariableTest() - { - Assert.That( - IID_ID3D12ShaderReflectionVariable, - Is.EqualTo( - new Guid(0x8337a8a6, 0xa216, 0x444a, 0xb2, 0xf4, 0x31, 0x47, 0x33, 0xa7, 0x3a, 0xea) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ShaderReflectionConstantBufferTest() - { - Assert.That( - IID_ID3D12ShaderReflectionConstantBuffer, - Is.EqualTo( - new Guid(0xc59598b4, 0x48b3, 0x4869, 0xb9, 0xb1, 0xb1, 0x61, 0x8b, 0x14, 0xa8, 0xb7) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12ShaderReflectionTest() - { - Assert.That( - IID_ID3D12ShaderReflection, - Is.EqualTo( - new Guid(0x5a58797d, 0xa72c, 0x478d, 0x8b, 0xa2, 0xef, 0xc6, 0xb0, 0xef, 0xe8, 0x8e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12LibraryReflectionTest() - { - Assert.That( - IID_ID3D12LibraryReflection, - Is.EqualTo( - new Guid(0x8e349d19, 0x54db, 0x4a56, 0x9d, 0xc9, 0x11, 0x9d, 0x87, 0xbd, 0xb8, 0x4) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12FunctionReflectionTest() - { - Assert.That( - IID_ID3D12FunctionReflection, - Is.EqualTo( - new Guid(0x1108795c, 0x2772, 0x4ba9, 0xb2, 0xa8, 0xd4, 0x64, 0xdc, 0x7e, 0x27, 0x99) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12FunctionParameterReflectionTest() - { - Assert.That( - IID_ID3D12FunctionParameterReflection, - Is.EqualTo( - new Guid(0xec25f42d, 0x7006, 0x4f2b, 0xb3, 0x3e, 0x2, 0xcc, 0x33, 0x75, 0x73, 0x3f) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12Tests.gen.cs deleted file mode 100644 index 932bb868bc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12Tests.gen.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.D3D12; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static partial class D3D12Tests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_MPEG2Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_MPEG2, - Is.EqualTo( - new Guid(0xee27417f, 0x5e28, 0x4e65, 0xbe, 0xea, 0x1d, 0x26, 0xb5, 0x08, 0xad, 0xc9) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2, - Is.EqualTo( - new Guid(0x86695f12, 0x340e, 0x4f04, 0x9f, 0xd3, 0x92, 0x53, 0xdd, 0x32, 0x74, 0x60) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_H264Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_H264, - Is.EqualTo( - new Guid(0x1b81be68, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_H264_STEREO_PROGRESSIVETest() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_H264_STEREO_PROGRESSIVE, - Is.EqualTo( - new Guid(0xd79be8da, 0x0cf1, 0x4c81, 0xb8, 0x2a, 0x69, 0xa4, 0xe2, 0x36, 0xf4, 0x3d) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_H264_STEREOTest() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_H264_STEREO, - Is.EqualTo( - new Guid(0xf9aaccbb, 0xc2b6, 0x4cfc, 0x87, 0x79, 0x57, 0x07, 0xb1, 0x76, 0x05, 0x52) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_H264_MULTIVIEWTest() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_H264_MULTIVIEW, - Is.EqualTo( - new Guid(0x705b9d82, 0x76cf, 0x49d6, 0xb7, 0xe6, 0xac, 0x88, 0x72, 0xdb, 0x01, 0x3c) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_VC1Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_VC1, - Is.EqualTo( - new Guid(0x1b81beA3, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_VC1_D2010Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_VC1_D2010, - Is.EqualTo( - new Guid(0x1b81beA4, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_SIMPLETest() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_SIMPLE, - Is.EqualTo( - new Guid(0xefd64d74, 0xc9e8, 0x41d7, 0xa5, 0xe9, 0xe9, 0xb0, 0xe3, 0x9f, 0xa3, 0x19) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_ADVSIMPLE_NOGMCTest() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_ADVSIMPLE_NOGMC, - Is.EqualTo( - new Guid(0xed418a9f, 0x010d, 0x4eda, 0x9a, 0xe3, 0x9a, 0x65, 0x35, 0x8d, 0x8d, 0x2e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_HEVC_MAINTest() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN, - Is.EqualTo( - new Guid(0x5b11d51b, 0x2f4c, 0x4452, 0xbc, 0xc3, 0x09, 0xf2, 0xa1, 0x16, 0x0c, 0xc0) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10, - Is.EqualTo( - new Guid(0x107af0e0, 0xef1a, 0x4d19, 0xab, 0xa8, 0x67, 0xa1, 0x63, 0x07, 0x3d, 0x13) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_VP9Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_VP9, - Is.EqualTo( - new Guid(0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2, - Is.EqualTo( - new Guid(0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_VP8Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_VP8, - Is.EqualTo( - new Guid(0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0, - Is.EqualTo( - new Guid(0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE1Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE1, - Is.EqualTo( - new Guid(0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE2Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE2, - Is.EqualTo( - new Guid(0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2, - Is.EqualTo( - new Guid(0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2_420Test() - { - Assert.That( - D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2_420, - Is.EqualTo( - new Guid(0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ARCHITECTURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ARCHITECTURETests.gen.cs deleted file mode 100644 index 3711108d0f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ARCHITECTURETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ARCHITECTURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE), Is.EqualTo(4)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1Tests.gen.cs deleted file mode 100644 index fbd800d58b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1Tests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1), Is.EqualTo(80)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZETests.gen.cs deleted file mode 100644 index f706035565..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE), Is.EqualTo(72)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORTTests.gen.cs deleted file mode 100644 index 371abfe01b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORTTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT), Is.EqualTo(88)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATSTests.gen.cs deleted file mode 100644 index 4e50bbe8b2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNTTests.gen.cs deleted file mode 100644 index 7275eb9c50..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNTTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAMTests.gen.cs deleted file mode 100644 index 2823416af3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAMTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM), Is.EqualTo(44)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILESTests.gen.cs deleted file mode 100644 index 56350076e9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILESTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNTTests.gen.cs deleted file mode 100644 index be92274563..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNTTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCESTests.gen.cs deleted file mode 100644 index 23e0196a51..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCESTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORTTests.gen.cs deleted file mode 100644 index f798ce5454..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORTTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT), Is.EqualTo(64)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODECTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODECTests.gen.cs deleted file mode 100644 index a5d2a5c5ed..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODECTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_CODECTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests.gen.cs deleted file mode 100644 index d9dee74644..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT), - Is.EqualTo(48) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT), - Is.EqualTo(28) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests.gen.cs deleted file mode 100644 index d8a0a8af72..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT), - Is.EqualTo(48) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT), - Is.EqualTo(28) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODETests.gen.cs deleted file mode 100644 index 7f3e93fac9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODETests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE), - Is.EqualTo(48) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE), - Is.EqualTo(32) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZETests.gen.cs deleted file mode 100644 index a4d003e191..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE), Is.EqualTo(88)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE), Is.EqualTo(56)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMATTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMATTests.gen.cs deleted file mode 100644 index 2caeccbadc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMATTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMATTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODETests.gen.cs deleted file mode 100644 index 65b0e44d78..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODETests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE), - Is.EqualTo(48) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE), - Is.EqualTo(32) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTIONTests.gen.cs deleted file mode 100644 index f29d535a37..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTIONTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION), Is.EqualTo(44)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNTTests.gen.cs deleted file mode 100644 index d471ee7eea..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNTTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT), - Is.EqualTo(12) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVELTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVELTests.gen.cs deleted file mode 100644 index 2710203438..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVELTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVELTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL), Is.EqualTo(64)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODETests.gen.cs deleted file mode 100644 index 45de48f84f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODETests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITSTests.gen.cs deleted file mode 100644 index d34998e1f0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITSTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS), - Is.EqualTo(16) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTSTests.gen.cs deleted file mode 100644 index 1f9aa775e3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTSTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS), - Is.EqualTo(56) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS), - Is.EqualTo(44) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORTTests.gen.cs deleted file mode 100644 index ea3d296c9f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT), Is.EqualTo(160)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT), Is.EqualTo(100)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDSTests.gen.cs deleted file mode 100644 index a20a22fecc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDSTests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNTTests.gen.cs deleted file mode 100644 index aaeabb462f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNTTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERSTests.gen.cs deleted file mode 100644 index d2518e1244..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERSTests.gen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS), - Is.EqualTo(32) - ); - } - else - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS), - Is.EqualTo(28) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNTTests.gen.cs deleted file mode 100644 index 99348af892..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT), - Is.EqualTo(28) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZETests.gen.cs deleted file mode 100644 index 7dfad286cf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZETests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE), Is.EqualTo(48)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORTTests.gen.cs deleted file mode 100644 index cb7947dca7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORTTests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORTTests.gen.cs deleted file mode 100644 index 157115ea2d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORTTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATORTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATORTests.gen.cs deleted file mode 100644 index f0bb617bfd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATORTests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATORTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCESTests.gen.cs deleted file mode 100644 index d68af94357..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCESTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES), - Is.EqualTo(8) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZETests.gen.cs deleted file mode 100644 index 8913b679de..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZETests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE), Is.EqualTo(72)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1Tests.gen.cs deleted file mode 100644 index 7f86230e5f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1), Is.EqualTo(56)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1), Is.EqualTo(40)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZETests.gen.cs deleted file mode 100644 index 9caf29a607..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE), Is.EqualTo(32)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMSTests.gen.cs deleted file mode 100644 index 92ceab008b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCESTests.gen.cs deleted file mode 100644 index afdc819893..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCESTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFOTests.gen.cs deleted file mode 100644 index 9eb9110793..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFOTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO), Is.EqualTo(44)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORTTests.gen.cs deleted file mode 100644 index acc55d4b44..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORTTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT), Is.EqualTo(608)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICSTests.gen.cs deleted file mode 100644 index a571e68334..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICSTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUTTests.gen.cs deleted file mode 100644 index 14e1392a09..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUTTests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUTTests.gen.cs deleted file mode 100644 index 4e971a1144..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUTTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOURCE_COORDINATETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOURCE_COORDINATETests.gen.cs deleted file mode 100644 index d672541f06..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_RESOURCE_COORDINATETests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_RESOURCE_COORDINATETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_RESOURCE_COORDINATE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_RESOURCE_COORDINATE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_RESOURCE_COORDINATE), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_DESCTests.gen.cs deleted file mode 100644 index f2503b9c00..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_DECODER_DESC), Is.EqualTo(28)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_HEAP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_HEAP_DESCTests.gen.cs deleted file mode 100644 index 4bec01f1eb..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODER_HEAP_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODER_HEAP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODER_HEAP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODER_HEAP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_DECODER_HEAP_DESC), Is.EqualTo(56)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAMTests.gen.cs deleted file mode 100644 index 7dbe90c158..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAMTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATIONTests.gen.cs deleted file mode 100644 index 04536a39e3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONFIGURATIONTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_CONFIGURATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_CONFIGURATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_CONFIGURATION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_CONFIGURATION), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1Tests.gen.cs deleted file mode 100644 index a0aa7102a5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1Tests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTSTests.gen.cs deleted file mode 100644 index 70073bb42f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_FRAME_ARGUMENTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_FRAME_ARGUMENTTests.gen.cs deleted file mode 100644 index ee7c13c78b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_FRAME_ARGUMENTTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_FRAME_ARGUMENTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_FRAME_ARGUMENT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_FRAME_ARGUMENT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_FRAME_ARGUMENT), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_FRAME_ARGUMENT), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTSTests.gen.cs deleted file mode 100644 index d288bd1c4a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS), Is.EqualTo(232)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS), Is.EqualTo(176)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAMTests.gen.cs deleted file mode 100644 index 62d5933fd2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAMTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1Tests.gen.cs deleted file mode 100644 index 717cbb16ea..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1Tests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1), Is.EqualTo(120)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1), Is.EqualTo(104)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTSTests.gen.cs deleted file mode 100644 index fbaf848d32..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_REFERENCE_FRAMESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_REFERENCE_FRAMESTests.gen.cs deleted file mode 100644 index f4f9c96eb9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_DECODE_REFERENCE_FRAMESTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_DECODE_REFERENCE_FRAMESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_DECODE_REFERENCE_FRAMES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_DECODE_REFERENCE_FRAMES).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_REFERENCE_FRAMES), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_DECODE_REFERENCE_FRAMES), Is.EqualTo(16)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATIONTests.gen.cs deleted file mode 100644 index eeeb6db3d7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATIONTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_CONFIGURATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264Tests.gen.cs deleted file mode 100644 index 10509c2dcd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264Tests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVCTests.gen.cs deleted file mode 100644 index 862570f5b7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests.gen.cs deleted file mode 100644 index d6ccae851d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264Tests.gen.cs deleted file mode 100644 index 7917272d90..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264Tests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVCTests.gen.cs deleted file mode 100644 index b901e4ecfe..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests.gen.cs deleted file mode 100644 index d8c09fb43f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264Tests.gen.cs deleted file mode 100644 index 3d141e1146..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264Tests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVCTests.gen.cs deleted file mode 100644 index b425cbf92d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAMTests.gen.cs deleted file mode 100644 index 60f617a2ee..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAMTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_DESCTests.gen.cs deleted file mode 100644 index 75e77991f0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_DESC), Is.EqualTo(64)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_DESC), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTSTests.gen.cs deleted file mode 100644 index 5305f6a00b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS), Is.EqualTo(160)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS), Is.EqualTo(104)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTSTests.gen.cs deleted file mode 100644 index 77153d4fb1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS), Is.EqualTo(40)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFERTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFERTests.gen.cs deleted file mode 100644 index 90076749f8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFERTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFERTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATATests.gen.cs deleted file mode 100644 index 15b2c40b61..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATATests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_DESCTests.gen.cs deleted file mode 100644 index b588365f26..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_HEAP_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_HEAP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_HEAP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_HEAP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_HEAP_DESC), Is.EqualTo(64)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_HEAP_DESC), Is.EqualTo(36)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESHTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESHTests.gen.cs deleted file mode 100644 index 46d6ff7178..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_INTRA_REFRESHTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_INTRA_REFRESHTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_INTRA_REFRESH)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_INTRA_REFRESH).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_INTRA_REFRESH), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_SETTINGTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_SETTINGTests.gen.cs deleted file mode 100644 index c98c252670..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_SETTINGTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_LEVEL_SETTINGTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_LEVEL_SETTING)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_LEVEL_SETTING).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_LEVEL_SETTING), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_LEVEL_SETTING), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVCTests.gen.cs deleted file mode 100644 index 0c4ca54ca5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATATests.gen.cs deleted file mode 100644 index e362f0fd16..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATATests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_OUTPUT_METADATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_OUTPUT_METADATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_OUTPUT_METADATA).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_OUTPUT_METADATA), Is.EqualTo(72)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICSTests.gen.cs deleted file mode 100644 index d40c9ab85a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATATests.gen.cs deleted file mode 100644 index e613de05e9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATATests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264Tests.gen.cs deleted file mode 100644 index d28a80524b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264), - Is.EqualTo(136) - ); - } - else - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264), - Is.EqualTo(88) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATIONTests.gen.cs deleted file mode 100644 index a52c58e359..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATIONTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION), - Is.EqualTo(12) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATIONTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATIONTests.gen.cs deleted file mode 100644 index c11a29ab07..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATIONTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATIONTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION) - ) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION), - Is.EqualTo(20) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVCTests.gen.cs deleted file mode 100644 index 76f35e3721..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVCTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC), - Is.EqualTo(112) - ); - } - else - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC), - Is.EqualTo(68) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESCTests.gen.cs deleted file mode 100644 index 2b6f86bd8a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC), Is.EqualTo(28)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATATests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATATests.gen.cs deleted file mode 100644 index 95fd40e6bf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATATests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATATests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA), - Is.EqualTo(16) - ); - } - else - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA), - Is.EqualTo(8) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICESTests.gen.cs deleted file mode 100644 index 1ebd51a1e3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICESTests.gen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES), - Is.EqualTo(4) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESCTests.gen.cs deleted file mode 100644 index 7139ca7aea..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESCTests.gen.cs deleted file mode 100644 index e4dd8dbc30..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_DESCTests.gen.cs deleted file mode 100644 index 51531789e5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_PROFILE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_PROFILE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_PROFILE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_PROFILE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PROFILE_DESC), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_PROFILE_DESC), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROLTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROLTests.gen.cs deleted file mode 100644 index 2a1ed523a5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROLTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RATE_CONTROLTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_RATE_CONTROL).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CBRTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CBRTests.gen.cs deleted file mode 100644 index 582063e19e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CBRTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RATE_CONTROL_CBRTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMSTests.gen.cs deleted file mode 100644 index ea61e14829..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMSTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS), - Is.EqualTo(16) - ); - } - else - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS), - Is.EqualTo(8) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CQPTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CQPTests.gen.cs deleted file mode 100644 index 0bea25bd2e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_CQPTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RATE_CONTROL_CQPTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBRTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBRTests.gen.cs deleted file mode 100644 index 97111f9a3c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBRTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBRTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR), Is.EqualTo(48)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_VBRTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_VBRTests.gen.cs deleted file mode 100644 index 10c77e19c3..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RATE_CONTROL_VBRTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RATE_CONTROL_VBRTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR), Is.EqualTo(56)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURETests.gen.cs deleted file mode 100644 index 99e9c84564..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264Tests.gen.cs deleted file mode 100644 index 6508845ac9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264Tests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264), Is.EqualTo(24)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVCTests.gen.cs deleted file mode 100644 index 2dc6a5f44a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTSTests.gen.cs deleted file mode 100644 index 1fc1ca8f96..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS), - Is.EqualTo(56) - ); - } - else - { - Assert.That( - sizeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS), - Is.EqualTo(40) - ); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTSTests.gen.cs deleted file mode 100644 index e965a006b1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESCTests.gen.cs deleted file mode 100644 index bb44bf2395..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC), Is.EqualTo(96)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC), Is.EqualTo(64)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURETests.gen.cs deleted file mode 100644 index 1e3d20a290..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURETests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264Tests.gen.cs deleted file mode 100644 index e4ee25e160..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264Tests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVCTests.gen.cs deleted file mode 100644 index c902976e84..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVCTests.gen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODE_REFERENCE_FRAMESTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODE_REFERENCE_FRAMESTests.gen.cs deleted file mode 100644 index 179f447108..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_ENCODE_REFERENCE_FRAMESTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_ENCODE_REFERENCE_FRAMESTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_ENCODE_REFERENCE_FRAMES)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_ENCODE_REFERENCE_FRAMES).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_ENCODE_REFERENCE_FRAMES), Is.EqualTo(24)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_ENCODE_REFERENCE_FRAMES), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_DESCTests.gen.cs deleted file mode 100644 index ff5432fb8d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_DESCTests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_EXTENSION_COMMAND_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_EXTENSION_COMMAND_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_DESC), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_INFOTests.gen.cs deleted file mode 100644 index 0f292b0537..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_INFOTests.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_EXTENSION_COMMAND_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_EXTENSION_COMMAND_INFO).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_INFO), Is.EqualTo(32)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_INFO), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFOTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFOTests.gen.cs deleted file mode 100644 index fde92809db..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFOTests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFOTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO), Is.EqualTo(12)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FORMATTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FORMATTests.gen.cs deleted file mode 100644 index 37c0154ab6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_FORMATTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_FORMATTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_VIDEO_FORMAT))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_FORMAT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_FORMAT), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_DESCTests.gen.cs deleted file mode 100644 index cd2dfb1611..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_DESCTests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_MOTION_ESTIMATOR_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_MOTION_ESTIMATOR_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_DESC), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_INPUTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_INPUTTests.gen.cs deleted file mode 100644 index 1ec446df94..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_INPUTTests.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_MOTION_ESTIMATOR_INPUTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_INPUT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_MOTION_ESTIMATOR_INPUT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_INPUT), Is.EqualTo(40)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_INPUT), Is.EqualTo(20)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUTTests.gen.cs deleted file mode 100644 index 29a9151150..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUTTests.gen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_VECTOR_HEAP_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_VECTOR_HEAP_DESCTests.gen.cs deleted file mode 100644 index cc181f8d9e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_MOTION_VECTOR_HEAP_DESCTests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class D3D12_VIDEO_MOTION_VECTOR_HEAP_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_BLENDINGTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_BLENDINGTests.gen.cs deleted file mode 100644 index 2a0df12ed7..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_ALPHA_BLENDINGTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_ALPHA_BLENDINGTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_ALPHA_BLENDING)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_ALPHA_BLENDING).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_ALPHA_BLENDING), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_RANGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_RANGETests.gen.cs deleted file mode 100644 index 24fd861432..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_FILTER_RANGETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_FILTER_RANGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_FILTER_RANGE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_FILTER_RANGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_FILTER_RANGE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAMTests.gen.cs deleted file mode 100644 index a65aa889fe..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAMTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_INPUT_STREAMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_INPUT_STREAM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM), Is.EqualTo(64)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM), Is.EqualTo(32)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1Tests.gen.cs deleted file mode 100644 index ec7893fe18..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1Tests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1), Is.EqualTo(320)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1), Is.EqualTo(252)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTSTests.gen.cs deleted file mode 100644 index 95d2c8b479..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS), Is.EqualTo(312)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS), Is.EqualTo(248)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_DESCTests.gen.cs deleted file mode 100644 index 7f614e2fbc..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_INPUT_STREAM_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC), Is.EqualTo(112)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_RATETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_RATETests.gen.cs deleted file mode 100644 index 4a20c46eb1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_INPUT_STREAM_RATETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_INPUT_STREAM_RATETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_LUMA_KEYTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_LUMA_KEYTests.gen.cs deleted file mode 100644 index 04f0e9eef8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_LUMA_KEYTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_LUMA_KEYTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_LUMA_KEY)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_LUMA_KEY).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_LUMA_KEY), Is.EqualTo(12)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAMTests.gen.cs deleted file mode 100644 index 780a5e30d2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAMTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_OUTPUT_STREAMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM), Is.EqualTo(16)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM), Is.EqualTo(8)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTSTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTSTests.gen.cs deleted file mode 100644 index 0c931733be..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTSTests.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTSTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That( - typeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS).IsLayoutSequential, - Is.True - ); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS), Is.EqualTo(32)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESCTests.gen.cs deleted file mode 100644 index 35d7ec75bb..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESCTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC), Is.EqualTo(44)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_REFERENCE_SETTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_REFERENCE_SETTests.gen.cs deleted file mode 100644 index 6091482708..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_REFERENCE_SETTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_REFERENCE_SETTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_REFERENCE_SET)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_REFERENCE_SET).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_REFERENCE_SET), Is.EqualTo(48)); - } - else - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_REFERENCE_SET), Is.EqualTo(24)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_TRANSFORMTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_TRANSFORMTests.gen.cs deleted file mode 100644 index e1051c8a4d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_PROCESS_TRANSFORMTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_PROCESS_TRANSFORMTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_PROCESS_TRANSFORM)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_PROCESS_TRANSFORM).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_PROCESS_TRANSFORM), Is.EqualTo(36)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SAMPLETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SAMPLETests.gen.cs deleted file mode 100644 index 977c584aa1..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SAMPLETests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_SAMPLETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(D3D12_VIDEO_SAMPLE))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_SAMPLE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_SAMPLE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORTTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORTTests.gen.cs deleted file mode 100644 index 997594f87d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SCALE_SUPPORTTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_SCALE_SUPPORTTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_SCALE_SUPPORT)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_SCALE_SUPPORT).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_SCALE_SUPPORT), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SIZE_RANGETests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SIZE_RANGETests.gen.cs deleted file mode 100644 index da3907cfee..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/D3D12_VIDEO_SIZE_RANGETests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3D12_VIDEO_SIZE_RANGETests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3D12_VIDEO_SIZE_RANGE)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3D12_VIDEO_SIZE_RANGE).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(D3D12_VIDEO_SIZE_RANGE), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList1Tests.gen.cs deleted file mode 100644 index 2795b0e13c..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDecodeCommandList1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoDecodeCommandList1).GUID, - Is.EqualTo(IID_ID3D12VideoDecodeCommandList1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoDecodeCommandList1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecodeCommandList1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList2Tests.gen.cs deleted file mode 100644 index 101a8b1670..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList2Tests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoDecodeCommandList2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoDecodeCommandList2).GUID, - Is.EqualTo(IID_ID3D12VideoDecodeCommandList2) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoDecodeCommandList2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecodeCommandList2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList3Tests.gen.cs deleted file mode 100644 index 0a3ae722a8..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandList3Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDecodeCommandList3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoDecodeCommandList3).GUID, - Is.EqualTo(IID_ID3D12VideoDecodeCommandList3) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoDecodeCommandList3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecodeCommandList3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandListTests.gen.cs deleted file mode 100644 index 0f85100d7d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecodeCommandListTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDecodeCommandListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoDecodeCommandList).GUID, - Is.EqualTo(IID_ID3D12VideoDecodeCommandList) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoDecodeCommandList)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecodeCommandList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecodeCommandList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder1Tests.gen.cs deleted file mode 100644 index ee7f24c1fe..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoder1Tests.gen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoDecoder1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDecoder1).GUID, Is.EqualTo(IID_ID3D12VideoDecoder1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoDecoder1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecoder1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecoder1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecoder1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap1Tests.gen.cs deleted file mode 100644 index ba45acbbdf..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeap1Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDecoderHeap1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDecoderHeap1).GUID, Is.EqualTo(IID_ID3D12VideoDecoderHeap1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoDecoderHeap1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecoderHeap1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecoderHeap1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecoderHeap1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeapTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeapTests.gen.cs deleted file mode 100644 index 62c709251f..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderHeapTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDecoderHeapTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDecoderHeap).GUID, Is.EqualTo(IID_ID3D12VideoDecoderHeap)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoDecoderHeap)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecoderHeap).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecoderHeap), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecoderHeap), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderTests.gen.cs deleted file mode 100644 index ba84aa1422..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDecoderTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDecoderTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDecoder).GUID, Is.EqualTo(IID_ID3D12VideoDecoder)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoDecoder))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDecoder).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDecoder), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDecoder), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice1Tests.gen.cs deleted file mode 100644 index a30befc2ae..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice1Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDevice1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDevice1).GUID, Is.EqualTo(IID_ID3D12VideoDevice1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoDevice1))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDevice1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDevice1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDevice1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice2Tests.gen.cs deleted file mode 100644 index 38370a0378..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice2Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDevice2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDevice2).GUID, Is.EqualTo(IID_ID3D12VideoDevice2)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoDevice2))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDevice2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDevice2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDevice2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice3Tests.gen.cs deleted file mode 100644 index 2653bb6eb4..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDevice3Tests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDevice3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDevice3).GUID, Is.EqualTo(IID_ID3D12VideoDevice3)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoDevice3))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDevice3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDevice3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDevice3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDeviceTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDeviceTests.gen.cs deleted file mode 100644 index a062d80386..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoDeviceTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoDeviceTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoDevice).GUID, Is.EqualTo(IID_ID3D12VideoDevice)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoDevice))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoDevice).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoDevice), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoDevice), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList1Tests.gen.cs deleted file mode 100644 index 410d4ce642..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoEncodeCommandList1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoEncodeCommandList1).GUID, - Is.EqualTo(IID_ID3D12VideoEncodeCommandList1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoEncodeCommandList1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoEncodeCommandList1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList2Tests.gen.cs deleted file mode 100644 index 96eb501697..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList2Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoEncodeCommandList2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoEncodeCommandList2).GUID, - Is.EqualTo(IID_ID3D12VideoEncodeCommandList2) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoEncodeCommandList2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoEncodeCommandList2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList3Tests.gen.cs deleted file mode 100644 index 3cc11655a6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandList3Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoEncodeCommandList3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoEncodeCommandList3).GUID, - Is.EqualTo(IID_ID3D12VideoEncodeCommandList3) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoEncodeCommandList3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoEncodeCommandList3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandListTests.gen.cs deleted file mode 100644 index e2ebff3398..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncodeCommandListTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoEncodeCommandListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoEncodeCommandList).GUID, - Is.EqualTo(IID_ID3D12VideoEncodeCommandList) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoEncodeCommandList)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoEncodeCommandList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoEncodeCommandList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderHeapTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderHeapTests.gen.cs deleted file mode 100644 index bb54a6daf5..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderHeapTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoEncoderHeapTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoEncoderHeap).GUID, Is.EqualTo(IID_ID3D12VideoEncoderHeap)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoEncoderHeap)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoEncoderHeap).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoEncoderHeap), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoEncoderHeap), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderTests.gen.cs deleted file mode 100644 index f33dfe78c6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoEncoderTests.gen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoEncoderTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoEncoder).GUID, Is.EqualTo(IID_ID3D12VideoEncoder)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D12VideoEncoder))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoEncoder).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoEncoder), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoEncoder), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoExtensionCommandTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoExtensionCommandTests.gen.cs deleted file mode 100644 index c55c238a17..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoExtensionCommandTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoExtensionCommandTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoExtensionCommand).GUID, - Is.EqualTo(IID_ID3D12VideoExtensionCommand) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoExtensionCommand)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoExtensionCommand).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoExtensionCommand), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoExtensionCommand), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionEstimatorTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionEstimatorTests.gen.cs deleted file mode 100644 index 0161bd1f77..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionEstimatorTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoMotionEstimatorTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoMotionEstimator).GUID, - Is.EqualTo(IID_ID3D12VideoMotionEstimator) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoMotionEstimator)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoMotionEstimator).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoMotionEstimator), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoMotionEstimator), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionVectorHeapTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionVectorHeapTests.gen.cs deleted file mode 100644 index 4ef1bf0b3b..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoMotionVectorHeapTests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoMotionVectorHeapTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoMotionVectorHeap).GUID, - Is.EqualTo(IID_ID3D12VideoMotionVectorHeap) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoMotionVectorHeap)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoMotionVectorHeap).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoMotionVectorHeap), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoMotionVectorHeap), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList1Tests.gen.cs deleted file mode 100644 index f4c63424ff..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList1Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoProcessCommandList1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoProcessCommandList1).GUID, - Is.EqualTo(IID_ID3D12VideoProcessCommandList1) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoProcessCommandList1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoProcessCommandList1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoProcessCommandList1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoProcessCommandList1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList2Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList2Tests.gen.cs deleted file mode 100644 index 56fbad07bd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList2Tests.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class ID3D12VideoProcessCommandList2Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoProcessCommandList2).GUID, - Is.EqualTo(IID_ID3D12VideoProcessCommandList2) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoProcessCommandList2)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoProcessCommandList2).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoProcessCommandList2), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoProcessCommandList2), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList3Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList3Tests.gen.cs deleted file mode 100644 index 62ae54b266..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandList3Tests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoProcessCommandList3Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoProcessCommandList3).GUID, - Is.EqualTo(IID_ID3D12VideoProcessCommandList3) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoProcessCommandList3)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoProcessCommandList3).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoProcessCommandList3), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoProcessCommandList3), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandListTests.gen.cs deleted file mode 100644 index 3176a046be..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessCommandListTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoProcessCommandListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12VideoProcessCommandList).GUID, - Is.EqualTo(IID_ID3D12VideoProcessCommandList) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoProcessCommandList)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoProcessCommandList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoProcessCommandList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoProcessCommandList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor1Tests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor1Tests.gen.cs deleted file mode 100644 index 410e419c92..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessor1Tests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoProcessor1Tests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoProcessor1).GUID, Is.EqualTo(IID_ID3D12VideoProcessor1)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoProcessor1)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoProcessor1).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoProcessor1), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoProcessor1), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessorTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessorTests.gen.cs deleted file mode 100644 index aa6da3b9e2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/ID3D12VideoProcessorTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12VideoProcessorTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12VideoProcessor).GUID, Is.EqualTo(IID_ID3D12VideoProcessor)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12VideoProcessor)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12VideoProcessor).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12VideoProcessor), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12VideoProcessor), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3d12video/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3d12video/IIDTests.gen.cs deleted file mode 100644 index 61faea01f2..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3d12video/IIDTests.gen.cs +++ /dev/null @@ -1,363 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3d12video.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecoderHeapTest() - { - Assert.That( - IID_ID3D12VideoDecoderHeap, - Is.EqualTo( - new Guid(0x0946B7C9, 0xEBF6, 0x4047, 0xBB, 0x73, 0x86, 0x83, 0xE2, 0x7D, 0xBB, 0x1F) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDeviceTest() - { - Assert.That( - IID_ID3D12VideoDevice, - Is.EqualTo( - new Guid(0x1F052807, 0x0B46, 0x4ACC, 0x8A, 0x89, 0x36, 0x4F, 0x79, 0x37, 0x18, 0xA4) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecoderTest() - { - Assert.That( - IID_ID3D12VideoDecoder, - Is.EqualTo( - new Guid(0xC59B6BDC, 0x7720, 0x4074, 0xA1, 0x36, 0x17, 0xA1, 0x56, 0x03, 0x74, 0x70) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoProcessorTest() - { - Assert.That( - IID_ID3D12VideoProcessor, - Is.EqualTo( - new Guid(0x304FDB32, 0xBEDE, 0x410A, 0x85, 0x45, 0x94, 0x3A, 0xC6, 0xA4, 0x61, 0x38) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecodeCommandListTest() - { - Assert.That( - IID_ID3D12VideoDecodeCommandList, - Is.EqualTo( - new Guid(0x3B60536E, 0xAD29, 0x4E64, 0xA2, 0x69, 0xF8, 0x53, 0x83, 0x7E, 0x5E, 0x53) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoProcessCommandListTest() - { - Assert.That( - IID_ID3D12VideoProcessCommandList, - Is.EqualTo( - new Guid(0xAEB2543A, 0x167F, 0x4682, 0xAC, 0xC8, 0xD1, 0x59, 0xED, 0x4A, 0x62, 0x09) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecodeCommandList1Test() - { - Assert.That( - IID_ID3D12VideoDecodeCommandList1, - Is.EqualTo( - new Guid(0xD52F011B, 0xB56E, 0x453C, 0xA0, 0x5A, 0xA7, 0xF3, 0x11, 0xC8, 0xF4, 0x72) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoProcessCommandList1Test() - { - Assert.That( - IID_ID3D12VideoProcessCommandList1, - Is.EqualTo( - new Guid(0x542C5C4D, 0x7596, 0x434F, 0x8C, 0x93, 0x4E, 0xFA, 0x67, 0x66, 0xF2, 0x67) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoMotionEstimatorTest() - { - Assert.That( - IID_ID3D12VideoMotionEstimator, - Is.EqualTo( - new Guid(0x33FDAE0E, 0x098B, 0x428F, 0x87, 0xBB, 0x34, 0xB6, 0x95, 0xDE, 0x08, 0xF8) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoMotionVectorHeapTest() - { - Assert.That( - IID_ID3D12VideoMotionVectorHeap, - Is.EqualTo( - new Guid(0x5BE17987, 0x743A, 0x4061, 0x83, 0x4B, 0x23, 0xD2, 0x2D, 0xAE, 0xA5, 0x05) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDevice1Test() - { - Assert.That( - IID_ID3D12VideoDevice1, - Is.EqualTo( - new Guid(0x981611AD, 0xA144, 0x4C83, 0x98, 0x90, 0xF3, 0x0E, 0x26, 0xD6, 0x58, 0xAB) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoEncodeCommandListTest() - { - Assert.That( - IID_ID3D12VideoEncodeCommandList, - Is.EqualTo( - new Guid(0x8455293A, 0x0CBD, 0x4831, 0x9B, 0x39, 0xFB, 0xDB, 0xAB, 0x72, 0x47, 0x23) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecoder1Test() - { - Assert.That( - IID_ID3D12VideoDecoder1, - Is.EqualTo( - new Guid(0x79A2E5FB, 0xCCD2, 0x469A, 0x9F, 0xDE, 0x19, 0x5D, 0x10, 0x95, 0x1F, 0x7E) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecoderHeap1Test() - { - Assert.That( - IID_ID3D12VideoDecoderHeap1, - Is.EqualTo( - new Guid(0xDA1D98C5, 0x539F, 0x41B2, 0xBF, 0x6B, 0x11, 0x98, 0xA0, 0x3B, 0x6D, 0x26) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoProcessor1Test() - { - Assert.That( - IID_ID3D12VideoProcessor1, - Is.EqualTo( - new Guid(0xF3CFE615, 0x553F, 0x425C, 0x86, 0xD8, 0xEE, 0x8C, 0x1B, 0x1F, 0xB0, 0x1C) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoExtensionCommandTest() - { - Assert.That( - IID_ID3D12VideoExtensionCommand, - Is.EqualTo( - new Guid(0x554E41E8, 0xAE8E, 0x4A8C, 0xB7, 0xD2, 0x5B, 0x4F, 0x27, 0x4A, 0x30, 0xE4) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDevice2Test() - { - Assert.That( - IID_ID3D12VideoDevice2, - Is.EqualTo( - new Guid(0xF019AC49, 0xF838, 0x4A95, 0x9B, 0x17, 0x57, 0x94, 0x37, 0xC8, 0xF5, 0x13) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecodeCommandList2Test() - { - Assert.That( - IID_ID3D12VideoDecodeCommandList2, - Is.EqualTo( - new Guid(0x6e120880, 0xc114, 0x4153, 0x80, 0x36, 0xd2, 0x47, 0x05, 0x1e, 0x17, 0x29) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDecodeCommandList3Test() - { - Assert.That( - IID_ID3D12VideoDecodeCommandList3, - Is.EqualTo( - new Guid(0x2aee8c37, 0x9562, 0x42da, 0x8a, 0xbf, 0x61, 0xef, 0xeb, 0x2e, 0x45, 0x13) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoProcessCommandList2Test() - { - Assert.That( - IID_ID3D12VideoProcessCommandList2, - Is.EqualTo( - new Guid(0xdb525ae4, 0x6ad6, 0x473c, 0xba, 0xa7, 0x59, 0xb2, 0xe3, 0x70, 0x82, 0xe4) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoProcessCommandList3Test() - { - Assert.That( - IID_ID3D12VideoProcessCommandList3, - Is.EqualTo( - new Guid(0x1a0a4ca4, 0x9f08, 0x40ce, 0x95, 0x58, 0xb4, 0x11, 0xfd, 0x26, 0x66, 0xff) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoEncodeCommandList1Test() - { - Assert.That( - IID_ID3D12VideoEncodeCommandList1, - Is.EqualTo( - new Guid(0x94971eca, 0x2bdb, 0x4769, 0x88, 0xcf, 0x36, 0x75, 0xea, 0x75, 0x7e, 0xbc) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoEncoderTest() - { - Assert.That( - IID_ID3D12VideoEncoder, - Is.EqualTo( - new Guid(0x2E0D212D, 0x8DF9, 0x44A6, 0xA7, 0x70, 0xBB, 0x28, 0x9B, 0x18, 0x27, 0x37) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoEncoderHeapTest() - { - Assert.That( - IID_ID3D12VideoEncoderHeap, - Is.EqualTo( - new Guid(0x22B35D96, 0x876A, 0x44C0, 0xB2, 0x5E, 0xFB, 0x8C, 0x9C, 0x7F, 0x1C, 0x4A) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoDevice3Test() - { - Assert.That( - IID_ID3D12VideoDevice3, - Is.EqualTo( - new Guid(0x4243ADB4, 0x3A32, 0x4666, 0x97, 0x3C, 0x0C, 0xCC, 0x56, 0x25, 0xDC, 0x44) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoEncodeCommandList2Test() - { - Assert.That( - IID_ID3D12VideoEncodeCommandList2, - Is.EqualTo( - new Guid(0x895491e2, 0xe701, 0x46a9, 0x9a, 0x1f, 0x8d, 0x34, 0x80, 0xed, 0x86, 0x7a) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12VideoEncodeCommandList3Test() - { - Assert.That( - IID_ID3D12VideoEncodeCommandList3, - Is.EqualTo( - new Guid(0x7f027b22, 0x1515, 0x4e85, 0xaa, 0x0d, 0x02, 0x64, 0x86, 0x58, 0x05, 0x76) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/DirectXTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3dcommon/DirectXTests.gen.cs deleted file mode 100644 index 64b84bf8a0..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/DirectXTests.gen.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.DirectX; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static partial class DirectXTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void WKPDID_D3DDebugObjectNameTest() - { - Assert.That( - WKPDID_D3DDebugObjectName, - Is.EqualTo( - new Guid(0x429b8c22, 0x9188, 0x4b0c, 0x87, 0x42, 0xac, 0xb0, 0xbf, 0x85, 0xc2, 0x00) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void WKPDID_D3DDebugObjectNameWTest() - { - Assert.That( - WKPDID_D3DDebugObjectNameW, - Is.EqualTo( - new Guid(0x4cca5fd8, 0x921f, 0x42c8, 0x85, 0x66, 0x70, 0xca, 0xf2, 0xa9, 0xb7, 0x41) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void WKPDID_CommentStringWTest() - { - Assert.That( - WKPDID_CommentStringW, - Is.EqualTo( - new Guid(0xd0149dc0, 0x90e8, 0x4ec8, 0x81, 0x44, 0xe9, 0x00, 0xad, 0x26, 0x6b, 0xb2) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void WKPDID_D3D12UniqueObjectIdTest() - { - Assert.That( - WKPDID_D3D12UniqueObjectId, - Is.EqualTo( - new Guid(0x1b39de15, 0xec04, 0x4bae, 0xba, 0x4d, 0x8c, 0xef, 0x79, 0xfc, 0x04, 0xc1) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3dcommon/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3dcommon/IIDTests.gen.cs deleted file mode 100644 index 7fd06966fe..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3dcommon/IIDTests.gen.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D10BlobTest() - { - Assert.That( - IID_ID3D10Blob, - Is.EqualTo( - new Guid(0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESCTests.gen.cs deleted file mode 100644 index 92aa52f882..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESCTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dx12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class D3DX12_MESH_SHADER_PIPELINE_STATE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(D3DX12_MESH_SHADER_PIPELINE_STATE_DESC)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(D3DX12_MESH_SHADER_PIPELINE_STATE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(D3DX12_MESH_SHADER_PIPELINE_STATE_DESC), Is.EqualTo(568)); - } - else - { - Assert.That(sizeof(D3DX12_MESH_SHADER_PIPELINE_STATE_DESC), Is.EqualTo(524)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/d3dx12/ID3DX12PipelineParserCallbacksTests.gen.cs b/tests/Win32/Win32/DirectX/headers/d3dx12/ID3DX12PipelineParserCallbacksTests.gen.cs deleted file mode 100644 index c0bbc32e3e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/d3dx12/ID3DX12PipelineParserCallbacksTests.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from d3dx12.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3DX12PipelineParserCallbacksTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3DX12PipelineParserCallbacks)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3DX12PipelineParserCallbacks).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3DX12PipelineParserCallbacks), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3DX12PipelineParserCallbacks), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetNodeSegmentGroupTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetNodeSegmentGroupTests.gen.cs deleted file mode 100644 index 0df38e901a..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetNodeSegmentGroupTests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class DXCoreAdapterMemoryBudgetNodeSegmentGroupTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(DXCoreAdapterMemoryBudgetNodeSegmentGroup)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DXCoreAdapterMemoryBudgetNodeSegmentGroup).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(DXCoreAdapterMemoryBudgetNodeSegmentGroup), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetTests.gen.cs deleted file mode 100644 index af547f6d2e..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreAdapterMemoryBudgetTests.gen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class DXCoreAdapterMemoryBudgetTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(DXCoreAdapterMemoryBudget)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DXCoreAdapterMemoryBudget).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(DXCoreAdapterMemoryBudget), Is.EqualTo(32)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDPartsTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDPartsTests.gen.cs deleted file mode 100644 index cdd52ee8a9..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDPartsTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class DXCoreHardwareIDPartsTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(DXCoreHardwareIDParts)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DXCoreHardwareIDParts).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(DXCoreHardwareIDParts), Is.EqualTo(20)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDTests.gen.cs deleted file mode 100644 index 282dc7e459..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DXCoreHardwareIDTests.gen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class DXCoreHardwareIDTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DXCoreHardwareID))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DXCoreHardwareID).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(DXCoreHardwareID), Is.EqualTo(16)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DirectXTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/DirectXTests.gen.cs deleted file mode 100644 index 482b11cdcd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/DirectXTests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.DirectX.DirectX; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the class. -public static partial class DirectXTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICSTest() - { - Assert.That( - DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICS, - Is.EqualTo( - new Guid(0x8c47866b, 0x7583, 0x450d, 0xf0, 0xf0, 0x6b, 0xad, 0xa8, 0x95, 0xaf, 0x4b) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICSTest() - { - Assert.That( - DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS, - Is.EqualTo( - new Guid(0x0c9ece4d, 0x2f6e, 0x4f01, 0x8c, 0x96, 0xe8, 0x9e, 0x33, 0x1b, 0x47, 0xb1) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTETest() - { - Assert.That( - DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE, - Is.EqualTo( - new Guid(0x248e2800, 0xa793, 0x4724, 0xab, 0xaa, 0x23, 0xa6, 0xde, 0x1b, 0xe0, 0x90) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterFactoryTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterFactoryTests.gen.cs deleted file mode 100644 index 215d01f401..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterFactoryTests.gen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class IDXCoreAdapterFactoryTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(IDXCoreAdapterFactory).GUID, Is.EqualTo(IID_IDXCoreAdapterFactory)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(IDXCoreAdapterFactory)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(IDXCoreAdapterFactory).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(IDXCoreAdapterFactory), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(IDXCoreAdapterFactory), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterListTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterListTests.gen.cs deleted file mode 100644 index 1e762ca0d6..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterListTests.gen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class IDXCoreAdapterListTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(IDXCoreAdapterList).GUID, Is.EqualTo(IID_IDXCoreAdapterList)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IDXCoreAdapterList))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(IDXCoreAdapterList).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(IDXCoreAdapterList), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(IDXCoreAdapterList), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterTests.gen.cs deleted file mode 100644 index 2bafc2a8ea..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IDXCoreAdapterTests.gen.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -[SupportedOSPlatform("windows10.0.19041.0")] -public static unsafe partial class IDXCoreAdapterTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(IDXCoreAdapter).GUID, Is.EqualTo(IID_IDXCoreAdapter)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IDXCoreAdapter))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(IDXCoreAdapter).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(IDXCoreAdapter), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(IDXCoreAdapter), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxcore_interface/IIDTests.gen.cs deleted file mode 100644 index e9b7bec7fb..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxcore_interface/IIDTests.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxcore_interface.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_IDXCoreAdapterFactoryTest() - { - Assert.That( - IID_IDXCoreAdapterFactory, - Is.EqualTo( - new Guid(0x78ee5945, 0xc36e, 0x4b13, 0xa6, 0x69, 0x00, 0x5d, 0xd1, 0x1c, 0x0f, 0x06) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_IDXCoreAdapterListTest() - { - Assert.That( - IID_IDXCoreAdapterList, - Is.EqualTo( - new Guid(0x526c7776, 0x40e9, 0x459b, 0xb7, 0x11, 0xf3, 0x2a, 0xd7, 0x6d, 0xfc, 0x28) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_IDXCoreAdapterTest() - { - Assert.That( - IID_IDXCoreAdapter, - Is.EqualTo( - new Guid(0xf0db4c7f, 0xfe5a, 0x42a2, 0xbd, 0x62, 0xf2, 0xa6, 0xcf, 0x6f, 0xc8, 0x3e) - ) - ); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxgicommon/DXGI_RATIONALTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxgicommon/DXGI_RATIONALTests.gen.cs deleted file mode 100644 index e4ddf2cbcd..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxgicommon/DXGI_RATIONALTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class DXGI_RATIONALTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DXGI_RATIONAL))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DXGI_RATIONAL).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(DXGI_RATIONAL), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/headers/dxgicommon/DXGI_SAMPLE_DESCTests.gen.cs b/tests/Win32/Win32/DirectX/headers/dxgicommon/DXGI_SAMPLE_DESCTests.gen.cs deleted file mode 100644 index 3c6c8c437d..0000000000 --- a/tests/Win32/Win32/DirectX/headers/dxgicommon/DXGI_SAMPLE_DESCTests.gen.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from dxgicommon.h in microsoft/DirectX-Headers tag v1.606.4 -// Original source is Copyright © Microsoft. Licensed under the MIT license -using NUnit.Framework; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class DXGI_SAMPLE_DESCTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DXGI_SAMPLE_DESC))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(DXGI_SAMPLE_DESC).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(DXGI_SAMPLE_DESC), Is.EqualTo(8)); - } -} diff --git a/tests/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7DeviceTests.gen.cs b/tests/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7DeviceTests.gen.cs deleted file mode 100644 index bcde646f8b..0000000000 --- a/tests/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7DeviceTests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D11On12On7.h in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D11On12On7DeviceTests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D11On12On7Device))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D11On12On7Device).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D11On12On7Device), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D11On12On7Device), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7Tests.gen.cs b/tests/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7Tests.gen.cs deleted file mode 100644 index b0aebdebad..0000000000 --- a/tests/Win32/Win32/DirectX/other/D3D11On12On7/ID3D11On12On7Tests.gen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D11On12On7.h in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D11On12On7Tests -{ - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ID3D11On12On7))); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D11On12On7).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D11On12On7), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D11On12On7), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevelTests.gen.cs b/tests/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevelTests.gen.cs deleted file mode 100644 index ae1ac56083..0000000000 --- a/tests/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12CommandQueueDownlevelTests.gen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12CommandQueueDownlevelTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That( - typeof(ID3D12CommandQueueDownlevel).GUID, - Is.EqualTo(IID_ID3D12CommandQueueDownlevel) - ); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12CommandQueueDownlevel)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12CommandQueueDownlevel).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12CommandQueueDownlevel), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12CommandQueueDownlevel), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevelTests.gen.cs b/tests/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevelTests.gen.cs deleted file mode 100644 index c7aa3b7fdd..0000000000 --- a/tests/Win32/Win32/DirectX/other/D3D12Downlevel/ID3D12DeviceDownlevelTests.gen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using NUnit.Framework; -using System; -using System.Runtime.InteropServices; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.DirectX.UnitTests; - -/// Provides validation of the struct. -public static unsafe partial class ID3D12DeviceDownlevelTests -{ - /// Validates that the of the struct is correct. - - [Test] - public static void GuidOfTest() - { - Assert.That(typeof(ID3D12DeviceDownlevel).GUID, Is.EqualTo(IID_ID3D12DeviceDownlevel)); - } - - /// Validates that the struct is blittable. - - [Test] - public static void IsBlittableTest() - { - Assert.That( - Marshal.SizeOf(), - Is.EqualTo(sizeof(ID3D12DeviceDownlevel)) - ); - } - - /// Validates that the struct has the right . - - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(ID3D12DeviceDownlevel).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - - [Test] - public static void SizeOfTest() - { - if (Environment.Is64BitProcess) - { - Assert.That(sizeof(ID3D12DeviceDownlevel), Is.EqualTo(8)); - } - else - { - Assert.That(sizeof(ID3D12DeviceDownlevel), Is.EqualTo(4)); - } - } -} diff --git a/tests/Win32/Win32/DirectX/other/D3D12Downlevel/IIDTests.gen.cs b/tests/Win32/Win32/DirectX/other/D3D12Downlevel/IIDTests.gen.cs deleted file mode 100644 index 5be87bf265..0000000000 --- a/tests/Win32/Win32/DirectX/other/D3D12Downlevel/IIDTests.gen.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from D3D12Downlevel in the https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7 nuget package, version 1.1.0 -// Original source is Copyright © Microsoft. All rights reserved. License details can be found here: https://www.nuget.org/packages/Microsoft.Direct3D.D3D12On7/1.1.0/License -using NUnit.Framework; -using System; -using static Silk.NET.Windows.IID; - -namespace Silk.NET.Windows.UnitTests; - -/// Provides validation of the class. -public static partial class IIDTests -{ - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12CommandQueueDownlevelTest() - { - Assert.That( - IID_ID3D12CommandQueueDownlevel, - Is.EqualTo( - new Guid(0x38a8c5ef, 0x7ccb, 0x4e81, 0x91, 0x4f, 0xa6, 0xe9, 0xd0, 0x72, 0xc4, 0x94) - ) - ); - } - - /// Validates that the value of the property is correct. - - [Test] - public static void IID_ID3D12DeviceDownlevelTest() - { - Assert.That( - IID_ID3D12DeviceDownlevel, - Is.EqualTo( - new Guid(0x74eaee3f, 0x2f4b, 0x476d, 0x82, 0xba, 0x2b, 0x85, 0xcb, 0x49, 0xe3, 0x10) - ) - ); - } -} diff --git a/tests/Win32/Win32/Silk.NET.Win32.UnitTests.csproj b/tests/Win32/Win32/Silk.NET.Win32.UnitTests.csproj new file mode 100644 index 0000000000..edbead2026 --- /dev/null +++ b/tests/Win32/Win32/Silk.NET.Win32.UnitTests.csproj @@ -0,0 +1,26 @@ + + + + net8.0 + enable + enable + + + + + + + + + Silk.NET.Core.cs + + + + + + + True + + + + diff --git a/tests/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATATests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATATests.gen.cs index 07a63f8407..3c80921019 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATATests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/APPX_SIP_CLIENT_DATATests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class APPX_SIP_CLIENT_DATATests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODETests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODETests.gen.cs index 23ef840703..55deb7aee6 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODETests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_ATTR_AUTHCODETests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_ATTR_AUTHCODETests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFOTests.gen.cs index 5dbb81a592..30137e31f0 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_BLOB_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_BLOB_INFOTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERTTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERTTests.gen.cs index e096de1b90..d8f8b8c013 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERTTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERTTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_CERTTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFOTests.gen.cs index 67e08909a2..58a2d88e41 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CERT_STORE_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_CERT_STORE_INFOTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXTTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXTTests.gen.cs index 16bdf8c94f..7317fa3332 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXTTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_CONTEXTTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_CONTEXTTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFOTests.gen.cs index 78270ec2ab..c715ce9fec 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_FILE_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_FILE_INFOTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFOTests.gen.cs index 28f746350d..ea8e32af24 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_PROVIDER_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_PROVIDER_INFOTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFOTests.gen.cs index 205b182943..29ce412bad 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGNATURE_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_SIGNATURE_INFOTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMSTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMSTests.gen.cs index 3a70b5b35e..9e9e3a85cf 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMSTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SIGN_EX2_PARAMSTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_SIGN_EX2_PARAMSTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFOTests.gen.cs index 3c00ec16ae..759b430f71 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SPC_CHAIN_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_SPC_CHAIN_INFOTests diff --git a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFOTests.gen.cs b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFOTests.gen.cs index c2504c47ad..d14a1c77bc 100644 --- a/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFOTests.gen.cs +++ b/tests/Win32/Win32/Windows/other/mssign32/SIGNER_SUBJECT_INFOTests.gen.cs @@ -1,11 +1,11 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using NUnit.Framework; using System; using System.Runtime.InteropServices; - -namespace Silk.NET.Windows.UnitTests; +using NUnit.Framework; +#pragma warning disable CS1589, CS0419, CA1416, CS0618 +namespace Silk.NET.Win32.UnitTests; /// Provides validation of the struct. public static unsafe partial class SIGNER_SUBJECT_INFOTests